Skip to content

Incorrect xmldocs for SetUpAttribute #2169

Closed
@ChrisMaddock

Description

@ChrisMaddock

@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.

image

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.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions