public void CloseCorrectly()
        {
            var issue = new Issue(new Project(new ApplicationUser(), "project"), "name", "description");

            issue.Closed.Should().Be(false);
            issue.Close();
            issue.Closed.Should().Be(true);
        }
        private Issue AnIssueInStatus(Issue.IssueStatus issueStatus)
        {
            var issue = new Issue("default title");

            if (issueStatus == Issue.IssueStatus.CLOSED)
            {
                issue.FixedIn(AProductVersion());
                issue.Close();
            }
            return(issue);
        }
Example #3
0
        public void CloseTest_Success()
        {
            Issue.Close();

            Assert.AreEqual(Issue.State.GetType(), typeof(CloseState));
        }