Exemple #1
0
 public override IEnumerable<BaseTester.TestSet> GetProfilingTestSets()
 {
     const int size = 100000;
     var rand = new Random(123);
     var seq = rand.GenerateRandomSequence(size);
     yield return BaseTester.CreateInputSet(null, seq);
     var monotonic = Enumerable.Range(1, 90000).ToArray();
     yield return BaseTester.CreateInputSet(null, monotonic);
 }
Exemple #2
0
        public DbTestItem(BaseTester tester, ICollection <DbShardGroup> shardGroups, DataColumn[] dataColumns)
        {
            _dataColumns  = dataColumns;
            Tester        = tester;
            DbShardGroups = shardGroups.ToList();
            Testers       = new BaseTester[shardGroups.Count, shardGroups.ElementAt(0).ShardGroupItems.Count];
            TestDbStates  = new ObservableCollection <TestItemDbState>();
            GraphicModel  = new BarGraphicModel(this);

            Init();
        }