public void IsAwayWin_NoForfeitHomeTeamScoreGreater_ReturnsFalse() { Fixture fixture = new Fixture(homeTeamLeague, awayTeamLeague, fixtureDate, user) { IsPlayed = "Y" }; fixture.IsForfeit = false; fixture.HomeTeamScore = 20; fixture.AwayTeamScore = 10; Assert.That(fixture.IsAwayWin(), Is.False); }
public void IsAwayWin_NotPlayed_ReturnsFalse() { Fixture fixture = new Fixture() { IsPlayed = "N"}; Assert.That(fixture.IsAwayWin(), Is.False); }
public void IsAwayWin_HomeForfeits_ReturnsTrue() { Fixture fixture = new Fixture(homeTeamLeague, awayTeamLeague, fixtureDate, user) { IsPlayed = "Y" }; fixture.IsForfeit = true; fixture.ForfeitingTeam = homeTeamLeague.Team; Assert.That(fixture.IsAwayWin(), Is.True); }