public void GetBody_WithNullEncoding_ThrowsException()
{
var response = new BasicHttpResponse();
response.AppendToBody("ABCD");
Assert.That(
() => response.GetBodyAsString(null),
Throws.Exception.TypeOf <ArgumentNullException>().With.Property("ParamName").EqualTo("encoding"));
}