Skip to content

Commit

Permalink
Improve code coverage for M.E.Diagnostics.Testing (#4820)
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastienros authored Dec 18, 2023
1 parent cf2ea6b commit db802cc
Showing 1 changed file with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,15 @@ public void State()
Assert.Equal("Hello {name}", ss["{OriginalFormat}"]);
}

[Fact]
public void NullState()
{
var logger = new FakeLogger();
logger.Log<object?>(LogLevel.Error, new EventId(0), null, null, (_, _) => "MESSAGE");

Assert.Null(logger.LatestRecord.GetStructuredStateValue("K0"));
}

[Fact]
public void StateInvariant()
{
Expand Down

0 comments on commit db802cc

Please sign in to comment.