示例#1
0
        public void ReadCharTest()
        {
            const char value = 'a';
            var        data  = BitConverter.GetBytes(value);

            When(slotSource[kSlotIndex]).ThenReturn(data);
            AssertEquals(value, testObj.ReadChar(kSlotIndex));
        }
示例#2
0
        public void TestReadChar()
        {
            const char value = 'a';
            var        data  = BitConverter.GetBytes(value);

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