示例#1
0
        public void testHashCode()
        {
            UnLocode allCaps   = new UnLocode("ABCDE");
            UnLocode mixedCase = new UnLocode("aBcDe");

            Assert.AreEqual(allCaps.GetHashCode(), mixedCase.GetHashCode());
        }
        public void TestHashCode()
        {
            var allCaps = new UnLocode("ABCDE");
            var mixedCase = new UnLocode("aBcDe");

            Assert.AreEqual(allCaps.GetHashCode(), mixedCase.GetHashCode());
        }
示例#3
0
 public override int GetHashCode()
 {
     return(_voyage.GetHashCode() ^ _loadLocation.GetHashCode() ^ _unloadLocation.GetHashCode());
 }
 public override int GetHashCode()
 {
     return(_origin.GetHashCode() ^ _destination.GetHashCode());
 }
示例#5
0
 public override int GetHashCode()
 {
     return(_departureLocation.GetHashCode() ^ _arrivalLocation.GetHashCode());
 }