Skip to content
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 @@ -40,6 +40,8 @@ namespace {{packageName}}.Test.Model
// Cleanup when everything is done.
}

{{#lambda.trimTrailingWhiteSpace}}
{{#lambda.trimLineBreaks}}
/// <summary>
/// Test an instance of {{classname}}
/// </summary>
Expand All @@ -52,6 +54,7 @@ namespace {{packageName}}.Test.Model

{{#discriminator}}
{{#children}}

/// <summary>
/// Test deserialize a {{classname}} from type {{parent}}
/// </summary>
Expand All @@ -61,22 +64,21 @@ namespace {{packageName}}.Test.Model
// TODO uncomment below to test deserialize a {{classname}} from type {{parent}}
//Assert.IsType<{{parent}}>(JsonConvert.DeserializeObject<{{parent}}>(new {{classname}}().ToJson()));
}

{{/children}}
{{/discriminator}}

{{#vars}}


/// <summary>
/// Test the property '{{name}}'
/// </summary>
[Fact]
public void {{name}}Test()
{
// TODO unit test for the property '{{name}}'
}
{{/vars}}

}{{/vars}}{{/lambda.trimLineBreaks}}{{/lambda.trimTrailingWhiteSpace}}
}

}
{{/model}}
{{/models}}
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,6 @@ public void ActivityOutputElementRepresentationInstanceTest()
//Assert.IsType<ActivityOutputElementRepresentation>(instance);
}


/// <summary>
/// Test the property 'Prop1'
/// </summary>
Expand All @@ -62,6 +61,7 @@ public void Prop1Test()
{
// TODO unit test for the property 'Prop1'
}

/// <summary>
/// Test the property 'Prop2'
/// </summary>
Expand All @@ -70,7 +70,5 @@ public void Prop2Test()
{
// TODO unit test for the property 'Prop2'
}

}

}
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,6 @@ public void ActivityInstanceTest()
//Assert.IsType<Activity>(instance);
}


/// <summary>
/// Test the property 'ActivityOutputs'
/// </summary>
Expand All @@ -62,7 +61,5 @@ public void ActivityOutputsTest()
{
// TODO unit test for the property 'ActivityOutputs'
}

}

}
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,6 @@ public void AdditionalPropertiesClassInstanceTest()
//Assert.IsType<AdditionalPropertiesClass>(instance);
}


/// <summary>
/// Test the property 'EmptyMap'
/// </summary>
Expand All @@ -62,6 +61,7 @@ public void EmptyMapTest()
{
// TODO unit test for the property 'EmptyMap'
}

/// <summary>
/// Test the property 'MapOfMapProperty'
/// </summary>
Expand All @@ -70,6 +70,7 @@ public void MapOfMapPropertyTest()
{
// TODO unit test for the property 'MapOfMapProperty'
}

/// <summary>
/// Test the property 'MapProperty'
/// </summary>
Expand All @@ -78,6 +79,7 @@ public void MapPropertyTest()
{
// TODO unit test for the property 'MapProperty'
}

/// <summary>
/// Test the property 'MapWithUndeclaredPropertiesAnytype1'
/// </summary>
Expand All @@ -86,6 +88,7 @@ public void MapWithUndeclaredPropertiesAnytype1Test()
{
// TODO unit test for the property 'MapWithUndeclaredPropertiesAnytype1'
}

/// <summary>
/// Test the property 'MapWithUndeclaredPropertiesAnytype2'
/// </summary>
Expand All @@ -94,6 +97,7 @@ public void MapWithUndeclaredPropertiesAnytype2Test()
{
// TODO unit test for the property 'MapWithUndeclaredPropertiesAnytype2'
}

/// <summary>
/// Test the property 'MapWithUndeclaredPropertiesAnytype3'
/// </summary>
Expand All @@ -102,6 +106,7 @@ public void MapWithUndeclaredPropertiesAnytype3Test()
{
// TODO unit test for the property 'MapWithUndeclaredPropertiesAnytype3'
}

/// <summary>
/// Test the property 'MapWithUndeclaredPropertiesString'
/// </summary>
Expand All @@ -110,6 +115,7 @@ public void MapWithUndeclaredPropertiesStringTest()
{
// TODO unit test for the property 'MapWithUndeclaredPropertiesString'
}

/// <summary>
/// Test the property 'Anytype1'
/// </summary>
Expand All @@ -118,7 +124,5 @@ public void Anytype1Test()
{
// TODO unit test for the property 'Anytype1'
}

}

}
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ 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>
Expand All @@ -80,6 +81,7 @@ public void ClassNameTest()
{
// TODO unit test for the property 'ClassName'
}

