void EnsurePortRange()
{
if (Port >= InitialPort && Port <= MaxPort(InitialPort, AddPort))
{
return;
}
throw new Exception(String.Format("Could not start {0} on a port in the range from {1} to {2}",
Executable,
InitialPort,
MaxPort(InitialPort, AddPort)));
}