示例#1
0
 public void RunCase(TestCase testCase)
 {
     try
     {
         testCase.RunCase(this);
     }
     catch (TestSkippedException e)
     {
         SkipTest(testCase, e);
     }
     catch (TestFailedException e)
     {
         AddFailure(testCase, e);
     }
     catch (Exception e)
     {
         AddError(testCase, e);
     }
 }
		public void RunCase (TestCase testCase)
		{
			try
			{
				testCase.RunCase (this);
			}
			catch (TestSkippedException e)
			{
				SkipTest (testCase, e);
			}
			catch (TestFailedException e)
			{
				AddFailure (testCase, e);
			}
			catch (Exception e)
			{
				AddError (testCase, e);
			}
		}