コード例 #1
0
        public void TestWriteS8()
        {
            sbyte value = -123;

            testObj.WriteS8(SLOT_INDEX, value);
            var data = new byte[] { *(byte *)&value };

            Verify(slotDestination).SetSlot(Eq(SLOT_INDEX), EqSequence(data));
        }
コード例 #2
0
        public void TestWriteS8()
        {
            sbyte value = -123;

            testObj.WriteS8(SLOT_INDEX, value);
            var data = new byte[] { *(byte *)&value };

            verify(() => slotDestination.SetSlot(SLOT_INDEX, data));
        }