Ejemplo n.º 1
0
 public void Should_Compare_Test_Class(
     ObjectComparatorTestClass baseObject,
     ObjectComparatorTestClass compareObject,
     ObjectComparatorTestClassCompareTypes compareType,
     bool result)
 {
     _objectComparatorManager.Compare(baseObject, compareObject, compareType).ShouldBe(result);
 }
Ejemplo n.º 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);
        }