public void Remove_test_runner_extension_specification_removes_from_test_package() { var project = new TestProject(); projectTreeModel.TestProject = project; const string extensionSpecification = "extensionSpecification"; project.AddTestRunnerExtensionSpecification(extensionSpecification); projectController.RemoveTestRunnerExtensionSpecification(extensionSpecification); Assert.Count(0, project.TestRunnerExtensionSpecifications); }
/// <summary> /// Initializes a test project with the contents of this structure. /// </summary> /// <param name="testProject">The test project to populate.</param> /// <exception cref="ArgumentNullException">Thrown if <paramref name="testProject"/> is null.</exception> public void InitializeTestProject(TestProject testProject) { if (testProject == null) { throw new ArgumentNullException("testProject"); } testPackage.InitializeTestPackage(testProject.TestPackage); GenericCollectionUtils.ForEach(testFilters, x => testProject.AddTestFilter(x)); GenericCollectionUtils.ForEach(testRunnerExtensions, x => testProject.AddTestRunnerExtensionSpecification(x)); testProject.ReportNameFormat = reportNameFormat; testProject.ReportDirectory = reportDirectory; }
/// <summary> /// Initializes a test project with the contents of this structure. /// </summary> /// <param name="testProject">The test project to populate.</param> /// <exception cref="ArgumentNullException">Thrown if <paramref name="testProject"/> is null.</exception> public void InitializeTestProject(TestProject testProject) { if (testProject == null) throw new ArgumentNullException("testProject"); testPackage.InitializeTestPackage(testProject.TestPackage); GenericCollectionUtils.ForEach(testFilters, x => testProject.AddTestFilter(x)); GenericCollectionUtils.ForEach(testRunnerExtensions, x => testProject.AddTestRunnerExtensionSpecification(x)); testProject.ReportNameFormat = reportNameFormat; testProject.ReportDirectory = reportDirectory; }