Skip to content

Commit 5401361

Browse files
committed
update tets
1 parent b4c7069 commit 5401361

File tree

1 file changed

+5
-5
lines changed
  • samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools.Test

1 file changed

+5
-5
lines changed

samples/client/petstore/csharp/restsharp/standard2.0/Petstore/src/Org.OpenAPITools.Test/ConfigurationTests.cs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -42,16 +42,16 @@ public void GetServerUrlTest()
4242
{
4343
Configuration c = new Configuration();
4444
// no variable (null) provided
45-
Assert.Equal("https://localhost:8080/v2", c.GetServerUrl(1, null));
45+
Assert.Equal("https://localhost:8080/v2", c.GetServerUrl(2, null));
4646
// no variable (empty dictionary) provided
47-
Assert.Equal("https://localhost:8080/v2", c.GetServerUrl(1, new Dictionary<string, string>()));
47+
Assert.Equal("https://localhost:8080/v2", c.GetServerUrl(2, new Dictionary<string, string>()));
4848

49-
Assert.Equal("https://localhost:8080/v1", c.GetServerUrl(1, new Dictionary<string, string>() { { "version", "v1" } }));
49+
Assert.Equal("https://localhost:8080/v1", c.GetServerUrl(2, new Dictionary<string, string>() { { "version", "v1" } }));
5050

51-
Assert.Throws<InvalidOperationException>(() => c.GetServerUrl(1, new Dictionary<string, string>() { { "version", "v3" } }));
51+
Assert.Throws<InvalidOperationException>(() => c.GetServerUrl(2, new Dictionary<string, string>() { { "version", "v3" } }));
5252

5353
// test the first server (index 0)
54-
Assert.Equal("http://petstore.swagger.io:80/v2", c.GetServerUrl(0));
54+
Assert.Equal("http://petstore.swagger.io:80/v2", c.GetServerUrl(1));
5555

5656
}
5757
}

0 commit comments

Comments
 (0)