| 21 | static const InvokeArgs NO_INVOKE_ARGS; |
| 22 | |
| 23 | TEST(BasicStepTest, handlesPendingSteps) { |
| 24 | PendingStep pendingStep; |
| 25 | PendingStepWithDescription pendingStepWithDescription; |
| 26 | InvokeResult result; |
| 27 | |
| 28 | result = pendingStep.invoke(&NO_INVOKE_ARGS); |
| 29 | ASSERT_TRUE(result.isPending()); |
| 30 | ASSERT_STREQ("", result.getDescription().c_str()); |
| 31 | |
| 32 | result = pendingStepWithDescription.invoke(&NO_INVOKE_ARGS); |
| 33 | ASSERT_TRUE(result.isPending()); |
| 34 | ASSERT_STREQ(PENDING_STEP_DESCRIPTION, result.getDescription().c_str()); |
| 35 | } |