public void GetParentFolder_forANotRootPath_shouldReturnTheCorrectParentFolderWithAnEndingBackSlash()
        {
            // Arrange
            var fileItem = new FileItem(ItemType.Folder, "\\folder1\\folder2\\", 0);

            // Act
            var commandGenerator = new CommandGenerator("\\");
            var parentFolder     = commandGenerator.GetParentFolder(fileItem);

            // Assert
            parentFolder.Should().Be("\\folder1\\");    // We need to have the final backslash in the parent path
        }
        public void GetParentFolder_forTheRootPath_shouldReturnAnEmptyString()
        {
            // Arrange
            var fileItem = new FileItem(ItemType.Folder, "\\", 0);

            // Act
            var commandGenerator = new CommandGenerator("\\");
            var parentFolder     = commandGenerator.GetParentFolder(fileItem);

            // Assert
            parentFolder.Should().BeEmpty();
        }