Пример #1
0
        public void Decompress__Https_Varstudio_Net()
        {
            Dictionary <string, string> hostConversions = GenerateHostsConversions();
            string url           = "https://varstudio.net";
            string compressedUrl = "5B1u05oK";

            string result = UrlCompressor.Decompress(compressedUrl, hostConversions);

            Assert.Equal(url, result);
        }
Пример #2
0
        public void Decompress__Http_Localhost_30000_1()
        {
            Dictionary <string, string> hostConversions = GenerateHostsConversions();
            string url           = "http://localhost:30000|0";
            string compressedUrl = "0fT4k50uE3WwvqMB42";

            string result = UrlCompressor.Decompress(compressedUrl, hostConversions);

            Assert.Equal(url, result);
        }
Пример #3
0
        public void Decompress__Https_Unifikas_Azurewebsites_Net_2()
        {
            Dictionary <string, string> hostConversions = GenerateHostsConversions();
            string url           = "https://unifikas.azurewebsites.net|2";
            string compressedUrl = "7B54q0pvLPKC";

            string result = UrlCompressor.Decompress(compressedUrl, hostConversions);

            Assert.Equal(url, result);
        }
Пример #4
0
        public void Decompress__Https_Github_Com_Kableado()
        {
            Dictionary <string, string> hostConversions = GenerateHostsConversions();
            string url           = "https://github.com/Kableado";
            string compressedUrl = "JzJv5CTnllbrEVp1BhF";

            string result = UrlCompressor.Decompress(compressedUrl, hostConversions);

            Assert.Equal(url, result);
        }
Пример #5
0
        public void Decompress__Https_Twitter_Com_Kableado()
        {
            Dictionary <string, string> hostConversions = GenerateHostsConversions();
            string url           = "https://twitter.com/Kableado";
            string compressedUrl = "zYfD7gXd8ApW9HZtR4";

            string result = UrlCompressor.Decompress(compressedUrl, hostConversions);

            Assert.Equal(url, result);
        }
Пример #6
0
        public void Decompress__Https_Twitter_Com()
        {
            Dictionary <string, string> hostConversions = GenerateHostsConversions();
            string url           = "https://twitter.com";
            string compressedUrl = "bpzuhuDB1";

            string result = UrlCompressor.Decompress(compressedUrl, hostConversions);

            Assert.Equal(url, result);
        }
Пример #7
0
        public void Decompress__Https_Facebook_Com()
        {
            Dictionary <string, string> hostConversions = GenerateHostsConversions();
            string url           = "https://facebook.com";
            string compressedUrl = "2AyutHOa0";

            string result = UrlCompressor.Decompress(compressedUrl, hostConversions);

            Assert.Equal(url, result);
        }
Пример #8
0
        public void Decompress__Https_Google_Com()
        {
            Dictionary <string, string> hostConversions = GenerateHostsConversions();
            string url           = "https://google.com";
            string compressedUrl = "oMyuFVR41";

            string result = UrlCompressor.Decompress(compressedUrl, hostConversions);

            Assert.Equal(url, result);
        }