public void Equals_WithNullRanking_ReturnsFalse() { var ranking1 = new CompetitionRanking { Played = 3, Points = 4, GoalsFor = 3, GoalsAgainst = 1 }; Assert.False(ranking1.Equals(null)); }
public void Equals_WithDifferentGoalDifference_ReturnsFalse() { var ranking1 = new CompetitionRanking { Played = 3, Points = 4, GoalsFor = 3, GoalsAgainst = 1 }; var ranking2 = new CompetitionRanking { Played = 3, Points = 4, GoalsFor = 3, GoalsAgainst = 2 }; Assert.False(ranking1.Equals(ranking2)); }
public void Equals_WithEqualRankings_ReturnsTrue() { var ranking1 = new CompetitionRanking { Played = 3, Points = 4, GoalsFor = 3, GoalsAgainst = 1 }; var ranking2 = new CompetitionRanking { Played = 3, Points = 4, GoalsFor = 3, GoalsAgainst = 1 }; Assert.True(ranking1.Equals(ranking2)); }