public void EqualsValidate_CompareIfTwoEntitiesAreEquals_MustReturnFalse() { // Arrange EntityBase entity1 = new EntityTest(); EntityBase entity2 = new EntityTest(); // Act var result = entity1.Equals(entity2); // Assert Assert.IsFalse(result); }
public void NotEqualsOperatorValidate_CompareIfTwoEntitiesAreNotEquals_MustReturnTrue() { // Arrange EntityBase entity1 = new EntityTest(); EntityBase entity2 = new EntityTest(); // Act var result = entity1 != entity2; // Assert Assert.IsTrue(result); }
public void EqualsValidate_CompareIfTwoEntitiesAreEquals_MustReturnTrue() { // Arrange var key = Guid.NewGuid(); EntityBase entity1 = new EntityTest(key); EntityBase entity2 = new EntityTest(key); // Act var result = entity1.Equals(entity2); // Assert Assert.IsTrue(result); }