Esempio n. 1
0
        public async Task GetFeedAsyncReturnsNullWhenSourceIsInvalid()
        {
            var feedReaderService = new Implementations.FeedReaderService();
            var feed = await feedReaderService.GetFeedAsync("some invalid link");

            Assert.Null(feed);
        }
Esempio n. 2
0
        public async Task GetFeedAsyncReturnsNullWhenSourceIsNull()
        {
            var feedReaderService = new Implementations.FeedReaderService();
            var feed = await feedReaderService.GetFeedAsync(null);

            Assert.Null(feed);
        }
Esempio n. 3
0
        public async Task GetFeedAsyncReturnsFeedWhenSourceIsValid()
        {
            var feedReaderService = new Implementations.FeedReaderService();
            var feed = await feedReaderService.GetFeedAsync(TestData.BbcUKNewsFeed);

            Assert.NotNull(feed);
            Assert.NotNull(feed.Title);
            Assert.AreEqual(TestData.BbcNewsFeedTitle, feed.Title);
        }