示例#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();
            }
        }