Changeset 1822 for trunk/sources
- Timestamp:
- 05/15/09 11:26:25 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Persistence/UnitTests/UseCases.cs
r1795 r1822 68 68 } 69 69 70 }71 72 public class EventTest {73 public delegate object Filter(object o);74 public event Filter OnChange;75 [Storable]76 private Delegate[] OnChangeListener {77 get { return OnChange.GetInvocationList(); }78 set {79 foreach (Delegate d in value) {80 OnChange += (Filter)d;81 }82 }83 }84 70 } 85 71 … … 392 378 393 379 [TestMethod] 394 public void BinaryFormatTest() {395 Root r = new Root();396 Assert.Fail("Not Implemented");397 //BinaryGenerator.Serialize(r, "test.bin");398 }399 400 401 [TestMethod]402 380 public void PrimitiveRoot() { 403 381 XmlGenerator.Serialize(12.3f, tempFile); … … 465 443 466 444 [TestMethod] 467 public void Events() {468 EventTest et = new EventTest();469 et.OnChange += (o) => o;470 XmlGenerator.Serialize(et, tempFile);471 EventTest newEt = (EventTest)XmlParser.Deserialize(tempFile);472 }473 474 [TestMethod]475 445 public void Enums() { 476 446 EnumTest et = new EnumTest();
Note: See TracChangeset
for help on using the changeset viewer.