public async Task TestPlayPause() { _spotifyController.CurrentTrackInfo = new Status(); _spotifyController.CurrentTrackInfo.playing = false; await _spotifyController.PausePlay(); await _localApi.Received(1).Resume(); await _localApi.DidNotReceive().Pause(); _localApi.ClearReceivedCalls(); _spotifyController.CurrentTrackInfo.playing = true; await _spotifyController.PausePlay(); await _localApi.Received(1).Pause(); await _localApi.DidNotReceive().Resume(); }