示例#1
0
        public void EqualsValidate_CompareIfTwoEntitiesAreEquals_MustReturnFalse()
        {
            // Arrange
            EntityBase entity1 = new EntityTest();
            EntityBase entity2 = new EntityTest();

            // Act
            var result = entity1.Equals(entity2);

            // Assert
            Assert.IsFalse(result);
        }
示例#2
0
        public void NotEqualsOperatorValidate_CompareIfTwoEntitiesAreNotEquals_MustReturnTrue()
        {
            // Arrange
            EntityBase entity1 = new EntityTest();
            EntityBase entity2 = new EntityTest();

            // Act
            var result = entity1 != entity2;

            // Assert
            Assert.IsTrue(result);
        }
示例#3
0
        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);
        }