예제 #1
0
                    public IFile Create(PathPart name)
                    {
                        FakeFile file;

                        if (!this.fakeFiles.TryGetValue(name, out file))
                        {
                            file = new FakeFile(this.root.Combine(name));
                            this.fakeFiles.Add(name, file);
                        }

                        return(file);
                    }
예제 #2
0
 public FullPath Combine(PathPart name) => new FullPath(Path.Combine(this.path, name.ToString()));
예제 #3
0
 public IFile CreateFile(PathPart name) => RealFile.Create(this.Path.Combine(name));
예제 #4
0
 public IFile CreateFile(PathPart name) => this.fakeFiles.Create(name);
예제 #5
0
 public bool Matches(PathPart path) => this.regex.IsMatch(path.ToString());