Beispiel #1
0
        public void TestiTunesAdapter_GetPlaylistByName()
        {
            iTunesAdapter ita      = new iTunesAdapter();
            Playlist      playlist = ita.GetPlaylistByName(TEST_PLAYLIST);

            Assert.IsTrue(playlist != null);
        }
Beispiel #2
0
        public void TestiTunesAdapter_GetPlaylists()
        {
            iTunesAdapter    ita       = new iTunesAdapter();
            IList <Playlist> playlists = ita.GetPlaylists();

            Playlist testPlaylist = playlists.FirstOrDefault(p => p.Name == TEST_PLAYLIST);

            Assert.IsTrue(true);
        }
Beispiel #3
0
        public void TestiTunesAdapter_GetPlaylistDetails()
        {
            iTunesAdapter ita = new iTunesAdapter();

            IList <Playlist> playlists    = ita.GetPlaylists();
            Playlist         testPlaylist = playlists.FirstOrDefault(p => p.Name == TEST_PLAYLIST);

            ita.LoadPlaylist(testPlaylist);

            Assert.IsNotNull(testPlaylist.Name);
            Assert.IsTrue(testPlaylist.Songs.Count > 0);
        }