예제 #1
0
        public void CenterEquality_SameCenters_HashTheSameasLocation()
        {
            var mainlocation = new VoronoiPoint(5, 7);
            var sut          = new Centers(2, mainlocation);

            Assert.IsTrue(mainlocation.GetHashCode() == sut.GetHashCode());
        }
예제 #2
0
 public override int GetHashCode()
 {
     return(center.GetHashCode());
 }
예제 #3
0
 public override int GetHashCode()
 {
     return(location.GetHashCode());
 }