Esempio n. 1
0
 public MSBuildForwardingApp(IEnumerable <string> argsToForward)
 {
     _forwardingApp = new ForwardingApp(
         GetMSBuildExePath(),
         argsToForward,
         environmentVariables: GetEnvironmentVariables());
 }
Esempio n. 2
0
        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");
        }
Esempio n. 3
0
 public VSTestForwardingApp(IEnumerable <string> argsToForward)
 {
     _forwardingApp = new ForwardingApp(
         GetVSTestExePath(),
         argsToForward);
 }