How to do unit testing in Windows Phone 8.1 RT?

Does anyone know how to do unit testing in a WP 8.1 RT app? There are almost no resources on the Internet about this or even WinRT.

+5
source share
1 answer
  • Create a new project inside your solution. Select the Unit Test App template (see Screenshot).
  • Create a test class using the test method inside this project. It might look like this:

    [TestClass] public class FooTestUnit { [TestMethod] public void TestFooBarProperty () { int referenceValue = 42; int actualValue = methodToTest(); Assert.AreEqual(referenceValue, actualValue); } } 

    }

  • In the main menu, select: Tests / Run all tests .

enter image description here

+5
source

Source: https://habr.com/ru/post/1205499/


All Articles