mirror of
https://github.com/OpenAPITools/openapi-generator.git
synced 2025-12-08 15:06:09 +00:00
update sample tests, fix Java tests (#20300)
* replace removed forkMode * remove junit runner where it's not needed * update samples without skipping test files, but skip files named "FILES" * revert overwriting custom tests, add custom java tests to list * add one sample to CircleCI, fix various Java tests
This commit is contained in:
@@ -74,5 +74,38 @@ namespace Org.OpenAPITools.Test.Api
|
||||
//string country = null;
|
||||
//instance.GetCountry(country);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Test Hello
|
||||
/// </summary>
|
||||
[Test]
|
||||
public void HelloTest()
|
||||
{
|
||||
// TODO uncomment below to test the method and replace null with proper value
|
||||
//var response = instance.Hello();
|
||||
//Assert.IsType<List<Guid>>(response);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Test RolesReportGet
|
||||
/// </summary>
|
||||
[Test]
|
||||
public void RolesReportGetTest()
|
||||
{
|
||||
// TODO uncomment below to test the method and replace null with proper value
|
||||
//var response = instance.RolesReportGet();
|
||||
//Assert.IsType<List<List<RolesReportsHash>>>(response);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Test Test
|
||||
/// </summary>
|
||||
[Test]
|
||||
public void TestTest()
|
||||
{
|
||||
// TODO uncomment below to test the method and replace null with proper value
|
||||
//var response = instance.Test();
|
||||
//Assert.IsType<NotificationtestGetElementsV1ResponseMPayload>(response);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -124,6 +124,39 @@ namespace Org.OpenAPITools.Test.Api
|
||||
//Assert.IsType<List<OuterEnum>>(response);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Test GetMixedAnyOf
|
||||
/// </summary>
|
||||
[Test]
|
||||
public void GetMixedAnyOfTest()
|
||||
{
|
||||
// TODO uncomment below to test the method and replace null with proper value
|
||||
//var response = instance.GetMixedAnyOf();
|
||||
//Assert.IsType<MixedAnyOf>(response);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Test GetMixedOneOf
|
||||
/// </summary>
|
||||
[Test]
|
||||
public void GetMixedOneOfTest()
|
||||
{
|
||||
// TODO uncomment below to test the method and replace null with proper value
|
||||
//var response = instance.GetMixedOneOf();
|
||||
//Assert.IsType<MixedOneOf>(response);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Test TestAdditionalPropertiesReference
|
||||
/// </summary>
|
||||
[Test]
|
||||
public void TestAdditionalPropertiesReferenceTest()
|
||||
{
|
||||
// TODO uncomment below to test the method and replace null with proper value
|
||||
//Dictionary<string, Object> requestBody = null;
|
||||
//instance.TestAdditionalPropertiesReference(requestBody);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Test TestBodyWithFileSchema
|
||||
/// </summary>
|
||||
@@ -167,20 +200,20 @@ namespace Org.OpenAPITools.Test.Api
|
||||
{
|
||||
// TODO uncomment below to test the method and replace null with proper value
|
||||
//decimal number = null;
|
||||
//double _double = null;
|
||||
//double varDouble = null;
|
||||
//string patternWithoutDelimiter = null;
|
||||
//byte[] _byte = null;
|
||||
//byte[] varByte = null;
|
||||
//int? integer = null;
|
||||
//int? int32 = null;
|
||||
//long? int64 = null;
|
||||
//float? _float = null;
|
||||
//string _string = null;
|
||||
//float? varFloat = null;
|
||||
//string varString = null;
|
||||
//System.IO.Stream binary = 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);
|
||||
//instance.TestEndpointParameters(number, varDouble, patternWithoutDelimiter, varByte, integer, int32, int64, varFloat, varString, binary, date, dateTime, password, callback);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -228,6 +261,17 @@ namespace Org.OpenAPITools.Test.Api
|
||||
//instance.TestInlineAdditionalProperties(requestBody);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Test TestInlineFreeformAdditionalProperties
|
||||
/// </summary>
|
||||
[Test]
|
||||
public void TestInlineFreeformAdditionalPropertiesTest()
|
||||
{
|
||||
// TODO uncomment below to test the method and replace null with proper value
|
||||
//TestInlineFreeformAdditionalPropertiesRequest testInlineFreeformAdditionalPropertiesRequest = null;
|
||||
//instance.TestInlineFreeformAdditionalProperties(testInlineFreeformAdditionalPropertiesRequest);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Test TestJsonFormData
|
||||
/// </summary>
|
||||
@@ -252,7 +296,22 @@ namespace Org.OpenAPITools.Test.Api
|
||||
//List<string> http = null;
|
||||
//List<string> url = null;
|
||||
//List<string> context = null;
|
||||
//instance.TestQueryParameterCollectionFormat(pipe, ioutil, http, url, context);
|
||||
//string requiredNotNullable = null;
|
||||
//string requiredNullable = null;
|
||||
//string notRequiredNotNullable = null;
|
||||
//string notRequiredNullable = null;
|
||||
//instance.TestQueryParameterCollectionFormat(pipe, ioutil, http, url, context, requiredNotNullable, requiredNullable, notRequiredNotNullable, notRequiredNullable);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Test TestStringMapReference
|
||||
/// </summary>
|
||||
[Test]
|
||||
public void TestStringMapReferenceTest()
|
||||
{
|
||||
// TODO uncomment below to test the method and replace null with proper value
|
||||
//Dictionary<string, string> requestBody = null;
|
||||
//instance.TestStringMapReference(requestBody);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -54,7 +54,6 @@ namespace Org.OpenAPITools.Test.Model
|
||||
//Assert.IsType<ActivityOutputElementRepresentation>(instance);
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Test the property 'Prop1'
|
||||
/// </summary>
|
||||
|
||||
@@ -54,7 +54,6 @@ namespace Org.OpenAPITools.Test.Model
|
||||
//Assert.IsType<Activity>(instance);
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Test the property 'ActivityOutputs'
|
||||
/// </summary>
|
||||
|
||||
@@ -54,7 +54,6 @@ namespace Org.OpenAPITools.Test.Model
|
||||
//Assert.IsType<AdditionalPropertiesClass>(instance);
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Test the property 'MapProperty'
|
||||
/// </summary>
|
||||
|
||||
@@ -54,25 +54,6 @@ namespace Org.OpenAPITools.Test.Model
|
||||
//Assert.IsType<Animal>(instance);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Test deserialize a Cat from type Animal
|
||||
/// </summary>
|
||||
[Test]
|
||||
public void CatDeserializeFromAnimalTest()
|
||||
{
|
||||
// TODO uncomment below to test deserialize a Cat from type Animal
|
||||
//Assert.IsType<Animal>(JsonConvert.DeserializeObject<Animal>(new Cat().ToJson()));
|
||||
}
|
||||
/// <summary>
|
||||
/// Test deserialize a Dog from type Animal
|
||||
/// </summary>
|
||||
[Test]
|
||||
public void DogDeserializeFromAnimalTest()
|
||||
{
|
||||
// TODO uncomment below to test deserialize a Dog from type Animal
|
||||
//Assert.IsType<Animal>(JsonConvert.DeserializeObject<Animal>(new Dog().ToJson()));
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Test the property 'ClassName'
|
||||
/// </summary>
|
||||
|
||||
@@ -54,7 +54,6 @@ namespace Org.OpenAPITools.Test.Model
|
||||
//Assert.IsType<ApiResponse>(instance);
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Test the property 'Code'
|
||||
/// </summary>
|
||||
|
||||
@@ -54,7 +54,6 @@ namespace Org.OpenAPITools.Test.Model
|
||||
//Assert.IsType<AppleReq>(instance);
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Test the property 'Cultivar'
|
||||
/// </summary>
|
||||
|
||||
@@ -54,7 +54,6 @@ namespace Org.OpenAPITools.Test.Model
|
||||
//Assert.IsType<Apple>(instance);
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Test the property 'Cultivar'
|
||||
/// </summary>
|
||||
@@ -71,5 +70,13 @@ namespace Org.OpenAPITools.Test.Model
|
||||
{
|
||||
// TODO unit test for the property 'Origin'
|
||||
}
|
||||
/// <summary>
|
||||
/// Test the property 'ColorCode'
|
||||
/// </summary>
|
||||
[Test]
|
||||
public void ColorCodeTest()
|
||||
{
|
||||
// TODO unit test for the property 'ColorCode'
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -54,7 +54,6 @@ namespace Org.OpenAPITools.Test.Model
|
||||
//Assert.IsType<ArrayOfArrayOfNumberOnly>(instance);
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Test the property 'ArrayArrayNumber'
|
||||
/// </summary>
|
||||
|
||||
@@ -54,7 +54,6 @@ namespace Org.OpenAPITools.Test.Model
|
||||
//Assert.IsType<ArrayOfNumberOnly>(instance);
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Test the property 'ArrayNumber'
|
||||
/// </summary>
|
||||
|
||||
@@ -54,7 +54,6 @@ namespace Org.OpenAPITools.Test.Model
|
||||
//Assert.IsType<ArrayTest>(instance);
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Test the property 'ArrayOfString'
|
||||
/// </summary>
|
||||
|
||||
@@ -54,7 +54,6 @@ namespace Org.OpenAPITools.Test.Model
|
||||
//Assert.IsType<BananaReq>(instance);
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Test the property 'LengthCm'
|
||||
/// </summary>
|
||||
|
||||
@@ -54,7 +54,6 @@ namespace Org.OpenAPITools.Test.Model
|
||||
//Assert.IsType<Banana>(instance);
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Test the property 'LengthCm'
|
||||
/// </summary>
|
||||
|
||||
@@ -54,7 +54,6 @@ namespace Org.OpenAPITools.Test.Model
|
||||
//Assert.IsType<BasquePig>(instance);
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Test the property 'ClassName'
|
||||
/// </summary>
|
||||
|
||||
@@ -54,7 +54,6 @@ namespace Org.OpenAPITools.Test.Model
|
||||
//Assert.IsType<Capitalization>(instance);
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Test the property 'SmallCamel'
|
||||
/// </summary>
|
||||
|
||||
@@ -54,7 +54,6 @@ namespace Org.OpenAPITools.Test.Model
|
||||
//Assert.IsType<Cat>(instance);
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Test the property 'Declawed'
|
||||
/// </summary>
|
||||
|
||||
@@ -54,7 +54,6 @@ namespace Org.OpenAPITools.Test.Model
|
||||
//Assert.IsType<Category>(instance);
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Test the property 'Id'
|
||||
/// </summary>
|
||||
|
||||
@@ -54,7 +54,6 @@ namespace Org.OpenAPITools.Test.Model
|
||||
//Assert.IsType<ChildCat>(instance);
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Test the property 'Name'
|
||||
/// </summary>
|
||||
|
||||
@@ -54,7 +54,6 @@ namespace Org.OpenAPITools.Test.Model
|
||||
//Assert.IsType<ClassModel>(instance);
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Test the property 'Class'
|
||||
/// </summary>
|
||||
|
||||
@@ -54,7 +54,6 @@ namespace Org.OpenAPITools.Test.Model
|
||||
//Assert.IsType<ComplexQuadrilateral>(instance);
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Test the property 'ShapeType'
|
||||
/// </summary>
|
||||
|
||||
@@ -54,7 +54,6 @@ namespace Org.OpenAPITools.Test.Model
|
||||
//Assert.IsType<DanishPig>(instance);
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Test the property 'ClassName'
|
||||
/// </summary>
|
||||
|
||||
@@ -54,7 +54,6 @@ namespace Org.OpenAPITools.Test.Model
|
||||
//Assert.IsType<DateOnlyClass>(instance);
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Test the property 'DateOnlyProperty'
|
||||
/// </summary>
|
||||
|
||||
@@ -54,7 +54,6 @@ namespace Org.OpenAPITools.Test.Model
|
||||
//Assert.IsType<DeprecatedObject>(instance);
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Test the property 'Name'
|
||||
/// </summary>
|
||||
|
||||
@@ -54,7 +54,6 @@ namespace Org.OpenAPITools.Test.Model
|
||||
//Assert.IsType<Dog>(instance);
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Test the property 'Breed'
|
||||
/// </summary>
|
||||
|
||||
@@ -54,7 +54,6 @@ namespace Org.OpenAPITools.Test.Model
|
||||
//Assert.IsType<Drawing>(instance);
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Test the property 'MainShape'
|
||||
/// </summary>
|
||||
|
||||
@@ -54,7 +54,6 @@ namespace Org.OpenAPITools.Test.Model
|
||||
//Assert.IsType<EnumArrays>(instance);
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Test the property 'JustSymbol'
|
||||
/// </summary>
|
||||
|
||||
@@ -54,6 +54,5 @@ namespace Org.OpenAPITools.Test.Model
|
||||
//Assert.IsType<EnumClass>(instance);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@@ -54,7 +54,6 @@ namespace Org.OpenAPITools.Test.Model
|
||||
//Assert.IsType<EnumTest>(instance);
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Test the property 'EnumString'
|
||||
/// </summary>
|
||||
|
||||
@@ -54,7 +54,6 @@ namespace Org.OpenAPITools.Test.Model
|
||||
//Assert.IsType<EquilateralTriangle>(instance);
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Test the property 'ShapeType'
|
||||
/// </summary>
|
||||
|
||||
@@ -54,7 +54,6 @@ namespace Org.OpenAPITools.Test.Model
|
||||
//Assert.IsType<FileSchemaTestClass>(instance);
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Test the property 'File'
|
||||
/// </summary>
|
||||
|
||||
@@ -54,7 +54,6 @@ namespace Org.OpenAPITools.Test.Model
|
||||
//Assert.IsType<File>(instance);
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Test the property 'SourceURI'
|
||||
/// </summary>
|
||||
|
||||
@@ -54,7 +54,6 @@ namespace Org.OpenAPITools.Test.Model
|
||||
//Assert.IsType<FooGetDefaultResponse>(instance);
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Test the property 'String'
|
||||
/// </summary>
|
||||
|
||||
@@ -54,7 +54,6 @@ namespace Org.OpenAPITools.Test.Model
|
||||
//Assert.IsType<Foo>(instance);
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Test the property 'Bar'
|
||||
/// </summary>
|
||||
|
||||
@@ -54,7 +54,6 @@ namespace Org.OpenAPITools.Test.Model
|
||||
//Assert.IsType<FormatTest>(instance);
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Test the property 'Integer'
|
||||
/// </summary>
|
||||
@@ -72,6 +71,54 @@ namespace Org.OpenAPITools.Test.Model
|
||||
// TODO unit test for the property 'Int32'
|
||||
}
|
||||
/// <summary>
|
||||
/// Test the property 'Int32Range'
|
||||
/// </summary>
|
||||
[Test]
|
||||
public void Int32RangeTest()
|
||||
{
|
||||
// TODO unit test for the property 'Int32Range'
|
||||
}
|
||||
/// <summary>
|
||||
/// Test the property 'Int64Positive'
|
||||
/// </summary>
|
||||
[Test]
|
||||
public void Int64PositiveTest()
|
||||
{
|
||||
// TODO unit test for the property 'Int64Positive'
|
||||
}
|
||||
/// <summary>
|
||||
/// Test the property 'Int64Negative'
|
||||
/// </summary>
|
||||
[Test]
|
||||
public void Int64NegativeTest()
|
||||
{
|
||||
// TODO unit test for the property 'Int64Negative'
|
||||
}
|
||||
/// <summary>
|
||||
/// Test the property 'Int64PositiveExclusive'
|
||||
/// </summary>
|
||||
[Test]
|
||||
public void Int64PositiveExclusiveTest()
|
||||
{
|
||||
// TODO unit test for the property 'Int64PositiveExclusive'
|
||||
}
|
||||
/// <summary>
|
||||
/// Test the property 'Int64NegativeExclusive'
|
||||
/// </summary>
|
||||
[Test]
|
||||
public void Int64NegativeExclusiveTest()
|
||||
{
|
||||
// TODO unit test for the property 'Int64NegativeExclusive'
|
||||
}
|
||||
/// <summary>
|
||||
/// Test the property 'UnsignedInteger'
|
||||
/// </summary>
|
||||
[Test]
|
||||
public void UnsignedIntegerTest()
|
||||
{
|
||||
// TODO unit test for the property 'UnsignedInteger'
|
||||
}
|
||||
/// <summary>
|
||||
/// Test the property 'Int64'
|
||||
/// </summary>
|
||||
[Test]
|
||||
@@ -80,6 +127,14 @@ namespace Org.OpenAPITools.Test.Model
|
||||
// TODO unit test for the property 'Int64'
|
||||
}
|
||||
/// <summary>
|
||||
/// Test the property 'UnsignedLong'
|
||||
/// </summary>
|
||||
[Test]
|
||||
public void UnsignedLongTest()
|
||||
{
|
||||
// TODO unit test for the property 'UnsignedLong'
|
||||
}
|
||||
/// <summary>
|
||||
/// Test the property 'Number'
|
||||
/// </summary>
|
||||
[Test]
|
||||
@@ -183,5 +238,13 @@ namespace Org.OpenAPITools.Test.Model
|
||||
{
|
||||
// TODO unit test for the property 'PatternWithDigitsAndDelimiter'
|
||||
}
|
||||
/// <summary>
|
||||
/// Test the property 'PatternWithBackslash'
|
||||
/// </summary>
|
||||
[Test]
|
||||
public void PatternWithBackslashTest()
|
||||
{
|
||||
// TODO unit test for the property 'PatternWithBackslash'
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -54,7 +54,6 @@ namespace Org.OpenAPITools.Test.Model
|
||||
//Assert.IsType<FruitReq>(instance);
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Test the property 'Cultivar'
|
||||
/// </summary>
|
||||
|
||||
@@ -54,7 +54,6 @@ namespace Org.OpenAPITools.Test.Model
|
||||
//Assert.IsType<Fruit>(instance);
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Test the property 'Color'
|
||||
/// </summary>
|
||||
@@ -80,6 +79,14 @@ namespace Org.OpenAPITools.Test.Model
|
||||
// TODO unit test for the property 'Origin'
|
||||
}
|
||||
/// <summary>
|
||||
/// Test the property 'ColorCode'
|
||||
/// </summary>
|
||||
[Test]
|
||||
public void ColorCodeTest()
|
||||
{
|
||||
// TODO unit test for the property 'ColorCode'
|
||||
}
|
||||
/// <summary>
|
||||
/// Test the property 'LengthCm'
|
||||
/// </summary>
|
||||
[Test]
|
||||
|
||||
@@ -54,7 +54,6 @@ namespace Org.OpenAPITools.Test.Model
|
||||
//Assert.IsType<GmFruit>(instance);
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Test the property 'Color'
|
||||
/// </summary>
|
||||
@@ -80,6 +79,14 @@ namespace Org.OpenAPITools.Test.Model
|
||||
// TODO unit test for the property 'Origin'
|
||||
}
|
||||
/// <summary>
|
||||
/// Test the property 'ColorCode'
|
||||
/// </summary>
|
||||
[Test]
|
||||
public void ColorCodeTest()
|
||||
{
|
||||
// TODO unit test for the property 'ColorCode'
|
||||
}
|
||||
/// <summary>
|
||||
/// Test the property 'LengthCm'
|
||||
/// </summary>
|
||||
[Test]
|
||||
|
||||
@@ -54,25 +54,6 @@ namespace Org.OpenAPITools.Test.Model
|
||||
//Assert.IsType<GrandparentAnimal>(instance);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Test deserialize a ChildCat from type ParentPet
|
||||
/// </summary>
|
||||
[Test]
|
||||
public void ChildCatDeserializeFromParentPetTest()
|
||||
{
|
||||
// TODO uncomment below to test deserialize a ChildCat from type ParentPet
|
||||
//Assert.IsType<ParentPet>(JsonConvert.DeserializeObject<ParentPet>(new ChildCat().ToJson()));
|
||||
}
|
||||
/// <summary>
|
||||
/// Test deserialize a ParentPet from type GrandparentAnimal
|
||||
/// </summary>
|
||||
[Test]
|
||||
public void ParentPetDeserializeFromGrandparentAnimalTest()
|
||||
{
|
||||
// TODO uncomment below to test deserialize a ParentPet from type GrandparentAnimal
|
||||
//Assert.IsType<GrandparentAnimal>(JsonConvert.DeserializeObject<GrandparentAnimal>(new ParentPet().ToJson()));
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Test the property 'PetType'
|
||||
/// </summary>
|
||||
|
||||
@@ -54,7 +54,6 @@ namespace Org.OpenAPITools.Test.Model
|
||||
//Assert.IsType<HasOnlyReadOnly>(instance);
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Test the property 'Bar'
|
||||
/// </summary>
|
||||
|
||||
@@ -54,7 +54,6 @@ namespace Org.OpenAPITools.Test.Model
|
||||
//Assert.IsType<HealthCheckResult>(instance);
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Test the property 'NullableMessage'
|
||||
/// </summary>
|
||||
|
||||
@@ -54,7 +54,6 @@ namespace Org.OpenAPITools.Test.Model
|
||||
//Assert.IsType<IsoscelesTriangle>(instance);
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Test the property 'ShapeType'
|
||||
/// </summary>
|
||||
|
||||
@@ -54,14 +54,13 @@ namespace Org.OpenAPITools.Test.Model
|
||||
//Assert.IsType<List>(instance);
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Test the property '_123List'
|
||||
/// Test the property 'Var123List'
|
||||
/// </summary>
|
||||
[Test]
|
||||
public void _123ListTest()
|
||||
public void Var123ListTest()
|
||||
{
|
||||
// TODO unit test for the property '_123List'
|
||||
// TODO unit test for the property 'Var123List'
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -54,7 +54,6 @@ namespace Org.OpenAPITools.Test.Model
|
||||
//Assert.IsType<Mammal>(instance);
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Test the property 'HasBaleen'
|
||||
/// </summary>
|
||||
|
||||
@@ -54,7 +54,6 @@ namespace Org.OpenAPITools.Test.Model
|
||||
//Assert.IsType<MapTest>(instance);
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Test the property 'MapMapOfString'
|
||||
/// </summary>
|
||||
|
||||
@@ -54,7 +54,6 @@ namespace Org.OpenAPITools.Test.Model
|
||||
//Assert.IsType<MixedPropertiesAndAdditionalPropertiesClass>(instance);
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Test the property 'UuidWithPattern'
|
||||
/// </summary>
|
||||
|
||||
@@ -54,7 +54,6 @@ namespace Org.OpenAPITools.Test.Model
|
||||
//Assert.IsType<Model200Response>(instance);
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Test the property 'Name'
|
||||
/// </summary>
|
||||
|
||||
@@ -54,14 +54,13 @@ namespace Org.OpenAPITools.Test.Model
|
||||
//Assert.IsType<ModelClient>(instance);
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Test the property '_Client'
|
||||
/// Test the property 'VarClient'
|
||||
/// </summary>
|
||||
[Test]
|
||||
public void _ClientTest()
|
||||
public void VarClientTest()
|
||||
{
|
||||
// TODO unit test for the property '_Client'
|
||||
// TODO unit test for the property 'VarClient'
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -54,14 +54,13 @@ namespace Org.OpenAPITools.Test.Model
|
||||
//Assert.IsType<Name>(instance);
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Test the property '_Name'
|
||||
/// Test the property 'VarName'
|
||||
/// </summary>
|
||||
[Test]
|
||||
public void _NameTest()
|
||||
public void VarNameTest()
|
||||
{
|
||||
// TODO unit test for the property '_Name'
|
||||
// TODO unit test for the property 'VarName'
|
||||
}
|
||||
/// <summary>
|
||||
/// Test the property 'SnakeCase'
|
||||
@@ -80,12 +79,12 @@ namespace Org.OpenAPITools.Test.Model
|
||||
// TODO unit test for the property 'Property'
|
||||
}
|
||||
/// <summary>
|
||||
/// Test the property '_123Number'
|
||||
/// Test the property 'Var123Number'
|
||||
/// </summary>
|
||||
[Test]
|
||||
public void _123NumberTest()
|
||||
public void Var123NumberTest()
|
||||
{
|
||||
// TODO unit test for the property '_123Number'
|
||||
// TODO unit test for the property 'Var123Number'
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -54,7 +54,6 @@ namespace Org.OpenAPITools.Test.Model
|
||||
//Assert.IsType<NullableClass>(instance);
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Test the property 'IntegerProp'
|
||||
/// </summary>
|
||||
|
||||
@@ -54,7 +54,6 @@ namespace Org.OpenAPITools.Test.Model
|
||||
//Assert.IsType<NullableGuidClass>(instance);
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Test the property 'Uuid'
|
||||
/// </summary>
|
||||
|
||||
@@ -54,7 +54,6 @@ namespace Org.OpenAPITools.Test.Model
|
||||
//Assert.IsType<NullableShape>(instance);
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Test the property 'ShapeType'
|
||||
/// </summary>
|
||||
|
||||
@@ -54,7 +54,6 @@ namespace Org.OpenAPITools.Test.Model
|
||||
//Assert.IsType<NumberOnly>(instance);
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Test the property 'JustNumber'
|
||||
/// </summary>
|
||||
|
||||
@@ -54,7 +54,6 @@ namespace Org.OpenAPITools.Test.Model
|
||||
//Assert.IsType<ObjectWithDeprecatedFields>(instance);
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Test the property 'Uuid'
|
||||
/// </summary>
|
||||
|
||||
@@ -54,7 +54,6 @@ namespace Org.OpenAPITools.Test.Model
|
||||
//Assert.IsType<Order>(instance);
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Test the property 'Id'
|
||||
/// </summary>
|
||||
|
||||
@@ -54,7 +54,6 @@ namespace Org.OpenAPITools.Test.Model
|
||||
//Assert.IsType<OuterComposite>(instance);
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Test the property 'MyNumber'
|
||||
/// </summary>
|
||||
|
||||
@@ -54,6 +54,5 @@ namespace Org.OpenAPITools.Test.Model
|
||||
//Assert.IsType<OuterEnumDefaultValue>(instance);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@@ -54,6 +54,5 @@ namespace Org.OpenAPITools.Test.Model
|
||||
//Assert.IsType<OuterEnumIntegerDefaultValue>(instance);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@@ -54,6 +54,5 @@ namespace Org.OpenAPITools.Test.Model
|
||||
//Assert.IsType<OuterEnumInteger>(instance);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@@ -54,6 +54,5 @@ namespace Org.OpenAPITools.Test.Model
|
||||
//Assert.IsType<OuterEnum>(instance);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@@ -54,15 +54,5 @@ namespace Org.OpenAPITools.Test.Model
|
||||
//Assert.IsType<ParentPet>(instance);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Test deserialize a ChildCat from type ParentPet
|
||||
/// </summary>
|
||||
[Test]
|
||||
public void ChildCatDeserializeFromParentPetTest()
|
||||
{
|
||||
// TODO uncomment below to test deserialize a ChildCat from type ParentPet
|
||||
//Assert.IsType<ParentPet>(JsonConvert.DeserializeObject<ParentPet>(new ChildCat().ToJson()));
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@@ -54,7 +54,6 @@ namespace Org.OpenAPITools.Test.Model
|
||||
//Assert.IsType<Pet>(instance);
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Test the property 'Id'
|
||||
/// </summary>
|
||||
|
||||
@@ -54,7 +54,6 @@ namespace Org.OpenAPITools.Test.Model
|
||||
//Assert.IsType<Pig>(instance);
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Test the property 'ClassName'
|
||||
/// </summary>
|
||||
|
||||
@@ -54,6 +54,5 @@ namespace Org.OpenAPITools.Test.Model
|
||||
//Assert.IsType<PolymorphicProperty>(instance);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@@ -54,7 +54,6 @@ namespace Org.OpenAPITools.Test.Model
|
||||
//Assert.IsType<QuadrilateralInterface>(instance);
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Test the property 'QuadrilateralType'
|
||||
/// </summary>
|
||||
|
||||
@@ -54,7 +54,6 @@ namespace Org.OpenAPITools.Test.Model
|
||||
//Assert.IsType<Quadrilateral>(instance);
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Test the property 'ShapeType'
|
||||
/// </summary>
|
||||
|
||||
@@ -54,7 +54,6 @@ namespace Org.OpenAPITools.Test.Model
|
||||
//Assert.IsType<ReadOnlyFirst>(instance);
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Test the property 'Bar'
|
||||
/// </summary>
|
||||
|
||||
@@ -54,14 +54,37 @@ namespace Org.OpenAPITools.Test.Model
|
||||
//Assert.IsType<Return>(instance);
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Test the property '_Return'
|
||||
/// Test the property 'VarReturn'
|
||||
/// </summary>
|
||||
[Test]
|
||||
public void _ReturnTest()
|
||||
public void VarReturnTest()
|
||||
{
|
||||
// TODO unit test for the property '_Return'
|
||||
// TODO unit test for the property 'VarReturn'
|
||||
}
|
||||
/// <summary>
|
||||
/// Test the property 'Lock'
|
||||
/// </summary>
|
||||
[Test]
|
||||
public void LockTest()
|
||||
{
|
||||
// TODO unit test for the property 'Lock'
|
||||
}
|
||||
/// <summary>
|
||||
/// Test the property 'Abstract'
|
||||
/// </summary>
|
||||
[Test]
|
||||
public void AbstractTest()
|
||||
{
|
||||
// TODO unit test for the property 'Abstract'
|
||||
}
|
||||
/// <summary>
|
||||
/// Test the property 'Unsafe'
|
||||
/// </summary>
|
||||
[Test]
|
||||
public void UnsafeTest()
|
||||
{
|
||||
// TODO unit test for the property 'Unsafe'
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -54,7 +54,6 @@ namespace Org.OpenAPITools.Test.Model
|
||||
//Assert.IsType<ScaleneTriangle>(instance);
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Test the property 'ShapeType'
|
||||
/// </summary>
|
||||
|
||||
@@ -54,7 +54,6 @@ namespace Org.OpenAPITools.Test.Model
|
||||
//Assert.IsType<ShapeInterface>(instance);
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Test the property 'ShapeType'
|
||||
/// </summary>
|
||||
|
||||
@@ -54,7 +54,6 @@ namespace Org.OpenAPITools.Test.Model
|
||||
//Assert.IsType<ShapeOrNull>(instance);
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Test the property 'ShapeType'
|
||||
/// </summary>
|
||||
|
||||
@@ -54,7 +54,6 @@ namespace Org.OpenAPITools.Test.Model
|
||||
//Assert.IsType<Shape>(instance);
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Test the property 'ShapeType'
|
||||
/// </summary>
|
||||
|
||||
@@ -54,7 +54,6 @@ namespace Org.OpenAPITools.Test.Model
|
||||
//Assert.IsType<SimpleQuadrilateral>(instance);
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Test the property 'ShapeType'
|
||||
/// </summary>
|
||||
|
||||
@@ -54,7 +54,6 @@ namespace Org.OpenAPITools.Test.Model
|
||||
//Assert.IsType<SpecialModelName>(instance);
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Test the property 'SpecialPropertyName'
|
||||
/// </summary>
|
||||
@@ -64,12 +63,12 @@ namespace Org.OpenAPITools.Test.Model
|
||||
// TODO unit test for the property 'SpecialPropertyName'
|
||||
}
|
||||
/// <summary>
|
||||
/// Test the property '_SpecialModelName'
|
||||
/// Test the property 'VarSpecialModelName'
|
||||
/// </summary>
|
||||
[Test]
|
||||
public void _SpecialModelNameTest()
|
||||
public void VarSpecialModelNameTest()
|
||||
{
|
||||
// TODO unit test for the property '_SpecialModelName'
|
||||
// TODO unit test for the property 'VarSpecialModelName'
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -54,7 +54,6 @@ namespace Org.OpenAPITools.Test.Model
|
||||
//Assert.IsType<Tag>(instance);
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Test the property 'Id'
|
||||
/// </summary>
|
||||
|
||||
@@ -54,7 +54,6 @@ namespace Org.OpenAPITools.Test.Model
|
||||
//Assert.IsType<TriangleInterface>(instance);
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Test the property 'TriangleType'
|
||||
/// </summary>
|
||||
|
||||
@@ -54,7 +54,6 @@ namespace Org.OpenAPITools.Test.Model
|
||||
//Assert.IsType<Triangle>(instance);
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Test the property 'ShapeType'
|
||||
/// </summary>
|
||||
|
||||
@@ -54,7 +54,6 @@ namespace Org.OpenAPITools.Test.Model
|
||||
//Assert.IsType<User>(instance);
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Test the property 'Id'
|
||||
/// </summary>
|
||||
|
||||
@@ -54,7 +54,6 @@ namespace Org.OpenAPITools.Test.Model
|
||||
//Assert.IsType<Whale>(instance);
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Test the property 'HasBaleen'
|
||||
/// </summary>
|
||||
|
||||
@@ -54,7 +54,6 @@ namespace Org.OpenAPITools.Test.Model
|
||||
//Assert.IsType<Zebra>(instance);
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Test the property 'Type'
|
||||
/// </summary>
|
||||
|
||||
Reference in New Issue
Block a user