次と同等の方法を実行します。
[Test, ExpectedException( typeof(ArgumentOutOfRangeException) )]
void Test_Something_That_Throws_Exception()
{
throw gcnew ArgumentOutOfRangeException("Some more detail");
}
... C ++では(C#がある例)?私が見る限り、NUnitのC ++実装用のtypeof()関数はありません。