2015-04-01 25 views
0

我正在運行Visual Studio 2008,並且在「Pocket PC 2003 Second Edition」模擬器上運行的C#程序非常漂亮。然而,當我嘗試運行任何單元測試,我得到第一次測試的一個錯誤:無法在智能設備模擬器上運行單元測試

The test adapter ('Microsoft.VisualStudio.TestTools.TestTypes.Unit.UnitTestAdapter, 
Microsoft.VisualStudio.QualityTools.Tips.UnitTest.Adapter, Version=9.0.0.0, Culture=neutral, 
PublicKeyToken=b03f5f7f11d50a3a') required to execute this test could not be loaded. 
Check that the test adapter is installed properly. 
ActiveSync bootstrap initialization failed. 
Please connect/cradle a real device or download the User-level Windows Mobile Device Center Application 
from http://go.microsoft.com/fwlink?linkid=67763 

對於單元測試,性能和應用的比較:

  • 條件編譯符號相同
  • 平臺目標是相同的( 「任何CPU」)
  • Framework版本是相同的(版本3.5)
  • 平臺是相同的( 「視窗CE」)
  • 輸出文件夾是相同
  • 兩者都有「顯示最新版本的.NET Compact Framework中的」檢查
  • 爲應用程序的輸出類型爲「Windows應用程序」,在單元測試是「類庫」,但它看起來就是這樣。

該錯誤消息似乎表明VS2008無法連接到模擬器,但由於程序運行我知道情況並非如此。我可以不在模擬器上運行單元測試嗎?

還是我缺少文件?有什麼我需要安裝,爲了執行單元測試?我的系統上沒有一個名爲Microsoft.VisualStudio.TestTools.TestTypes *。*的文件。

回答

相關問題