Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[csharp-client] Restored tests on csharp samples #5879

Merged
merged 2 commits into from
Apr 10, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -85,5 +85,8 @@ The version of the OpenAPI document: 1.0.0
<Name>Org.OpenAPITools</Name>
</ProjectReference>
</ItemGroup>
<ItemGroup>
<EmbeddedResource Include="linux-logo.png" />
</ItemGroup>
</Project>

Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
*
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
*
* The version of the OpenAPI document: 1.0.0
* OpenAPI spec version: 1.0.0
*
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
Expand Down Expand Up @@ -58,8 +58,8 @@ public void Cleanup()
[Test]
public void InstanceTest()
{
// TODO uncomment below to test 'IsInstanceOf' AnotherFakeApi
//Assert.IsInstanceOf(typeof(AnotherFakeApi), instance);
// TODO uncomment below to test 'IsInstanceOfType' AnotherFakeApi
//Assert.IsInstanceOfType(typeof(AnotherFakeApi), instance, "instance is a AnotherFakeApi");
}


Expand All @@ -72,7 +72,7 @@ public void Call123TestSpecialTagsTest()
// TODO uncomment below to test the method and replace null with proper value
//ModelClient body = null;
//var response = instance.Call123TestSpecialTags(body);
//Assert.IsInstanceOf(typeof(ModelClient), response, "response is ModelClient");
//Assert.IsInstanceOf<ModelClient> (response, "response is ModelClient");
}

}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
*
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
*
* The version of the OpenAPI document: 1.0.0
* OpenAPI spec version: 1.0.0
*
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
Expand Down Expand Up @@ -58,8 +58,8 @@ public void Cleanup()
[Test]
public void InstanceTest()
{
// TODO uncomment below to test 'IsInstanceOf' FakeApi
//Assert.IsInstanceOf(typeof(FakeApi), instance);
// TODO uncomment below to test 'IsInstanceOfType' FakeApi
//Assert.IsInstanceOfType(typeof(FakeApi), instance, "instance is a FakeApi");
}


Expand All @@ -82,9 +82,9 @@ public void CreateXmlItemTest()
public void FakeOuterBooleanSerializeTest()
{
// TODO uncomment below to test the method and replace null with proper value
//bool body = null;
//bool? body = null;
//var response = instance.FakeOuterBooleanSerialize(body);
//Assert.IsInstanceOf(typeof(bool), response, "response is bool");
//Assert.IsInstanceOf<bool?> (response, "response is bool?");
}

/// <summary>
Expand All @@ -96,7 +96,7 @@ public void FakeOuterCompositeSerializeTest()
// TODO uncomment below to test the method and replace null with proper value
//OuterComposite body = null;
//var response = instance.FakeOuterCompositeSerialize(body);
//Assert.IsInstanceOf(typeof(OuterComposite), response, "response is OuterComposite");
//Assert.IsInstanceOf<OuterComposite> (response, "response is OuterComposite");
}

/// <summary>
Expand All @@ -106,9 +106,9 @@ public void FakeOuterCompositeSerializeTest()
public void FakeOuterNumberSerializeTest()
{
// TODO uncomment below to test the method and replace null with proper value
//decimal body = null;
//decimal? body = null;
//var response = instance.FakeOuterNumberSerialize(body);
//Assert.IsInstanceOf(typeof(decimal), response, "response is decimal");
//Assert.IsInstanceOf<decimal?> (response, "response is decimal?");
}

/// <summary>
Expand All @@ -120,7 +120,7 @@ public void FakeOuterStringSerializeTest()
// TODO uncomment below to test the method and replace null with proper value
//string body = null;
//var response = instance.FakeOuterStringSerialize(body);
//Assert.IsInstanceOf(typeof(string), response, "response is string");
//Assert.IsInstanceOf<string> (response, "response is string");
}

/// <summary>
Expand Down Expand Up @@ -157,7 +157,7 @@ public void TestClientModelTest()
// TODO uncomment below to test the method and replace null with proper value
//ModelClient body = null;
//var response = instance.TestClientModel(body);
//Assert.IsInstanceOf(typeof(ModelClient), response, "response is ModelClient");
//Assert.IsInstanceOf<ModelClient> (response, "response is ModelClient");
}

