ShouldThrowAsync ignore custom message assertion
mfilippov opened this issue · comments
Mikhail Filippov commented
I write code like this:
public async Task CallMe()
{
await Task.FromException(new Exception("MyText"));
}
[Fact]
public async Task Check()
{
await CallMe().ShouldThrowAsync<Exception>("Test");
}
I expected that test fail but it pass.