public void OperatorEqualsTest() { var chatLink = new WvwObjectiveChatLink { ObjectiveId = 1, MapId = 2 }; var chatLink2 = new WvwObjectiveChatLink { ObjectiveId = 1, MapId = 2 }; Assert.True(chatLink == chatLink2); }
public void HashCodeEqualsTest() { var chatLink = new WvwObjectiveChatLink { ObjectiveId = 1, MapId = 2 }; var chatLink2 = new WvwObjectiveChatLink { ObjectiveId = 1, MapId = 2 }; Assert.Equal(chatLink.GetHashCode(), chatLink2.GetHashCode()); }
public void EqualsTest() { var chatLink = new WvwObjectiveChatLink { ObjectiveId = 1, MapId = 2 }; var chatLink2 = new WvwObjectiveChatLink { ObjectiveId = 1, MapId = 2 }; Assert.True(chatLink.Equals((object)chatLink2)); }
public void OperatorNotEqualsTest() { var chatLink = new WvwObjectiveChatLink { ObjectiveId = 1, MapId = 2 }; var chatLink2 = new WvwObjectiveChatLink { ObjectiveId = 1, MapId = 3 }; var chatLink3 = new WvwObjectiveChatLink { ObjectiveId = 2, MapId = 3 }; Assert.True(chatLink != chatLink2); Assert.True(chatLink != chatLink3); Assert.True(chatLink2 != chatLink3); }
public void NotEqualsTest() { var chatLink = new WvwObjectiveChatLink { ObjectiveId = 1, MapId = 2 }; var chatLink2 = new WvwObjectiveChatLink { ObjectiveId = 1, MapId = 3 }; var chatLink3 = new WvwObjectiveChatLink { ObjectiveId = 2, MapId = 3 }; Assert.False(chatLink.Equals(chatLink2)); Assert.False(chatLink.Equals(chatLink3)); Assert.False(chatLink2.Equals(chatLink3)); Assert.False(chatLink.Equals(null)); }
public void WvwObjectiveChatLinkObjectTest(string chatLink, WvwObjectiveChatLink expected) => this.AssertChatLinkObject(chatLink, expected);
public void WvwObjectiveChatLinkStringTest(string expected, WvwObjectiveChatLink chatLinkObject) => this.AssertChatLinkString(expected, chatLinkObject);