public void IsAwayTeam_PassHomeTeam_False() { TeamLeague homeTeamLeague = new TeamLeague() { Id = 1 }; TeamLeague awayTeamLeague = new TeamLeague() { Id = 2 }; Fixture f = new Fixture() { HomeTeamLeague = homeTeamLeague, AwayTeamLeague = awayTeamLeague}; Assert.That(f.IsAwayTeam(homeTeamLeague), Is.False); }
public void IsAwayTeam_NullTeamLeague_ThrowsArgumentException() { Fixture f = new Fixture(); Assert.Throws<ArgumentException>(() => f.IsAwayTeam(null)); }