title: How to mock An Abstract Base Class
body: <p>I have a base class called "Question" and several child classes such as "TrueFalse", "MultipleChoice", "MatchPairs" etc...</p>
  
  <p>The base class has methods with logic that all of the child classes use, such as sending off scores and raising events.</p>
  
  <p>I have set my unit tests up for the child classes but I am not sure how I can setup unit tests for the methods in the base class.</p>
  
  <p>I did some searching and I understand I need to create a Mock of the class but I am not sure how to do this as I have only seen how to do this on an instantiable object.</p>
  
  <p>I have Moq &amp; NUnit installed in project so ideally id like to use this.  I am still new to programming and this is my first time adding unit tests so I appreciate any advice you can give me.</p>
  
  <p>I did a search on site first and found a couple of similar questions but they did not give any example on how to do it, just that it needed to be mocked.</p>
  
  <p>Many thanks.</p>