예제 #1
0
        public void ObjectDifference_WhenIsCalled_ReturnNoDifference()
        {
            var obj1 = AlfrescoComparerModels.SameObject();
            var obj2 = AlfrescoComparerModels.SameObject();

            var result = _alfrescoModelComparer.CompareObjects(obj1, obj2);

            Assert.That(result.Count, Is.EqualTo(0));
        }
예제 #2
0
        public void ObjectDifference_WhenIsCalled_ThrowException()
        {
            var obj1 = AlfrescoComparerModels.SameObject();

            Assert.Throws <Exception>(() => _alfrescoModelComparer.CompareObjects(obj1, null));
        }