Changeset 2106 for trunk/sources/HeuristicLab.Persistence/UnitTests
- Timestamp:
- 06/25/09 16:45:09 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Persistence/UnitTests/UseCases.cs
r1938 r2106 506 506 507 507 [TestMethod] 508 public void TestMultipleFailure() { 509 List<NonSerializable> l = new List<NonSerializable>(); 510 l.Add(new NonSerializable()); 511 l.Add(new NonSerializable()); 512 l.Add(new NonSerializable()); 513 try { 514 Serializer s = new Serializer(l, 515 ConfigurationService.Instance.GetConfiguration(new XmlFormat()), 516 "ROOT", true); 517 StringBuilder tokens = new StringBuilder(); 518 foreach (var token in s) { 519 tokens.Append(token.ToString()); 520 } 521 Assert.Fail("Exception expected"); 522 } catch (PersistenceException px) { 523 Assert.AreEqual(3, px.Data.Count); 524 } 525 } 526 527 [TestMethod] 508 528 public void TestAssemblyVersionCheck() { 509 529 IntWrapper i = new IntWrapper(1);
Note: See TracChangeset
for help on using the changeset viewer.