From 40796b3f4c60550c49e881c28447d3fc10f40101 Mon Sep 17 00:00:00 2001 From: wing328 Date: Mon, 18 Jan 2016 11:45:13 +0800 Subject: [PATCH] update comment in csharp test --- .../csharp/SwaggerClientTest/TestApiClient.cs | 4 +++- .../bin/Debug/SwaggerClientTest.dll.mdb | Bin 34893 -> 34893 bytes 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/samples/client/petstore/csharp/SwaggerClientTest/TestApiClient.cs b/samples/client/petstore/csharp/SwaggerClientTest/TestApiClient.cs index af7c22ba088..9d1921d8ea7 100644 --- a/samples/client/petstore/csharp/SwaggerClientTest/TestApiClient.cs +++ b/samples/client/petstore/csharp/SwaggerClientTest/TestApiClient.cs @@ -123,7 +123,7 @@ namespace SwaggerClientTest.TestApiClient PetApi p3 = new PetApi (c1); ApiClient a1 = new ApiClient(); - Configuration c2 = new Configuration (a1); // using default ApiClient + Configuration c2 = new Configuration (a1); // using "a1" as the ApiClient PetApi p4 = new PetApi (c2); @@ -131,9 +131,11 @@ namespace SwaggerClientTest.TestApiClient Assert.AreSame(p1.Configuration.ApiClient, p2.Configuration.ApiClient); Assert.AreSame(p1.Configuration.ApiClient, Configuration.Default.ApiClient); + // ensure both using the same default ApiClient Assert.AreSame(p3.Configuration.ApiClient, c1.ApiClient); Assert.AreSame(p3.Configuration.ApiClient, Configuration.Default.ApiClient); + // ensure it's not using the default ApiClient Assert.AreSame(p4.Configuration.ApiClient, c2.ApiClient); Assert.AreNotSame(p4.Configuration.ApiClient, Configuration.Default.ApiClient); diff --git a/samples/client/petstore/csharp/SwaggerClientTest/bin/Debug/SwaggerClientTest.dll.mdb b/samples/client/petstore/csharp/SwaggerClientTest/bin/Debug/SwaggerClientTest.dll.mdb index 5008263b22310a03e46f36026133deea88a58324..9fd5b3c6f762ed5964c1fb0d75bf5f4fdd4c8a16 100644 GIT binary patch delta 50 zcmV-20L}l+kOIw+0