shouldly / shouldly

Should testing for .NET—the way assertions should be!

Home Page:https://docs.shouldly.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ShouldThrowAsync ignore custom message assertion

mfilippov opened this issue · comments

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.