Ejemplo n.º 1
0
        public void TextShadowToPropertyValue()
        {
            tlog.Debug(tag, $"TextShadowToPropertyValue START");

            TextLabel textLabel = new TextLabel()
            {
                Text      = "TextShadowConstructor",
                Color     = Color.Green,
                PointSize = 15.0f,
            };
            PropertyMap temp = new PropertyMap();

            Tizen.NUI.Object.GetProperty((global::System.Runtime.InteropServices.HandleRef)textLabel.SwigCPtr, TextLabel.Property.SHADOW).Get(temp);

            using (TextShadow textShadow = new TextShadow(temp))
            {
                var testingTarget = TextShadow.ToPropertyValue(textShadow);
                Assert.IsNotNull(testingTarget, "Can't create success object PropertyValue");
                Assert.IsInstanceOf <PropertyValue>(testingTarget, "Should be an instance of PropertyValue type.");

                testingTarget.Dispose();
            }

            textLabel.Dispose();
            tlog.Debug(tag, $"TextShadowToPropertyValue END (OK)");
        }
Ejemplo n.º 2
0
        public void TextShadowToPropertyValueWithNullInstance()
        {
            tlog.Debug(tag, $"TextShadowToPropertyValueWithNullInstance START");

            var testingTarget = TextShadow.ToPropertyValue(null);

            Assert.IsNotNull(testingTarget, "Can't create success object PropertyValue");
            Assert.IsInstanceOf <PropertyValue>(testingTarget, "Should be an instance of PropertyValue type.");

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