Exemple #1
0
        public void ReadU32Test()
        {
            const uint value = uint.MaxValue;
            var        data  = BitConverter.GetBytes(value);

            When(slotSource[kSlotIndex]).ThenReturn(data);
            AssertEquals(value, testObj.ReadU32(kSlotIndex));
        }
Exemple #2
0
        public void TestReadU32()
        {
            const uint value = uint.MaxValue;
            var        data  = BitConverter.GetBytes(value);

            when(() => slotSource[SLOT_INDEX]).ThenReturn(data);
            assertEquals(value, testObj.ReadU32(SLOT_INDEX));
        }