public void ReadS32Test() { const int value = int.MinValue; var data = BitConverter.GetBytes(value); When(slotSource[kSlotIndex]).ThenReturn(data); AssertEquals(value, testObj.ReadS32(kSlotIndex)); }
public void TestReadS32() { const int value = int.MinValue; var data = BitConverter.GetBytes(value); when(() => slotSource[SLOT_INDEX]).ThenReturn(data); assertEquals(value, testObj.ReadS32(SLOT_INDEX)); }