示例#1
0
        public void ReadU64Test()
        {
            const ulong value = ulong.MaxValue;
            var         data  = BitConverter.GetBytes(value);

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