Exemplo n.º 1
0
 void BisectForm_Load(object sender, EventArgs e)
 {
     Task.Factory.StartNew(SetupAutoComplete);
     cbBenchmark.Items.AddRange(Benchmark.GetBenchmarks(springPaths).ToArray());
     cbConfigs.Items.AddRange(Config.GetConfigs(springPaths).ToArray());
     cmbScripts.Items.AddRange(StartScript.GetStartScripts(springPaths).ToArray());
 }
Exemplo n.º 2
0
        void RefreshBenchmarks()
        {
            benchmarkList.Items.Clear();
            benchmarkList.Items.AddRange(Benchmark.GetBenchmarks(springPaths, true).ToArray());

            cbConfigs.Items.Clear();
            cbConfigs.Items.AddRange(Config.GetConfigs(springPaths, true).ToArray());

            cmbScripts.Items.Clear();
            cmbScripts.Items.AddRange(StartScript.GetStartScripts(springPaths, true).ToArray());
        }
Exemplo n.º 3
0
        void PostLoad(SpringPaths paths)
        {
            Benchmarks =
                Benchmarks.Select(
                    x =>
                    Benchmark.GetBenchmarks(paths).SingleOrDefault(y => y.BenchmarkPath == x.BenchmarkPath) ??
                    Benchmark.GetBenchmarks(paths).First(y => y.Name == x.Name)).ToList();

            foreach (var tr in TestCases)
            {
                tr.Config = Config.GetConfigs(paths).SingleOrDefault(x => x.ConfigPath == tr.Config.ConfigPath) ??
                            Config.GetConfigs(paths).First(x => x.Name == tr.Config.Name);

                tr.StartScript = StartScript.GetStartScripts(paths).SingleOrDefault(x => x.ScriptPath == tr.StartScript.ScriptPath) ??
                                 StartScript.GetStartScripts(paths).First(x => x.Name == tr.StartScript.Name);
            }
        }