mirror of
https://github.com/ThrowTheSwitch/CMock
synced 2025-02-02 10:08:41 -05:00
32 lines
778 B
C
32 lines
778 B
C
/* =========================================================================
|
|
CMock - Automatic Mock Generation for C
|
|
ThrowTheSwitch.org
|
|
Copyright (c) 2007-25 Mike Karlesky, Mark VanderVoord, & Greg Williams
|
|
SPDX-License-Identifier: MIT
|
|
========================================================================= */
|
|
|
|
#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();
|
|
}
|