public void IsHomeTeam_PassHomeTeam_True() { TeamLeague homeTeamLeague = new TeamLeague() { Id = 1 }; TeamLeague awayTeamLeague = new TeamLeague() { Id = 2 }; Fixture f = new Fixture() { HomeTeamLeague = homeTeamLeague, AwayTeamLeague = awayTeamLeague}; Assert.That(f.IsHomeTeam(homeTeamLeague), Is.True); }
public void IsHomeTeam_NullTeamLeague_ThrowsArgumentException() { Fixture f = new Fixture(); Assert.Throws<ArgumentException>(() => f.IsHomeTeam(null)); }