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

            var testingTarget = new TextEditor(true);

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

            var setOutline = new Tizen.NUI.Text.Outline()
            {
                Width = 2.0f,
                Color = Color.Red,
            };

            testingTarget.SetOutline(setOutline);

            var getOutline = testingTarget.GetOutline();

            Assert.AreEqual(getOutline.Width, setOutline.Width, "Should be equal!");
            Assert.AreEqual(true, CheckColor(getOutline.Color, setOutline.Color), "Should be true!");

            testingTarget.Dispose();
            tlog.Debug(tag, $"TextEditorGetOutline END (OK)");
        }
Beispiel #2
0
        public void OutlineEquals()
        {
            tlog.Debug(tag, $"OutlineEquals START");

            var outline = new Tizen.NUI.Text.Outline();

            Assert.IsNotNull(outline, "Can't create success object strikethrough");
            Assert.IsInstanceOf <Tizen.NUI.Text.Outline>(outline, "Should be an instance of outline type.");

            var compare = new Tizen.NUI.Text.Outline();

            Assert.IsTrue(outline == compare, "Should be true!");
            Assert.AreEqual(outline.GetHashCode(), compare.GetHashCode(), "Should be true!");

            compare.Width = 2.0f;
            Assert.IsTrue(outline != compare, "Should be true!");

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