public void UrlifyWithCharArrayOnlyReturnsCorrectString(string original, string expected) { // Arrange // Act var actual = Urlifier.UrlifyWithCharArrayOnly(original); // Assert Assert.AreEqual(expected, actual); }
public void UrlifyCustomReturnsCorrectString(string original, string expected) { // Arrange // Act var actual = Urlifier.UrlifyCustom(original); // Assert Assert.AreEqual(expected, actual); }
public void UrlifyReturnsCorrectString() { // Arrange var original = "Hello world"; var expected = "Hello%20world"; // Act var actual = Urlifier.UrlifyWithHelperMethod(original); // Assert Assert.AreEqual(actual, expected); }
public void UrlifyWithStringBuilderReturnsCorrectString() { // Arrange var original = "Hello world"; var expected = "Hello%20world"; // Act var actual = Urlifier.UrlifyWithStringBuilder(original); // Assert Assert.AreEqual(expected, actual); }