- Timestamp:
- 05/27/14 10:13:24 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Tests/HeuristicLab.Persistence-3.3/UseCases.cs
r9778 r10895 1441 1441 } 1442 1442 1443 [TestMethod] 1444 [TestCategory("Persistence")] 1445 [TestProperty("Time", "short")] 1446 public void TestSpecialCharacters() { 1447 var s = "abc" + "\x15" + "def"; 1448 XmlGenerator.Serialize(s, tempFile); 1449 var newS = XmlParser.Deserialize(tempFile); 1450 Assert.AreEqual(s, newS); 1451 } 1452 1453 [TestMethod] 1454 [TestCategory("Persistence")] 1455 [TestProperty("Time", "short")] 1456 public void TestByteArray() { 1457 var b = new byte[3]; 1458 b[0] = 0; 1459 b[1] = 200; 1460 b[2] = byte.MaxValue; 1461 XmlGenerator.Serialize(b, tempFile); 1462 var newB = (byte[]) XmlParser.Deserialize(tempFile); 1463 CollectionAssert.AreEqual(b, newB); 1464 } 1465 1466 1443 1467 [ClassInitialize] 1444 1468 public static void Initialize(TestContext testContext) {
Note: See TracChangeset
for help on using the changeset viewer.