public void ReadFloatTest() { const float value = 13.37f; var data = BitConverter.GetBytes(value); When(slotSource[kSlotIndex]).ThenReturn(data); AssertEquals(value, testObj.ReadFloat(kSlotIndex)); }
public void TestReadFloat() { const float value = 13.37f; var data = BitConverter.GetBytes(value); when(() => slotSource[SLOT_INDEX]).ThenReturn(data); assertEquals(value, testObj.ReadFloat(SLOT_INDEX)); }