title: How to run NUnit programmatically
body: <p>I have some assembly that references NUnit and creates a single test class with a single test method. I am able to get the file system path to this assembly (e.g. "C:...\test.dll"). I would like to programmatically use NUnit to run against this assembly.</p>
  
  <p>So far I have:</p>
  
  <pre><code>var runner = new SimpleTestRunner();
  runner.Load(path);
  var result = runner.Run(NullListener.NULL);
  </code></pre>
  
  <p>However, calling runner.Load(path) throws a FileNotFound exception. I can see through the stack trace that the problem is with NUnit calling Assembly.Load(path) down the stack. If I change path to be something like "Test, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null" then I still get the same error.</p>
  
  <p>I have added an event handler to AppDomain.Current.AssemblyResolve to see if I could manually resolve this type but my handler never gets called.</p>
  
  <p>What is the secret to getting Assembly.Load(...) to work??</p>