Exemplo n.º 1
0
        public void TestClone_CloneIgnore_TimelineEvent()
        {
            var timelineEvent = new TimelineEvent();

            timelineEvent.IsLoaded   = false;
            timelineEvent.DocumentID = Guid.NewGuid().ToString("N");
            timelineEvent.ParentID   = Guid.NewGuid();
            timelineEvent.Project    = new DummyProject();
            timelineEvent.IsLoaded   = true;
            timelineEvent.Start      = new Time(1000);

            var timelineEvent2 = timelineEvent.Clone();

            Assert.AreEqual(timelineEvent.IsLoaded, timelineEvent2.IsLoaded);
            Assert.AreEqual(timelineEvent.DocumentID, timelineEvent2.DocumentID);
            Assert.AreEqual(timelineEvent.ParentID, timelineEvent2.ParentID);
            Assert.AreEqual(timelineEvent.Project, timelineEvent2.Project);
        }