public void GetHashCodeTest()
        {
            var range0 = new DoubleRange(-1.2, +3.4);
            var range1 = new DoubleRange(-1.2, +3.4);
            var range2 = new DoubleRange(-1.2, +3.5);

            Assert.AreNotEqual(0, range0.GetHashCode());
            Assert.AreEqual(range0.GetHashCode(), range1.GetHashCode());
            Assert.AreNotEqual(range0.GetHashCode(), range2.GetHashCode());
        }
Beispiel #2
0
        public void GetHashCodeTest()
        {
            var range0 = new DoubleRange(-1.2, +3.4);
            var range1 = new DoubleRange(-1.2, +3.4);
            var range2 = new DoubleRange(-1.2, +3.5);

            Assert.AreNotEqual(0, range0.GetHashCode());
            Assert.AreEqual(range0.GetHashCode(), range1.GetHashCode());
            Assert.AreNotEqual(range0.GetHashCode(), range2.GetHashCode());
        }