예제 #1
0
        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);
        }