示例#1
0
        public void SetUp()
        {
            _projectInSolutionSubstitute = Substitute.For <IProjectInSolution>();
            _ioSubstitute = Substitute.For <ISystemIO>();
            _runSettingsFileReaderSubstitute = Substitute.For <IRunSettingsFileReader>();

            _projectInSolutionSubstitute.AbsolutePath.Returns(DefaultProjectFilePath);
        }
示例#2
0
        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);
        }
示例#3
0
        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);
 }