Esempio n. 1
0
        public void TextUtilsEmbeddedItemInfoConstructor()
        {
            tlog.Debug(tag, $"TextUtilsEmbeddedItemInfoConstructor START");

            var testingTarget = new EmbeddedItemInfo();

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

            testingTarget.Dispose();
            tlog.Debug(tag, $"TextUtilsEmbeddedItemInfoConstructor END (OK)");
        }
Esempio n. 2
0
        public void TextUtilsEmbeddedItemInfoAngle()
        {
            tlog.Debug(tag, $"TextUtilsEmbeddedItemInfoAngle START");

            var testingTarget = new EmbeddedItemInfo();

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

            testingTarget.Angle = new Degree(30.0f);
            Assert.AreEqual(30.0f, testingTarget.Angle.Value, "Should be equal!");

            testingTarget.Dispose();
            tlog.Debug(tag, $"TextUtilsEmbeddedItemInfoAngle END (OK)");
        }
Esempio n. 3
0
        public void TextUtilsEmbeddedItemInfoGlyphIndex()
        {
            tlog.Debug(tag, $"TextUtilsEmbeddedItemInfoGlyphIndex START");

            var testingTarget = new EmbeddedItemInfo();

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

            testingTarget.GlyphIndex = 911;
            Assert.AreEqual(911, testingTarget.GlyphIndex, "Should be equal!");

            testingTarget.Dispose();
            tlog.Debug(tag, $"TextUtilsEmbeddedItemInfoGlyphIndex END (OK)");
        }
Esempio n. 4
0
        public void TextUtilsEmbeddedItemInfoRotatedSize()
        {
            tlog.Debug(tag, $"TextUtilsEmbeddedItemInfoRotatedSize START");

            var testingTarget = new EmbeddedItemInfo();

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

            testingTarget.RotatedSize = new Size(100.0f, 200.0f);
            Assert.AreEqual(100.0f, testingTarget.RotatedSize.Width, "Should be equal!");
            Assert.AreEqual(200.0f, testingTarget.RotatedSize.Height, "Should be equal!");

            testingTarget.Dispose();
            tlog.Debug(tag, $"TextUtilsEmbeddedItemInfoRotatedSize END (OK)");
        }
Esempio n. 5
0
        public void TextUtilsEmbeddedItemInfoPosition()
        {
            tlog.Debug(tag, $"TextUtilsEmbeddedItemInfoPosition START");

            var testingTarget = new EmbeddedItemInfo();

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

            testingTarget.Position = new Vector2(100.0f, 200.0f);
            Assert.AreEqual(100.0f, testingTarget.Position.X, "Should be equal!");
            Assert.AreEqual(200.0f, testingTarget.Position.Y, "Should be equal!");

            testingTarget.Dispose();
            tlog.Debug(tag, $"TextUtilsEmbeddedItemInfoPosition END (OK)");
        }
Esempio n. 6
0
        public void TextUtilsEmbeddedItemInfoColorBlendingModee()
        {
            tlog.Debug(tag, $"TextUtilsEmbeddedItemInfoColorBlendingModee START");

            var testingTarget = new EmbeddedItemInfo();

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

            testingTarget.ColorBlendingMode = Tizen.NUI.ColorBlendingMode.Multiply;
            Assert.AreEqual(Tizen.NUI.ColorBlendingMode.Multiply, testingTarget.ColorBlendingMode, "Should be equal!");

            testingTarget.ColorBlendingMode = Tizen.NUI.ColorBlendingMode.None;
            Assert.AreEqual(Tizen.NUI.ColorBlendingMode.None, testingTarget.ColorBlendingMode, "Should be equal!");

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