c# - nunit how to have a once off setup method (for all tests) -
this question has answer here:
i need once-off setup method, called once, across test fixtures.
this setup common stuff automapper, mocks used everything.
how can this? (and i'm not talking testfixturesetup)
you have test classes inherit base test class, , setup in constructor.
public class testbase { public testbase() { // global setup } } public class mytest : testbase { // tests }
Comments
Post a Comment