Пример #1
0
        public void encodeThedecodedTinyURL_ReturnsOriginalURL()
        {
            var TinyURLInput = "www.google/aaa/bbb";

            Assert.Equal("www.google/aaa/bbb", TinyURL.Decode(TinyURL.Encode(TinyURLInput)));
        }
Пример #2
0
        public void LeetCodeTest()
        {
            var TinyURLInput = "http://www.leetcode.com/faq/?id=10";

            Assert.Equal("http://www.leetcode.com/faq/?id=10", TinyURL.Decode(TinyURL.Encode(TinyURLInput)));
        }
Пример #3
0
        public void encodingURL_ReturnsANonEmptyString()
        {
            var URL = "www.google.com/tests";

            Assert.NotEqual(string.Empty, TinyURL.Encode(URL));
        }