We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 6a99e66 + 9b64c85 commit ce036ebCopy full SHA for ce036eb
test/Seq.Extensions.Logging.Tests/Serilog/Extensions/Logging/SerilogLoggerTests.cs
@@ -238,7 +238,13 @@ public void CarriesMessageTemplateProperties()
238
Assert.Equal("Hello, {Recipient}", sink.Writes[0].MessageTemplate.Text);
239
240
SelfLog.Disable();
241
- Assert.Empty(selfLog.ToString());
+
242
+ var selfLogContent = selfLog.ToString();
243
+ if (!string.IsNullOrEmpty(selfLogContent))
244
+ {
245
+ // Test failures are hard to diagnose without the full SelfLog entry.
246
+ throw new Exception(selfLogContent);
247
+ }
248
}
249
250
[Fact]
0 commit comments