diff --git a/test/Serilog.Tests/Context/LogContextTests.cs b/test/Serilog.Tests/Context/LogContextTests.cs index 7fc0b62df..3e46c1f00 100644 --- a/test/Serilog.Tests/Context/LogContextTests.cs +++ b/test/Serilog.Tests/Context/LogContextTests.cs @@ -31,7 +31,9 @@ static LogContextTests() public LogContextTests() { #if REMOTING + // ReSharper disable AssignNullToNotNullAttribute CallContext.LogicalSetData(typeof(LogContext).FullName, null); + // ReSharper restore AssignNullToNotNullAttribute #endif } @@ -266,7 +268,9 @@ public void DoesNotPreventCrossDomainCalls() { domain = AppDomain.CreateDomain("LogContextTests", null, AppDomain.CurrentDomain.SetupInformation); + // ReSharper disable AssignNullToNotNullAttribute var callable = (RemotelyCallable)domain.CreateInstanceAndUnwrap(typeof(RemotelyCallable).Assembly.FullName, typeof(RemotelyCallable).FullName); + // ReSharper restore AssignNullToNotNullAttribute using (LogContext.PushProperty("Anything", 1001)) Assert.True(callable.IsCallable()); @@ -381,4 +385,4 @@ public bool IsCallable() } } #endif -} \ No newline at end of file +}