コード例 #1
0
        public void TestGetPlaylistMultipleRequests()
        {
            var resourceList = new List <IPlaylist>
            {
                SoundCloudApiUnAuthenticated.Playlist(1),
                SoundCloudApiUnAuthenticated.Playlist(1),
                SoundCloudApiUnAuthenticated.Playlist(1),
            };

            var users = SoundCloudApiUnAuthenticated.Execute(resourceList);

            Assert.AreEqual(3, users.Count);
        }
コード例 #2
0
        public void TestGetPlaylistHasCorrectNumberOfTracksRequest()
        {
            var playlist = SoundCloudApiUnAuthenticated.Playlist(1).Get();

            Assert.AreEqual(playlist.TrackCount, playlist.Tracks.Count);
        }
コード例 #3
0
        public void TestGetPlaylistRequest()
        {
            var playlist = SoundCloudApiUnAuthenticated.Playlist(1).Get();

            Assert.AreEqual(1, playlist.Id);
        }