Example #1
0
        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));
        }
Example #2
0
 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;
 }