Ejemplo n.º 1
0
 public void ExecuteStepWithoutArguments()
 {
     BuildStep buildStep = new BuildStep(typeof(BuildStepTargetForTest), "ArgumentLessAction");
     buildStep.Execute();
     Assert.AreNotEqual(null, callBackArguments);
     Assert.AreEqual(0, callBackArguments.Length);
 }
Ejemplo n.º 2
0
 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);            
 }
Ejemplo n.º 3
0
 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]);
 }
Ejemplo n.º 4
0
 public void Execute_step_with_variable_arguments()
 {
     BuildStep buildStep = new BuildStep(typeof(BuildStepTargetForTest), "TakesVariableArgument", "arg1", "arg2");
     buildStep.Execute();
 }
Ejemplo n.º 5
0
 public void When_method_doesnt_exist()
 {
     BuildStep buildStep = new BuildStep(typeof(BuildStepTargetForTest), "Doesntexist");
     buildStep.Execute();
 }