Example #1
0
        public void ReadU8Test()
        {
            const byte value = 123;
            var        data  = new byte[] { value };

            When(slotSource[kSlotIndex]).ThenReturn(data);
            AssertEquals(value, testObj.ReadU8(kSlotIndex));
        }
Example #2
0
        public void TestReadU8()
        {
            const byte value = 123;
            var        data  = new byte[] { value };

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