public void ExecuteArguments_TestExecuteNotCalledForInvalidName(IClFunction function1, IClFunction function2) { function1.Name = "test"; function2.Name = "test2"; _consoleParser.AddFunctions(new List<IClFunction> { function1, function2 }); _consoleParser.ExecuteArguments(new[] { "test3" }); function1.DidNotReceive().Execute(); }
public void ExecuteArguments_TestExecuteNotCalledAfterSecondAdd(IClFunction function1, IClFunction function2) { function1.Name = "test"; function2.Name = "test2"; _consoleParser.AddFunction(function1); _consoleParser.AddFunction(function2); _consoleParser.ExecuteArguments(new[] { "test2" }); function1.DidNotReceive().Execute(); }