Ejemplo n.º 1
0
        public void Verify_hash_code()
        {
            var dataPoint = new DoubleDataPoint(0.8, 0.2);
            var hashCode  = dataPoint.GetHashCode();

            Assert.AreEqual(562847809, hashCode);
        }
Ejemplo n.º 2
0
        public void Verify_hash_code_with_parameter()
        {
            var dataPoint1 = new DoubleDataPoint(0.8, 0.2);
            var dataPoint2 = new DoubleDataPoint(0.6, 0.12);
            var hashCode   = dataPoint1.GetHashCode(dataPoint2);

            Assert.AreEqual(-1439151695, hashCode);
        }