I am using the Effort library as a mock database, and it has some initialization code that has to run on assembly load.
I have tried adding this initialization code in a static constructor that is referenced from every test via a base class constructor but this did not meet the requirements of the library.
An answer to a similar question here mentions an AssemblyInitialize
attribute, but this is not applicable to xUnit - xUnit has no way of running code on assembly load.
I also asked on the xUnit GitHub pages - there is definitively no assembly level initializer.
How can I run the initialization code that I need to in xUnit?