public void Read_DelegatesToReaderTest() { object returnValue = new object(); When(reader.Read()).ThenReturn(returnValue); AssertEquals(returnValue, testObj.Read()); Verify(reader).Read(); VerifyNoMoreInteractions(); }
public object Read() => reader.Read();