Exemple #1
0
        /// <summary>
        /// Run the default fuzzing run in the specified dom.
        /// </summary>
        /// <param name="dom"></param>
        /// <param name="config"></param>
        public void startFuzzing(Dom.Dom dom, RunConfiguration config)
        {
            if (dom == null)
            {
                throw new ArgumentNullException("dom parameter is null");
            }
            if (config == null)
            {
                throw new ArgumentNullException("config paremeter is null");
            }

            Test test = null;

            try
            {
                test = dom.tests[config.runName];
            }
            catch (Exception ex)
            {
                throw new PeachException("Unable to locate test named '" + config.runName + "'.", ex);
            }

            startFuzzing(dom, test, config);
        }