Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
// before
testSubject.Invoking(ts => ts.F())
.WithMessage("the foo was out of range (...)");
// after
testSubject.Invoking(ts => ts.F())
new FooOutOfRangeException("...").Message.Should().Be("the foo was out of range (...)");
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment