Here are the examples of the csharp api NUnit.Util.TestAgency.AgentDataBase.Add(NUnit.Util.TestAgency.AgentRecord) taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.
1 Examples
19
Source : TestAgency.cs
with MIT License
from roozbehid
with MIT License
from roozbehid
private int LaunchAgentProcess()
{
//ProcessStartInfo startInfo = new ProcessStartInfo( TestAgentExePath, ServerUtilities.MakeUrl( this.uri, this.port ) );
//startInfo.CreateNoWindow = true;
Process p = new Process();
if ( Type.GetType( "Mono.Runtime", false ) != null )
{
p.StartInfo.FileName = @"C:\Program Files\mono-1.2.5\bin\mono.exe";
p.StartInfo.Arguments = TestAgentExePath + " " + ServerUtilities.MakeUrl( this.uri, this.port );
}
else
{
p.StartInfo.FileName = TestAgentExePath;
p.StartInfo.Arguments = ServerUtilities.MakeUrl( this.uri, this.port );
}
//NTrace.Debug( "Launching {0}" p.StartInfo.FileName );
p.Start();
agentData.Add( new AgentRecord( p.Id, p, null, AgentStatus.Starting ) );
return p.Id;
}