public static void ContentTypeHeader(HttpResponseMessage response, string expectedValue) { Assert.IsNotNull(response); Assert.IsNotNull(HttpResponseParsers.GetContentType(response)); Assert.AreEqual(expectedValue, HttpResponseParsers.GetContentType(response)); }