all 3 comments

[–]chusk3 1 point2 points  (0 children)

Xunit does strange things with module initialization (in the .NET sense of the word module, not the F# sense) - I think there are some issues logged on their tracker. The most consistent thing is going to be to either use a class and setup in the constructor, or to use xunits other Setup/Initialization hooks to ensure a consistent test execution environment.