| 1 | #include "unity.h" |
| 2 | #include "Types.h" |
| 3 | #include "MockExecutor.h" |
| 4 | #include "Main.h" |
| 5 | |
| 6 | void setUp(void) |
| 7 | { |
| 8 | } |
| 9 | |
| 10 | void tearDown(void) |
| 11 | { |
| 12 | } |
| 13 | |
| 14 | void testMainShouldCallExecutorInitAndContinueToCallExecutorRunUntilHalted(void) |
| 15 | { |
| 16 | Executor_Init_Expect(); |
| 17 | Executor_Run_ExpectAndReturn(TRUE); |
| 18 | Executor_Run_ExpectAndReturn(TRUE); |
| 19 | Executor_Run_ExpectAndReturn(TRUE); |
| 20 | Executor_Run_ExpectAndReturn(TRUE); |
| 21 | Executor_Run_ExpectAndReturn(FALSE); |
| 22 | |
| 23 | AppMain(); |
| 24 | } |