Exemplo n.º 1
0
        public void UrlifyWithCharArrayOnlyReturnsCorrectString(string original, string expected)
        {
            // Arrange

            // Act
            var actual = Urlifier.UrlifyWithCharArrayOnly(original);

            // Assert
            Assert.AreEqual(expected, actual);
        }
Exemplo n.º 2
0
        public void UrlifyCustomReturnsCorrectString(string original, string expected)
        {
            // Arrange

            // Act
            var actual = Urlifier.UrlifyCustom(original);

            // Assert
            Assert.AreEqual(expected, actual);
        }
Exemplo n.º 3
0
        public void UrlifyReturnsCorrectString()
        {
            // Arrange
            var original = "Hello world";
            var expected = "Hello%20world";

            // Act
            var actual = Urlifier.UrlifyWithHelperMethod(original);

            // Assert
            Assert.AreEqual(actual, expected);
        }
Exemplo n.º 4
0
        public void UrlifyWithStringBuilderReturnsCorrectString()
        {
            // Arrange
            var original = "Hello world";
            var expected = "Hello%20world";

            // Act
            var actual = Urlifier.UrlifyWithStringBuilder(original);

            // Assert
            Assert.AreEqual(expected, actual);
        }