Example #1
0
 public void Should_Compare_Test_Class(
     ObjectComparatorTestClass baseObject,
     ObjectComparatorTestClass compareObject,
     ObjectComparatorTestClassCompareTypes compareType,
     bool result)
 {
     _objectComparatorManager.Compare(baseObject, compareObject, compareType).ShouldBe(result);
 }
Example #2
0
        public void Should_Compare_Test_Class_With_ObjectComparatorCondition(
            ObjectComparatorTestClass baseObject,
            ObjectComparatorTestClass compareObject,
            ObjectComparatorTestClassCompareTypes compareType,
            bool result)
        {
            var condition = new ObjectComparatorCondition <ObjectComparatorTestClass, ObjectComparatorTestClassCompareTypes>();

            condition.SetValue(compareObject);
            condition.CompareType = compareType;

            _objectComparatorManager.Compare(baseObject, condition).ShouldBe(result);
        }