示例#1
0
 /// <inheritdoc />
 public void Run(TestRunExecutionContext context)
 {
     if (context.LastResult == null)
     {
         TestRunAssertException.ThrowWithExecutionContext("Expected to have result.", context, this);
     }
 }
 /// <inheritdoc />
 public void Run(TestRunExecutionContext context)
 {
     if (context.FirstException == null && context.LastException == null)
     {
         TestRunAssertException.ThrowWithExecutionContext("Expect exception from last step(-s).", context, this);
     }
 }
 /// <inheritdoc />
 public void Run(TestRunExecutionContext context)
 {
     if (context.FirstException != null || context.LastException != null)
     {
         TestRunAssertException.ThrowWithExecutionContext(
             "There are exception(-s) from last step(-s) when no expected.", context, this);
     }
 }