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

            FontWeightType fontWeightType;

            fontWeightType = TextMapHelper.GetFontWeightType("Light");
            Assert.AreEqual(FontWeightType.Light, fontWeightType, "Should be equal!");

            fontWeightType = TextMapHelper.GetFontWeightType("InvalidType");
            Assert.AreEqual(FontWeightType.None, fontWeightType, "If invalid type, should be None type!");

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