nunit - Do the SetUp and TearDown methods need [RequiresSTA] if tests have it? -
i can run watin tests resharper without issues. each test has requiressta attribute , runs fine.
when try run tests in class (testfixture) following error:
one or more child tests had errors exception doesn't have stacktrace <testname> ignored: invalid signature setup or teardown method: testsetup <testname> ignored: invalid signature setup or teardown method: testsetup <testname> ignored: invalid signature setup or teardown method: testsetup
the error doesn't indicate need change make work.
if select tests have been ignored in unit test sessions window, can run them without problems.
what must change allow me run tests in testfixture?
i have met same problem. changed setup() , teardown() methods public, worked.
Comments
Post a Comment