首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > .NET > C# >

c#有没有测试某个函数的工具?解决方法

2012-01-12 
c#有没有测试某个函数的工具?比如:我有一个函数publicvoidtest(stringstr){stringstr1str}我只要写一个

c#有没有测试某个函数的工具?
比如:
我有一个函数
public   void   test(string   str)
{
    string   str1   =   str;
}
我只要写一个类似   test( "ok ")
然后运行就能,看到str1   str的值?

就是类似一个简单的调试器!

[解决办法]
怎么不试试nunit
[解决办法]
用断言!

热点排行