            Assert.AreEqual(expectedLength, response.BodyLength);
        }

        [Test]
        public void AppendToBody_WithStringAndNullEncoding_ThrowsException()
        {
            var response = new BasicHttpResponse();
            
            Assert.That(
                () => response.AppendToBody(string.Empty, null),