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 EqualsTest() { var chatLink = new WvwObjectiveChatLink { ObjectiveId = 1, MapId = 2 }; var chatLink2 = new WvwObjectiveChatLink { ObjectiveId = 1, MapId = 2 }; Assert.True(chatLink.Equals((object)chatLink2)); }