public void TryGetTopChartsFunctionalTest(int limit) { bool success = _podHead.TryGetTopCharts(PodcastGenre.Comedy, out IEnumerable <PodcastFeed> feeds, out string errorMessage, (uint)limit); Assert.IsTrue(success); Assert.IsNull(errorMessage); Assert.GreaterOrEqual(limit, feeds.Count()); }
public void TryGetTopCharts_ShouldInvokePodcastChartsUnitTest(PodHead sut, IPodcastCharts podcastCharts, PodcastGenre podcastGenre, uint limit) { sut.SetField(typeof(IPodcastCharts), podcastCharts); bool success = sut.TryGetTopCharts(podcastGenre, out IEnumerable <PodcastFeed> podcasts, out string errors, limit); Assert.IsTrue(success); Assert.IsNull(errors); podcastCharts.Received(1).GetPodcasts(podcastGenre, limit); }