Exemplo n.º 1
0
        public void DeleteChannel()
        {
            Project proj;

            OpenXUK(out proj, mDefaultFile);
            ChannelsManager chMgr = proj.Presentations.Get(0).ChannelsManager;
            Channel         ch    = (Channel)chMgr.ManagedObjects.Get(0);

            chMgr.RemoveManagedObject(ch);
            chMgr.AddManagedObject(ch);
            urakawa.examples.CollectMediaFromChannelTreeNodeVisitor collVis
                = new urakawa.examples.CollectMediaFromChannelTreeNodeVisitor(ch);
            proj.Presentations.Get(0).RootNode.AcceptDepthFirst(collVis);
            Assert.AreEqual(
                0, collVis.CollectedMedia.Length,
                "The channel unexpectedly contained media after being deleted and re-added");
        }