Exemplo n.º 1
0
 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);
 }
Exemplo n.º 2
0
 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));
 }