Extends Verify to allow verification of Serilog bits.
See Milestones for release notes.
https://nuget.org/packages/Verify.Serilog/
[ModuleInitializer]
public static void Initialize() =>
VerifySerilog.Initialize();
[Fact]
public Task Usage()
{
Recording.Start();
var result = Method();
return Verify(result);
}
static string Method()
{
Log.Error("The Message");
return "Result";
}
Results in:
{
target: Result,
log: {
Error: The Message
}
}