diff --git a/test/Seq.Extensions.Logging.Tests/Serilog/Extensions/Logging/SerilogLoggerTests.cs b/test/Seq.Extensions.Logging.Tests/Serilog/Extensions/Logging/SerilogLoggerTests.cs index f7614ac..de3a925 100644 --- a/test/Seq.Extensions.Logging.Tests/Serilog/Extensions/Logging/SerilogLoggerTests.cs +++ b/test/Seq.Extensions.Logging.Tests/Serilog/Extensions/Logging/SerilogLoggerTests.cs @@ -238,7 +238,13 @@ public void CarriesMessageTemplateProperties() Assert.Equal("Hello, {Recipient}", sink.Writes[0].MessageTemplate.Text); SelfLog.Disable(); - Assert.Empty(selfLog.ToString()); + + var selfLogContent = selfLog.ToString(); + if (!string.IsNullOrEmpty(selfLogContent)) + { + // Test failures are hard to diagnose without the full SelfLog entry. + throw new Exception(selfLogContent); + } } [Fact]