add binary support to C# client

This commit is contained in:
wing328
2016-01-11 00:39:22 +08:00
parent ce82aa41fc
commit e0f43c1c58
12 changed files with 1363 additions and 319 deletions

View File

@@ -14,6 +14,26 @@ namespace SwaggerClientTest.TestApiClient
Configuration.Default.DateTimeFormat = "o";
}
/// <summary>
/// Test SelectHeaderContentType
/// </summary>
[Test ()]
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));
}
/// <summary>
/// Test ParameterToString
/// </summary>
[Test ()]
public void TestParameterToString ()
{