Exemplo n.º 1
0
        public void GetPageContent_DownloadValidPage_ResultStringNotEmpty()
        {
            APIWebService webService = new APIWebService("https://threema.ch");

            Assert.IsTrue(webService.Execute());
            Assert.IsNotEmpty(webService.GetPageContent());
        }
Exemplo n.º 2
0
        public void Execute_GiveInvalidUrl_DownloadDoesntWork()
        {
            APIWebService webService = new APIWebService("https://HappyLittleBugs.what/");

            Assert.IsFalse(webService.Execute());
        }
Exemplo n.º 3
0
        public void Execute_GiveValidUrl_DownloadWorks()
        {
            APIWebService webService = new APIWebService("https://threema.ch/");

            Assert.IsTrue(webService.Execute());
        }