public void ReadU64Test() { const ulong value = ulong.MaxValue; var data = BitConverter.GetBytes(value); When(slotSource[kSlotIndex]).ThenReturn(data); AssertEquals(value, testObj.ReadU64(kSlotIndex)); }
public void TestReadU64() { const ulong value = ulong.MaxValue; var data = BitConverter.GetBytes(value); when(() => slotSource[SLOT_INDEX]).ThenReturn(data); assertEquals(value, testObj.ReadU64(SLOT_INDEX)); }