Example #1
0
        public void ReadDoubleTest()
        {
            const double value = 13333.333337;
            var          data  = BitConverter.GetBytes(value);

            When(slotSource[kSlotIndex]).ThenReturn(data);
            AssertEquals(value, testObj.ReadDouble(kSlotIndex));
        }
Example #2
0
        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));
        }