Пример #1
0
        public void SetLengthThrows()
        {
            var stream = new FrameResponseStream(Mock.Of <IHttpBodyControlFeature>(), new MockFrameControl());

            Assert.Throws <NotSupportedException>(() => stream.SetLength(0));
        }
        public void SetLengthThrows()
        {
            var stream = new FrameResponseStream();

            Assert.Throws <NotSupportedException>(() => stream.SetLength(0));
        }