command-line-api
command-line-api copied to clipboard
EnvironmentDirective has a hard-coded call to Environment.SetEnvironmentVariable making it hard to test
It would be better if it accepted an Action
that would be invoked to set the variable as an optional parameter to the constructor.
new EnvironmentVariablesDirective((name, value) => ...);