mirror of
https://github.com/ThrowTheSwitch/CMock.git
synced 2026-07-11 14:50:22 +00:00
acba0a5a8a
- Relocated example project in preparation for adding real CMock system test git-svn-id: http://cmock.svn.sourceforge.net/svnroot/cmock/trunk@47 bf332499-1b4d-0410-844d-d2d48d5cc64c
25 lines
472 B
C
25 lines
472 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();
|
|
}
|