Exemple #1
0
        public void Setup()
        {
            list = new List<string>();
            pathFinder = new PathFinder();

            workPlace = Path.Combine(GitTestSupport.GetTempPath(), Path.GetRandomFileName());
            Directory.CreateDirectory(workPlace);
            var genesis = new FileGenesis(workPlace);
            genesis.Folder("TestFixtures")
                .File("notest.txt", "")
                .File("test.txt", "")
                .Folder("Goble")
                    .File("l0f1.txt", "")
                    .File("l0f2.txt", "")
                    .Folder("level1")
                        .File("l1f1.txt", "")
                        .File("l1f2.txt", "")
                        .Folder("level2")
                            .File("l2f1.txt", "")
                            .File("l2f2.txt", "");
        }
Exemple #2
0
 protected override void Given()
 {
     pathFinder = Substitute.For<PathFinder>();
     _taskFileFinder = new SolutionTaskFileFinder(pathFinder);
 }
 public static Pipeline GetPipeline()
 {
     var pathFinder = new PathFinder();
     var os = IsNotWindows() ? OS.Unix : OS.Windows;
     return new Pipeline(new CompoundTaskSource(
                                    new CustomTasksDetector(new CustomFileFinder(pathFinder), File.ReadAllText),
                                    new TestTaskDetector(new TestTaskTaskFileFinder(pathFinder)),
                                    new MSBuildDetector(new SolutionTaskFileFinder(pathFinder), os),
                                    new NUnitTaskDetector(new NUnitTaskFileFinder(pathFinder))
                                    ),
                                new ExecutableTaskGenerator(new ExecTaskFactory()));
 }