Hes*_*han 5 c# unit-testing windows-phone windows-runtime windows-phone-8.1
任何人都知道如何在WP 8.1 RT应用程序中进行单元测试?关于这个甚至WinRT,互联网上几乎没有资源.
在该项目中使用测试方法创建测试类.这看起来像这样:
[TestClass]
public class FooTestUnit
{
[TestMethod]
public void TestFooBarProperty () {
int referenceValue = 42;
int actualValue = methodToTest();
Assert.AreEqual(referenceValue, actualValue);
}
}
Run Code Online (Sandbox Code Playgroud)
}
从主菜单中选择:测试/运行所有测试.
