示例#1
0
        public void CenterEquality_SameCenters_DiffLocObjectsNotEqual_ReturnsFalse()
        {
            var mainlocation = new VoronoiPoint(5, 7);
            var sut          = new Centers(2, mainlocation);
            var test         = new Centers(7, new VoronoiPoint(7, 5));

            Assert.IsFalse(sut.Equals(test));
        }
示例#2
0
        public void CenterEquality_SameCenters_SameLocObjectsEqual_ReturnsTrue()
        {
            var mainlocation = new VoronoiPoint(5, 7);
            var sut          = new Centers(2, mainlocation);
            var test         = new Centers(7, mainlocation);

            Assert.IsTrue(sut.Equals(test));
        }