Example #1
0
        public void TransitionGroupAddTransition()
        {
            tlog.Debug(tag, $"TransitionGroupAddTransition START");

            var testingTarget = new TransitionGroup();

            Assert.IsNotNull(testingTarget, "Return a null object of FontClient");
            Assert.IsInstanceOf <TransitionGroup>(testingTarget, "Should be an instance of TransitionGroup type.");

            try
            {
                using (TransitionBase tb = new TransitionBase())
                {
                    tb.TimePeriod    = new TimePeriod(300);
                    tb.AlphaFunction = new AlphaFunction(AlphaFunction.BuiltinFunctions.Bounce);

                    testingTarget.AddTransition(tb);
                }
            }
            catch (Exception e)
            {
                tlog.Debug(tag, e.Message.ToString());
                Assert.Fail("Caught Exception : Failed!");
            }

            testingTarget.Dispose();
            tlog.Debug(tag, $"TransitionGroupAddTransition END (OK)");
        }
Example #2
0
        public void TransitionGroupConstructor()
        {
            tlog.Debug(tag, $"TransitionGroupConstructor START");

            var testingTarget = new TransitionGroup();

            Assert.IsNotNull(testingTarget, "Return a null object of FontClient");
            Assert.IsInstanceOf <TransitionGroup>(testingTarget, "Should be an instance of TransitionGroup type.");

            testingTarget.UseGroupTimePeriod = true;
            tlog.Debug(tag, "UseGroupTimePeriod : " + testingTarget.UseGroupTimePeriod);

            testingTarget.StepTransition = true;
            tlog.Debug(tag, "StepTransition : " + testingTarget.StepTransition);

            testingTarget.UseGroupAlphaFunction = true;
            tlog.Debug(tag, "UseGroupAlphaFunction : " + testingTarget.UseGroupAlphaFunction);

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