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); }
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); }