public void TextMapHelperGetColorFromMap() { tlog.Debug(tag, $"TextMapHelperGetColorFromMap START"); var stringKey = "color"; var stringInvalidKey = "invalidKey"; var intKey = 1; var value = new Color(1.0f, 0.2f, 0.5f, 1.0f); using (var map = new PropertyMap()) { map.Add(stringKey, value); map.Add(intKey, value); var result = TextMapHelper.GetColorFromMap(map, stringKey); Assert.AreEqual(true, CheckColor(value, result), "Should be true!"); result = TextMapHelper.GetColorFromMap(map, intKey); Assert.AreEqual(true, CheckColor(value, result), "Should be true!"); } tlog.Debug(tag, $"TextMapHelperGetColorFromMap END (OK)"); }