Lucene.Net.Randomized.RandomizedRunner.RandomizedRunner C# (CSharp) Method

RandomizedRunner() public method

public RandomizedRunner ( Type testClass ) : Lucene.Net.Randomized.Attributes
testClass System.Type
return Lucene.Net.Randomized.Attributes
        public RandomizedRunner(Type testClass)
        {
            this.suiteClass = testClass;

            var list = new List<ISeedDecorator>();
            var attrs = this.suiteClass.GetCustomAttributes(typeof(SeedDecoratorAttribute), true).Cast<SeedDecoratorAttribute>();
            foreach (var attr in attrs)
            {
                foreach (var decoratorType in attr.Decorators)
                {
                    var decorator = (ISeedDecorator)Activator.CreateInstance(decoratorType);
                    decorator.Initialize(testClass);
                    list.Add(decorator);
                }
            }

            int ticks = (int)System.DateTime.Now.Ticks;
            int randomSeed = MurmurHash3.Hash(NextSequence() + ticks);

            int initialSeed = randomSeed;

            this.Randomness = new Randomness(initialSeed, list.ToArray());
        }