Example #1
0
        public void TextShadowCloneWithTextShadow()
        {
            tlog.Debug(tag, $"TextShadowCloneWithTextShadow 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);

            try
            {
                TextShadow.Clone(new TextShadow(temp));
            }
            catch (Exception e)
            {
                tlog.Debug(tag, e.Message.ToString());
                Assert.Fail("Caught Exception: Failed!");
            }

            textLabel.Dispose();
            tlog.Debug(tag, $"TextShadowCloneWithTextShadow END (OK)");
        }
Example #2
0
        public void TextShadowCloneWithNullTextShadow()
        {
            tlog.Debug(tag, $"TextShadowCloneWithNullTextShadow START");

            TextShadow textShadow    = null;
            var        testingTarget = TextShadow.Clone(textShadow);

            Assert.IsNull(testingTarget);

            tlog.Debug(tag, $"TextShadowCloneWithNullTextShadow END (OK)");
        }
Example #3
0
        public void TextShadowClone()
        {
            tlog.Debug(tag, $"TextShadowClone START");

            using (Vector2 vector = new Vector2(1.5f, 3.0f))
            {
                using (TextShadow textShadow = new TextShadow(Color.Cyan, vector, 0.3f))
                {
                    try
                    {
                        textShadow.Clone();
                    }
                    catch (Exception e)
                    {
                        tlog.Debug(tag, e.Message.ToString());
                        Assert.Fail("Caught Exception: Failed!");
                    }
                }
            }

            tlog.Debug(tag, $"TextShadowClone END (OK)");
        }
Example #4
0
        public static void TextShadowCloneWithTextShadow()
        {
            tlog.Debug(tag, $"TextShadowCloneWithTextShadow START");

            using (Vector2 vector = new Vector2(1.5f, 3.0f))
            {
                using (TextShadow textShadow = new TextShadow(new Tizen.NUI.Color("#C3CAD5FF"), vector, 0.3f))
                {
                    try
                    {
                        TextShadow.Clone(textShadow);
                    }
                    catch (Exception e)
                    {
                        tlog.Debug(tag, e.Message.ToString());
                        Assert.Fail("Caught Exception: Failed!");
                    }
                }
            }

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