public void ReadU8Test() { const byte value = 123; var data = new byte[] { value }; When(slotSource[kSlotIndex]).ThenReturn(data); AssertEquals(value, testObj.ReadU8(kSlotIndex)); }
public void TestReadU8() { const byte value = 123; var data = new byte[] { value }; when(() => slotSource[SLOT_INDEX]).ThenReturn(data); assertEquals(value, testObj.ReadU8(SLOT_INDEX)); }