public DirectTestRunner(IServiceLocator services, TestPackage package) : base(services, package) { // Bypass the resolver if not in the default AppDomain. This prevents trying to use the resolver within // NUnit's own automated tests (in a test AppDomain) which does not make sense anyway. if (AppDomain.CurrentDomain.IsDefaultAppDomain()) { _assemblyResolver = new ProvidedPathsAssemblyResolver(); _assemblyResolver.Install(); } }
public NUnit2DriverFactory(ExtensionNode driverNode) { _driverNode = driverNode; _resolver = new ProvidedPathsAssemblyResolver(); }