public void Test_Equals_Equal() { ErrorMetric thisMetric = new ErrorMetric( new ErrorMetric.Configuration( distanceMetric: DistanceMetrics.PointToPlane, normalizePoints: true, aggregationMethod: AggregationMethods.Sum ) ); ErrorMetric otherMetric = new ErrorMetric( new ErrorMetric.Configuration( distanceMetric: DistanceMetrics.PointToPlane, normalizePoints: true, aggregationMethod: AggregationMethods.Sum ) ); Assert.IsTrue(thisMetric.Equals(otherMetric)); Assert.IsTrue(otherMetric.Equals(thisMetric)); Assert.AreEqual(thisMetric.GetHashCode(), otherMetric.GetHashCode()); }