public void AsInternalLink5Test() { // Arrange DokuWikiFormatter formatter = new DokuWikiFormatter(); // Act string returnstring = formatter.AsInternalLink("pagename.txt"); // Assert Assert.AreEqual("[[pagename.txt]]", returnstring); }
public void AsInternalLink2Test() { // Arrange DokuWikiFormatter formatter = new DokuWikiFormatter(); // Act string[] path = { "path1", "path2" }; string returnstring = formatter.AsInternalLink(path, "pagename.txt", "text"); // Assert Assert.AreEqual("[[path1:path2:pagename.txt|text]]", returnstring); }