KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
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?
Tags (comma-separated)
Save Edits
Cancel