public void HeatAnalyzerRepoTest() { using (var repo = new GitRepository(defaultRepo, "repoName")) { var ha = new HeatAnalyzer(repo); Assert.IsNotNull(ha); repo.DeleteRepository(); } }
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(); } }
public void HeatAnalyzerGetCommitsForUserTest() { using (var repo = new GitRepository(defaultRepo, "repoName")) { var ha = new HeatAnalyzer(repo); var userCommits = ha.GetUserCommits("Maksym Chernenko"); Assert.IsNotNull(userCommits); CollectionAssert.AllItemsAreUnique(userCommits); repo.DeleteRepository(); } }
public void HeatAnalyzerGetFilesForCommitTest() { using (var repo = new GitRepository(defaultRepo, "repoName")) { var ha = new HeatAnalyzer(repo); var commit = repo.GetCommits().First(); var files = ha.GetFilesForCommit(commit); var modifiedFiles = ha.GetModifiedFilesForCommit(commit); Assert.IsNotNull(files); CollectionAssert.AllItemsAreUnique(files); Assert.IsNotNull(modifiedFiles); CollectionAssert.AllItemsAreUnique(modifiedFiles); repo.DeleteRepository(); } }
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(); } }
public void HeatAnalyzerNullTest() { var ha = new HeatAnalyzer(null); }