From 3ae1b9ff5fd3fa2bbfa2a2c45ad2fd61c641b178 Mon Sep 17 00:00:00 2001 From: "dzmitry.lahoda" Date: Fri, 3 May 2019 17:56:13 +0300 Subject: [PATCH] used more constants --- .../ConfigurationSettingsTests.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/Serilog.Settings.Configuration.Tests/ConfigurationSettingsTests.cs b/test/Serilog.Settings.Configuration.Tests/ConfigurationSettingsTests.cs index 161b810..eed3803 100644 --- a/test/Serilog.Settings.Configuration.Tests/ConfigurationSettingsTests.cs +++ b/test/Serilog.Settings.Configuration.Tests/ConfigurationSettingsTests.cs @@ -218,7 +218,7 @@ public void TestMinimumLevelOverridesForChildContext() log.Write(Some.DebugEvent()); Assert.Null(evt); - var custom = log.ForContext("SourceContext", "System.Threading.Tasks.Task<42>"); + var custom = log.ForContext(Constants.SourceContextPropertyName, typeof(System.Threading.Tasks.Task).FullName + "<42>"); custom.Write(Some.DebugEvent()); Assert.NotNull(evt);