Exemple #1
0
        public void HashCodeEqualsTest()
        {
            var chatLink = new NpcTextChatLink {
                StringId = 1
            };
            var chatLink2 = new NpcTextChatLink {
                StringId = 1
            };

            Assert.Equal(chatLink.GetHashCode(), chatLink2.GetHashCode());
        }
Exemple #2
0
        public void OperatorNotEqualsTest()
        {
            var chatLink = new NpcTextChatLink {
                StringId = 1
            };
            var chatLink2 = new NpcTextChatLink {
                StringId = 2
            };

            Assert.True(chatLink != chatLink2);
        }
Exemple #3
0
        public void EqualsTest()
        {
            var chatLink = new NpcTextChatLink {
                StringId = 1
            };
            var chatLink2 = new NpcTextChatLink {
                StringId = 1
            };

            Assert.True(chatLink.Equals((object)chatLink2));
        }
Exemple #4
0
        public void NotEqualsTest()
        {
            var chatLink = new NpcTextChatLink {
                StringId = 1
            };
            var chatLink2 = new NpcTextChatLink {
                StringId = 2
            };

            Assert.False(chatLink.Equals(chatLink2));
            Assert.False(chatLink.Equals(null));
        }
Exemple #5
0
 public void NpcTextChatLinkObjectTest(string chatLink, NpcTextChatLink expected) =>
 this.AssertChatLinkObject(chatLink, expected);
Exemple #6
0
 public void NpcTextChatLinkStringTest(string expected, NpcTextChatLink chatLinkObject) =>
 this.AssertChatLinkString(expected, chatLinkObject);