Exemple #1
0
        public void RemoveSuite(BenchmarkSuiteInstance suite)
        {
            Runner.Process.Stop();

            Runner.ConfigurationManager.RemoveParametersForSuite(suite);

            _suites.Remove(suite);
        }
Exemple #2
0
        public void AddSuiteFromClass(string suiteClassName)
        {
            Type suiteType = Type.GetType(suiteClassName, true);
            var  suite     = (BenchmarkSuite)Activator.CreateInstance(suiteType);
            var  instance  = new BenchmarkSuiteInstance(suite);

            AddSuite(instance);
        }
Exemple #3
0
        public void RemoveSuite(string suiteName)
        {
            Runner.Process.Stop();

            BenchmarkSuiteInstance suite = FindSuite(suiteName);

            if (suite != null)
            {
                Runner.ConfigurationManager.RemoveParametersForSuite(suite);
                _suites.Remove(suite);
            }
        }
Exemple #4
0
        public void LoadSuitesFromAssembly(string assemblyName)
        {
            Runner.Process.Stop();

            // Load assembly
            Assembly assembly = Assembly.LoadFrom(assemblyName);

            // Find benchmark suites
            foreach (Type type in assembly.GetTypes())
            {
                if (type.IsSubclassOf(typeof(BenchmarkSuite)) && !type.IsAbstract)
                {
                    BenchmarkSuite suite    = Activator.CreateInstance(type) as BenchmarkSuite;
                    var            instance = new BenchmarkSuiteInstance(suite);
                    _suites.Add(instance);
                    Runner.ConfigurationManager.AddSuite(instance);
                }
            }
        }
Exemple #5
0
 public void RemoveSuite(BenchmarkSuiteInstance suite)
 {
     SuiteManager.RemoveSuite(suite);
 }
Exemple #6
0
 public void AddSuite(BenchmarkSuiteInstance suite)
 {
     SuiteManager.AddSuite(suite);
 }
Exemple #7
0
 public void AddSuite(BenchmarkSuiteInstance instance)
 {
     Runner.Process.Stop();
     _suites.Add(instance);
     Runner.ConfigurationManager.AddSuite(instance);
 }
Exemple #8
0
        public void AddSuite(BenchmarkSuite suite)
        {
            var instance = new BenchmarkSuiteInstance(suite);

            AddSuite(instance);
        }