For NUnit 3.0 we standardized the use of attributes for setup and teardown and renamed some of them to make their function clearer.
Attribute Usage
- SetUpAttribute is now used exclusively for per-test setup.
- TearDownAttribute is now used exclusively for per-test teardown.
- OneTimeSetUpAttribute is used for one-time setup per test-run. If you run n tests, this event will only occur once.
- OneTimeTearDownAttribute is used for one-time teardown per test-run. If you run n tests, this event will only occur once
- SetUpFixtureAttribute continues to be used as at before, but with changed method attributes.
No comments:
Post a Comment