Example #1
0
        public void WriteThrows()
        {
            var stream = new HttpRequestStream(Mock.Of <IHttpBodyControlFeature>());

            Assert.Throws <NotSupportedException>(() => stream.Write(new byte[1], 0, 1));
        }