Esempio n. 1
0
        public async Task TestPause()
        {
            _spotifyController.CurrentTrackInfo         = new Status();
            _spotifyController.CurrentTrackInfo.playing = true;
            await _spotifyController.Pause();

            await _localApi.Received(1).Pause();

            _localApi.ClearReceivedCalls();
            _spotifyController.CurrentTrackInfo.playing = false;
            await _spotifyController.Pause();

            await _localApi.DidNotReceive().Pause();
        }