public void SetUp() { _workTree = Substitute.For <IWorkTree>(); _logService = Substitute.For <ILogService>(); _subDir1 = new DirectoryInfo(@"C:\Test\subDir1"); _subDir2 = new DirectoryInfo(@"C:\Test\subDir2"); _subDirs = new DirectoryInfo[] { _subDir1, _subDir2 }; _fileInRoot1 = new FileInfo(@"C:\Test\fileInRoot1.tst"); _fileInRoot2 = new FileInfo(@"C:\Test\fileInRoot2.tst"); _fileInRoot3 = new FileInfo(@"C:\Test\fileInRoot3.tst"); _filesInRoot = new FileInfo[] { _fileInRoot1, _fileInRoot2, _fileInRoot3 }; _fileInSubDir1_1 = new FileInfo(@"C:\Test\subDir1\fileInSubDir1_1.tst"); _fileInSubDir1 = new FileInfo[] { _fileInSubDir1_1 }; _fileInSubDir2_1 = new FileInfo(@"C:\Test\subDir2\fileInSubDir2_1.tst"); _fileInSubDir2_2 = new FileInfo(@"C:\Test\subDir2\fileInSubDir2_2.tst"); _fileInSubDir2 = new FileInfo[] { _fileInSubDir2_1, _fileInSubDir2_2 }; }
public FileSystemVisitor(string beginPoint, IWorkTree workTree, ILogService logService, FilteringDelegate fd, bool includeOnlyFiltered) : this(beginPoint, workTree, logService) { _filterMode = true; _fd = fd; _includeOnlyFiltered = includeOnlyFiltered; }
public FileSystemVisitor(string beginPoint, IWorkTree workTree, ILogService logService) { _rootDirectory = new DirectoryInfo(beginPoint); _workTree = workTree; _logService = logService; }