Welcome to MSDN Blogs Sign in | Join | Help

VS 2008 Unit Test 貼心小功能

VS 2008 中有許多的貼心設計。筆者先來分享一個單元測試的貼心小功能。

各位看官可以回想一下在 VS 2005 中,要如何執行執行一個 TestMethod 呢?

這時需要切換到『測試檢視』或『測試管理員』,來執行這個 TestMethod。

 

但是在 VS 2008 中,直接在 TestMethod 按滑鼠右鍵,就可以看到『Run Tests』的選項,可以直接執行這個 TestMethod,如下圖:

VS2008UnitTest01

回顧一下 VS 2005 的畫面(沒有 Run Tests 的選項):

VS2005UnitTest01

 

筆者環境:Vista + Visual Studio 2008

Published Friday, December 21, 2007 3:35 PM by jchiou
Filed under: ,

Comment Notification

If you would like to receive an email when updates are made to this post, please register here

Subscribe to this post's comments using RSS

Comments

# Geek Lectures - Things geeks should know about » Blog Archive » VS 2008 Unit Test ???????????????

Leave a Comment

(required) 
required 
(required) 

  
Enter Code Here: Required
 
Page view tracker