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

            var testingTarget = new BoolSelector()
            {
                All = true,
            };

            Assert.IsNotNull(testingTarget, "null handle");
            Assert.IsInstanceOf <BoolSelector>(testingTarget, "Should return BoolSelector 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.Bool]'
                //  to type 'Tizen.NUI.Components.BoolSelector'

                // To fix

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