コード例 #1
0
ファイル: TSLottieSwitchStyle.cs プロジェクト: wonrst/TizenFX
        public void LottieSwitchStyleConstructorWithLottieSwitchStyle()
        {
            tlog.Debug(tag, $"LottieSwitchStyleConstructorWithLottieSwitchStyle START");

            var style = new LottieSwitchStyle()
            {
                BackgroundColor = Color.Cyan
            };

            var testingTarget = new LottieSwitchStyle(style);

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

            testingTarget.LottieUrl = lottie_url;
            tlog.Debug(tag, "LottieUrl : " + testingTarget.LottieUrl);

            LottieFrameInfo            info     = new LottieFrameInfo(0, 100);
            Selector <LottieFrameInfo> selector = new Selector <LottieFrameInfo>(info);

            testingTarget.PlayRange = info;
            tlog.Debug(tag, "PlayRange : " + testingTarget.PlayRange);

            tlog.Debug(tag, $"LottieSwitchStyleConstructorWithLottieSwitchStyle END (OK)");
        }
コード例 #2
0
ファイル: TSLottieSwitchStyle.cs プロジェクト: wonrst/TizenFX
        public void LottieSwitchStyleCopyFrom()
        {
            tlog.Debug(tag, $"LottieSwitchStyleCopyFrom START");

            LottieFrameInfo            info     = new LottieFrameInfo(0, 100);
            Selector <LottieFrameInfo> selector = new Selector <LottieFrameInfo>(info);

            var style = new LottieSwitchStyle()
            {
                BackgroundColor = Color.Cyan,
                LottieUrl       = lottie_url,
                PlayRange       = info
            };

            var testingTarget = new LottieSwitchStyle();

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

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

            tlog.Debug(tag, $"LottieSwitchStyleCopyFrom END (OK)");
        }
コード例 #3
0
ファイル: TSLottieSwitchStyle.cs プロジェクト: wonrst/TizenFX
        public void LottieSwitchStyleConstructor()
        {
            tlog.Debug(tag, $"LottieSwitchStyleConstructor START");

            var testingTarget = new LottieSwitchStyle();

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

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