Ejemplo n.º 1
0
 static void AssertPlaylistContainer (PlaylistContainer playlistContainer, PlaylistContainerOptions options)
 {
     AssertContainer (playlistContainer, options);
     Assert.AreEqual (playlistContainer.StorageMedium, options.StorageMedium);
     Assert.AreEqual (playlistContainer.LongDescription, options.LongDescription);
     Assert.AreEqual (playlistContainer.Description, options.Description);
     Assert.AreEqual (playlistContainer.Date, options.Date);
     Assert.AreEqual (playlistContainer.Language, options.Language);
     Assert.IsTrue (playlistContainer.Artists.IsReadOnly);
     Assert.IsTrue (playlistContainer.Genres.IsReadOnly);
     Assert.IsTrue (playlistContainer.Contributors.IsReadOnly);
     Assert.IsTrue (playlistContainer.Rights.IsReadOnly);
     CollectionAssert.AreEqual (playlistContainer.Artists, options.Artists);
     CollectionAssert.AreEqual (playlistContainer.Genres, options.Genres);
     CollectionAssert.AreEqual (playlistContainer.Contributors, options.Contributors);
     CollectionAssert.AreEqual (playlistContainer.Rights, options.Rights);
 }
Ejemplo n.º 2
0
 public void PlaylistContainerInstantiation ()
 {
     var options = new PlaylistContainerOptions ();
     SetPlaylistContainerOptions (options);
     var playlist_container = new PlaylistContainer ("-1", "-1", options);
     AssertPlaylistContainer (playlist_container, options);
     AssertPlaylistContainer (playlist_container, playlist_container.GetOptions ());
 }