Exemplo n.º 1
0
        public override TestResult Run(TestCase testCase)
        {
            this.PreIterationSetup(testCase);

            DateTime start = DateTime.Now;
            int actions = 0;
            for (int i = 0; i < this._iterations; i++)
            {
                actions += this.RunIteration(testCase);
            }
            TimeSpan elapsed = DateTime.Now - start;

            return new TestResult(elapsed, actions, this._unit);
        }
Exemplo n.º 2
0
 protected abstract int RunIteration(TestCase testCase);
Exemplo n.º 3
0
        /// <summary>
        /// Allows for actions to be taken prior to iterations which don't count towards the Benchmarked score
        /// </summary>
        /// <param name="testCase"></param>
        protected virtual void PreIterationSetup(TestCase testCase)
        {

        }
Exemplo n.º 4
0
 public abstract TestResult Run(TestCase testCase);