Ignore:
Timestamp:
05/27/14 10:44:12 (5 years ago)
Author:
epitzer
Message:

#1802 make the Number2StringSerializer accept nullable numbers

File:
1 edited

Legend:

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

    r10895 r10896  
    14641464    }
    14651465
     1466    [TestMethod]
     1467    [TestCategory("Persistence")]
     1468    [TestProperty("Time", "short")]
     1469    public void TestOptionalNumberEnumerable() {
     1470      var values = new List<double?> {0, null, double.NaN, double.PositiveInfinity, double.MaxValue, 1};
     1471      XmlGenerator.Serialize(values, tempFile);
     1472      var newValues = (List<double?>) XmlParser.Deserialize(tempFile);
     1473      CollectionAssert.AreEqual(values, newValues);
     1474    }
     1475
    14661476
    14671477    [ClassInitialize]
Note: See TracChangeset for help on using the changeset viewer.