Changeset 11353


Ignore:
Timestamp:
09/10/14 13:10:15 (7 years ago)
Author:
epitzer
Message:

#2242 Add composite serializer for Queues and generic Queue<>s.

Location:
trunk/sources
Files:
1 added
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Persistence/3.3/HeuristicLab.Persistence-3.3.csproj

    r8641 r11353  
    143143    <Compile Include="Default\CompositeSerializers\CompactNumberArray2StringSerializer.cs" />
    144144    <Compile Include="Default\CompositeSerializers\ConcreteDictionarySerializer.cs" />
     145    <Compile Include="Default\CompositeSerializers\QueueSerializer.cs" />
    145146    <Compile Include="Default\CompositeSerializers\TupleSerializer.cs" />
    146147    <Compile Include="Default\CompositeSerializers\HashSetSerializer.cs" />
  • trunk/sources/HeuristicLab.Tests/HeuristicLab.Persistence-3.3/UseCases.cs

    r11352 r11353  
    15161516    }
    15171517
     1518    [TestMethod]
     1519    [TestCategory("Persistence")]
     1520    [TestProperty("Time", "short")]
     1521    public void TestQueue() {
     1522      var q = new Queue<int>(new[] {1, 2, 3, 4, 0});
     1523      XmlGenerator.Serialize(q, tempFile);
     1524      var newQ = (Queue<int>)XmlParser.Deserialize(tempFile);
     1525      CollectionAssert.AreEqual(q, newQ);
     1526    }
     1527
     1528
    15181529
    15191530    [ClassInitialize]
Note: See TracChangeset for help on using the changeset viewer.