public void SimplePlayback() { var playback = new PlaybackStub(); var underTest = new PodcastEpisode("1", "episode", "just some talking", string.Empty, "http://www.nowhere.com/episode1.mp3", "talking heads", default(PodcastSeries)); underTest.SetPlaybackControl(playback); underTest.Play.Execute(null); }
public void NullPlaybackControlThrowsException() { var playback = default(IPlayback); var underTest = new PodcastEpisode("1", "episode", "just some talking", string.Empty, "http://www.nowhere.com/episode1.mp3", "talking heads", default(PodcastSeries)); underTest.SetPlaybackControl(playback); Assert.ThrowsException<NullReferenceException>(() => underTest.Play.Execute(null)); }