diff --git a/articles/nunit/writing-tests/attributes/onetimesetup.html b/articles/nunit/writing-tests/attributes/onetimesetup.html index 59e45982c..6b0b0f0ed 100644 --- a/articles/nunit/writing-tests/attributes/onetimesetup.html +++ b/articles/nunit/writing-tests/attributes/onetimesetup.html @@ -137,6 +137,8 @@

Notes

  • When using FixtureLifeCycle with LifeCycle.InstancePerTestCase, the OneTimeSetUp method must be static and is only called once. This is required so that the setup method does not access instance fields or properties that are reset for every test.

  • +
  • When set on a base class the method is invoked for each fixture that inherits from this base class and its invoked for the base class too if its not abstract. Use SetUpFixture if this only needs to be run once or put the code in a static constructor.

    +
  • See Also