public void SetMutator(Expression pathToTarget, MutatorConfiguration mutator)
        {
            var pathToTraverse = pathToTarget.ResolveInterfaceMembers();
            var mutatorToAdd   = Condition == null ? mutator : mutator.If(Condition);

            reporter?.Report(null, pathToTraverse, mutatorToAdd);
            Root.Traverse(pathToTraverse, true).AddMutator(mutatorToAdd);
        }
 public void SetMutator(LambdaExpression pathToValue, MutatorConfiguration mutator)
 {
     root.AddMutatorSmart(pathToValue.ResolveInterfaceMembers(), mutator.If(Condition));
 }
示例#3
0
 public void SetMutator(Expression pathToTarget, MutatorConfiguration mutator)
 {
     root.Traverse(pathToTarget.ResolveInterfaceMembers(), true).AddMutator(Condition == null ? mutator : mutator.If(Condition));
 }