任何人都知道如何在WP 8.1 RT应用程序中进行单元测试?关于这个甚至WinRT,互联网上几乎没有资源。
答案 0 :(得分:5)
在该项目中使用测试方法创建一个测试类。这看起来像这样:
[TestClass]
public class FooTestUnit
{
[TestMethod]
public void TestFooBarProperty () {
int referenceValue = 42;
int actualValue = methodToTest();
Assert.AreEqual(referenceValue, actualValue);
}
}
}
从主菜单中选择:测试/运行所有测试。