Beispiel #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());
        }
Beispiel #2
0
 public override int GetHashCode()
 {
     return(center.GetHashCode());
 }
Beispiel #3
0
 public override int GetHashCode()
 {
     return(location.GetHashCode());
 }