/// <summary> /// Creates a new instance of the test runner in the given app domain. /// </summary> /// <param name="domain">The app domain to create the runner into.</param> /// <param name="package">The test package to execute.</param> /// <returns></returns> public static TestRunner CreateRunner(AppDomain domain, TestPackage package) { var runnerType = typeof(TestRunner); return(domain.CreateInstanceAndUnwrap(runnerType.Assembly.FullName, runnerType.FullName, false, 0, null, new object[] { package }, null, null) as TestRunner); }
/// <summary> /// Initializes a new instance of the test runner. /// </summary> /// <param name="package">The test package to be executed</param> public TestRunner(TestPackage package) { _package = package; }