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