Exemplo n.º 1
0
        public void GetHashCodeTest3()
        {
            var pointA = new Point(0, (1 << 16) + 1);
            var pointB = new Point(0, 1);

            Assert.AreNotEqual(PointExtensions.GetHashCode(pointA), PointExtensions.GetHashCode(pointB));
        }
Exemplo n.º 2
0
        public void GetHashCodeTest1()
        {
            Point point    = new Point();
            int   expected = 0;
            int   actual;

            actual = PointExtensions.GetHashCode(point);
            Assert.AreEqual(expected, actual);
        }