阅读背景:

如何在C ++ / CLI NUnit测试中使用ExpectedException?

来源:互联网 

How do you do the equivalent of:

你怎么做相当于:

[Test, ExpectedException( typeof(ArgumentOutOfRangeException) )]
void Test_Something_That_Throws_Exception()
{
    throw gcnew ArgumentOutOfRangeException("Some more detail");
}
[



你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: