diff --git a/test/NLog.Extensions.Logging.Tests/LoggerTests.cs b/test/NLog.Extensions.Logging.Tests/LoggerTests.cs index e2b5d6d0..1a3cae56 100644 --- a/test/NLog.Extensions.Logging.Tests/LoggerTests.cs +++ b/test/NLog.Extensions.Logging.Tests/LoggerTests.cs @@ -220,7 +220,7 @@ public void TestInvalidFormatString() [Fact] public void TestInvalidFormatString2() { - var runner = GetRunner(new NLogProviderOptions { CaptureMessageTemplates = true }); + var runner = GetRunner(new NLogProviderOptions { CaptureMessageTemplates = false }); var ex = Assert.Throws(() => runner.Logger.LogDebug("{0}{1}", "Test")); Assert.IsType(ex.InnerException); } @@ -236,7 +236,7 @@ public void TestInvalidMixFormatString() [Fact] public void TestInvalidMixFormatString2() { - var runner = GetRunner(new NLogProviderOptions { CaptureMessageTemplates = true }); + var runner = GetRunner(new NLogProviderOptions { CaptureMessageTemplates = false }); runner.Logger.LogDebug("{0}{Mix}", "Mix", "Test"); Assert.Equal("NLog.Extensions.Logging.Tests.LoggerTests.Runner|DEBUG|MixTest|0=Mix, Mix=Test", runner.LastTargetMessage); }