예제 #1
0
 static void AssertAudioItem (AudioItem audioItem, AudioItemOptions options)
 {
     AssertItem (audioItem, options);
     Assert.AreEqual (audioItem.Description, options.Description);
     Assert.AreEqual (audioItem.LongDescription, options.LongDescription);
     Assert.AreEqual (audioItem.Language, options.Language);
     Assert.IsTrue (audioItem.Genres.IsReadOnly);
     Assert.IsTrue (audioItem.Publishers.IsReadOnly);
     Assert.IsTrue (audioItem.Relations.IsReadOnly);
     Assert.IsTrue (audioItem.Rights.IsReadOnly);
     CollectionAssert.AreEqual (audioItem.Genres, options.Genres);
     CollectionAssert.AreEqual (audioItem.Publishers, options.Publishers);
     CollectionAssert.AreEqual (audioItem.Relations, options.Relations);
     CollectionAssert.AreEqual (audioItem.Rights, options.Rights);
 }
예제 #2
0
 public void AudioItemInstantiation ()
 {
     var options = new AudioItemOptions ();
     SetAudioItemOptions (options);
     var audio_item = new AudioItem ("-1", "-1", options);
     AssertAudioItem (audio_item, options);
     AssertAudioItem (audio_item, audio_item.GetOptions ());
 }