public void TestSerialization() { LMProject p = new LMProject(); Utils.CheckSerialization(p); p = CreateProject(); Utils.CheckSerialization(p); p.AddEvent(new LMTimelineEvent()); Utils.CheckSerialization(p); LMProject newp = Utils.SerializeDeserialize(p); Assert.AreEqual(newp.CompareTo(p), 0); Assert.AreEqual(newp.Timeline.Count, p.Timeline.Count); }