// Run compiler in directory set up by SetupDirectory private Process RunCompilerCS(TempDirectory dir, int i, ServerData serverData) { return StartProcess(CSharpCompilerClientExecutable, string.Format("/shared:{1} /nologo hello{0}.cs /out:hellocs{0}.exe", i, serverData.PipeName), dir.Path); }
// Run compiler in directory set up by SetupDirectory private Process RunCompilerVB(TempDirectory dir, int i, ServerData serverData) { return StartProcess(BasicCompilerClientExecutable, string.Format("/shared:{1} /nologo hello{0}.vb /r:Microsoft.VisualBasic.dll /out:hellovb{0}.exe", i, serverData.PipeName), dir.Path); }
private static async Task Verify(ServerData serverData, int connections, int completed) { var serverStats = await serverData.Complete().ConfigureAwait(true); Assert.Equal(connections, serverStats.Connections); Assert.Equal(completed, serverStats.CompletedConnections); }