コード例 #1
0
 public void Verify(params Action[] actions)
 {
     try
     {
         var testStepCreators = new ITestStepCreator[] { new WithTestStep(), new WhenTestStep(), new ExpectTestStep(), new ShouldTestStep(), new DefaultTestStep() };
         var steps = actions.Select(x => TestStepCreator(testStepCreators, x)).ToList();
         Verify(steps, _exceptionConfiguration);
     }
     catch (Exception e)
     {
         Exception result = null;
         bool succeeded = true;
         try
         {
             result = new ExceptionRewriter().RewriteStacktrace(e);
         }
         catch
         {
             succeeded = false;
         }
         if (!succeeded)
         {
             throw;
         }
         throw result;
     }
 }
コード例 #2
0
 public void BeforeEachTest()
 {
     _rewriter = new ExceptionRewriter();
 }