/// <summary>
Expand All @@ -167,18 +167,18 @@ public void TestClientModelTest()
public void TestEndpointParametersTest()
{
// TODO uncomment below to test the method and replace null with proper value
//decimal number = null;
//double _double = null;
//decimal? number = null;
//double? _double = null;
//string patternWithoutDelimiter = null;
//byte[] _byte = null;
//int integer = null;
//int int32 = null;
//long int64 = null;
//float _float = null;
//int? integer = null;
//int? int32 = null;
//long? int64 = null;
//float? _float = null;
//string _string = null;
//System.IO.Stream binary = null;
//DateTime date = null;
//DateTime dateTime = null;
//DateTime? date = null;
//DateTime? dateTime = null;
//string password = null;
//string callback = null;
//instance.TestEndpointParameters(number, _double, patternWithoutDelimiter, _byte, integer, int32, int64, _float, _string, binary, date, dateTime, password, callback);
Expand All @@ -196,8 +196,8 @@ public void TestEnumParametersTest()
//string enumHeaderString = null;
//List<string> enumQueryStringArray = null;
//string enumQueryString = null;
//int enumQueryInteger = null;
//double enumQueryDouble = null;
//int? enumQueryInteger = null;
//double? enumQueryDouble = null;
//List<string> enumFormStringArray = null;
//string enumFormString = null;
//instance.TestEnumParameters(enumHeaderStringArray, enumHeaderString, enumQueryStringArray, enumQueryString, enumQueryInteger, enumQueryDouble, enumFormStringArray, enumFormString);
Expand All @@ -211,12 +211,12 @@ public void TestEnumParametersTest()
public void TestGroupParametersTest()
{
// TODO uncomment below to test the method and replace null with proper value
//int requiredStringGroup = null;
//bool requiredBooleanGroup = null;
//long requiredInt64Group = null;
//int stringGroup = null;
//bool booleanGroup = null;
//long int64Group = null;
//int? requiredStringGroup = null;
//bool? requiredBooleanGroup = null;
//long? requiredInt64Group = null;
//int? stringGroup = null;
//bool? booleanGroup = null;
//long? int64Group = null;
//instance.TestGroupParameters(requiredStringGroup, requiredBooleanGroup, requiredInt64Group, stringGroup, booleanGroup, int64Group);

}
Expand Down Expand Up @@ -246,22 +246,6 @@ public void TestJsonFormDataTest()

}

/// <summary>
/// Test TestQueryParameterCollectionFormat
/// </summary>
[Test]
public void TestQueryParameterCollectionFormatTest()
{
// TODO uncomment below to test the method and replace null with proper value
//List<string> pipe = null;
//List<string> ioutil = null;
//List<string> http = null;
//List<string> url = null;
//List<string> context = null;
//instance.TestQueryParameterCollectionFormat(pipe, ioutil, http, url, context);

}

}

}
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
*
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
*
* The version of the OpenAPI document: 1.0.0
* OpenAPI spec version: 1.0.0
*
* Generated by: https://github.com/openapitools/openapi-generator.git
*/
Expand Down Expand Up @@ -58,8 +58,8 @@ public void Cleanup()
[Test]
public void InstanceTest()
{
// TODO uncomment below to test 'IsInstanceOf' FakeClassnameTags123Api
//Assert.IsInstanceOf(typeof(FakeClassnameTags123Api), instance);
// TODO uncomment below to test 'IsInstanceOfType' FakeClassnameTags123Api
//Assert.IsInstanceOfType(typeof(FakeClassnameTags123Api), instance, "instance is a FakeClassnameTags123Api");
}


Expand All @@ -72,7 +72,7 @@ public void TestClassnameTest()
// TODO uncomment below to test the method and replace null with proper value
//ModelClient body = null;
//var response = instance.TestClassname(body);
//Assert.IsInstanceOf(typeof(ModelClient), response, "response is ModelClient");
//Assert.IsInstanceOf<ModelClient> (response, "response is ModelClient");
}

}
Expand Down
Loading