public void EqualsObjectCastTest() { string code = "test-code"; BusinessSearchResponseIndustryCode businessSearchResponseIndustryCode = new BusinessSearchResponseIndustryCode(code: code); object obj = new BusinessSearchResponseIndustryCode(code: code); Assert.True(businessSearchResponseIndustryCode.Equals(obj)); }
public void EqualsTest() { string code = "test-code"; BusinessSearchResponseIndustryCode code1 = new BusinessSearchResponseIndustryCode(code: code); Assert.Equal(code1, code1); Assert.Equal(code1, new BusinessSearchResponseIndustryCode(code: code)); Assert.NotEqual(code1, new BusinessSearchResponseIndustryCode(code: code + "1")); Assert.False(code1.Equals(null)); }
public void GetHashcodeTest() { BusinessSearchResponseIndustryCode businessSearchResponseIndustryCode1 = new BusinessSearchResponseIndustryCode(); businessSearchResponseIndustryCode1.Code = "test-code"; businessSearchResponseIndustryCode1.Description = "test-description"; BusinessSearchResponseIndustryCode businessSearchResponseIndustryCode2 = new BusinessSearchResponseIndustryCode(); businessSearchResponseIndustryCode2.Code = "test-code"; businessSearchResponseIndustryCode2.Description = "test-description"; Assert.Equal(businessSearchResponseIndustryCode1.GetHashCode(), businessSearchResponseIndustryCode2.GetHashCode()); }
public BusinessSearchResponseIndustryCodeTests() { businessSearchResponseIndustryCode = new BusinessSearchResponseIndustryCode(); }