public static void TestParsePermissiveMarkup(string text) { var msg = FormattedMessage.FromMarkupPermissive(text); Assert.That( string.Join("", msg.Tags.Cast <FormattedMessage.TagText>().Select(p => p.Text)), NUnit.Framework.Is.EqualTo(text)); }
public GhostRoleRulesWindow(string rules, Action <BaseButton.ButtonEventArgs> requestAction) { RobustXamlLoader.Load(this); TopBanner.SetMessage(FormattedMessage.FromMarkupPermissive(rules + "\n" + Loc.GetString("ghost-roles-window-rules-footer"))); RequestButton.OnPressed += requestAction; }