public void ReadDoubleTest() { const double value = 13333.333337; var data = BitConverter.GetBytes(value); When(slotSource[kSlotIndex]).ThenReturn(data); AssertEquals(value, testObj.ReadDouble(kSlotIndex)); }
public void TestReadDouble() { const double value = 13333.333337; var data = BitConverter.GetBytes(value); when(() => slotSource[SLOT_INDEX]).ThenReturn(data); assertEquals(value, testObj.ReadDouble(SLOT_INDEX)); }