O'Reilly logo

Microsoft Visual Studio 2015 Unleashed, Third Edition by Mike Snell, Lars Powers

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

Unit Testing Basics

Unit testing in Visual Studio is about creating tests methods that run the code inside the working layers of your application and validate the expected results—even thrown exceptions. This includes testing the many classes that make up your business and data domain. The user interface domain is typically just markup (depending on your architecture approach), and the markup is tested manually (or through tools such as CodedUI which is in Visual Studio Enterprise). The focus of unit tests is writing code to test the functional code you write. In this section, we cover the basics of writing unit tests. We drill in on these basics in coming sections.

Note

Visual Studio Enterprise includes additional testing tools targeted at ...

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