public void EqualsObjectCastTest() { string address1 = "test-address1"; LocationAdditionalFields locationAdditionalFields = new LocationAdditionalFields(address1: address1); object obj = new LocationAdditionalFields(address1: address1); Assert.True(locationAdditionalFields.Equals(obj)); }
public void AdditionalFieldsTest() { LocationAdditionalFields additionalFields = new LocationAdditionalFields(address1: "test-address1"); location.AdditionalFields = additionalFields; Assert.Equal(additionalFields, location.AdditionalFields); Assert.Equal(additionalFields, (new Location(additionalFields: additionalFields)).AdditionalFields); }
public void EqualsTest() { string address1 = "test-address1"; LocationAdditionalFields address11 = new LocationAdditionalFields(address1: address1); Assert.Equal(address11, address11); Assert.Equal(address11, new LocationAdditionalFields(address1: address1)); Assert.NotEqual(address11, new LocationAdditionalFields(address1: address1 + "1")); Assert.False(address11.Equals(null)); }
public void GetHashcodeTest() { LocationAdditionalFields locationAdditionalFields1 = new LocationAdditionalFields(); locationAdditionalFields1.Address1 = "test-address1"; LocationAdditionalFields locationAdditionalFields2 = new LocationAdditionalFields(); locationAdditionalFields2.Address1 = "test-address1"; Assert.Equal(locationAdditionalFields1.GetHashCode(), locationAdditionalFields2.GetHashCode()); }
public LocationAdditionalFieldsTests() { locationAdditionalFields = new LocationAdditionalFields(); }