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

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

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

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