title: How To Unit Test Multiple Instances Of Class In xUnit
body: <p>I'm fairly new to unit testing. I understand the concept, but I keep find myself bumping into walls with the execution. How, in xUnit, do I test multiple instances of a class? For instance, say I have a constructor with a signature:</p>
  
  <pre><code>public FileWatcher(string path = "", bool startWatching = true)
  </code></pre>
  
  <p>I want to run all of my unit tests for each public property and method that I'm testing against multiple instances of <code>FileWatcher</code>, each with the constructor passed different arguments. This way I can run all of my tests against an instance of <code>FileWatcher</code> where no arguments were passed in, and then one where arguments were. I don't know if what I'm trying to do reeks of code smell or if I don't know the correct nomenclature to turn up any results, but I can't find <em>anything</em> on this subject.</p>