Sha256: c1a02356b3c3df7f056140cf5a5efa3c715229916a5a1a2c2d10850c198e3e17
Contents?: true
Size: 749 Bytes
Versions: 13
Compression:
Stored size: 749 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
13 entries across 13 versions & 1 rubygems