Answers for "how to get exception when assertion fais fluent assertion"

C#
1

fluentassertions force exceptions

subject.Invoking(y => y.Foo("Hello"))
    .Should().Throw<InvalidOperationException>()
    .WithMessage("Hello is not allowed at this moment");
Posted by: Guest on August-17-2020

Code answers related to "how to get exception when assertion fais fluent assertion"

C# Answers by Framework

Browse Popular Code Answers by Language