示例#1
0
        public void ReadS32Test()
        {
            const int value = int.MinValue;
            var       data  = BitConverter.GetBytes(value);

            When(slotSource[kSlotIndex]).ThenReturn(data);
            AssertEquals(value, testObj.ReadS32(kSlotIndex));
        }
示例#2
0
        public void TestReadS32()
        {
            const int value = int.MinValue;
            var       data  = BitConverter.GetBytes(value);

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