public void MoneyValues_WhenEqual_HaveTheSameHashCode() { // Arrange var moneyValue1 = new MoneyValue(100m); var moneyValue2 = new MoneyValue(100m); // Act var hashCodesEqual = moneyValue1.GetHashCode() == moneyValue2.GetHashCode(); // Assert hashCodesEqual.Should().BeTrue(); }