예제 #1
0
        public TestAgent GetAgent(RuntimeFramework framework, int waitTime)
        {
            log.Info("Getting agent for use under {0}", framework);

            if (!RuntimeFramework.IsAvailable(framework))
            {
                throw new ArgumentException(
                          string.Format("The {0} framework is not available", framework),
                          "framework");
            }

            framework.SpecifyBuild();

            // TODO: Decide if we should reuse agents
            //AgentRecord r = FindAvailableRemoteAgent(type);
            //if ( r == null )
            //    r = CreateRemoteAgent(type, framework, waitTime);
            return(CreateRemoteAgent(framework, waitTime));
        }
예제 #2
0
 public void CurrentFrameworkMustBeAvailable()
 {
     Assert.That(RuntimeFramework.IsAvailable(RuntimeFramework.CurrentFramework));
 }