public void ReadCollectionOfDictionaryTest() { var context = new SerializationTestContext(); var stats = context.AssertRead<CollectionOfDictionaryGraph>(3); stats.AssertVisitOrderExact(LevelType.Collection, LevelType.DictionaryInCollection, LevelType.DictionaryKey, LevelType.DictionaryValue, LevelType.DictionaryKey, LevelType.DictionaryInCollection); }
public void ReadCollectionOfComplexTest() { var context = new SerializationTestContext(); var stats = context.AssertRead<CollectionOfComplexGraph>(4); stats.AssertVisitOrderExact(LevelType.Collection, LevelType.CollectionItem, LevelType.Value, LevelType.Value, LevelType.Value, LevelType.Value, LevelType.CollectionItem); }
public void ReadDictionaryCount3WithComplexKeyAndValueTest() { var context = new SerializationTestContext(); var stats = context.AssertRead<DictionaryWithComplexKeyAndValueGraph>(15, 3); stats.AssertVisitOrderExact(LevelType.Dictionary, LevelType.DictionaryKey, LevelType.Value, LevelType.Value, LevelType.DictionaryValue, LevelType.Value, LevelType.Value, LevelType.Value, LevelType.DictionaryKey, LevelType.Value, LevelType.Value, LevelType.DictionaryValue, LevelType.Value, LevelType.Value, LevelType.Value, LevelType.DictionaryKey, LevelType.Value, LevelType.Value, LevelType.DictionaryValue, LevelType.Value, LevelType.Value, LevelType.Value, LevelType.DictionaryKey); }
public void ReadMultidimensionalArrayTest() { var context = new SerializationTestContext(); var stats = context.AssertRead<MultidimensionalArrayGraph>(2); stats.AssertVisitOrderExact(LevelType.Collection, LevelType.CollectionInCollection, LevelType.CollectionItem, LevelType.CollectionItem, LevelType.CollectionInCollection); }
public void ReadDictionaryWithDictionaryValueTest() { var context = new SerializationTestContext(); var stats = context.AssertRead<DictionaryWithDictionaryValueGraph>(5); stats.AssertVisitOrderExact(LevelType.Dictionary, LevelType.DictionaryKey, LevelType.DictionaryInDictionaryValue, LevelType.DictionaryKey, LevelType.DictionaryValue, LevelType.DictionaryKey, LevelType.DictionaryKey); }
public void ReadDictionaryWithCollectionKeyTest() { var context = new SerializationTestContext(); var stats = context.AssertRead<DictionaryWithCollectionKeyGraph>(3); stats.AssertVisitOrderExact(LevelType.Dictionary, LevelType.CollectionInDictionaryKey, LevelType.CollectionItem, LevelType.CollectionItem, LevelType.DictionaryValue, LevelType.CollectionInDictionaryKey); }