Ejemplo n.º 1
0
        public void EnumeratorTest()
        {
            var blendGroup = new BlendGroup();

            Assert.AreEqual(0, blendGroup.Count());

            var animation0 = new SingleFromToByAnimation();
            var animation1 = new SingleFromToByAnimation();

            blendGroup = new BlendGroup {
                animation0, animation1
            };
            Assert.AreEqual(2, blendGroup.Count());
            Assert.AreEqual(animation0, blendGroup.ElementAt(0));
            Assert.AreEqual(animation1, blendGroup.ElementAt(1));
        }
Ejemplo n.º 2
0
        public void EnumeratorTest()
        {
            var blendGroup = new BlendGroup();
              Assert.AreEqual(0, blendGroup.Count());

              var animation0 = new SingleFromToByAnimation();
              var animation1 = new SingleFromToByAnimation();
              blendGroup = new BlendGroup { animation0, animation1 };
              Assert.AreEqual(2, blendGroup.Count());
              Assert.AreEqual(animation0, blendGroup.ElementAt(0));
              Assert.AreEqual(animation1, blendGroup.ElementAt(1));
        }