v0.6.0
This release adds a few new assertions that help with checking whether messages exist or not, adds support for patterns in messages and cleans up the way that references of the packages are created.
An overview of the new assertion options:
Asserting on a pattern in a message:
InMemorySink.Instance
.Should()
.HaveMessage()
.Containing("some pattern")
.Appearing().Once();
which will match test some pattern message
.
Assert that any message has been logged:
InMemorySink.Instance
.Should()
.HaveMessage()
.Appearing().Times(3);
Assert that no messages have been logged:
InMemorySink.Instance
.Should()
.NotHaveMessage();
Assert that a specific message has not been logged:
InMemorySink.Instance
.Should()
.NotHaveMessage("some message");