public void TestSelectHeaderContentType () { ApiClient api = new ApiClient (); String[] contentTypes = new String[] { "application/json", "application/xml" }; Assert.AreEqual("application/json", api.SelectHeaderContentType (contentTypes)); contentTypes = new String[] { "application/xml" }; Assert.AreEqual("application/xml", api.SelectHeaderContentType (contentTypes)); contentTypes = new String[] {}; Assert.IsNull(api.SelectHeaderContentType (contentTypes)); }