public async Task MoveEmptyDirectory()
        {
            var mockDirectory1 = new MockDirectory("c:\\Mock1");

            mockDirectory1.Create();
            var mockDirectory2 = new MockDirectory("c:\\Mock2");

            await mockDirectory2.MoveFrom(mockDirectory1);

            Assert.False(mockDirectory1.Exists());
            Assert.True(mockDirectory2.Exists());
        }
示例#2
0
 public override bool DirectoryExists(string path)
 {
     return(_directory.Exists(path));
 }