Example #1
0
 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();
     }
 }
Example #2
0
 public NUnit2DriverFactory(ExtensionNode driverNode)
 {
     _driverNode = driverNode;
     _resolver = new ProvidedPathsAssemblyResolver();
 }