Sha256: 68df4d58a1ad3a41b256c9e928e2e5792a845cbc15150283e14f882c5697127e
Contents?: true
Size: 785 Bytes
Versions: 17
Compression:
Stored size: 785 Bytes
Contents
#include "unity.h" #include "Types.h" #include "UsartHardware.h" #include "MockUsartConfigurator.h" #include "MockUsartPutChar.h" void setUp(void) { } void tearDown(void) { } void testInitShouldConfigureUsartPeripheralByCallingConfiguratorAppropriately(void) { Usart_ConfigureUsartIO_Expect(); Usart_EnablePeripheralClock_Expect(); Usart_Reset_Expect(); Usart_ConfigureMode_Expect(); Usart_SetBaudRateRegister_Expect(73); Usart_Enable_Expect(); UsartHardware_Init(73); } void testTransmitStringShouldSendDesiredStringOutUsingUsart(void) { Usart_PutChar_Expect('h'); Usart_PutChar_Expect('e'); Usart_PutChar_Expect('l'); Usart_PutChar_Expect('l'); Usart_PutChar_Expect('o'); UsartHardware_TransmitString("hello"); }
Version data entries
17 entries across 17 versions & 1 rubygems