public void HashCodeNotEqualsTest() { var chatLink = new PointOfInterestChatLink { PointOfInterestId = 1 }; var chatLink2 = new PointOfInterestChatLink { PointOfInterestId = 2 }; Assert.NotEqual(chatLink.GetHashCode(), chatLink2.GetHashCode()); }
public void OperatorNotEqualsTest() { var chatLink = new PointOfInterestChatLink { PointOfInterestId = 1 }; var chatLink2 = new PointOfInterestChatLink { PointOfInterestId = 2 }; Assert.True(chatLink != chatLink2); }
public void EqualsTest() { var chatLink = new PointOfInterestChatLink { PointOfInterestId = 1 }; var chatLink2 = new PointOfInterestChatLink { PointOfInterestId = 1 }; Assert.True(chatLink.Equals((object)chatLink2)); }
public void NotEqualsTest() { var chatLink = new PointOfInterestChatLink { PointOfInterestId = 1 }; var chatLink2 = new PointOfInterestChatLink { PointOfInterestId = 2 }; Assert.False(chatLink.Equals(chatLink2)); Assert.False(chatLink.Equals(null)); }
public void PointOfInterestChatLinkObjectTest(string chatLink, PointOfInterestChatLink expected) => this.AssertChatLinkObject(chatLink, expected);
public void PointOfInterestChatLinkStringTest(string expected, PointOfInterestChatLink chatLinkObject) => this.AssertChatLinkString(expected, chatLinkObject);