2013-03-05 96 views
0

我試圖在我的Windows Phone 8應用程序中實現單元測試,但測試運行器不會識別測試。 我正在學習本教程。Windows Phone 8單元測試卡在「運行測試」

Unit Testing In Windows Phone 8 The Basics

using Microsoft.Phone.Testing; 
using Microsoft.VisualStudio.TestTools.UnitTesting; 

namespace PPS.Tests 
{ 
[TestClass] 
class SampleTest 
{ 
    [Tag("SimpleTests")] 
    [TestMethod] 
    public void SimpleTest() 
    { 
     int a = 1; 
     int b = 2; 

     int c = a + b; 

     Assert.IsTrue(c == 4); 
    } 
} 
} 

enter image description here

回答

0

我敢肯定你的測試類需要公開,沒有INTERAL(這將是默認值)即:

public class SampleTest