internal void CreateCorrectConcrete(HttpHeaderEntries entries, Type expectedType)
        {
            var inst   = new HttpRequestBodyFactory();
            var result = inst.Create(
                TcpSettings.Default,
                new HttpRequestHeader("GET / HTTP/1.1", entries),
                new RollbackableStream(new MemoryStream(), TcpSettings.Default));

            Assert.Equal(expectedType, result.GetType());
        }
        internal void ThrowsInvalidHttpException(HttpHeaderEntries entries)
        {
            var inst = new HttpRequestBodyFactory();

            Assert.Throws <HttpBadRequestException>(delegate
            {
                inst.Create(
                    TcpSettings.Default,
                    new HttpRequestHeader("GET / HTTP/1.1", entries),
                    new RollbackableStream(new MemoryStream(), TcpSettings.Default));
            });
        }