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

            var testingTarget = new TransitionComponents();

            Assert.IsNotNull(testingTarget, "null handle");
            Assert.IsInstanceOf <TransitionComponents>(testingTarget, "Should return TransitionComponents instance.");

            Assert.AreEqual(100, testingTarget.GetDuration(), "should be equal!");

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

            AlphaFunction        alphaFunction        = new AlphaFunction(AlphaFunction.BuiltinFunctions.Linear);
            TransitionComponents transitionComponents = new TransitionComponents(0, 64, alphaFunction);

            var testingTarget = new LayoutTransition();

            Assert.IsNotNull(testingTarget, "null handle");
            Assert.IsInstanceOf <LayoutTransition>(testingTarget, "Should return LayoutTransition instance.");

            testingTarget.Animator = transitionComponents;
            Assert.AreEqual(testingTarget.Animator.GetDuration(), transitionComponents.GetDuration(), "Should be value set.");
            Assert.AreEqual(testingTarget.Animator.GetDelay(), transitionComponents.GetDelay(), "Should be value set.");

            tlog.Debug(tag, $"LayoutTransitionAnimator END (OK)");
        }