public void FromTalkOnList() { List <Article> l = new List <Article>(); l.Add(new Article("Foo")); l.Add(new Article("Talk:Foo bar")); l.Add(new Article("User talk:Foo")); CollectionAssert.AreEquivalent(Tools.ConvertFromTalk(l), new[] { "Foo", "Foo bar", "User:Foo" }); }
static string FromTalk(string title) { return(Tools.ConvertFromTalk(new Article(title))); }
string FromTalk(string title) { Article a = new Article(title); return(Tools.ConvertFromTalk(a)); }