fluentassertions force exceptions code example
Example: fluentassertions force exceptions
subject.Invoking(y => y.Foo("Hello"))
.Should().Throw()
.WithMessage("Hello is not allowed at this moment");
subject.Invoking(y => y.Foo("Hello"))
.Should().Throw()
.WithMessage("Hello is not allowed at this moment");