public async Task TestIsTrackSaved() { var trackIds = new[] { "Id" }; var expected = new[] { false }; _spotifyWebApi.IsTracksSaved(trackIds).Returns(expected); var result = await _spotifyController.IsTracksSaved(trackIds); await _spotifyWebApi.Received(1).IsTracksSaved(trackIds); Assert.Equal(expected, result); }