有過NUnit的請進
用NUnit時,發現手工寫test case工作量大,有沒有辦法根據要測試的類自動生成相應測試代碼的框架的工具?
比如有一個需要測試的類叫Country,它有以下方法:
Country_Insert
Country_Update
....
則我們希望有工具可以自動生成類似以下的類(delphi中已有工具):
public class CountryTest
{
[Test]
public void TestCountry_Insert()
{
}
[Test]
public void TestCountry_Update()
{
}
[Test]
public void TestCountry_GetCountry()
{
}
}