b = 2;
Console.Write("Data Init!");
}
[TearDown]
public void Destroy()
{
Console.Write("TestCase Destroy!");
}
///
/// 声明为Ignore的TestCase将在NUnit运行时被忽略
///
[Test]
[Ignore("TestAdd were ignored")]
public void TestAdd()
{
int result = cac.Add(a, b);
Assert.AreEqual(12, result);
}
///
/// 在NUnit当中声明为Explicit的方法,当且仅当在NUnit中被选中的时候才运行
///
延伸阅读
文章来源于领测软件测试网 https://www.ltesting.net/