Beispiel #1
0
        public void ReadS8Test()
        {
            sbyte value = -123;
            var   data  = new byte[] { *(byte *)&value };

            When(slotSource[kSlotIndex]).ThenReturn(data);
            AssertEquals(value, testObj.ReadS8(kSlotIndex));
        }
Beispiel #2
0
        public void TestReadS8()
        {
            sbyte value = -123;
            var   data  = new byte[] { *(byte *)&value };

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