Professional Documents
Culture Documents
Overview
What is MS Test? What does an MS Test look like? Developing with MS Test Setting up a MS Test project Writing Unit Tests with MS Test Running Tests Demo Unit Testing Strategy and Tactics Benefits of writing automated Tests Building Resilient Tests To Automate or Not to Automate Test Driven Development Conclusion / References / Questions?
What is MS Test?
MS Test is Microsofts collection of class libraries that facilitate automated testing.
This set of class libraries is integrated with Visual Studio 2008: Unit Test File Types Test Project Type Integration with MSBuild, support for targeted environments
Basic functionality and support is included with all versions of Visual Studio 2008
More advanced features such as Web UI testing are supported in Visual Studio for Testers Think record test, the point and click, in your browser
Can have more than one test project per solution Depending on the number of tests, may be a good idea to have 1:1 project to test project ratio.
Live Demo
Add A Test
Refactor code
Once you accept that one test is not automated, it is far too tempting not to automate others.
If all is automated, you have one-click verification of proper functionality
References
Test Driven Development from Wikipedia (Must Read!!!)
http://en.wikipedia.org/wiki/Test-driven_development