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); } }
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); } }