Пример #1
0
        public void Can_read_url()
        {
            IWebDataReader reader = new WebDataReader();

            string webData = reader.ReadUrl("http://www.google.com/");

            Assert.That(webData.Contains("Google"));
        }
Пример #2
0
        public void Can_post_to_form()
        {
            IWebDataReader reader = new WebDataReader();

            string webData = reader.ReadUrl("http://www.interlacken.com/webdbdev/ch05/formpost.asp", "box1", "Hello World");

            Assert.That(webData.Contains("HELLO WORLD"));
        }