mirror of
https://github.com/ThrowTheSwitch/CMock
synced 2025-03-13 16:51:12 -04:00
25 lines
448 B
C
25 lines
448 B
C
#include "unity.h"
|
|
#include "Types.h"
|
|
#include "MockExecutor.h"
|
|
#include "Main.h"
|
|
|
|
void setUp(void)
|
|
{
|
|
}
|
|
|
|
void tearDown(void)
|
|
{
|
|
}
|
|
|
|
void testMainShouldCallExecutorInitAndContinueToCallExecutorRunUntilHalted(void)
|
|
{
|
|
Executor_Init_Expect();
|
|
Executor_Run_ExpectAndReturn(TRUE);
|
|
Executor_Run_ExpectAndReturn(TRUE);
|
|
Executor_Run_ExpectAndReturn(TRUE);
|
|
Executor_Run_ExpectAndReturn(TRUE);
|
|
Executor_Run_ExpectAndReturn(FALSE);
|
|
|
|
AppMain();
|
|
}
|