O'Reilly logo

Windows® Phone 8 Unleashed by Daniel Vaughan

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Creating a Test Class

To create a test class, add a new class to your test project. Then add the following two using statements to the top of the class:

using Microsoft.Phone.Testing;using Microsoft.VisualStudio.TestTools.UnitTesting;

Test-related attributes and assertion types can be found within the namespace Microsoft.VisualStudio.TestTools.UnitTesting. Even if you have not used the Visual Studio UTF before, it is easy to pick up because the attribute names are fairly self-descriptive.

Tests consist of test classes and test methods. The UTF relies on metadata, provided by attributes, for identifying unit test classes and methods at runtime. To indicate that a class is a unit test class, decorate it with the ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required