Verify.ZeroLog
April 9, 2026 ยท View on GitHub
Extends Verify to allow verification of ZeroLog bits.
See Milestones for release notes.
Sponsors
Entity Framework Extensions
Entity Framework Extensions is a major sponsor and is proud to contribute to the development this project.
Developed using JetBrains IDEs
NuGet
Usage
[ModuleInitializer]
public static void Initialize() =>
VerifyZeroLog.Initialize();
[Fact]
public Task Usage()
{
Recording.Start();
var result = Method();
return Verify(result);
}
static string Method()
{
var logger = LogManager.GetLogger<Tests>();
logger.Error("The error");
logger.Warn("The warning");
return "Result";
}
Results in:
{
target: Result,
log: [
{
Error: The error,
Logger: Tests
},
{
Warn: The warning,
Logger: Tests
}
]
}

