0
Q:

fluentassertions force exceptions

subject.Invoking(y => y.Foo("Hello"))
    .Should().Throw<InvalidOperationException>()
    .WithMessage("Hello is not allowed at this moment");
1

New to Communities?

Join the community