public void GetPageContent_DownloadValidPage_ResultStringNotEmpty() { APIWebService webService = new APIWebService("https://threema.ch"); Assert.IsTrue(webService.Execute()); Assert.IsNotEmpty(webService.GetPageContent()); }
public void Execute_GiveInvalidUrl_DownloadDoesntWork() { APIWebService webService = new APIWebService("https://HappyLittleBugs.what/"); Assert.IsFalse(webService.Execute()); }
public void Execute_GiveValidUrl_DownloadWorks() { APIWebService webService = new APIWebService("https://threema.ch/"); Assert.IsTrue(webService.Execute()); }