public void ReadS8Test() { sbyte value = -123; var data = new byte[] { *(byte *)&value }; When(slotSource[kSlotIndex]).ThenReturn(data); AssertEquals(value, testObj.ReadS8(kSlotIndex)); }
public void TestReadS8() { sbyte value = -123; var data = new byte[] { *(byte *)&value }; when(() => slotSource[SLOT_INDEX]).ThenReturn(data); assertEquals(value, testObj.ReadS8(SLOT_INDEX)); }