public void StreamFile_StreamsHeadProperly()
 {
     var response = A.Fake<HttpResponseBase>();
     var responseStreamWriter = new ResponseStreamWriter(response, 512);
     using (StreamLoaderResult streamLoaderResult = new StreamLoaderResult(StreamLoadStatus.Success, new StreamMetadata("foo.bar", null, null, null), null, null, null))
     {
         responseStreamWriter.StreamFile(HttpResponseType.HeadOnly, streamLoaderResult, null, null, false);
     }
 }
Пример #2
0
        public void StreamFile_StreamsHeadProperly()
        {
            var response             = A.Fake <HttpResponseBase>();
            var responseStreamWriter = new ResponseStreamWriter(response, 512);

            using (StreamLoaderResult streamLoaderResult = new StreamLoaderResult(StreamLoadStatus.Success, new StreamMetadata("foo.bar", null, null, null), null, null, null))
            {
                responseStreamWriter.StreamFile(HttpResponseType.HeadOnly, streamLoaderResult, null, null, false);
            }
        }