public override int GetHashCode() { unchecked { return(((Name?.GetHashCode() ?? 0) * 397) ^ KillToDeathRatio.GetHashCode()); } }
public void CorrectlyCalculateKillToDeathRatio_WhenAdded() { var stat = new KillToDeathRatio(); InitializeStat(stat); stat.Get(_dict); Assert.Less(Math.Abs((double)_dict["killToDeathRatio"] - 23 / 24.0), 10e-8); }