Ejemplo n.º 1
0
        public void VisualAnimatorConstructor()
        {
            tlog.Debug(tag, $"VisualAnimatorConstructor START");

            var testingTarget = new VisualAnimator();

            Assert.IsNotNull(testingTarget, "Can't create success object VisualAnimator");
            Assert.IsInstanceOf <VisualAnimator>(testingTarget, "Should be an instance of VisualAnimator type.");

            testingTarget.Dispose();
            tlog.Debug(tag, $"VisualAnimatorConstructor END (OK)");
        }
Ejemplo n.º 2
0
        public void VisualAnimatorStartTime()
        {
            tlog.Debug(tag, $"VisualAnimatorStartTime START");

            var testingTarget = new VisualAnimator();

            Assert.IsNotNull(testingTarget, "Can't create success object VisualAnimator");
            Assert.IsInstanceOf <VisualAnimator>(testingTarget, "Should be an instance of VisualAnimator type.");

            testingTarget.StartTime = 10;
            Assert.AreEqual(10, testingTarget.StartTime, "Retrieved StartTime should be equal to set value");

            testingTarget.Dispose();
            tlog.Debug(tag, $"VisualAnimatorStartTime END (OK)");
        }
Ejemplo n.º 3
0
        public void VisualAnimatorAlphaFunction()
        {
            tlog.Debug(tag, $"VisualAnimatorAlphaFunction START");

            var testingTarget = new VisualAnimator();

            Assert.IsNotNull(testingTarget, "Can't create success object VisualAnimator");
            Assert.IsInstanceOf <VisualAnimator>(testingTarget, "Should be an instance of VisualAnimator type.");

            testingTarget.AlphaFunction = AlphaFunction.BuiltinFunctions.EaseIn;
            Assert.AreEqual(AlphaFunction.BuiltinFunctions.EaseIn, testingTarget.AlphaFunction, "Retrieved AlphaFunction should be equal to set value");

            testingTarget.Dispose();
            tlog.Debug(tag, $"VisualAnimatorAlphaFunction END (OK)");
        }
Ejemplo n.º 4
0
        public void VisualAnimatorPropertyIndex()
        {
            tlog.Debug(tag, $"VisualAnimatorPropertyIndex START");

            var testingTarget = new VisualAnimator();

            Assert.IsNotNull(testingTarget, "Can't create success object VisualAnimator");
            Assert.IsInstanceOf <VisualAnimator>(testingTarget, "Should be an instance of VisualAnimator type.");

            testingTarget.PropertyIndex = "MixColor";
            Assert.AreEqual("MixColor", testingTarget.PropertyIndex, "Retrieved PropertyIndex should be equal to set value");

            testingTarget.Dispose();
            tlog.Debug(tag, $"VisualAnimatorPropertyIndex END (OK)");
        }
Ejemplo n.º 5
0
        public void VisualAnimatorTarget()
        {
            tlog.Debug(tag, $"VisualAnimatorTarget START");

            var testingTarget = new VisualAnimator();

            Assert.IsNotNull(testingTarget, "Can't create success object VisualAnimator");
            Assert.IsInstanceOf <VisualAnimator>(testingTarget, "Should be an instance of VisualAnimator type.");

            testingTarget.Target = "IconVisual";
            Assert.AreEqual("IconVisual", testingTarget.Target, "Retrieved Target should be equal to set value");

            testingTarget.Dispose();
            tlog.Debug(tag, $"VisualAnimatorTarget END (OK)");
        }
Ejemplo n.º 6
0
        public void VisualAnimatorDestinationValue()
        {
            tlog.Debug(tag, $"VisualAnimatorDestinationValue START");

            var testingTarget = new VisualAnimator();

            Assert.IsNotNull(testingTarget, "Can't create success object VisualAnimator");
            Assert.IsInstanceOf <VisualAnimator>(testingTarget, "Should be an instance of VisualAnimator type.");

            using (Color color = new Color(1.0f, 0.0f, 1.0f, 1.0f))
            {
                testingTarget.DestinationValue = color;
                Assert.IsTrue(color.Equals(testingTarget.DestinationValue), "Retrieved DestinationValue should be equal to set value");
            }

            testingTarget.Dispose();
            tlog.Debug(tag, $"VisualAnimatorDestinationValue END (OK)");
        }