public void HandlePlayMessage_TheCurrentItemIsPaused_SendsAResumePlaybackMessage() { _subject.Items.Add(new PlaylistItem()); _subject.StartPlayback(0); _subject.Pause(); _subject.Handle(new PlayMessage()); _mockEventAggregator.Messages.Any(m => m.GetType() == typeof(ResumePlaybackMessage)).Should().BeTrue(); }
public void Pause_Always_SendsPausePlaybackMessage() { _subject.Pause(); _mockEventAggregator.Messages.Any(m => m.GetType() == typeof(PausePlaybackMessage)).Should().BeTrue(); }