Esempio n. 1
0
        public void LINQ()
        {
            FSharpAsync <string> asyncGet =
                from google in Get("http://www.google.com")
                from bing in Get("http://www.bing.com")
                select google + bing;
            string result = asyncGet.Run();
            var    rx     = new Regex(@"<html");

            Assert.AreEqual(2, rx.Matches(result).Count);
        }