static void Main(string[] args)
        {
            WebTestRequest request = new WebTestRequest("http://www.vehix.com/");
            ExtractHiddenFields extractionRule1 = new ExtractHiddenFields();

            request.ExtractValues += new WebTestRequest.ExtractionEventHandler(extractionRule1.Extract);

            request.Execute();

            Debug.Assert(request.Context.Count > 0);
        }
        public void TestExtractHiddenFields()
        {
            WebTestRequest request = new WebTestRequest("http://www.vehix.com/");
            ExtractHiddenFields extractionRule1 = new ExtractHiddenFields();

            request.ExtractValues += new WebTestRequest.ExtractionEventHandler(extractionRule1.Extract);

            request.Execute();

            Assert.IsNotNull(request.Context["sclient"]);
        }