public void TestHashCode() { const string number = "aaa"; var expected = number.GetHashCode(); var sut = new VoyageNumber(number); var actual = sut.GetHashCode(); Assert.AreEqual(expected, actual); }
public override int GetHashCode() { return(_voyage.GetHashCode() ^ _loadLocation.GetHashCode() ^ _unloadLocation.GetHashCode()); }