Exemplo n.º 1
0
        public void TC3_Get_PoliticalNews()
        {
            GoogleNewsSource GoogleNews = new GoogleNewsSource();
            var result = GoogleNews.GetNews(x => x.Category.Name == "Political");

            Assert.NotNull(result);
        }
Exemplo n.º 2
0
        public void TC1_GetNews_Datewise()
        {
            GoogleNewsSource GoogleNews = new GoogleNewsSource();
            var result = GoogleNews.GetNews(x => x.CreatedAt >= DateTime.UtcNow.AddDays(-1));

            Assert.NotNull(result);
        }
Exemplo n.º 3
0
        public void TC2_Get_SportNews()
        {
            GoogleNewsSource GoogleNews = new GoogleNewsSource();
            var result = GoogleNews.GetNews(x => x.Category.Name == "Sports");

            Assert.NotNull(result);
        }