小编Nik*_*rma的帖子

NUnit:如何在C#中使用"ref"参数测试私有方法

我有一个私有方法,如下所示:

int void SomeMethod(ref string theStr)
{
   // Some Implementation
}
Run Code Online (Sandbox Code Playgroud)

如何为这种方法编写单元测试用例.

c# nunit

3
推荐指数
1
解决办法
1623
查看次数

标签 统计

c# ×1

nunit ×1