Пример #1
0
        public void EqualsIsTrueIfIDsAreEquals()
        {
            var id   = Guid.NewGuid();
            var obj1 = new EntityMock(id);
            var obj2 = new EntityMock(id);

            var result = obj1.Equals(obj2);

            Assert.IsTrue(result);
        }
Пример #2
0
        public void EqualsIsFalseIfInstanceIsNull()
        {
            var result = entityMock.Equals(null);

            Assert.IsFalse(result);
        }