public void http_stream_disposing() { var under = Substitute.For <Stream>(); var subject = new HttpResponseStream(under, 0); subject.Dispose(); under.Received().Close(); }