Summary

This demo demonstrates how to create Unit test for code in Visual Studio. There are two ways of creating Unit tests in the demo, one is using VSTS, another is using NUnit.

Knowledge Points

  • Code Coverage only works while you run test application via Start without Debugging.

Interesting Points

  • How to create tests for database related scenarios (e.g. log on a system)?
  • How to check the code coverage while using Nunit?

Reference

  • http://msdn.microsoft.com/zh-cn/library/ms379625%28v=VS.80%29.aspx
  • http://social.msdn.microsoft.com/Forums/en-US/vstsprofiler/thread/8e17e9ff-d5f4-4395-9ff6-12eadfea5f82

Last edited Nov 30, 2012 at 9:19 AM by Eason, version 1

Comments

No comments yet.