public void AsImage7Test() { // Arrange DokuWikiFormatter formatter = new DokuWikiFormatter(); // Act string returnstring = formatter.AsImage("filename.jpg", 50, 100); // Assert Assert.AreEqual("{{filename.jpg?50x100}}", returnstring); }
public void AsImage12Test() { // Arrange DokuWikiFormatter formatter = new DokuWikiFormatter(); // Act string returnstring = formatter.AsImage("filename.jpg", "text"); // Assert Assert.AreEqual("{{filename.jpg|text}}", returnstring); }
public void AsImage6Test() { // Arrange DokuWikiFormatter formatter = new DokuWikiFormatter(); // Act string[] path = { "path1", "path2" }; string returnstring = formatter.AsImage(path, "filename.jpg", "text"); // Assert Assert.AreEqual("{{path1:path2:filename.jpg|text}}", returnstring); }