【发布时间】:2011-08-24 09:41:54
【问题描述】:
我有一个 [TestClass],我有一堆单元测试方法来测试“Process_00”相关任务。
我还有另一个 [TestClass],我有测试方法来测试各种过程,例如:
[TestMethod]
public void TestProcess_00 {....}
[TestMethod]
public void TestProcess_01 {....}
[TestMethod]
public void TestProcess_02 {....}
是否可以在 TestMethod 中的单独 [TestClass] 中运行所有测试,例如:
[TestMethod]
public void TestProcess_00()
{
Assert.IsTrue( //All the tests in a separete test class pass );
}
【问题讨论】:
-
这样做有什么意义?
-
您可能需要澄清您使用的是哪个单元测试框架
标签: c# .net unit-testing tdd