/// <summary> /// Initializes a test package with the contents of this structure. /// </summary> /// <param name="testPackage">The test package to populate.</param> /// <exception cref="ArgumentNullException">Thrown if <paramref name="testPackage"/> is null.</exception> public void InitializeTestPackage(TestPackage testPackage) { if (testPackage == null) { throw new ArgumentNullException("testPackage"); } GenericCollectionUtils.ForEach(files, x => testPackage.AddFile(new FileInfo(x))); GenericCollectionUtils.ForEach(hintDirectories, x => testPackage.AddHintDirectory(new DirectoryInfo(x))); GenericCollectionUtils.ForEach(excludedFrameworkIds, x => testPackage.AddExcludedTestFrameworkId(x)); testPackage.ShadowCopy = ShadowCopy; testPackage.DebuggerSetup = Debug ? new DebuggerSetup() : null; testPackage.ApplicationBaseDirectory = ApplicationBaseDirectory != null ? new DirectoryInfo(ApplicationBaseDirectory) : null; testPackage.WorkingDirectory = WorkingDirectory != null ? new DirectoryInfo(WorkingDirectory) : null; testPackage.RuntimeVersion = RuntimeVersion; GenericCollectionUtils.ForEach(Properties, x => testPackage.AddProperty(x.Key, x.Value)); }
/// <summary> /// Initializes a test package with the contents of this structure. /// </summary> /// <param name="testPackage">The test package to populate.</param> /// <exception cref="ArgumentNullException">Thrown if <paramref name="testPackage"/> is null.</exception> public void InitializeTestPackage(TestPackage testPackage) { if (testPackage == null) throw new ArgumentNullException("testPackage"); GenericCollectionUtils.ForEach(files, x => testPackage.AddFile(new FileInfo(x))); GenericCollectionUtils.ForEach(hintDirectories, x => testPackage.AddHintDirectory(new DirectoryInfo(x))); GenericCollectionUtils.ForEach(excludedFrameworkIds, x => testPackage.AddExcludedTestFrameworkId(x)); testPackage.ShadowCopy = ShadowCopy; testPackage.DebuggerSetup = Debug ? new DebuggerSetup() : null; testPackage.ApplicationBaseDirectory = ApplicationBaseDirectory != null ? new DirectoryInfo(ApplicationBaseDirectory) : null; testPackage.WorkingDirectory = WorkingDirectory != null ? new DirectoryInfo(WorkingDirectory) : null; testPackage.RuntimeVersion = RuntimeVersion; GenericCollectionUtils.ForEach(Properties, x => testPackage.AddProperty(x.Key, x.Value)); }
public void AddHintDirectory(string hintDirectory) { TestPackage.AddHintDirectory(new DirectoryInfo(hintDirectory)); }