Select format does not seem to work correctly with text containing url. Formatter always returns default string no matter what arguments are passed. No exception or any other form of a warning is raised.
public void UrlTest()
{
var mf= new MessageFormatter(locale: "en-US");
IDictionary<string, object> dict = new Dictionary<string, object>
{
["cond"] = "foo"
};
Assert.Equal("https://www.google.com/", mf.FormatMessage("{cond, select, foo{https://www.google.com/} other{https://www.bing.com/}}", dict));
}
Select format does not seem to work correctly with text containing url. Formatter always returns default string no matter what arguments are passed. No exception or any other form of a warning is raised.
Formatter should either format the string correctly or throw an exception.