public void ItShouldRemoveTheTrailingSlash(string inputUrl, string expectedUrl)
        {
            var result = FacebookWebUtils.RemoveTrailingSlash(inputUrl);

            Assert.Equal(expectedUrl, result);
        }
        public void ItShouldBeTheSameAsInput(string input, string expected)
        {
            var result = FacebookWebUtils.RemoveTrailingSlash(input);

            Assert.Equal(expected, result);
        }
예제 #3
0
        public void ItShouldReturnEmptyString()
        {
            var result = FacebookWebUtils.RemoveTrailingSlash("");

            Assert.Equal(string.Empty, result);
        }
예제 #4
0
        public void TheResultShouldBeEmptyString()
        {
            var result = FacebookWebUtils.RemoveTrailingSlash("/");

            Assert.Equal(string.Empty, result);
        }