Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
02/04/11 08:58:28 (14 years ago)
Author:
epitzer
Message:

Force default config for test cases (#1408)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Persistence/3.3/Tests/UseCases.cs

    r5403 r5424  
    11371137      dictionaries[1].Add(5, 5);
    11381138      dictionaries[1].Add(6, 6);
    1139       XmlGenerator.Serialize(dictionaries, tempFile);
     1139      XmlGenerator.Serialize(dictionaries, tempFile, ConfigurationService.Instance.GetDefaultConfig(new XmlFormat()));
    11401140      var newDictionaries = XmlParser.Deserialize<List<Dictionary<int, int>>>(tempFile);
    11411141      Assert.IsTrue(newDictionaries[0].ContainsKey(1));
     
    11511151      Assert.IsTrue(newDictionaries[1].ContainsValue(5));
    11521152      Assert.IsTrue(newDictionaries[1].ContainsValue(6));
    1153       Assert.AreEqual(newDictionaries[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());
    11551155    }
    11561156
Note: See TracChangeset for help on using the changeset viewer.