Exemplo n.º 1
0
        public void EqualsObjectCastTest()
        {
            bool acceptTruliooTermsAndConditions        = true;
            BusinessSearchRequest businessSearchRequest = new BusinessSearchRequest(countryCode: "test-countryCode", acceptTruliooTermsAndConditions: acceptTruliooTermsAndConditions);
            object obj = new BusinessSearchRequest(countryCode: "test-countryCode", acceptTruliooTermsAndConditions: acceptTruliooTermsAndConditions);

            Assert.True(businessSearchRequest.Equals(obj));
        }
Exemplo n.º 2
0
        public void EqualsTest()
        {
            bool acceptTruliooTermsAndConditions = true;
            BusinessSearchRequest acceptTruliooTermsAndConditions1 = new BusinessSearchRequest(countryCode: "test-countryCode", acceptTruliooTermsAndConditions: acceptTruliooTermsAndConditions);

            Assert.Equal(acceptTruliooTermsAndConditions1, acceptTruliooTermsAndConditions1);
            Assert.Equal(acceptTruliooTermsAndConditions1, new BusinessSearchRequest(countryCode: "test-countryCode", acceptTruliooTermsAndConditions: acceptTruliooTermsAndConditions));
            Assert.NotEqual(acceptTruliooTermsAndConditions1, new BusinessSearchRequest(countryCode: "test-countryCode", acceptTruliooTermsAndConditions: false));
            Assert.False(acceptTruliooTermsAndConditions1.Equals(null));
        }