public MasterTestRunner(IServiceLocator services, TestPackage package) { _services = services; TestPackage = package; _testRunnerFactory = _services.GetService<ITestRunnerFactory>(); _projectService = _services.GetService<IProjectService>(); _runtimeService = _services.GetService<IRuntimeFrameworkService>(); _extensionService = _services.GetService<ExtensionService>(); _engineRunner = _testRunnerFactory.MakeTestRunner(package); }
public void CreateService() { _extensionService = new ExtensionService(); // Rather than actually starting the service, which would result // in finding the extensions actually in use on the current system, // we simulate the start using this assemblies dummy extensions. _extensionService.FindExtensionPoints(typeof(TestEngine).Assembly); _extensionService.FindExtensionPoints(typeof(ITestEngine).Assembly); _extensionService.FindExtensionsInAssembly(GetType().Assembly.Location, true); }
public void CreateService() { _extensionService = new ExtensionService(); _extensionService.StartService(); }
public MasterTestRunner(IServiceLocator services, TestPackage package) : base(services, package) { _runtimeService = Services.GetService<IRuntimeFrameworkService>(); _extensionService = Services.GetService<ExtensionService>(); }
public void InvalidTargetFrameworkCombinations(FrameworkCombo combo) { Assert.That(() => ExtensionService.ValidateTargetFramework(combo.RunnerAssembly, combo.ExtensionAssembly), Throws.TypeOf <NUnitEngineException>()); }
public void ValidTargetFrameworkCombinations(FrameworkCombo combo) { Assert.That(() => ExtensionService.ValidateTargetFramework(combo.RunnerAssembly, combo.ExtensionAssembly), Throws.Nothing); }