コード例 #1
0
 public override void InvokeMethod(object fixture, MethodEntry testMethod)
 {
     if (testMethod.MethodType == MethodType.FixtureSetUpMethod)
     {
         // TODO: Need to get test context here from instance then pass it to setup method. [18mar09, ml]
         // "Using the TestContext class": http://msdn.microsoft.com/en-us/library/ms404699.aspx
         testMethod.Invoke(fixture, new object[] { null });
     }
     else
     {
         testMethod.Invoke(fixture);
     }
 }
コード例 #2
0
ファイル: NUnitAdapter.cs プロジェクト: ManfredLange/csUnit
 public override void InvokeMethod(object fixture, MethodEntry testMethod) {
    testMethod.Invoke(fixture);
 }
コード例 #3
0
 public override void InvokeMethod(object fixture, MethodEntry testMethod)
 {
     testMethod.Invoke(fixture);
 }
コード例 #4
0
 public override void InvokeMethod(object fixture, MethodEntry testMethod) {
    if (testMethod.MethodType == MethodType.FixtureSetUpMethod) {
       // TODO: Need to get test context here from instance then pass it to setup method. [18mar09, ml]
       // "Using the TestContext class": http://msdn.microsoft.com/en-us/library/ms404699.aspx
       testMethod.Invoke(fixture, new object[]{null});
    }
    else {
       testMethod.Invoke(fixture);
    }
 }