From bc53a02f4bc08a11c52eaab8f7bce3852f0ff3fa Mon Sep 17 00:00:00 2001 From: Victor Usoltsev Date: Wed, 9 Jan 2019 01:40:15 +1300 Subject: [PATCH] Adds references to Sentry test project. --- .../UnitTest1.cs | 21 +++++++- ...Vima.LoggingAbstractor.Sentry.Tests.csproj | 52 +++++++++++-------- 2 files changed, 49 insertions(+), 24 deletions(-) diff --git a/Source/Vima.LoggingAbstractor.Sentry.Tests/UnitTest1.cs b/Source/Vima.LoggingAbstractor.Sentry.Tests/UnitTest1.cs index 480e4dc..c8db6ed 100644 --- a/Source/Vima.LoggingAbstractor.Sentry.Tests/UnitTest1.cs +++ b/Source/Vima.LoggingAbstractor.Sentry.Tests/UnitTest1.cs @@ -1,3 +1,6 @@ +using System; +using Sentry; +using Vima.LoggingAbstractor.Core; using Xunit; namespace Vima.LoggingAbstractor.Sentry.Tests @@ -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; + // } } -} +} \ No newline at end of file diff --git a/Source/Vima.LoggingAbstractor.Sentry.Tests/Vima.LoggingAbstractor.Sentry.Tests.csproj b/Source/Vima.LoggingAbstractor.Sentry.Tests/Vima.LoggingAbstractor.Sentry.Tests.csproj index 9668bda..8751eee 100644 --- a/Source/Vima.LoggingAbstractor.Sentry.Tests/Vima.LoggingAbstractor.Sentry.Tests.csproj +++ b/Source/Vima.LoggingAbstractor.Sentry.Tests/Vima.LoggingAbstractor.Sentry.Tests.csproj @@ -1,26 +1,32 @@ - - - - net47 - Vima.LoggingAbstractor.Sentry.Tests - Vima.LoggingAbstractor.Sentry.Tests - bin\$(Configuration)\$(TargetFramework)\Vima.LoggingAbstractor.Sentry.Tests.xml - true - ..\ca-tests.ruleset - - false - - - - - - - + + + + net47 + Vima.LoggingAbstractor.Sentry.Tests + Vima.LoggingAbstractor.Sentry.Tests + bin\$(Configuration)\$(TargetFramework)\Vima.LoggingAbstractor.Sentry.Tests.xml + true + ..\ca-tests.ruleset + + false + + + + + + + + + all runtime; build; native; contentfiles; analyzers - - - - - + + + + + + + + +