public void HashCodeNotEqualsTest()
        {
            var chatLink = new TraitChatLink {
                TraitId = 1
            };
            var chatLink2 = new TraitChatLink {
                TraitId = 2
            };

            Assert.NotEqual(chatLink.GetHashCode(), chatLink2.GetHashCode());
        }
        public void OperatorNotEqualsTest()
        {
            var chatLink = new TraitChatLink {
                TraitId = 1
            };
            var chatLink2 = new TraitChatLink {
                TraitId = 2
            };

            Assert.True(chatLink != chatLink2);
        }
        public void EqualsTest()
        {
            var chatLink = new TraitChatLink {
                TraitId = 1
            };
            var chatLink2 = new TraitChatLink {
                TraitId = 1
            };

            Assert.True(chatLink.Equals((object)chatLink2));
        }
        public void NotEqualsTest()
        {
            var chatLink = new TraitChatLink {
                TraitId = 1
            };
            var chatLink2 = new TraitChatLink {
                TraitId = 2
            };

            Assert.False(chatLink.Equals(chatLink2));
            Assert.False(chatLink.Equals(null));
        }
 public void TraitChatLinkObjectTest(string chatLink, TraitChatLink expected) =>
 this.AssertChatLinkObject(chatLink, expected);
 public void TraitChatLinkStringTest(string expected, TraitChatLink chatLinkObject) =>
 this.AssertChatLinkString(expected, chatLinkObject);