示例#1
0
        public void EqualsObjectCastTest()
        {
            string address1 = "test-address1";
            LocationAdditionalFields locationAdditionalFields = new LocationAdditionalFields(address1: address1);
            object obj = new LocationAdditionalFields(address1: address1);

            Assert.True(locationAdditionalFields.Equals(obj));
        }
示例#2
0
        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);
        }
示例#3
0
        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));
        }
示例#4
0
        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());
        }
示例#5
0
 public LocationAdditionalFieldsTests()
 {
     locationAdditionalFields = new LocationAdditionalFields();
 }