public void SendFileSupport()
 {
     IOwinResponse response = new OwinResponse();
     Assert.False(response.SupportsSendFile());
     // response.Set("sendfile.SendAsync", new Object());
     // Assert.False(response.SupportsSendFile()); // Get<type> throw for type mismatch.
     response.Set("sendfile.SendAsync", new Func<string, long, long?, CancellationToken, Task>((_, __, ___, ____) => Task.FromResult(0)));
     Assert.True(response.SupportsSendFile());
 }
        public void SendFileSupport()
        {
            IOwinResponse response = new OwinResponse();

            Assert.False(response.SupportsSendFile());
            // response.Set("sendfile.SendAsync", new Object());
            // Assert.False(response.SupportsSendFile()); // Get<type> throw for type mismatch.
            response.Set("sendfile.SendAsync", new Func <string, long, long?, CancellationToken, Task>((_, __, ___, ____) => Task.FromResult(0)));
            Assert.True(response.SupportsSendFile());
        }