Exemple #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);
                    }
Exemple #2
0
 public FullPath Combine(PathPart name) => new FullPath(Path.Combine(this.path, name.ToString()));
Exemple #3
0
 public IFile CreateFile(PathPart name) => RealFile.Create(this.Path.Combine(name));
Exemple #4
0
 public IFile CreateFile(PathPart name) => this.fakeFiles.Create(name);
Exemple #5
0
 public bool Matches(PathPart path) => this.regex.IsMatch(path.ToString());