/// <summary> /// Load a TestPackage /// </summary> /// <param name="package">The package to be loaded</param> /// <returns>True on success, false on failure</returns> public bool Load(TestPackage package) { log.Debug("Loading package " + package.Name); this.builder = new TestSuiteBuilder(); _compatibility = package.GetSetting("NUnit3Compatibility", false); _workDirectory = package.GetSetting("WorkDirectory", Environment.CurrentDirectory); if (_compatibility) { Compatibility.BeginCollection(_workDirectory); } try { this.test = builder.Build(package); } finally { if (_compatibility) { Compatibility.EndCollection(); } } if (test == null) { return(false); } test.SetRunnerID(this.runnerID, true); TestExecutionContext.CurrentContext.TestPackage = package; return(true); }
/// <summary> /// Load a TestPackage /// </summary> /// <param name="package">The package to be loaded</param> /// <returns>True on success, false on failure</returns> public bool Load(TestPackage package) { this.builder = new TestSuiteBuilder(); this.test = builder.Build(package); if (test == null) { return(false); } test.SetRunnerID(this.runnerID, true); return(true); }
/// <summary> /// Load a TestPackage /// </summary> /// <param name="package">The package to be loaded</param> /// <returns>True on success, false on failure</returns> public bool Load(TestPackage package) { log.Debug("Loading package " + package.Name); this.builder = new TestSuiteBuilder(); this.test = builder.Build(package); if (test == null) { return(false); } test.SetRunnerID(this.runnerID, true); TestExecutionContext.CurrentContext.TestPackage = package; return(true); }
/// <summary> /// Load a TestPackage /// </summary> /// <param name="package">The package to be loaded</param> /// <returns>True on success, false on failure</returns> public bool Load( TestPackage package ) { this.builder = new TestSuiteBuilder(); this.test = builder.Build( package ); if ( test == null ) return false; test.SetRunnerID( this.runnerID, true ); return true; }
/// <summary> /// Load a TestPackage /// </summary> /// <param name="package">The package to be loaded</param> /// <returns>True on success, false on failure</returns> public bool Load( TestPackage package ) { log.Debug("Loading package " + package.Name); this.builder = new TestSuiteBuilder(); this.test = builder.Build( package ); if ( test == null ) return false; test.SetRunnerID( this.runnerID, true ); TestExecutionContext.CurrentContext.TestPackage = package; return true; }