コード例 #1
0
        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);
        }
コード例 #2
0
ファイル: TestProjectData.cs プロジェクト: soelske/mbunit-v3
        /// <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;
        }
コード例 #3
0
        /// <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;
        }