public void should_get_comment_info_from_commmit(string commitInfo, string comment) { GitLogAnalysis analysis = new GitLogAnalysis(); analysis.GetParseCommitInformation(new CommitBlockInfo { CommitInfo = commitInfo, ParseInfo = "" }); Assert.Equal(comment, analysis.GetCommentFromCommit()); }
public void should_recogenize_dev_story_comment_from_commit(string commitInfo, string devs, string story, string comment) { GitLogAnalysis analysis = new GitLogAnalysis(); analysis.GetParseCommitInformation(new CommitBlockInfo { CommitInfo = commitInfo, ParseInfo = "" }); foreach (var dev in devs.Split(',')) { Assert.True(analysis.GetDevs().Contains(dev)); } Assert.Equal(story, analysis.GetStoryNum()); Assert.Equal(comment, analysis.GetComment()); }