Пример #1
0
        public async Task TestPlay()
        {
            _spotifyController.CurrentTrackInfo         = new Status();
            _spotifyController.CurrentTrackInfo.playing = false;
            await _spotifyController.Play();

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

            _localApi.ClearReceivedCalls();
            _spotifyController.CurrentTrackInfo.playing = true;
            await _spotifyController.Play();

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