0

I am using FsCheck - specifically the FsCheck.Xunit package - in my C# code. I want to run some setup before my tests execute and some cleanup/teardown code after my tests have all run.

NUnit has a [CleanUp] attribute; Xunit uses Dispose to clean up. In some frameworks I think it's called [TearDown]. Is there anything of this sort in FsCheck.Xunit?

When I rewrote one Xunit test class to use FsCheck, I could see that my Dispose method no longer got executed.

In the documentation there is something called "TearDown", but it is completely opaque to me how it is supposed to be used.

Claus Appel
  • 379
  • 1
  • 4
  • 13

0 Answers0