public void GetProjectPath_ReturnsCurrentDirectoryIfArgumentIsNullOrEmpty(string projectPath)
        {
            // Act
            var actual = PrecompileDispatchCommand.GetProjectPath(projectPath);

            // Assert
            Assert.Equal(Directory.GetCurrentDirectory(), actual);
        }
        public void GetProjectPath_ReturnsArgumentIfNotNullOrEmpty(string projectPath, string expected)
        {
            // Act
            var actual = PrecompileDispatchCommand.GetProjectPath(projectPath);

            // Assert
            Assert.Equal(expected, actual);
        }
        public void GetProjectPath_ThrowsIfDirectoryDoesNotExist()
        {
            // Arrange
            var nonExistent = Path.GetRandomFileName();

            // Act & Assert
            var ex = Assert.Throws <InvalidOperationException>(
                () => PrecompileDispatchCommand.GetProjectPath(nonExistent));

            Assert.Equal($"Could not find directory {Path.GetFullPath(nonExistent)}.", ex.Message);
        }