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 the test team. These include tools for creating and tracking test plans, test cases, and bugs. They also include tools for testing the user interface and doing performance and load testing.


..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset