Ejemplo n.º 1
0
        private void CreateVariationsFromScript(string scriptFile, TokenList commandLineTokens)
        {
            TrustedFileStream stream = new TrustedFileStream(scriptFile, FileMode.Open);
            XmlDocument       doc    = new XmlDocument();

            doc.Load(PT.Untrust(stream));

            XmlElement init = doc["INIT"] as XmlElement;

            if (init == null)
            {
                throw new InvalidScriptFileException("script file: " + scriptFile + " is missing INIT element");
            }

            TokenList tokens = new TokenList(init);

            tokens.Merge(commandLineTokens);

            Variation.SetGlobalParameters(tokens);
            CreateVariations(init);
        }
Ejemplo n.º 2
0
 private void CreateVariationFromTokens(TokenList tokens)
 {
     Variation.SetGlobalParameters(tokens);
     variations    = new Variation[1];
     variations[0] = new Variation(tokens);
 }