Пример #1
0
        public void GetTopChartsFunctionalTest(int limit)
        {
            IEnumerable <PodcastFeed> feeds = _podHead.GetTopCharts(PodcastGenre.Comedy, (uint)limit);

            Assert.GreaterOrEqual(limit, feeds.Count());
        }
 public void GetTopCharts_ShouldInvokePodcastChartsUnitTest(PodHead sut, IPodcastCharts podcastCharts, PodcastGenre podcastGenre, uint limit)
 {
     sut.SetField(typeof(IPodcastCharts), podcastCharts);
     sut.GetTopCharts(podcastGenre, limit);
     podcastCharts.Received(1).GetPodcasts(podcastGenre, limit);
 }