public virtual IDirectory CreateSubdirectory(string path)
        {
            var directory = new DirectoryMock(Path.GetFileName(path))
            {
                FullName = Path.Combine(this.FullName, path),
                Parent   = this
            };

            _items.Add(directory);
            return(directory);
        }
예제 #2
0
 public void Add([NotNull] DirectoryMock directory)
 {
     directory.FileSystem = this;
     _items.Add(directory);
 }
 public void Add([NotNull] DirectoryMock directory)
 {
     directory.Parent = this;
     _items.Add(directory);
 }