title: How to Moq abstract class with default constructor parameters?
body: <p>I would like to Moq an abstract class that has default parameters in it's constructor.  This is so that I can test the defaults are set, as well as testnig specific values. e.g. (note, this is purely an example class)</p>
  
  <pre><code>public abstract class AbstractClassToTest
    {
        private string _name;
        private int _someInt;
        private int _anotherInt;
  
        public AbstractClassToTest(string name, int someInt = 10, int anotherInt = 20)
        {
            _name = name;
            _someInt = someInt;
            _anotherInt = anotherInt;
        }
    }
  </code></pre>
  
  <p>and setup the Moq object as follows:</p>
  
  <pre><code>var act = new Mock&lt;AbstractClassToTest&gt;(MockBehavior.Loose, "namestring");
  </code></pre>
  
  <p>but this throws an error...</p>
  
  <pre><code>Message "Can not instantiate proxy of class:
  Test.AbstractClassToTest.
  Could not find a constructor that would match given arguments:
  System.String
  Parameter name: constructorArguments"
  </code></pre>
  
  <p>How can I create moq the object and keep it's defaults?</p>
  
  <p>Moq: v 4.0.10827.0</p>