Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

fluentassertions force exceptions

subject.Invoking(y => y.Foo("Hello"))
    .Should().Throw<InvalidOperationException>()
    .WithMessage("Hello is not allowed at this moment");
Source by fluentassertions.com #
 
PREVIOUS NEXT
Tagged: #fluentassertions #force #exceptions
ADD COMMENT
Topic
Name
8+8 =