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());
}