示例#1
0
 public GitLogAnalysis()
 {
     devInformationParser     = new DevInformationParser();
     storyInformationParser   = new StoryInformationParser();
     commentInformationParser = new CommentInformationParser();
     testFilesParser          = new TestFilesParser();
 }
        public void should_parse_test_files_from_commit_information(string commitInfo, string testFiles)
        {
            TestFilesParser  parser           = new TestFilesParser();
            HashSet <string> changedtestFiles = parser.parse(commitInfo) as HashSet <string>;

            foreach (var testfile in testFiles.Split(','))
            {
                if (testfile.Equals(""))
                {
                    if (changedtestFiles != null)
                    {
                        Assert.Equal(changedtestFiles.Count, 0);
                    }
                }
                else
                {
                    Assert.True(changedtestFiles != null && changedtestFiles.Contains(testfile));
                }
            }
        }