/// <summary> /// Pause/play currently loaded audio stream if the /// StreamingPlaylist property is true. /// </summary> public void PausePlay() { if (StreamingPlaylist) { _mediaPlayer.PausePlayAudio(); } }
public void PausePlay() { A.CallTo(() => _mediaPlayer.Finished).Returns(true); _audioPlaylist.StartPlaylistPlayback(); _audioPlaylist.PausePlay(); _audioPlaylist.StopPlaylistPlayback(); A.CallTo(() => _mediaPlayer.PausePlayAudio()).MustHaveHappened(); }