| 1 | #include "unity.h" |
| 2 | #include "Types.h" |
| 3 | #include "TimerHardware.h" |
| 4 | #include "MockTimerConfigurator.h" |
| 5 | |
| 6 | void setUp(void) |
| 7 | { |
| 8 | } |
| 9 | |
| 10 | void tearDown(void) |
| 11 | { |
| 12 | } |
| 13 | |
| 14 | void testInitShouldDelegateAppropriatelyToConfigurator(void) |
| 15 | { |
| 16 | Timer_EnablePeripheralClocks_Expect(); |
| 17 | Timer_Reset_Expect(); |
| 18 | Timer_ConfigureMode_Expect(); |
| 19 | Timer_ConfigurePeriod_Expect(); |
| 20 | Timer_EnableOutputPin_Expect(); |
| 21 | Timer_Enable_Expect(); |
| 22 | Timer_ConfigureInterruptHandler_Expect(); |
| 23 | Timer_Start_Expect(); |
| 24 | |
| 25 | TimerHardware_Init(); |
| 26 | } |