示例#1
0
 public MockFileInfo(
     FileSystemOperationRecorder recorder,
     DirectoryInfoBase parentDirectory,
     string fullName,
     string name)
 {
     Recorder = recorder;
     FullName = fullName;
     Name     = name;
 }
示例#2
0
 public MockFileInfo(
     FileSystemOperationRecorder recorder,
     DirectoryInfoBase parentDirectory,
     string fullName,
     string name)
 {
     Recorder = recorder;
     FullName = fullName;
     Name = name;
 }
 public MockDirectoryInfo(
     FileSystemOperationRecorder recorder,
     DirectoryInfoBase parentDirectory,
     string fullName,
     string name,
     string[] paths)
 {
     ParentDirectory = parentDirectory;
     Recorder        = recorder;
     FullName        = fullName;
     Name            = name;
     Paths           = paths;
 }
示例#4
0
        public FileSystemGlobbingTestContext(string basePath, Matcher matcher)
        {
            _basePath        = basePath;
            _recorder        = new FileSystemOperationRecorder();
            _patternMatching = matcher;

            _directoryInfo = new MockDirectoryInfo(
                recorder: _recorder,
                parentDirectory: null,
                fullName: _basePath,
                name: ".",
                paths: new string[0]);
        }
 public MockDirectoryInfo(
     FileSystemOperationRecorder recorder,
     DirectoryInfoBase parentDirectory,
     string fullName,
     string name,
     string[] paths)
 {
     ParentDirectory = parentDirectory;
     Recorder = recorder;
     FullName = fullName;
     Name = name;
     Paths = paths;
 }
        public FileSystemGlobbingTestContext(string basePath, Matcher matcher)
        {
            _basePath = basePath;
            _recorder = new FileSystemOperationRecorder();
            _patternMatching = matcher;

            _directoryInfo = new MockDirectoryInfo(
                recorder: _recorder,
                parentDirectory: null,
                fullName: _basePath,
                name: ".",
                paths: new string[0]);
        }