Additional unit tests for the Json Serialization

To cover the recent changes to the return code from containers and the initialization fixes additional unit tests were added. Almost all new tests are part of the conformity test suite so that they test any custom json serializers outside of AzCore that might need to be updated due to the fixes.
This commit is contained in:
AMZN-koppersr
2021-06-15 14:02:54 -07:00
parent 780dd0df9f
commit 8af45d28be
7 changed files with 384 additions and 68 deletions
@@ -168,6 +168,10 @@ namespace JsonSerializationTests
{
features.EnableJsonType(rapidjson::kObjectType);
features.m_typeToInject = rapidjson::kNullType;
// The type information in the Serialize Context is incomplete so this test will fail.
// This is because assets have traditionally been treated as a special case, so there's
// information missing in the Json Serialization to deal with these.
features.m_enableNewInstanceTests = false;
}
bool AreEqual(const Asset& lhs, const Asset& rhs) override