public void Paramless_Methods_Are_Properly_Wrapped() { var strm = Substitute.For <Stream>(); using (var wrprstrm = new WrappedStream(strm, false)) { var _ = wrprstrm.ReadByte(); var __ = strm.Received(1).ReadByte(); wrprstrm.Flush(); strm.Received(1).Flush(); var ___ = wrprstrm.GetHashCode(); var ____ = strm.Received(1).GetHashCode(); var _____ = wrprstrm.ToString(); var ______ = strm.Received(1).ToString(); } }
/// <summary> /// Reads a byte from the stream and advances the position within the stream by one byte, or returns -1 if at the end of the stream. /// </summary> public override int ReadByte() { ThrowIfDisposed(); return(WrappedStream.ReadByte()); }