public void QuotePipeName_Desktop() { var serverInfo = BuildServerConnection.GetServerProcessInfo(@"q:\tools", "name with space"); Assert.Equal(@"q:\tools\VBCSCompiler.exe", serverInfo.processFilePath); Assert.Equal(@"q:\tools\VBCSCompiler.exe", serverInfo.toolFilePath); Assert.Equal(@"""-pipename:name with space""", serverInfo.commandLineArguments); }
public void QuotePipeName_CoreClr() { var toolDir = ExecutionConditionUtil.IsWindows ? @"q:\tools" : "/tools"; var serverInfo = BuildServerConnection.GetServerProcessInfo(toolDir, "name with space"); var vbcsFilePath = Path.Combine(toolDir, "VBCSCompiler.dll"); Assert.Equal(vbcsFilePath, serverInfo.toolFilePath); Assert.Equal($@"exec ""{vbcsFilePath}"" ""-pipename:name with space""", serverInfo.commandLineArguments); }