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 MyTe
I have often wondered what the need for [TestFixtureSetUp]
was, given that there is a simple, well understood first class language construct that does exactly the same thing.
My preference is to use constructors, to take advantage of the readonly keyword ensuring member variables cannot be reinitialised.