FsCheck icon indicating copy to clipboard operation
FsCheck copied to clipboard

FsCheck.NUnit does not properly handle NUnit's signalling exceptions.

Open teo-tsirpanis opened this issue 1 year ago • 1 comments

Try this:

[FsCheck.NUnit.Property]
public void TestSuccess(int x)
{
    Assert.Pass();
}

The test should have passed but instead fails. I am using version 3.0.0-beta2.

teo-tsirpanis avatar Mar 28 '23 22:03 teo-tsirpanis

Yes, that's because every exception is interpreted as a fail. We need to filter for whatever exception NUnit throws from Assert.Pass in FsCheck.Nunit, I guess.

kurtschelfthout avatar Mar 30 '23 11:03 kurtschelfthout