Beispiel #1
0
        public void EqualsObjectCastTest()
        {
            string fullName = "test-fullName";
            PersonInfoAdditionalFields personInfoAdditionalFields = new PersonInfoAdditionalFields(fullName: fullName);
            object obj = new PersonInfoAdditionalFields(fullName: fullName);

            Assert.True(personInfoAdditionalFields.Equals(obj));
        }
Beispiel #2
0
        public void EqualsTest()
        {
            string fullName = "test-fullName";
            PersonInfoAdditionalFields fullName1 = new PersonInfoAdditionalFields(fullName: fullName);

            Assert.Equal(fullName1, fullName1);
            Assert.Equal(fullName1, new PersonInfoAdditionalFields(fullName: fullName));
            Assert.NotEqual(fullName1, new PersonInfoAdditionalFields(fullName: fullName + "1"));
            Assert.False(fullName1.Equals(null));
        }