public void SummaryForProjectTest()
        {
            IssuePriorityReport target = new IssuePriorityReport(); // TODO: Initialize to an appropriate value
            Project project = new Project(1, "Test", DateTime.Now, DateTime.Now.AddDays(1), "", "", "", DateTime.Now.AddDays(1));

            TableRow[] result = target.SummaryForProject(null);
            Assert.AreEqual(result.Length, 0);

            result = target.SummaryForProject(project);
            Assert.AreEqual(result.Length, 5);
            Assert.AreEqual("Issues by Priority", result[0].Cells[0].Text);
            Assert.AreEqual("Priority", result[1].Cells[0].Text);
            Assert.AreEqual("Count", result[1].Cells[1].Text);
            Assert.AreEqual("High", result[2].Cells[0].Text);
            Assert.AreEqual("Medium", result[3].Cells[0].Text);
            Assert.AreEqual("Low", result[4].Cells[0].Text);
            Assert.AreEqual("0", result[2].Cells[1].Text);
            Assert.AreEqual("0", result[3].Cells[1].Text);
            Assert.AreEqual("0", result[4].Cells[1].Text);

            project.AddIssue(CreateIssue(Issue.IssuePriority.High));
            result = target.SummaryForProject(project);
            Assert.AreEqual("1", result[2].Cells[1].Text);

            project.AddIssue(CreateIssue(Issue.IssuePriority.Medium));
            result = target.SummaryForProject(project);
            Assert.AreEqual("1", result[3].Cells[1].Text);

            project.AddIssue(CreateIssue(Issue.IssuePriority.Low));
            result = target.SummaryForProject(project);
            Assert.AreEqual("1", result[4].Cells[1].Text);
        }
 public void IssuePriorityReportConstructorTest()
 {
     IssuePriorityReport target = new IssuePriorityReport();
     Assert.IsInstanceOfType(target, typeof(IssuePriorityReport));
 }