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

Popular posts from this blog

java - Run a .jar on Heroku -

java - Jtable duplicate Rows -

validation - How to pass paramaters like unix into windows batch file -