コード例 #1
0
        public void Handshake()
        {
            string html = HttpRequests.Get(url, true);

            if (html != null)
            {
                PotamOSController.Engine.NewPage(UIPages.Handshake, html);
            }
        }
コード例 #2
0
        public void GetTest()
        {
            string response = HttpRequests.Get(goodurl, true);

            Assert.IsNotNull(response, "Call to Google should return something.");

            response = null;
            response = HttpRequests.Get(badurl, true);
            Assert.IsNull(response, "Call to Badhost should return null.");
        }