This site uses cookies for analytics, personalized content and ads. By continuing to browse this site, you agree to this use. Learn more
Microsoft Logo
Gray Pipe
Developer Network Developer Network Developer
Sign in

Subscriber portal

Get tools
  • Downloads
    • Visual Studio
    • SDKs
    • Trial software
      • Free downloads
      • Office resources
      • SharePoint Server 2013 resources
      • SQL Server 2014 Express resources
      • Windows Server 2012 resources
  • Programs
    • Subscriptions
      • Overview
      • Administrators
    • Students
      • Microsoft Imagine
      • Microsoft Student Partners
    • ISV
    • Startups
    • Events
  • Community
    • Magazine
    • Forums
    • Blogs
    • Channel 9
  • Documentation
    • APIs and reference
    • Dev centers
    • Samples
    • Retired content
search clear
We’re sorry. The content you requested has been removed. You’ll be auto redirected in 1 second.
Application Development in Visual Studio Quality and Diagnostic Tools Verifying Code by Using Unit Tests
Verifying Code by Using Unit Tests Writing Unit Tests for the .NET Framework with the Microsoft Unit Test Framework for Managed Code
Writing Unit Tests for the .NET Framework with the Microsoft Unit Test Framework for Managed Code
Writing Unit Tests for the .NET Framework with the Microsoft Unit Test Framework for Managed Code
Unit Test Basics
How to: Install Third-Party Unit Test Frameworks
Upgrading Visual Studio 2010 unit test projects
How to: Create a Unit Test Project
Running Unit Tests with Test Explorer
Configuring Unit Tests by using a .runsettings File
Writing Unit Tests for the .NET Framework with the Microsoft Unit Test Framework for Managed Code
Walkthrough: Creating and Running Unit Tests for Managed Code
Quick Start: Test Driven Development with Test Explorer
Using Microsoft.VisualStudio.TestTools.UnitTesting Members in Unit Tests
Using the Assert Classes
Isolating Code Under Test with Microsoft Fakes
How To: Create a Data-Driven Unit Test
Unit tests for Generic Methods
How to: Target an Earlier Version of .NET
Sample Project for Creating Unit Tests
Writing Unit tests for C/C++ with the Microsoft Unit Testing Framework for C++
Using Code Coverage to Determine How Much Code is being Tested
Using emulators to isolate Sharepoint 2010 unit tests
TOC
Collapse the table of content
Expand the table of content
This documentation is archived and is not being maintained.
This documentation is archived and is not being maintained.
Recommended Version
This documentation is archived and is not being maintained.

Writing Unit Tests for the .NET Framework with the Microsoft Unit Test Framework for Managed Code

Visual Studio 2012
Other Versions
  • Visual Studio 2015
  • Visual Studio 2013

In this section

Walkthrough: Creating and running unit tests for managed code

Quick start: Test driven development with Test Explorer

Using Microsoft.VisualStudio.TestTools.UnitTesting members in unit tests

Using the Assert classes

How to: Create a data-driven unit test

Unit tests for generic methods

How to: Configure unit tests to target an earlier version of the .NET framework

Sample project for creating unit tests

Show:
Print Export (0)
Print Share
IN THIS ARTICLE

    Dev centers

    • Windows
    • Office
    • Visual Studio
    • Microsoft Azure
    • More...

    Learning resources

    • Microsoft Virtual Academy
    • Channel 9
    • MSDN Magazine

    Community

    • Forums
    • Blogs
    • Codeplex

    Support

    • Self support

    Programs

    • BizSpark (for startups)
    • Microsoft Imagine (for students)
    United States (English)
    • Newsletter
    • Privacy & cookies
    • Terms of use
    • Trademarks
    logo © 2017 Microsoft
    © 2017 Microsoft