public void ApplyKeyWords() { //Test majority of Key Words except %%key%% Assert.AreEqual(@"AutoWikiBrowser/Sandbox AutoWikiBrowser/Sandbox AutoWikiBrowser AutoWikiBrowser Wikipedia talk Wikipedia_talk Sandbox Sandbox Wikipedia talk:AutoWikiBrowser/Sandbox Wikipedia_talk:AutoWikiBrowser/Sandbox Wikipedia talk:AutoWikiBrowser/Sandbox Wikipedia talk", Tools.ApplyKeyWords("Wikipedia talk:AutoWikiBrowser/Sandbox", @"%%pagename%% %%pagenamee%% %%basepagename%% %%basepagenamee%% %%namespace%% %%namespacee%% %%subpagename%% %%subpagenamee%% %%fullpagename%% %%fullpagenamee%% %%title%% %%namespace%%")); //Date Stuff - disabled for now // Assert.AreEqual(DateTime.Now.Day.ToString() + "\r\n" +DateTime.Now.ToString("MMM") + "\r\n" +DateTime.Now.Year.ToString(), Tools.ApplyKeyWords("n/a", @"{{CURRENTDAY}} //{{CURRENTMONTHNAME}} //{{CURRENTYEAR}}")); //Server Stuff Assert.AreEqual(@"http://en.wikipedia.org /w en.wikipedia.org", Tools.ApplyKeyWords("n/a", @"%%server%% %%scriptpath%% %%servername%%")); //%%key%%, Tools.MakeHumanCatKey() - Covered by HumanCatKeyTests Assert.AreEqual("", Tools.ApplyKeyWords("", "")); Assert.AreEqual("", Tools.ApplyKeyWords(@"%%foo%%", "")); Assert.AreEqual(@"%%foo%%", Tools.ApplyKeyWords("", @"%%foo%%")); }