예제 #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);
 }
예제 #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));
 }