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(); } }
public override void Flush() { WrappedStream.Flush(); }
/// <summary> /// Clears all buffers for this stream and causes any buffered data to be written to the underlying device. /// </summary> public override void Flush() { ThrowIfDisposed(); WrappedStream.Flush(); }