Ejemplo n.º 1
0
        public TestConfiguration(ITestConfigurationProvider provider, SettingsBag settings)
        {
            this.provider = provider;
            this.settings = settings;
            features      = new Dictionary <string, bool> ();
            categories    = new List <TestCategory> ();

            foreach (var feature in provider.Features)
            {
                features.Add(feature.Name, false);
            }

            categories.AddRange(provider.Categories);
            currentCategory = TestCategory.All;
            Load(false);

            settings.PropertyChanged += (sender, e) => Load(true);
        }
Ejemplo n.º 2
0
 internal TestContext(SettingsBag settings, TestLogger logger, ITestConfiguration config, string name)
 {
     this.settings = settings;
     this.config   = config;
     this.logger   = logger;
 }