public async Task TestBackgroundChangeTrackerWorkCancelled() { _spotifyController.BackgroundDelay = 0; _spotifyController.SpotifyProcess = new Process(); _localApi.SendLocalStatusRequest(true, true, CancellationToken.None, 0) .ThrowsForAnyArgs(new TaskCanceledException()); await _spotifyController.BackgroundChangeTrackerWork(); _log.Received(1).Info("Retrieving cancelled"); }