public void WhenEmailNotForActiveDeveloper_ShouldReturnZero() { // arrange var repoPath = TestRepoPath("git-test-operations"); var author = new Author { Name = "no-one", Emails = new List <string> { "*****@*****.**" } }; var sut = new SourceControlAnalysisBuilder() .WithPath(repoPath) .Build(); // act var actual = sut.Period_Active_Days(author); // assert var expected = 0; actual.Should().Be(expected); }
public void WhenMaster_ShouldReturnActiveDays(DateTime start, DateTime end, int expected) { // arrange var repoPath = TestRepoPath("git-test-operations"); var author = new Author { Name = "T-rav", Emails = new List <string> { "*****@*****.**" } }; var sut = new SourceControlAnalysisBuilder() .WithRange(start, end) .WithPath(repoPath) .Build(); // act var actual = sut.Period_Active_Days(author); // assert actual.Should().Be(expected); }