Skip to content

Commit

Permalink
Add some assertions
Browse files Browse the repository at this point in the history
  • Loading branch information
ponomaryovigor committed Jan 24, 2024
1 parent 2031c9c commit ec5cfa9
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,12 @@ public void Should_use_ToString_to_render_exception()

Console.Out.WriteLine(result);

result.Should().Contain(error.ToString());
result.Should()
.Contain(error.ToString())
.And.Contain(typeof(Exception).FullName)
.And.Contain("error1")
.And.Contain("error2")
.And.Contain(nameof(Should_use_ToString_to_render_exception));
}
}

Expand Down

0 comments on commit ec5cfa9

Please sign in to comment.