Reputation: 985
Anyone knows how to do unit testing in a WP 8.1 RT app? There is almost no resources in the internet about this or even WinRT.
Upvotes: 5
Views: 1418
Reputation: 3362
Create a test class with a test method inside that project. This could look like this:
[TestClass]
public class FooTestUnit
{
[TestMethod]
public void TestFooBarProperty () {
int referenceValue = 42;
int actualValue = methodToTest();
Assert.AreEqual(referenceValue, actualValue);
}
}
}
From the main menu choose: Tests / Run all tests.
Upvotes: 5