コード例 #1
0
        public void GetRandomPlaceTest2()
        {
            Regex       regex   = new Regex(@"https:\/\/s3-media3\.fl\.yelpcdn\.com\/bphoto\/.*\/.*\.jpg");
            YelpScraper scraper = new YelpScraper();
            var         place   = scraper.GetRandomPlace();

            Assert.IsTrue(regex.IsMatch(place.Item2));
        }
コード例 #2
0
        public void GetRandomPlaceTest()
        {
            Regex       regex   = new Regex(@"https:\/\/yelp\.pl\/biz\/.*");
            YelpScraper scraper = new YelpScraper();
            var         place   = scraper.GetRandomPlace();

            Assert.IsTrue(regex.IsMatch(place.Item3));
        }