private bool CheckContent(HttpContent actual, HttpContent expected) { var result = actual.Equals(expected); var actualAsString = actual.ReadAsStringAsync().Result; var expectedAsString = expected.ReadAsStringAsync().Result; return(actualAsString == expectedAsString); }