Flush() public method

public Flush ( ) : void
return void
Ejemplo n.º 1
0
        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();
            }
        }
Ejemplo n.º 2
0
 public override void Flush()
 {
     WrappedStream.Flush();
 }
Ejemplo n.º 3
0
 /// <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();
 }