protected override void Given() { projectTaskFileRepo = Substitute.For<TaskFileFinder>(); nunitTaskDetecttor = new NUnitTaskDetector(projectTaskFileRepo); projectTaskFileRepo.FindFiles("basefolder").Returns(As.List(Os.DirChars("l1\\l2\\l3\\fle.test.csproj"), Os.DirChars("l1\\l2\\l4\\fle.test.csproj"), Os.DirChars("l1\\l2\\l3\\flo.tests.csproj"))); }
protected override void SetupDependencies() { taskFileFinder = Substitute.For<TaskFileFinder>(); }
public CustomTasksDetector(TaskFileFinder taskFileFinder, Func<string, string> getContent) { this.taskFileFinder = taskFileFinder; this.getContent = getContent; }
protected override void Given() { pathFinder = Substitute.For<PathFinder>(); _taskFileFinder = new SolutionTaskFileFinder(pathFinder); }
public NUnitTaskDetector(TaskFileFinder _projectTaskFileRepo) { this._projectTaskFileRepo = _projectTaskFileRepo; }
public MSBuildDetector(TaskFileFinder taskFileFinder, OS os) { this.taskFileFinder = taskFileFinder; this.os = os; }
public TestTaskDetector(TaskFileFinder taskFileFinder) { this.taskFileFinder = taskFileFinder; }