Extends Verify to allow verification of ZeroLog bits.
See Milestones for release notes.
Entity Framework Extensions is a major sponsor and is proud to contribute to the development this project.
[ModuleInitializer]publicstaticvoidInitialize()=>VerifyZeroLog.Initialize();[Fact]publicTaskUsage(){Recording.Start();varresult=Method();returnVerify(result);}staticstringMethod(){varlogger=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
}
]
}
