How to: 解决 No tests were run

在VS的Unit Test中遇到“No tests were run because no tests are loaded or the selected tests are disabled.”提示信息。同时,Test View和Test List Editor中无法加载任何Test。解决方案是:删掉 [TestClass()]和[TestMethod()],编译,重新加上这些Attributes后再编译。


See Also
MS Test Re-Enabling Ignored Tests

How to: Disable and Enable Tests

你可能感兴趣的:(test)