Exemplo n.º 1
0
        public void ToTalkOnList()
        {
            List <Article> l = new List <Article>();

            l.Add(new Article("Foo"));
            l.Add(new Article("Talk:Foo bar"));
            l.Add(new Article("File:Foo"));
            CollectionAssert.AreEquivalent(Tools.ConvertToTalk(l),
                                           new[] { "Talk:Foo", "Talk:Foo bar", "File talk:Foo" });
        }
Exemplo n.º 2
0
 static string ToTalk(string title)
 {
     return(Tools.ConvertToTalk(new Article(title)));
 }
Exemplo n.º 3
0
        string ToTalk(string title)
        {
            Article a = new Article(title);

            return(Tools.ConvertToTalk(a));
        }