title: NUnit executes with alternate constructor
body: <p>I have a class which has some unit tests, but when I am running tests I would like the class to be created with a different constructor. Something like this:</p>
  
  <pre><code>[TestFixture]
  public class MyClass
  {
      public MyClass() { /* set up for production */ }
  
      [TestFixtureConstructor]
      public MyClass() { /* set up for testing */ }
  
      [Test]
      public void FirstTest()
      {
          // assert some values
      }
  }
  </code></pre>
  
  <p>Is this even possible?</p>
  
  <p>I have considered using a static factory method for creating the class in production (with a private constructor), and a public constructor for the testing framework.</p>
  
  <p>Does anyone have any other solutions?</p>