Пример #1
0
        public void MapsWithinMapsTestJson()
        {
            TranslationS    test   = MapsWithinMaps.CreateObject();
            SimplTypesScope tScope = SimplTypesScope.Get("testScope", typeof(TranslationS),
                                                         typeof(ClassDes),
                                                         typeof(FieldDes));

            TestMethods.TestSimplObject(test, tScope, Format.Json);
        }
Пример #2
0
        public void MapsWithSimplValuesCompareCorrectly()
        {
            var instanceOne = MapsWithinMaps.CreateObject();
            var instanceTwo = MapsWithinMaps.CreateObject();

            var instanceOneDictionary = instanceOne.entriesByTag;
            var instanceTwoDictionary = instanceTwo.entriesByTag;

            TestMethods.AssertSimplTypesEqual(instanceOneDictionary, instanceTwoDictionary, "Dictionaries should be the same");
            TestMethods.AssertSimplTypesEqual(instanceOne, instanceTwo, "Instances should be the same.");
        }