title: How to ignore calling function in constructor?
body: <p>I have class that constructor calls a function in constructor. When I create mock for this class then function is called from constructor. I want to block function calling. Can I do it?</p>
  
  <p>Sample code:</p>
  
  <pre><code>public class Foo
  {
      public Foo()
      {
          Initialize();
      }
  
      private void Initialize()
      {
          //some code
      }
  }
  
  [TestFixture]
  public class Test
  {
      [Test]
      public void Test_Foo()
      {
          Foo foo = MockRepository.GenerateMock&lt;Foo&gt;(); 
  
          //some test
      }
  }
  </code></pre>
  
  <p>Notes:</p>
  
  <ol>
  <li>I don't want to add interface, like <code>Foo : IFoo</code>.</li>
  <li>I don't want to add second constructor.</li>
  </ol>