Documentation on execution order of inherited TearDown methods

Asked by JeremyEllsworth

The documentation at http://www.nunit.org/index.php?p=teardown&r=2.5.2 contains the following paragraph: "With NUnit 2.5, you can achieve the same result by defining a TearDown method in the base class and another in the derived class. NUnit will call base class TearDown methods before those in the derived classes." However, the release notes at http://nunit.com/index.php?p=releaseNotes&r=2.5.2 say "Setups in a base class are executed before those in a derived class and teardowns are executed in the reverse order.", which is the intuitive way one expects this to work. I am investigating use of NUnit, so I have not attempted this yet, but a documentation error exists regardless in one location or the other.

Question information

Language:
English Edit question
Status:
Solved
For:
NUnit Framework Edit question
Assignee:
No assignee Edit question
Solved by:
Charlie Poole
Solved:
Last query:
Last reply:
Revision history for this message
JeremyEllsworth (staque) said :
#1

I will refrain from filing a bug because I haven't pinpointed the specific documentation error.

Revision history for this message
Best Charlie Poole (charlie.poole) said :
#2

It's the first link - the documentation page for TearDownAttribute - that was in error. Same thing for the TestFixtureTearDownAttribute.

No need for a bug.. both pages are now fixed.

Thanks!

Revision history for this message
JeremyEllsworth (staque) said :
#3

Thanks Charlie Poole, that solved my question.