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.
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 .
Source: https://habr.com/ru/post/1205499/More articles:Detect dead tests and hardcoded data against limited non-determinism - c #Is a variable called "name" always defined in Javascript? - javascriptASP.NET MVC Resource File String ASP.NET is in a strange encoding format in an HTML source - c #TypeError: forced to Unicode, need a string or buffer, NoneType detected - functionGet software font fonts - javaUploading a file to MVC when used in bootstrap modal returns null - twitter-bootstrapSound recording in Google Glass - androidAndroid: reliable sound recording, all devices - androiddjango createview with success_url being the same view? - djangoThe optional typename keyword in the template parameter list: is it valid or not? - c ++All Articles