12 references to ProcessMaxCPUCountSwitch
Microsoft.Build.CommandLine.UnitTests (11)
XMake_Tests.cs (11)
660
MSBuildApp.
ProcessMaxCPUCountSwitch
(new[] { "1" }).ShouldBe(1);
661
MSBuildApp.
ProcessMaxCPUCountSwitch
(new[] { "2" }).ShouldBe(2);
662
MSBuildApp.
ProcessMaxCPUCountSwitch
(new[] { "3" }).ShouldBe(3);
663
MSBuildApp.
ProcessMaxCPUCountSwitch
(new[] { "4" }).ShouldBe(4);
664
MSBuildApp.
ProcessMaxCPUCountSwitch
(new[] { "8" }).ShouldBe(8);
665
MSBuildApp.
ProcessMaxCPUCountSwitch
(new[] { "63" }).ShouldBe(63);
668
MSBuildApp.
ProcessMaxCPUCountSwitch
(new[] { "8", "4" }).ShouldBe(4);
676
MSBuildApp.
ProcessMaxCPUCountSwitch
(new[] { "-1" });
685
MSBuildApp.
ProcessMaxCPUCountSwitch
(new[] { "0" });
694
MSBuildApp.
ProcessMaxCPUCountSwitch
(new[] { "foo" });
704
MSBuildApp.
ProcessMaxCPUCountSwitch
(new[] { "1025" });
MSBuild (1)
XMake.cs (1)
2685
cpuCount =
ProcessMaxCPUCountSwitch
(commandLineSwitches[CommandLineSwitches.ParameterizedSwitch.MaxCPUCount]);