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

            var map = new PropertyMap();

            map.Add("width", new PropertyValue("expanded"));
            map.Add("weight", new PropertyValue("bold"));
            map.Add("slant", new PropertyValue("italic"));

            FontStyle fontStyle = TextMapHelper.GetFontStyleStruct(map);

            Assert.AreEqual(FontWidthType.Expanded, fontStyle.Width, "Should be equal!");
            Assert.AreEqual(FontWeightType.Bold, fontStyle.Weight, "Should be equal!");
            Assert.AreEqual(FontSlantType.Italic, fontStyle.Slant, "Should be equal!");

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