Пример #1
0
        public void ReadFloatTest()
        {
            const float value = 13.37f;
            var         data  = BitConverter.GetBytes(value);

            When(slotSource[kSlotIndex]).ThenReturn(data);
            AssertEquals(value, testObj.ReadFloat(kSlotIndex));
        }
Пример #2
0
        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));
        }