示例#1
0
 public void BeforeTest(ITest test)
 {
     if (test.IsSuite == false)
     {
         var parametersNames = test.Method.GetParameters().Select(p => p.ParameterInfo.Name).ToArray();
         Describe.BeginTestCase(test.ClassName + "." + test.MethodName, parametersNames, test.Arguments, test.Name);
     }
 }
示例#2
0
 public void AfterTest(ITest test)
 {
     if (test.IsSuite == false)
     {
         Describe.EndTestCase(test.ClassName + "." + test.MethodName);
     }
     else
     {
         Describe.OnEndOfAllTests();
     }
 }