Example #1
0
        public void NotEqualsTest()
        {
            var chatLink = new BuildChatLink {
                Profession = ProfessionType.Warrior, Specialization1Id = 123, Specialization2Id = 234, Specialization3Id = 14
            };
            var chatLink2 = new BuildChatLink {
                Profession = ProfessionType.Guardian, Specialization1Id = 123, Specialization2Id = 234, Specialization3Id = 14
            };
            var chatLink3 = new BuildChatLink {
                Profession = ProfessionType.Warrior, Specialization1Id = 222, Specialization2Id = 100, Specialization3Id = 14
            };
            var chatLink4 = new BuildChatLink {
                Profession = ProfessionType.Warrior, Specialization1Id = 123, Specialization2Id = 234, Specialization3Id = 147
            };

            Assert.False(chatLink.Equals(chatLink2));
            Assert.False(chatLink.Equals(chatLink3));
            Assert.False(chatLink.Equals(chatLink4));
            Assert.False(chatLink2.Equals(chatLink3));
            Assert.False(chatLink2.Equals(chatLink4));
            Assert.False(chatLink3.Equals(chatLink4));
            Assert.False(chatLink.Equals(null));
            Assert.False(chatLink2.Equals(null));
            Assert.False(chatLink3.Equals(null));
            Assert.False(chatLink4.Equals(null));
        }
Example #2
0
        public void EqualsTest()
        {
            var chatLink = new BuildChatLink {
                Profession = ProfessionType.Warrior, Specialization1Id = 123, Specialization2Id = 234, Specialization3Id = 14
            };
            var chatLink2 = new BuildChatLink {
                Profession = ProfessionType.Warrior, Specialization1Id = 123, Specialization2Id = 234, Specialization3Id = 14
            };

            Assert.True(chatLink.Equals((object)chatLink2));
        }