Exemple #1
0
        public void ReturnFalseGivenTwoEntitiesWithDifferentIntegerId()
        {
            var entity1 = new TestIntEntity(1);
            var entity2 = new TestIntEntity(2);

            Assert.IsFalse(entity1.Equals(entity2));
        }
Exemple #2
0
        public void ReturnTrueGivenTwoEntitiesWithSameIntegerId()
        {
            var entity1 = new TestIntEntity(1);
            var entity2 = new TestIntEntity(1);

            Assert.IsTrue(entity1.Equals(entity2));
        }
Exemple #3
0
        public void ThrowGivenZeroId()
        {
            var entity1 = new TestIntEntity(0);

            Assert.Fail("Should have thrown an exception.");
        }