Changeset 1644 for trunk/sources/HeuristicLab.Persistence/UnitTests
- Timestamp:
- 04/23/09 17:41:55 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Persistence/UnitTests/UseCases.cs
r1625 r1644 11 11 using System.Reflection; 12 12 using HeuristicLab.Persistence.Default.Decomposers.Storable; 13 using HeuristicLab.Persistence.Interfaces; 14 using HeuristicLab.Persistence.Default.Xml.Primitive; 15 using HeuristicLab.Persistence.Default.Decomposers; 13 16 14 17 namespace HeuristicLab.Persistence.UnitTest { … … 312 315 } 313 316 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 314 330 315 331 [ClassInitialize]
Note: See TracChangeset
for help on using the changeset viewer.