public void TestReadS16() { const short value = -12356; var data = BitConverter.GetBytes(value); When(slotSource[kSlotIndex]).ThenReturn(data); AssertEquals(value, testObj.ReadS16(kSlotIndex)); }
public void TestReadS16() { const short value = -12356; var data = BitConverter.GetBytes(value); when(() => slotSource[SLOT_INDEX]).ThenReturn(data); assertEquals(value, testObj.ReadS16(SLOT_INDEX)); }