Пример #1
0
        public void TextMapHelperGetFontStyleMap()
        {
            tlog.Debug(tag, $"TextMapHelperGetFontStyleMap START");

            var fontStyle = new Tizen.NUI.Text.FontStyle()
            {
                Width  = FontWidthType.Expanded,
                Weight = FontWeightType.Bold,
                Slant  = FontSlantType.Italic
            };

            var map = TextMapHelper.GetFontStyleMap(fontStyle);

            map["width"].Get(out string width);
            map["weight"].Get(out string weight);
            map["slant"].Get(out string slant);

            Assert.AreEqual("expanded", width, "Should be equal!");
            Assert.AreEqual("bold", weight, "Should be equal!");
            Assert.AreEqual("italic", slant, "Should be equal!");

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