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

            var testingTarget = new ScaleTransition();

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

            testingTarget.Dispose();
            tlog.Debug(tag, $"ScaleTransitionConstructor END (OK)");
        }
Exemple #2
0
        public void ScaleTransitionScaleFactor()
        {
            tlog.Debug(tag, $"ScaleTransitionScaleFactor START");

            var testingTarget = new ScaleTransition();

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

            using (Vector2 sf = new Vector2(100.0f, 200.0f))
            {
                testingTarget.ScaleFactor = sf;
                tlog.Debug(tag, "Opacity : " + testingTarget.ScaleFactor);
            }

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