/// <summary>
/// Test the property 'Color'
/// </summary>
Expand All @@ -88,7 +90,5 @@ public void ColorTest()
{
// TODO unit test for the property 'Color'
}

}

}
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,6 @@ public void ApiResponseInstanceTest()
//Assert.IsType<ApiResponse>(instance);
}


/// <summary>
/// Test the property 'Code'
/// </summary>
Expand All @@ -62,6 +61,7 @@ public void CodeTest()
{
// TODO unit test for the property 'Code'
}

/// <summary>
/// Test the property 'Message'
/// </summary>
Expand All @@ -70,6 +70,7 @@ public void MessageTest()
{
// TODO unit test for the property 'Message'
}

/// <summary>
/// Test the property 'Type'
/// </summary>
Expand All @@ -78,7 +79,5 @@ public void TypeTest()
{
// TODO unit test for the property 'Type'
}

}

}
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,6 @@ public void AppleReqInstanceTest()
//Assert.IsType<AppleReq>(instance);
}


/// <summary>
/// Test the property 'Cultivar'
/// </summary>
Expand All @@ -62,6 +61,7 @@ public void CultivarTest()
{
// TODO unit test for the property 'Cultivar'
}

/// <summary>
/// Test the property 'Mealy'
/// </summary>
Expand All @@ -70,7 +70,5 @@ public void MealyTest()
{
// TODO unit test for the property 'Mealy'
}

}

}
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,6 @@ public void AppleInstanceTest()
//Assert.IsType<Apple>(instance);
}


/// <summary>
/// Test the property 'Cultivar'
/// </summary>
Expand All @@ -62,6 +61,7 @@ public void CultivarTest()
{
// TODO unit test for the property 'Cultivar'
}

/// <summary>
/// Test the property 'Origin'
/// </summary>
Expand All @@ -70,7 +70,5 @@ public void OriginTest()
{
// TODO unit test for the property 'Origin'
}

}

}
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,6 @@ public void ArrayOfArrayOfNumberOnlyInstanceTest()
//Assert.IsType<ArrayOfArrayOfNumberOnly>(instance);
}


/// <summary>
/// Test the property 'ArrayArrayNumber'
/// </summary>
Expand All @@ -62,7 +61,5 @@ public void ArrayArrayNumberTest()
{
// TODO unit test for the property 'ArrayArrayNumber'
}

}

}
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,6 @@ public void ArrayOfNumberOnlyInstanceTest()
//Assert.IsType<ArrayOfNumberOnly>(instance);
}


/// <summary>
/// Test the property 'ArrayNumber'
/// </summary>
Expand All @@ -62,7 +61,5 @@ public void ArrayNumberTest()
{
// TODO unit test for the property 'ArrayNumber'
}

}

}
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,6 @@ public void ArrayTestInstanceTest()
//Assert.IsType<ArrayTest>(instance);
}


/// <summary>
/// Test the property 'ArrayArrayOfInteger'
/// </summary>
Expand All @@ -62,6 +61,7 @@ public void ArrayArrayOfIntegerTest()
{
// TODO unit test for the property 'ArrayArrayOfInteger'
}

/// <summary>
/// Test the property 'ArrayArrayOfModel'
/// </summary>
Expand All @@ -70,6 +70,7 @@ public void ArrayArrayOfModelTest()
{
// TODO unit test for the property 'ArrayArrayOfModel'
}

/// <summary>
/// Test the property 'ArrayOfString'
/// </summary>
Expand All @@ -78,7 +79,5 @@ public void ArrayOfStringTest()
{
// TODO unit test for the property 'ArrayOfString'
}

}

}
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,6 @@ public void BananaReqInstanceTest()
//Assert.IsType<BananaReq>(instance);
}


/// <summary>
/// Test the property 'LengthCm'
/// </summary>
Expand All @@ -62,6 +61,7 @@ public void LengthCmTest()
{
// TODO unit test for the property 'LengthCm'
}

/// <summary>
/// Test the property 'Sweet'
/// </summary>
Expand All @@ -70,7 +70,5 @@ public void SweetTest()
{
// TODO unit test for the property 'Sweet'
}

}

}
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,6 @@ public void BananaInstanceTest()
//Assert.IsType<Banana>(instance);
}


/// <summary>
/// Test the property 'LengthCm'
/// </summary>
Expand All @@ -62,7 +61,5 @@ public void LengthCmTest()
{
// TODO unit test for the property 'LengthCm'
}

}

}
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,6 @@ public void BasquePigInstanceTest()
//Assert.IsType<BasquePig>(instance);
}


/// <summary>
/// Test the property 'ClassName'
/// </summary>
Expand All @@ -62,7 +61,5 @@ public void ClassNameTest()
{
// TODO unit test for the property 'ClassName'
}

}

}
Loading