public void ReadCharTest() { const char value = 'a'; var data = BitConverter.GetBytes(value); When(slotSource[kSlotIndex]).ThenReturn(data); AssertEquals(value, testObj.ReadChar(kSlotIndex)); }
public void TestReadChar() { const char value = 'a'; var data = BitConverter.GetBytes(value); when(() => slotSource[SLOT_INDEX]).ThenReturn(data); assertEquals(value, testObj.ReadChar(SLOT_INDEX)); }