public void CheckArgs() { _task = new CompileSolutionTask("x.sln", "Release", _flubuEnviroment.Object); _task.WithArguments("aaa"); Assert.Single(_task.GetArguments()); }
public void CheckArgsWhenExecuting() { SetupMsBuildVersions(include40: false, include120: false); SetupRunProgramTask(); Tasks.Setup(x => x.RunProgramTask(It.IsAny <string>())).Returns(_runProgramTask.Object); _task = new CompileSolutionTask("x.sln", "Release", _flubuEnviroment.Object); _task.WithArguments("aaa"); _task.Execute(Context.Object); Assert.Equal(4, _task.GetArguments().Count); }