public void ExecuteStepWithoutArguments() { BuildStep buildStep = new BuildStep(typeof(BuildStepTargetForTest), "ArgumentLessAction"); buildStep.Execute(); Assert.AreNotEqual(null, callBackArguments); Assert.AreEqual(0, callBackArguments.Length); }
public void Execute_step_with_arguments_without_specifying_the_arguments() { BuildStep buildStep = new BuildStep(typeof(BuildStepTargetForTest), "ActionWithArgument"); buildStep.Execute(); Assert.AreNotEqual(null, callBackArguments); Assert.AreEqual(1, callBackArguments.Length); }
public void Execute_step_with_arguments() { string arg = "Arg"; BuildStep buildStep = new BuildStep(typeof(BuildStepTargetForTest), "ActionWithArgument", arg); buildStep.Execute(); Assert.AreNotEqual(null, callBackArguments); Assert.AreEqual(1, callBackArguments.Length); Assert.AreEqual(arg, callBackArguments[0]); }
public void Execute_step_with_variable_arguments() { BuildStep buildStep = new BuildStep(typeof(BuildStepTargetForTest), "TakesVariableArgument", "arg1", "arg2"); buildStep.Execute(); }
public void When_method_doesnt_exist() { BuildStep buildStep = new BuildStep(typeof(BuildStepTargetForTest), "Doesntexist"); buildStep.Execute(); }