public void OpenIssuesAreLessThenClosed() { int open = issuesPage.GetOpenIssuesCount(); int closed = issuesPage.GetClosedIssuesCount(); Assert.IsTrue(open < closed, "Open issues are more than opened!"); }
public void OpenIssuesAreLessThenClosed() { IssuesPage issues = new IssuesPage(this.driver); int open = issues.GetOpenIssuesCount(); int closed = issues.GetClosedIssuesCount(); Assert.IsTrue(open < closed, "Open issues are more than opened!"); }
public void OpenIssuesCountIsCorrect() { IssuesPage issuesPage = new IssuesPage(this.driver); IssuesAPI issuesAPI = new IssuesAPI(); int openUI = issuesPage.GetOpenIssuesCount(); int openAPI = issuesAPI.GetAllIssues(organization: "dtopuzov", repository: "test", options: "state=open").Count; Assert.AreEqual(openUI, openAPI, "API and UI report different issues count!"); }