Пример #1
0
        public override void Compare(IComparison <IParameter> comparison)
        {
            if (!ShouldCompareParametersIn(comparison))
            {
                return;
            }

            _quantityDiffBuilder.Compare(comparison);
            CompareValues(x => x.BuildMode, x => x.BuildMode, comparison);

            if (shouldCompareRHSFormula(comparison))
            {
                _objectComparer.Compare(comparison.ChildComparison(x => x.RHSFormula));
            }
            else
            {
                CompareValues(x => x.RHSFormula != null, Captions.Diff.IsStateVariable, comparison);
            }

            if (comparison.Settings.OnlyComputingRelevant)
            {
                return;
            }

            CompareValues(x => x.Visible, x => x.Visible, comparison);
        }
Пример #2
0
 public override void Compare(IComparison <IMoleculeAmount> comparison)
 {
     _quantityDiffBuilder.Compare(comparison);
     _containerDiffBuilder.Compare(comparison);
 }