FsCheck
FsCheck copied to clipboard
FsCheck.NUnit does not properly handle NUnit's signalling exceptions.
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.
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.