コード例 #1
0
        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" });
        }
コード例 #2
0
 static string FromTalk(string title)
 {
     return(Tools.ConvertFromTalk(new Article(title)));
 }
コード例 #3
0
        string FromTalk(string title)
        {
            Article a = new Article(title);

            return(Tools.ConvertFromTalk(a));
        }