database - NUnit TestFixture Execution Question -
i trying test legacy database code. have many situations want
- set database in empty state
for group of tests following each group:
- for group of tests, set db inital test state
- run tests
- 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
Post a Comment