Exemple #1
0
        public void Read_Throws()
        {
            var streamMock = new Mock <Stream>(MockBehavior.Strict);

            BufferedStreamWriter s = new BufferedStreamWriter(streamMock.Object, GetConfig(1));

            Assert.Throws <NotSupportedException>(() => s.Read(null, 0, 0));
            Assert.Throws <NotSupportedException>(() => s.ReadByte());
        }