示例#1
0
        public void ColorSelectorClone()
        {
            tlog.Debug(tag, $"StringSelectorClone START");

            var testingTarget = new ColorSelector()
            {
                All = new Color(0.43f, 0.43f, 0.43f, 0.1f),
            };

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

            try
            {
                var result = testingTarget.Clone();
                tlog.Debug(tag, "result : " + result);
            }
            catch (Exception)
            {
                //  System.InvalidCastException : Unable to cast object
                //  of type 'Tizen.NUI.BaseComponents.Selector`1[Tizen.NUI.Color]'
                //  to type 'Tizen.NUI.Components.ColorSelector'

                // To fix

                tlog.Debug(tag, $"ColorSelectorClone END (OK)");
                Assert.Pass("Passed!");
            }
        }