http://architect360.apricot-jp.com/500tips/nunit.html
普通にリフレクションを使って実行し、結果の検証を行う。
例えば、TargetCls内の「private string TargetMethod(string arg1)」というメソッドを実行したい場合、
TargetCls oObj = new TargetCls(); Type oType = oObj.GetType(); MethodInfo oMethod = oType.GetMethod("TargetMethod", BindingFlags.NonPublic | BindingFlags.Instance); string sResult = (string)oMethod.Invoke(oObj, new object[] { "argument" });
……と書いて実行する。