Ejemplo n.º 1
0
        public void HashCodeEqualsTest()
        {
            var chatLink = new NpcTextChatLink {
                StringId = 1
            };
            var chatLink2 = new NpcTextChatLink {
                StringId = 1
            };

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

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

            Assert.True(chatLink.Equals((object)chatLink2));
        }
Ejemplo n.º 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));
        }
Ejemplo n.º 5
0
 public void NpcTextChatLinkObjectTest(string chatLink, NpcTextChatLink expected) =>
 this.AssertChatLinkObject(chatLink, expected);
Ejemplo n.º 6
0
 public void NpcTextChatLinkStringTest(string expected, NpcTextChatLink chatLinkObject) =>
 this.AssertChatLinkString(expected, chatLinkObject);