Example #1
0
        public void TestHashCode()
        {
            const string number   = "aaa";
            var          expected = number.GetHashCode();
            var          sut      = new VoyageNumber(number);

            var actual = sut.GetHashCode();

            Assert.AreEqual(expected, actual);
        }
Example #2
0
 public override int GetHashCode()
 {
     return(_voyage.GetHashCode() ^ _loadLocation.GetHashCode() ^ _unloadLocation.GetHashCode());
 }