Skip to content

Commit

Permalink
Adds references to Sentry test project.
Browse files Browse the repository at this point in the history
  • Loading branch information
bernarden committed Jan 8, 2019
1 parent c11ef7e commit bc53a02
Show file tree
Hide file tree
Showing 2 changed files with 49 additions and 24 deletions.
21 changes: 20 additions & 1 deletion Source/Vima.LoggingAbstractor.Sentry.Tests/UnitTest1.cs
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
using System;
using Sentry;
using Vima.LoggingAbstractor.Core;
using Xunit;

namespace Vima.LoggingAbstractor.Sentry.Tests
Expand All @@ -7,6 +10,22 @@ public class UnitTest1
[Fact]
public void Test1()
{
// var client = new SentryClient(new SentryOptions { Dsn = new Dsn(""), BeforeSend = BeforeSend });

// client.CaptureEvent(new SentryEvent() { Message = "Hi" });
// var logger = new SentryAbstractLogger(client);

// logger.TraceException(new AccessViolationException());
// logger.TraceMessage("Test4");

// logger.TraceMessage("Hello2");
// logger.TraceMessage("Test3");
// client.Dispose();
}

// private SentryEvent BeforeSend(SentryEvent arg)
// {
// return arg;
// }
}
}
}
Original file line number Diff line number Diff line change
@@ -1,26 +1,32 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>net47</TargetFramework>
<AssemblyName>Vima.LoggingAbstractor.Sentry.Tests</AssemblyName>
<RootNamespace>Vima.LoggingAbstractor.Sentry.Tests</RootNamespace>
<DocumentationFile>bin\$(Configuration)\$(TargetFramework)\Vima.LoggingAbstractor.Sentry.Tests.xml</DocumentationFile>
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
<CodeAnalysisRuleSet>..\ca-tests.ruleset</CodeAnalysisRuleSet>
<WarningsAsErrors />
<IsPackable>false</IsPackable>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="FluentAssertions" Version="5.5.3" />
<PackageReference Include="Moq" Version="4.10.1" />
<PackageReference Include="StyleCop.Analyzers" Version="1.0.2" />
<PackageReference Include="xunit" Version="2.4.1" />
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>net47</TargetFramework>
<AssemblyName>Vima.LoggingAbstractor.Sentry.Tests</AssemblyName>
<RootNamespace>Vima.LoggingAbstractor.Sentry.Tests</RootNamespace>
<DocumentationFile>bin\$(Configuration)\$(TargetFramework)\Vima.LoggingAbstractor.Sentry.Tests.xml</DocumentationFile>
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
<CodeAnalysisRuleSet>..\ca-tests.ruleset</CodeAnalysisRuleSet>
<WarningsAsErrors />
<IsPackable>false</IsPackable>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="FluentAssertions" Version="5.5.3" />
<PackageReference Include="Moq" Version="4.10.1" />
<PackageReference Include="Sentry " Version="1.1.1" />
<PackageReference Include="SharpRaven" Version="2.4.0" />
<PackageReference Include="StyleCop.Analyzers" Version="1.0.2" />
<PackageReference Include="xunit" Version="2.4.1" />
<PackageReference Include="xunit.runner.visualstudio" Version="2.4.1">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets>
</PackageReference>
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="15.9.0" />
<DotNetCliToolReference Include="dotnet-xunit" Version="2.3.1" />
</ItemGroup>
</Project>
</PackageReference>
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="15.9.0" />
<DotNetCliToolReference Include="dotnet-xunit" Version="2.3.1" />
</ItemGroup>

<ItemGroup>
<ProjectReference Include="..\Vima.LoggingAbstractor.Sentry\Vima.LoggingAbstractor.Sentry.csproj" />
</ItemGroup>
</Project>

0 comments on commit bc53a02

Please sign in to comment.