// Generate the next random query to test public void Next() { // Choose a random Query component to test this.queryComponent = Enum.GetValues(typeof(QueryComponent)).Cast <QueryComponent>().Choose(); AstoriaTestLog.WriteLine("Testing.... " + this.queryComponent.ToString()); // Idenity the queryComponents corresponding verification class ConcretePatternDictionary patternDictionary = new ConcretePatternDictionary(); this.pattern = patternDictionary.GetPattern(this.queryComponent); // Build the actual query tree for the queryComponent this.pattern.Build(this); }
// Generate the next random query to test public void Next() { // Choose a random Query component to test this.queryComponent = Enum.GetValues(typeof(QueryComponent)).Cast<QueryComponent>().Choose(); AstoriaTestLog.WriteLine("Testing.... " + this.queryComponent.ToString()); // Idenity the queryComponents corresponding verification class ConcretePatternDictionary patternDictionary = new ConcretePatternDictionary(); this.pattern = patternDictionary.GetPattern(this.queryComponent); // Build the actual query tree for the queryComponent this.pattern.Build(this); }