public void GivenTwoEntitiesWithTheSameIdsButDifferentTypesThenANegativeResponseIsReturned() { var first = new SerializableMessage(); var second = new SerializableEntity <Guid>(first.Id); Assert.False(first == second); Assert.False(first.Equals(second)); Assert.False(second == first); }
public void GivenTwoMessagesWithTheSameIdAndTypeThenAPositiveResponseIsReturned() { var first = new SerializableMessage(); SerializableMessage second = first.Clone(); Assert.Equal(first, second); Assert.True(first == second); Assert.True(first.Equals(second)); Assert.True(second == first); }
public void GivenTwoMessagesWithDifferentIdsAndTheSameTypeThenANegativeResponseIsReturned() { var first = new SerializableMessage(); var second = new SerializableMessage(); Assert.NotEqual(first, second); Assert.False(first == second); Assert.False(first.Equals(second)); Assert.False(second == first); }