Ejemplo n.º 1
0
 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);
 }
Ejemplo n.º 2
0
 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);
 }
Ejemplo n.º 3
0
 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);
 }
Ejemplo n.º 4
0
 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);
 }
Ejemplo n.º 5
0
 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);
 }
Ejemplo n.º 6
0
 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);
 }