public void CanLoadCommonChecksConfiguration()
        {
            Configuration config = TestHelper.GetConfiguration();

            DependenciesSection       dcSection    = (DependenciesSection)config.GetSection(DependenciesSection.SectionName);
            DependencyCheckCollection commonChecks = dcSection.CommonChecks;

            Assert.AreEqual(6, commonChecks.Count);
        }
Ejemplo n.º 2
0
        private void AddDependencyChecks(DependenciesInfo info, DependencyCheckCollection checks)
        {
            if (checks == null)
            {
                return;
            }

            foreach (DependencyCheck dependencyCheck in checks)
            {
                Check check = this.GetCheck(dependencyCheck);
                info.EvaluationContext[check.Name] = check;
            }
        }