Пример #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);
        }
Пример #2
0
 protected abstract int RunIteration(TestCase testCase);
Пример #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)
        {

        }
Пример #4
0
 public abstract TestResult Run(TestCase testCase);