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中被選中的時候才運行
///
延伸閱讀
文章來源于領測軟件測試網 http://www.kjueaiud.com/