The NUnit documentation doesn't tell me when to use a method with a TestFixtureSetup and when to do the setup in the constructor.
public class MyTest
{
private MyClass myClass;
public MyTest()
{
myClass = new MyClass();
}
[TestFixtureSetUp]
public void Init()
{
myClass = new MyClass();
}
}
Are there any good/bad practices about the TestFixtureSetup versus default constructor or isn't there any difference?
MSTest). But beware of the side effects of fixture setups on test readability (look here and here). - Masood Khaari