c#有没有测试某个函数的工具?
比如:
我有一个函数
public void test(string str)
{
string str1 = str;
}
我只要写一个类似 test( "ok ")
然后运行就能,看到str1 str的值?
就是类似一个简单的调试器!
[解决办法]
怎么不试试nunit
[解决办法]
用断言!
发布时间: 2012-01-12 22:11:58 作者: rapoo
c#有没有测试某个函数的工具?
比如:
我有一个函数
public void test(string str)
{
string str1 = str;
}
我只要写一个类似 test( "ok ")
然后运行就能,看到str1 str的值?
就是类似一个简单的调试器!
[解决办法]
怎么不试试nunit
[解决办法]
用断言!