public MSBuildForwardingApp(IEnumerable <string> argsToForward) { _forwardingApp = new ForwardingApp( GetMSBuildExePath(), argsToForward, environmentVariables: GetEnvironmentVariables()); }
public void ItSetsEnvironmentalVariables() { var startInfo = new ForwardingApp("<apppath>", new string[0], environmentVariables: new Dictionary <string, string> { { "env1", "env1value" }, { "env2", "env2value" } }) .GetProcessStartInfo(); startInfo.EnvironmentVariables["env1"].Should().Be("env1value"); startInfo.EnvironmentVariables["env2"].Should().Be("env2value"); }
public VSTestForwardingApp(IEnumerable <string> argsToForward) { _forwardingApp = new ForwardingApp( GetVSTestExePath(), argsToForward); }