unit测试期望变量参数的函数 [英] unit Testing of a function expecting variable parameter
本文介绍了unit测试期望变量参数的函数的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
i有一个
Hi,
i have a
method which have two argument first the normal argument and
the second argument is the variable argument like
public class TestClass
{
public bool TestMethod(string str,params int[] intarray)
{
return true;
}
}
i have to stub this method how to do it, please help me in this regard.
Thanks and Regard
Arvind
推荐答案
请看这里: http://nunit.org/index.php?p=parameterizedTests&r=2.5 [ ^ ]。
-SA
Please look here: http://nunit.org/index.php?p=parameterizedTests&r=2.5[^].
—SA
这篇关于unit测试期望变量参数的函数的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文