public void ValueObjects_of_different_types_are_not_equal() { var temp1 = new Address("a", "b"); var dist1 = new DerivedAddress("a", "b"); Assert.False(temp1 == dist1); }
public void Derived_value_objects_dont_match() { var address = new Address("Street", "City"); var derivedAddress = new DerivedAddress("Country", "Street", "City"); address.Equals(derivedAddress).Should().BeFalse(); derivedAddress.Equals(address).Should().BeFalse(); }