Specs.Infrastructure.FreePort.Settings.EnsurePortRange C# (CSharp) Méthode

EnsurePortRange() public méthode

public EnsurePortRange ( ) : void
Résultat void
        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)));
        }