public void IsHomeForfeit_IsForfeitTrueHomeIdMatches_ReturnsTrue() { Fixture fixture = new Fixture(homeTeamLeague, awayTeamLeague, fixtureDate, user) { IsPlayed = "Y" }; fixture.IsForfeit = true; fixture.ForfeitingTeam = homeTeamLeague.Team; Assert.That(fixture.IsHomeForfeit(), Is.True); }
public void IsHomeForfeit_NotPlayed_ReturnsFalse() { Fixture fixture = new Fixture() { IsPlayed = "N" }; fixture.IsForfeit = true; Assert.That(fixture.IsHomeForfeit(), Is.False); }
public void IsHomeForfeit_IsForfeitFalse_ReturnsFalse() { Fixture fixture = new Fixture(homeTeamLeague, awayTeamLeague, fixtureDate, user) { IsPlayed = "Y" }; fixture.IsForfeit = false; Assert.That(fixture.IsHomeForfeit(), Is.False); }