title: Why does visual studio 2012 not find my tests?
body: <p>I have some tests that use the built in <code>Microsoft.VisualStudio.TestTools.UnitTesting</code>, but can not get them to run.</p>
  
  <p>I am using visual studio 2012 ultimate.</p>
  
  <p>I have a solution of two projects; One has tests, <code>using Microsoft.VisualStudio.TestTools.UnitTesting</code>, <code>[TestClass]</code> before the class,  <code>[TestMethod]</code> before the test methods and reference <code>Microsoft.VisualStudio.QualityTools.UnitTestFramework</code> (version 10.0.0.0, runtime version v2.0.50727). I have tried dot-net framework 3.5, 4 and 4.5 others give a re-targeting error.</p>
  
  <p>I have tried to build the solution and project. Test explorer has the message `Build your solution to discover all available tests. Click "run all" to build, discover, and run all tests in your solution.</p>
  
  <p>So the question is: How to I get visual studio to find the tests?</p>
  
  <hr>
  
  <p>Have also tried to follow this: <a href="http://msdn.microsoft.com/en-US/library/ms379625%28v=VS.80%29.aspx" rel="noreferrer">http://msdn.microsoft.com/en-US/library/ms379625%28v=VS.80%29.aspx</a> but with no success: I get stuck in section getting started, when asked to right click and select <code>create tests</code>. There is no <code>create tests</code>.</p>
  
  <hr>
  
  <p>I have this test(it compiles, but does not show up in test explorer):</p>
  
  <pre><code>using Microsoft.VisualStudio.TestTools.UnitTesting;
  
  namespace tests {
      [TestClass]
      public class SimpleTest {
          [TestMethod]
          public void Test() {
              Assert.AreEqual("a","a", "same");
          }
      }
  }
  </code></pre>
  
  <hr>
  
  <p>I have now discovered (see deleted answer below) that it is because it is on a shared drive, but I don't as yet know how to get around it. (something about the security setting maybe).</p>