public void FindIssuesByUserTest()
 {
     IssuesByUser_Accessor target = new IssuesByUser_Accessor(); // TODO: Initialize to an appropriate value
     Project project = CreateSecondTestProject();
     Dictionary<string, int> issuesByUser = target.FindIssuesByUser(project);
     Assert.AreEqual(issuesByUser["User1"], 1);
     Assert.AreEqual(issuesByUser["User2"], 2);
 }
        public void SortIssuesForDisplayTest()
        {
            IssuesByUser_Accessor target = new IssuesByUser_Accessor();
            Project project = CreateSecondTestProject();
            Dictionary<string, int> dictionary = target.FindIssuesByUser(project);
            List<KeyValuePair<string, int>> actual = target.SortIssuesForDisplay(dictionary);
            Assert.AreEqual(dictionary.Keys.Count, actual.Count);
            Assert.AreEqual(2, actual.Count);
            Assert.IsTrue(actual[0].Value > actual[1].Value);

            project = CreateThirdTestProject();
            dictionary = target.FindIssuesByUser(project);
            actual = target.SortIssuesForDisplay(dictionary);
            Assert.AreEqual(3, actual.Count);
            Assert.IsTrue(actual[0].Value > actual[1].Value);
            Assert.IsTrue(actual[1].Value == actual[2].Value);
            Assert.IsTrue(actual[1].Key.CompareTo(actual[2].Key) < 0);
        }