public DirectoryMock(DirectoryMock ParentDirectory, string Name) { this.ParentDirectory = ParentDirectory; this.Name = Name; Directories = new DirectoryMock[0]; Files = new FileMock[0]; }
public void AddFile(FileMock File) { FileMock[] ArrayCopy = new FileMock[Files.Length + 1]; Array.Copy(Files, ArrayCopy, Files.Length); ArrayCopy[Files.Length] = File; Files = ArrayCopy; }
public DirectoryMock() { Directories = new DirectoryMock[0]; Files = new FileMock[0]; }
public void RemoveFile(FileMock File) { Files = Files.Except<FileMock>(new FileMock[] { File}).ToArray(); }