Beispiel #1
0
        public void TestRemoveEvents()
        {
            LMTimelineEvent        p1, p2, p3;
            List <LMTimelineEvent> plays = new List <LMTimelineEvent> ();
            LMProject p = CreateProject(false);

            p1 = new LMTimelineEvent();
            p2 = new LMTimelineEvent();
            p3 = new LMTimelineEvent();
            p.AddEvent(p1);
            p.AddEvent(p2);
            p.AddEvent(p3);
            plays.Add(p1);
            plays.Add(p2);
            p.RemoveEvents(plays);
            Assert.AreEqual(p.Timeline.Count, 1);
            Assert.AreEqual(p.Timeline [0], p3);
        }