Description
@phillip-haydon commented on Tue May 16 2017
I'm totally confused by the documentation and xml docs right now.
The docs say:
SetUp Attribute
Indicates a method of a TestFixture called just before each test method.
SetUpFixture Attribute
Marks a class with one-time setup or teardown methods for all the test fixtures in a namespace.
So SetUp is run before each test is run. So a test fixture with 5 tests will run the SetUp 5 times.
SetUpFixture however will be run once for the for the test fixture, before any of the tests are run.
But the XML docs for SetUp say the inverse to me.
It's saying the message for the SetUpFixture attribute?
@ChrisMaddock commented on Tue May 16 2017
You're right - the xmldocs for SetUp attribute are incorrect. Good spot, thanks for reporting it!
I'm going to move this issue to the nunit framework repository, where the change will need to be made.