示例#1
0
        public void HeatAnalyzerGetUsersTest()
        {
            using (var repo = new GitRepository(defaultRepo, "repoName"))
            {
                var ha = new HeatAnalyzer(repo);
                var users = ha.GetUsers();
                Assert.IsNotNull(users);
                CollectionAssert.AllItemsAreUnique(users);

                repo.DeleteRepository();
            }
        }
示例#2
0
 public void RoslynTest()
 {
     using (var repo = new GitRepository(roslynRepo, "roslyn"))
     {
         //repo.GetLatestChanges();
         var ha = new HeatAnalyzer(repo);
         var users = ha.GetUsers();
         Assert.IsNotNull(users);
         var userCommits = ha.GetUserCommits(users.First().Name);
         Assert.IsNotNull(userCommits);
         CollectionAssert.AllItemsAreUnique(userCommits);
         repo.DeleteRepository();
     }
 }