public void Should_own_a_HashCode(decimal value) { var expected = value.GetHashCode(); var instance = new USD(value); var actual = instance.GetHashCode(); Assert.AreEqual(expected, actual); }
public override int GetHashCode() => EUR.GetHashCode() ^ USD.GetHashCode() ^ GBP.GetHashCode();
public override int GetHashCode() { return(EUR.GetHashCode() ^ USD.GetHashCode() ^ GBP.GetHashCode()); }