Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
04/23/09 17:41:55 (16 years ago)
Author:
epitzer
Message:

support for default disabled decomposers, re-activate number2string decomposer with negative priority. (#548)

File:
1 edited

Legend:

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

    r1625 r1644  
    1111using System.Reflection;
    1212using HeuristicLab.Persistence.Default.Decomposers.Storable;
     13using HeuristicLab.Persistence.Interfaces;
     14using HeuristicLab.Persistence.Default.Xml.Primitive;
     15using HeuristicLab.Persistence.Default.Decomposers;
    1316
    1417namespace HeuristicLab.Persistence.UnitTest {
     
    312315    }
    313316
     317    [TestMethod]
     318    public void Number2StringDecomposer() {
     319      PrimitivesTest sdt = new PrimitivesTest();
     320      XmlGenerator.Serialize(sdt, tempFile,
     321        new Configuration(new XmlFormat(),
     322          new Dictionary<Type, IFormatter> { { typeof(string), new String2XmlFormatter() } },
     323          new List<IDecomposer> { new Number2StringDecomposer() }));
     324      object o = XmlParser.DeSerialize(tempFile);     
     325      Assert.AreEqual(
     326        DebugStringGenerator.Serialize(sdt),
     327        DebugStringGenerator.Serialize(o));
     328    }
     329
    314330
    315331    [ClassInitialize]
Note: See TracChangeset for help on using the changeset viewer.