public void SummaryForProjectTest()
        {
            IssuesByUser target = new IssuesByUser();
            Project project = null;
            TableRow[] actual = target.SummaryForProject(project);
            Assert.AreEqual(actual.Length, 0);

            project = new Project(1, "Test", DateTime.Now.Subtract(TimeSpan.FromDays(5)), DateTime.Now, "Status", "Description", "Category", DateTime.Now);
            actual = target.SummaryForProject(project);
            Assert.AreEqual(actual.Length, 0);

            project = CreateInitialProject();
            actual = target.SummaryForProject(project);
            Assert.AreEqual(3, actual.Length);
            Assert.AreEqual("User1", actual[2].Cells[0].Text);
            Assert.AreEqual("1", actual[2].Cells[1].Text);

            project = CreateSecondTestProject();
            actual = target.SummaryForProject(project);
            Assert.AreEqual(actual.Length, 4);
            Assert.AreEqual(actual[2].Cells[0].Text, "User2");
            Assert.AreEqual(actual[2].Cells[1].Text, "2");
            Assert.AreEqual(actual[3].Cells[0].Text, "User1");
            Assert.AreEqual(actual[3].Cells[1].Text, "1");
        }
 public void IssuesByUserConstructorTest()
 {
     IssuesByUser target = new IssuesByUser();
     Assert.IsInstanceOfType(target, typeof(IssuesByUser));
     Assert.IsInstanceOfType(target, typeof(SummaryBase));
 }