Ejemplo n.º 1
0
        public void DeleteFileWithBadPath()
        {
            // Setup
            var fileSystem = new TestFileSystem();

            // Execute
            fileSystem.DeleteFile(a_path: "/i/am/on/linux");
        }
Ejemplo n.º 2
0
        public void DeleteFileWithNullPath()
        {
            // Setup
            var fileSystem = new TestFileSystem();

            // Execute
            fileSystem.DeleteFile(a_path: null);
        }
Ejemplo n.º 3
0
        public void DeleteNotExistingFile()
        {
            // Setup
            var fileSystem = new TestFileSystem();

            fileSystem.StageFile(@"x:\directory2\file1.rgb", new TestFileInstance());
            fileSystem.StageFile(@"x:\directory2\file2.rgb", new TestFileInstance());

            // Execute
            fileSystem.DeleteFile(@"x:\directory2\file3.rgb");

            // Assert
            Assert.IsTrue(fileSystem.FileExists(@"x:\directory2\file1.rgb"));
            Assert.IsTrue(fileSystem.FileExists(@"x:\directory2\file2.rgb"));
        }
Ejemplo n.º 4
0
        public void DeleteNotExistingFile()
        {
            // Setup
            var fileSystem = new TestFileSystem();
            fileSystem.StageFile(@"x:\directory2\file1.rgb", new TestFileInstance());
            fileSystem.StageFile(@"x:\directory2\file2.rgb", new TestFileInstance());

            // Execute
            fileSystem.DeleteFile(@"x:\directory2\file3.rgb");

            // Assert
            Assert.IsTrue(fileSystem.FileExists(@"x:\directory2\file1.rgb"));
            Assert.IsTrue(fileSystem.FileExists(@"x:\directory2\file2.rgb"));
        }
Ejemplo n.º 5
0
        public void DeleteFileWithNullPath()
        {
            // Setup
            var fileSystem = new TestFileSystem();

            // Execute
            fileSystem.DeleteFile(a_path: null);
        }
Ejemplo n.º 6
0
        public void DeleteFileWithBadPath()
        {
            // Setup
            var fileSystem = new TestFileSystem();

            // Execute
            fileSystem.DeleteFile(a_path: "/i/am/on/linux");
        }