Beispiel #1
0
        public void OpenIssuesCountIsCorrect()
        {
            IssuesAPI issuesAPI = new IssuesAPI();
            int       openUI    = issuesPage.GetOpenIssuesCount();
            int       openAPI   = issuesAPI.GetAllIssues(organization: User, repository: Repo, options: "state=open").Count;

            Assert.AreEqual(openUI, openAPI, "API and UI report different issues count!");
        }
        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!");
        }
        public static void ClassSetup(TestContext testContext)
        {
            issuesAPI = new IssuesAPI();

            // Make sure all issues are closed before test run
            var openIssues = issuesAPI.GetAllIssues(organization: "dtopuzov", repository: "test", options: "state=open");

            foreach (var issue in openIssues)
            {
                var updatedIssue = issuesAPI.CloseIssue(organization: "dtopuzov", repository: "test", number: issue.number);
                Assert.AreEqual("closed", updatedIssue.state, "Failed to close issue " + issue.number.ToString());
            }
        }
        public void GetAllIssues()
        {
            var issues = issuesAPI.GetAllIssues(organization: "dtopuzov", repository: "test");

            Assert.IsTrue(issues.Count > 0, "Issues count is less then expected!");
        }
Beispiel #5
0
        public void GetAllIssues()
        {
            var issues = issuesAPI.GetAllIssues(organization: User, repository: Repo);

            Assert.IsTrue(issues.Count > 0, "Issues count is less then expected!");
        }