database - NUnit TestFixture Execution Question -


i trying test legacy database code. have many situations want

  1. set database in empty state

for group of tests following each group:

  1. for group of tests, set db inital test state
  2. run tests
  3. return db empty state

in nunit, when using testfixture guaranteed entire fixture's test run testfixtureteardown before next testfixture gets processed? i've tried using visual studio test stuff , doesn't appear case.

the main reason trying this, process of getting db state in step 2 can expensive , don't want have run each of test cases.

testfixtureteardown executed once tests testfixture completed. coupling testfixturesetup should provide beahivor seeking on testfixture basis.

the unit testing framework in visual studio not have same syntax nunit. while test approach same xunit based frameworks syntax vary.


Comments

Popular posts from this blog

javascript - Enclosure Memory Copies -

php - Replacing tags in braces, even nested tags, with regex -