예제 #1
0
 public void Verify()
 {
     try
     {
         TestRunner.Verify(ActionDescriptionBuilder.BuildFor(_actionUnderTest),
                           _parameterActions,
                           () => _performAction(),
                           _dependencyActions,
                           _assertions);
     }
     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 Verify()
 {
     try
     {
         TestRunner.Verify(ActionDescriptionBuilder.BuildFor(_actionUnderTest),
                           _parameterActions,
                           () => _performAction(),
                           _dependencyActions,
                           _assertions);
     }
     catch (Exception e)
     {
         throw new AssertionException(e);
     }
 }
예제 #3
0
 protected static string BuildDescription(Action action, string actionTypeDescription)
 {
     return(actionTypeDescription + " " + ActionDescriptionBuilder.BuildFor(action, actionTypeDescription));
 }
예제 #4
0
 public DefaultTestStep(Action action)
     : this()
 {
     Description = ActionDescriptionBuilder.BuildFor(action);
     Action      = action;
 }