Exemplo n.º 1
0
 public void BasePageName()
 {
     Assert.AreEqual("", Tools.BasePageName(""));
     Assert.AreEqual("Foo", Tools.BasePageName("Foo"));
     Assert.AreEqual("Foo", Tools.BasePageName("Project:Foo"));
     Assert.AreEqual("Foo", Tools.BasePageName("Foo/Bar"));
     Assert.AreEqual("Foo", Tools.BasePageName("Foo/Bar/Boz"));
     Assert.AreEqual("Foo", Tools.BasePageName("Project:Foo/Bar/Boz"));
 }