public void SetUp() { _projectInSolutionSubstitute = Substitute.For <IProjectInSolution>(); _ioSubstitute = Substitute.For <ISystemIO>(); _runSettingsFileReaderSubstitute = Substitute.For <IRunSettingsFileReader>(); _projectInSolutionSubstitute.AbsolutePath.Returns(DefaultProjectFilePath); }
private static bool ProjectIsSelectedForBuild(IProjectInSolution project, string configurationName, string platformName) { var configurationPlatformKey = configurationName + "|" + platformName; var configurationsDictionary = (IDictionary)project.ProjectConfigurations; if (configurationsDictionary.Contains(configurationPlatformKey)) { var cis = configurationsDictionary[configurationPlatformKey].ActLike <IProjectConfigurationInSolution>(); return(cis.IncludeInBuild); } return(true); }
private static bool ProjectIsSelectedForBuild(IProjectInSolution project, string configurationName, string platformName) { var configurationPlatformKey = configurationName + "|" + platformName; var configurationsDictionary = (IDictionary)project.ProjectConfigurations; if (configurationsDictionary.Contains(configurationPlatformKey)) { var cis = configurationsDictionary[configurationPlatformKey].ActLike<IProjectConfigurationInSolution>(); return cis.IncludeInBuild; } return true; }
private void OnProject(IProjectInSolution project) { ++_projectsFound; projects.Add(project); }