Пример #1
0
            public static object GetTargets()
            {
                var notToBeCleanedBecauseTarget = new TaskToBeCleaned(BuiltArtefacts, "b");
                var taskWithDeps = new TaskWithDeps(BuiltArtefacts, "c") {
                                                                             NotToBeCleaned = new FakeArtefactTask(BuiltArtefacts, "a"),
                                                                             ToBeCleaned = notToBeCleanedBecauseTarget
                                                                         };

                return new {
                    C = taskWithDeps,
                    DependsOnTaskToBeCleaned = notToBeCleanedBecauseTarget,
                };
            }
Пример #2
0
            public static object GetTargets()
            {
                var notToBeCleanedBecauseTarget = new TaskToBeCleaned(BuiltArtefacts, "b");
                var taskWithDeps = new TaskWithDeps(BuiltArtefacts, "c")
                {
                    NotToBeCleaned = new FakeArtefactTask(BuiltArtefacts, "a"),
                    ToBeCleaned    = notToBeCleanedBecauseTarget
                };

                return(new {
                    C = taskWithDeps,
                    DependsOnTaskToBeCleaned = notToBeCleanedBecauseTarget,
                });
            }