Execute TestSetup only some of the time?

Posted by Naeem Sarfraz on Stack Overflow See other posts from Stack Overflow or by Naeem Sarfraz
Published on 2010-06-03T17:16:28Z Indexed on 2010/06/03 17:34 UTC
Read the original article Hit count: 245

Filed under:

Within one fixture is it possible to markup tests in such a way that the test-setup is only called for some tests and not for others?

[Test] public void TestWithoutSetup() { .. }
[Test] public void TestWithSetup() { .. }

What would I need to do make the above work?

© Stack Overflow or respective owner

Related posts about nunit