Esempio n. 1
0
        public void SetLength_Throws()
        {
            var streamMock = new Mock <Stream>(MockBehavior.Strict);

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

            Assert.Throws <NotSupportedException>(() => s.SetLength(0L));
            Assert.Throws <NotSupportedException>(() => s.SetLength(1L));
        }