- Timestamp:
- 02/04/11 08:58:28 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Persistence/3.3/Tests/UseCases.cs
r5403 r5424 1137 1137 dictionaries[1].Add(5, 5); 1138 1138 dictionaries[1].Add(6, 6); 1139 XmlGenerator.Serialize(dictionaries, tempFile );1139 XmlGenerator.Serialize(dictionaries, tempFile, ConfigurationService.Instance.GetDefaultConfig(new XmlFormat())); 1140 1140 var newDictionaries = XmlParser.Deserialize<List<Dictionary<int, int>>>(tempFile); 1141 1141 Assert.IsTrue(newDictionaries[0].ContainsKey(1)); … … 1151 1151 Assert.IsTrue(newDictionaries[1].ContainsValue(5)); 1152 1152 Assert.IsTrue(newDictionaries[1].ContainsValue(6)); 1153 Assert.AreEqual(new Dictionaries[0].Comparer.GetType(), new Dictionary<int, int>().Comparer.GetType());1154 Assert.AreEqual( newDictionaries[1].Comparer.GetType(), typeof(IdentityComparer<int>));1153 Assert.AreEqual(new Dictionary<int, int>().Comparer.GetType(), newDictionaries[0].Comparer.GetType()); 1154 Assert.AreEqual(typeof(IdentityComparer<int>), newDictionaries[1].Comparer.GetType()); 1155 1155 } 1156 1156
Note: See TracChangeset
for help on using the changeset viewer.