示例#1
0
        public DirectoryMock(DirectoryMock ParentDirectory, string Name)
        {
            this.ParentDirectory = ParentDirectory;
            this.Name = Name;

            Directories = new DirectoryMock[0];
            Files = new FileMock[0];
        }
示例#2
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;
 }
示例#3
0
 public DirectoryMock()
 {
     Directories = new DirectoryMock[0];
     Files = new FileMock[0];
 }
示例#4
0
 public void RemoveFile(FileMock File)
 {
     Files = Files.Except<FileMock>(new FileMock[] { File}).ToArray();
 }