public void Given_NoPointSystem_When_GetPointsFor_Then_ZeroIsReturned() { //Act var teamLiverpool = new Team { Name = "Liverpool" }; var match = new TeamLeagueMatch(); //Assert match.GetPointsFor(teamLiverpool, null).Should().Be(0); }
public void Given_NoMatchEntries_When_GetPointsFor_Then_ZeroIsReturned() { //Act var teamLiverpool = new Team { Name = "Liverpool" }; var match = new TeamLeagueMatch(); var pointSystem = new PointSystem(3, 1, 0); //Assert match.GetPointsFor(teamLiverpool, pointSystem).Should().Be(0); }
public void Given_Lost_When_GetPointsFor_Then_LostPointsAreReturned() { //Act var teamLiverpool = new Team { Name = "Liverpool" }; var teamChelsea = new Team { Name = "Chelsea" }; var match = new TeamLeagueMatch { MatchEntries = new List <TeamMatchEntry> { new TeamMatchEntry { HomeAway = HomeAway.Home, Team = teamLiverpool, Score = new IntegerScore { Value = 1 } }, new TeamMatchEntry { HomeAway = HomeAway.Away, Team = teamChelsea, Score = new IntegerScore { Value = 2 } } } }; var pointSystem = new PointSystem(3, 1, 0); //Assert match.GetPointsFor(teamLiverpool, pointSystem).Should().Be(0); }