コード例 #1
0
        public async System.Threading.Tasks.Task GetTracksTest()
        {
            ISpotifyAPI SpotifyAPI = new MockServiceAPI();
            var         tracks     = await SpotifyAPI.GetTopTracks("");

            int max = tracks.Count();

            Assert.IsTrue(max == 10);
        }
コード例 #2
0
        public async System.Threading.Tasks.Task GetArtistsTest()
        {
            ISpotifyAPI SpotifyAPI = new MockServiceAPI();
            var         artists    = await SpotifyAPI.GetArtists("");

            int max = artists.Count();

            Assert.IsTrue(max == 20);
        }