Skip to content

VerifyTests/Verify.Serilog

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Verify.Serilog

Discussions Build status NuGet Status

Extends Verify to allow verification of Serilog 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.

Entity Framework Extensions

NuGet

Usage

[ModuleInitializer]
public static void Initialize() =>
    VerifySerilog.Initialize();

snippet source | anchor

[Fact]
public Task Usage()
{
    Recording.Start();

    var result = Method();

    return Verify(result);
}

static string Method()
{
    Log.Error("The Message");
    return "Result";
}

snippet source | anchor

Results in:

{
  target: Result,
  log: {
    Error: The Message
  }
}

snippet source | anchor

About

Extends Verify to allow verification of Serilog bits.

Resources

License

Code of conduct

Stars

Watchers

Forks

Contributors 3

  •  
  •  
  •  

Languages