Exemple #1
0
        public void CreateInstanceTest()
        {
            var timelineClip = new TimelineClip
              {
            Timeline = new SingleFromToByAnimation(),
            ClipStart = TimeSpan.FromSeconds(0.75),
            ClipEnd = TimeSpan.FromSeconds(0.25),
              };

              var animationInstance = timelineClip.CreateInstance();
              Assert.IsNotNull(animationInstance);
              Assert.AreEqual(1, animationInstance.Children.Count);
              Assert.AreEqual(timelineClip.Timeline, animationInstance.Children[0].Animation);
              Assert.AreEqual(0, animationInstance.Children[0].Children.Count);
        }
        public void CreateInstanceTest()
        {
            var timelineClip = new TimelineClip
            {
                Timeline  = new SingleFromToByAnimation(),
                ClipStart = TimeSpan.FromSeconds(0.75),
                ClipEnd   = TimeSpan.FromSeconds(0.25),
            };

            var animationInstance = timelineClip.CreateInstance();

            Assert.IsNotNull(animationInstance);
            Assert.AreEqual(1, animationInstance.Children.Count);
            Assert.AreEqual(timelineClip.Timeline, animationInstance.Children[0].Animation);
            Assert.AreEqual(0, animationInstance.Children[0].Children.Count);
        }