public void TextMapHelperGetOutlineMap() { tlog.Debug(tag, $"TextMapHelperGetOutlineMap START"); var outline = new Tizen.NUI.Text.Outline() { Width = 2.0f, Color = new Color("#45B39D"), }; using (PropertyMap map = TextMapHelper.GetOutlineMap(outline)) { var color = new Color(); map.Find(0, "color").Get(color); map.Find(0, "width").Get(out float width); Assert.AreEqual(width, outline.Width, "Should be equal!"); Assert.AreEqual(true, CheckColor(color, outline.Color), "Should be true!"); color.Dispose(); } tlog.Debug(tag, $"TextMapHelperGetOutlineMap END (OK)"); }
public void TextMapHelperGetOutlineMap() { tlog.Debug(tag, $"TextMapHelperGetOutlineMap START"); var outline = new Tizen.NUI.Text.Outline() { Width = 2.0f, Color = new Color("#45B39D"), }; var map = TextMapHelper.GetOutlineMap(outline); var color = new Color(); map.Find(0, "color").Get(color); map.Find(0, "width").Get(out float width); Assert.AreEqual(width, outline.Width, "Should be equal!"); Assert.AreEqual(color.R, outline.Color.R, "Should be equal!"); Assert.AreEqual(color.G, outline.Color.G, "Should be equal!"); Assert.AreEqual(color.B, outline.Color.B, "Should be equal!"); Assert.AreEqual(color.A, outline.Color.A, "Should be equal!"); tlog.Debug(tag, $"TextMapHelperGetOutlineMap END (OK)"); }