Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
// before
testSubject.Invoking(ts => ts.F())
.ShouldThrow<Exception>()
.WithMessage("the foo was out of range (...)");
// after
testSubject.Invoking(ts => ts.F())
.ShouldThrow<FooOutOfRangeException>()
.And.Foo.Should().Be("...");
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