title: How to run Microsoft.VisualStudio.TestTools.UnitTesting unit tests programmatically?
body: <p>Suppose I have a unit test project UnitTests.dll:</p>
  
  <pre><code>using System;
  using System.Text;
  using System.Collections.Generic;
  using System.Linq;
  using Microsoft.VisualStudio.TestTools.UnitTesting;
  
  namespace UnitTests
  {
      [TestClass]
      public class MyTests
      {
          [TestMethod]
          public void TestMethod1()
          {
              Assert.IsTrue(true);
          }
  
          [TestMethod]
          public void TestMethod2()
          {
              Assert.IsTrue(false);
          } 
      }
  }
  </code></pre>
  
  <p>I would like to run the above unit tests programmatically from another project RunUniTests.exe. How do I do that? Something that's similar to NUnit counterpart such as the one shown in <a href="https://stackoverflow.com/questions/195061/how-to-run-nunit-programmatically">How to run NUnit programmatically</a> would be great.</p>