Skip to content

Commit 24b314a

Browse files
author
Olivier Leonard
committed
fix tests
1 parent 58f28ff commit 24b314a

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

samples/client/echo_api/csharp-restsharp/src/Org.OpenAPITools.Test/Api/BodyApiTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ public void TestEchoBodyFreeFormObjectResponseStringTest()
9797
[Fact]
9898
public void TestEchoBodyPetTest()
9999
{
100-
Pet? pet = new Pet(123, "cat", new Category() { Id = 12, Name = "Test" }, new List<string>(){"http://google.com"},null, null);
100+
Pet? pet = new Pet(123, "cat", new Category() { Id = 12, Name = "Test" }, new List<string>(){"http://google.com"});
101101
var response = instance.TestEchoBodyPet(pet);
102102
Assert.IsType<Pet>(response);
103103
}

samples/client/echo_api/csharp-restsharp/src/Org.OpenAPITools.Test/CustomTest.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ public void TestEchoBodyPet()
2323
Pet p = bodyApi.TestEchoBodyPet(queryObject);
2424
Assert.NotNull(p);
2525
Assert.Equal("Hello World", p.Name);
26-
Assert.Equal(12345L, p.Id);
26+
Assert.Equal(12345L, p.Id.Value);
2727

2828
// response is empty body
2929
Pet p2 = bodyApi.TestEchoBodyPet(null);

0 commit comments

Comments
 (0)