public void CorrectlyCalculateAverageScoreboardPercent_WhenAdded() { var stat = new AverageScoreboardPercent(); InitializeStat(stat); stat.Get(_dict); Assert.AreEqual((int)_dict["averageScoreboardPercent"], 75); }
public override int GetHashCode() { unchecked { var hashCode = TotalMatchesPlayed; hashCode = (hashCode * 397) ^ TotalMatchesWon; hashCode = (hashCode * 397) ^ (FavoriteServer?.GetHashCode() ?? 0); hashCode = (hashCode * 397) ^ UniqueServers; hashCode = (hashCode * 397) ^ (FavoriteGameMode?.GetHashCode() ?? 0); hashCode = (hashCode * 397) ^ AverageScoreboardPercent.GetHashCode(); hashCode = (hashCode * 397) ^ MaximumMatchesPerDay; hashCode = (hashCode * 397) ^ AverageMatchesPerDay.GetHashCode(); hashCode = (hashCode * 397) ^ LastMatchPlayed.GetHashCode(); hashCode = (hashCode * 397) ^ KillToDeathRatio.GetHashCode(); return(hashCode); } }