예제 #1
0
 public void Test(string[] invokedTargets, string[] expectedTargets)
 {
     TargetDefinitionLoader.GetExecutingTargets(ExecutionTestUtility.CreateBuild <TestBuild>(), invokedTargets)
     .Where(x => !x.Skip && x.Conditions.All(y => y()))
     .Select(x => x.Name)
     .Should().BeEquivalentTo(expectedTargets);
 }
예제 #2
0
        public void ExecuteAllTargetsWhenConditionTrueAndBehaviorExecute()
        {
            var build = ExecutionTestUtility.CreateBuildAndExecuteDefaultTarget <TestBuild>(x => x.Execute,
                                                                                            x =>
            {
                x.OnlyWhenCondition           = true;
                x.SwitchConditionInDependency = false;
                x.DependencyBehavior          = DependencyBehavior.Execute;
            });

            AssertExecutionStatus(build, ExecutionStatus.Executed, ExecutionStatus.Executed);
        }