Beispiel #1
0
        public void GetTeletextSiteTest()
        {
            Service target = new Service();
            int number = 241;
            string expected = "data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAZAAAAEUCAMAAAAyQJAwAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAYUExURQAAAP8AAAD/AP//AAAA//8A/wD//////xXcNfcAAAAJcEhZcwAADsMAAA7DAcdvqGQAABkcSURBVHhe7V2JkuQoDp2I2d3+/z/eyuTQ9SSEjZ3OLiompjNtIcR7OsBQrn/+6T//+Ut+/nz1D/HxD+ajjc67G7H4588nOHb4KKaUm+1fLkr3SI7u9xZMi4Sm6DVtGwL99sBdEoQwUA3CMeRPIqQg2v5fiWHgNLK4HOeDUyn5pBaoLZN9f0S+wDmaI8Q4/PcQwkIDR4BASsGmYisKMA35lYSYoBRR3kbMgvtNV+Gs321fr0tmQU7IpCyc0kRLQIjGvfNyASHEQwW3/dPQFrg3BgoLxAf6fg0pPiHCV7SYhRRXGJh2RIkRdaqOsdO8NmWxstXql2CFUVAJqC2o/n0wQgiLmZwjpwG4DkTpjmYRF9QQVjLKnEL9zxDSZh7U8HOExCFA1Rb6cJiyZAuX7WsJYQkpSFl/egnp6akGyzXpCtXr3iGYxLJJD6ovNqYQqCoT1q/iH2q2IGWxelzLCWGKynabUvL4oWss1V3ECa4hbD3AVwtEQ+WSrxs6XaxFuNIINavs7ZS64bT3GtSuXKEEs6wvuHU/ITQ9voZru+b7AhrIxPsJuYiGv0XtxYRkU1NWDsAOlpxi3iBTN1upPpPCY4TQim8wKjFPDmSPE0LTaPSp1Oy2KLVL1eeRcoyQ9DiyQGflbMdohcMo6K6D6UoP5DbBISF8imsnwGw6q26WZWPzz+6o7CJfvXc5tlzpfg00Ez4xIaP4uQ3ndEcJQhow2otl3vIShkKYLRS5PhshaSjDGsK1NO+4/llBGn0geIwQETZ8NUQkmWGrdVF77Nhaa9vShNSVWtMnLeBRKB+NHk+SZ+Aetz1EiASbPdXq4HB4qhGdkGZUH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CCelluYaI4UBEA+mDyQoUBhaFbC/l3rVkofYphFC6BoRQTmr+iAhBNHjVAxbrqlRU8t8UIRxA5ouGEMIEfaIaMkNI8CyWch6vT6szk6vvkxHC6zZVU3JQW8B7OWaOa6q/KsxtHtAhQDWdJgcqpn5ThNzmdF/V0Scj5KuAusvY/wOadxzc6K1U/wAAAABJRU5ErkJggg==";

            string actual = target.GetTeletextSite(number);
            Assert.AreEqual(expected, actual);
        }
Beispiel #2
0
 public void GetTeletextSiteTest()
 {
     Service target = new Service();
     int number = 101;
     string expected = System.Convert.ToBase64String(Helper.GetImageFromURL(string.Format("http://www.teletext.ch/pics/SF1/{0}-{1}.gif", number, "00")));
     string actual;
     actual = target.GetTeletextSite(number);
     Assert.AreEqual(expected, actual);
 }