示例#1
0
        public void CheckArgs()
        {
            _task = new CompileSolutionTask("x.sln", "Release", _flubuEnviroment.Object);
            _task.WithArguments("aaa");

            Assert.Single(_task.GetArguments());
        }
示例#2
0
        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);
        }