public void LottieSwitchExtensionOnCreateIcon()
        {
            tlog.Debug(tag, $"LottieSwitchExtensionOnCreateIcon START");

            var testingTarget = new LottieSwitchExtensionImpl();

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

            LottieButtonStyle style  = new LottieButtonStyle();
            Button            button = new Button(style as ButtonStyle)
            {
                Size = new Size(100, 80),
            };

            ImageView icon = new ImageView()
            {
                ResourceUrl = image_path,
            };

            var result = testingTarget.OnCreateIcon(button, icon);

            Assert.IsNotNull(result, "null handle");
            Assert.IsInstanceOf <ImageView>(result, "Should return LottieSwitchExtension instance.");

            icon.Dispose();
            button.Dispose();
            result.Dispose();
            tlog.Debug(tag, $"LottieSwitchExtensionOnCreateIcon END (OK)");
        }
        public void LottieSwitchExtensionOnControlStateChanged()
        {
            tlog.Debug(tag, $"LottieSwitchExtensionOnControlStateChanged START");

            var testingTarget = new LottieSwitchExtensionImpl();

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

            LottieButtonStyle style  = new LottieButtonStyle();
            Button            button = new Button(style as ButtonStyle)
            {
                Size = new Size(100, 80),
            };

            ControlStateChangedEventArgs args = new ControlStateChangedEventArgs(ControlState.Focused, ControlState.Selected);

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

            button.Dispose();
            tlog.Debug(tag, $"LottieSwitchExtensionOnControlStateChanged END (OK)");
        }