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.
Visual Studio IDE Improve Code Quality Unit Test Your Code
Unit Test Your 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
Writing Unit Tests for the .NET Framework with the Microsoft Unit Test Framework for Managed Code
Unit Test Basics
Create a unit test project
Generate unit tests for your code with IntelliTest
Install third-party unit test frameworks
Upgrade Visual Studio 2010 unit test projects
Run unit tests with Test Explorer
Configure 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.

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

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

The new home for Visual Studio documentation is Visual Studio 2017 Documentation on docs.microsoft.com.

The latest version of this topic can be found at Writing Unit Tests for the .NET Framework with the Microsoft Unit Test Framework for Managed Code.

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: Target an Earlier Version of .NET

Sample Project for Creating Unit Tests

Show:
Print Export (0)
Print Share
IN THIS ARTICLE
    Is this page helpful?
    Additional feedback?
    1500 characters remaining
    Thank you! We appreciate your feedback.

    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