title: Visual Studio 2012 auto create unit test - WP8 application
body: <p>So, I was also surprised that the "create unit test" is not available from the context menu when right clicking over a method, as opposed to Visual Studio 2010.</p>
  
  <p>The work arounds suggested was to create the unit tests in VS2010 and then import it back to VS2012.</p>
  
  <p>Then i found this post <a href="http://dl.my/2013/enable-create-unit-tests-on-visual-studio-2012/" rel="nofollow">http://dl.my/2013/enable-create-unit-tests-on-visual-studio-2012/</a>
  and that indeed worked!</p>
  
  <p>But now, after i click the "create unit test" over a method, the generated class only contains a TestContext property, without the test methods that was chosed in the wizard previously.</p>
  
  <p>This is the generated class:</p>
  
  <pre><code>/// &lt;summary&gt;
  ///This is a test class for XXXTest and is intended
  ///to contain all XXXTest Unit Tests
  ///&lt;/summary&gt;
  [TestClass()]
  public class XXXTest
  {
  
  
      private TestContext testContextInstance;
  
      /// &lt;summary&gt;
      ///Gets or sets the test context which provides
      ///information about and functionality for the current test run.
      ///&lt;/summary&gt;
      public TestContext TestContext
      {
          get
          {
              return testContextInstance;
          }
          set
          {
              testContextInstance = value;
          }
      }
  
      #region Additional test attributes
      // 
      //You can use the following additional attributes as you write your tests:
      //
      //Use ClassInitialize to run code before running the first test in the class
      //[ClassInitialize()]
      //public static void MyClassInitialize(TestContext testContext)
      //{
      //}
      //
      //Use ClassCleanup to run code after all tests in a class have run
      //[ClassCleanup()]
      //public static void MyClassCleanup()
      //{
      //}
      //
      //Use TestInitialize to run code before running each test
      //[TestInitialize()]
      //public void MyTestInitialize()
      //{
      //}
      //
      //Use TestCleanup to run code after each test has run
      //[TestCleanup()]
      //public void MyTestCleanup()
      //{
      //}
      //
      #endregion
  
  }
  </code></pre>
  
  <p>I have searched the web with no results..</p>
  
  <p>Does anybody know what's the issue here?</p>