Skip to Content
Windows® Phone 8 Unleashed
book

Windows® Phone 8 Unleashed

by Daniel Vaughan
May 2013
Intermediate to advanced content levelIntermediate to advanced
1152 pages
82h 34m
English
Sams
Content preview from Windows® Phone 8 Unleashed

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 ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Exam Ref 70-484: Essentials of Developing Windows Store Apps Using C#

Exam Ref 70-484: Essentials of Developing Windows Store Apps Using C#

Indrajit Chakrabarty
Windows Phone 8 Development Internals

Windows Phone 8 Development Internals

Andrew Whitechapel and Sean McKenna

Publisher Resources

ISBN: 9780133383959Purchase book