【问题标题】:Test Source not available vs 2010测试源不可用 vs 2010
【发布时间】:2011-03-30 11:49:12
【问题描述】:

当我在 VS 中运行测试时,我对 .cs 文件所做的任何更改都没有反映。

为什么 VS 运行的测试与我编辑的 .cs 不同?

同样在调试测试时,显示“No Source Available”:

Locating source for 'C:\Users\Jan\Documents\Visual Studio 2010\Projects\EventLogger\VeodinRecorderTest\RecorderEventTest.cs'. Checksum: MD5 {d0 6b 22 fe d9 3c da ac 8d 85 3c a1 e3 3c 48 2e}

Determining whether the checksum matches for the following locations:

1: C:\Users\Jan\Documents\Visual Studio 2010\Projects\EventLogger\VeodinRecorderTest\RecorderEventTest.cs Checksum: MD5 {35 70 54 97 ff f9 2a 1 98 7d 45 db 8e 9d 71 7f} Checksum doesn't match.

The file 'C:\Users\Jan\Documents\Visual Studio 2010\Projects\EventLogger\VeodinRecorderTest\RecorderEventTest.cs' exists.
Looking in script documents for 'C:\Users\Jan\Documents\Visual Studio 2010\Projects\EventLogger\VeodinRecorderTest\RecorderEventTest.cs'...

【问题讨论】:

    标签: c# visual-studio-2010 unit-testing


    【解决方案1】:

    您是否已在配置管理器中确认选择构建您的测试项目?

    在显示“调试”或“发布”的工具栏中,使用该下拉菜单并选择“配置管理器”。现在,确保在 Build 列中选中了正确的项目。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2023-04-01
      • 1970-01-01
      • 1970-01-01
      • 2012-12-04
      • 1970-01-01
      • 1970-01-01
      • 2011-03-22
      • 2011-04-01
      相关资源
      最近更新 更多