static void AssertAudioBook (AudioBook audioBook, AudioBookOptions options) { AssertAudioItem (audioBook, options); Assert.AreEqual (audioBook.StorageMedium, options.StorageMedium); Assert.AreEqual (audioBook.Date, options.Date); Assert.IsTrue (audioBook.Producers.IsReadOnly); Assert.IsTrue (audioBook.Contributors.IsReadOnly); CollectionAssert.AreEqual (audioBook.Producers, options.Producers); CollectionAssert.AreEqual (audioBook.Contributors, options.Contributors); }
public void AudioBookInstantiation () { var options = new AudioBookOptions (); SetAudioBookOptions (options); var audio_book = new AudioBook ("-1", "-1", options); AssertAudioBook (audio_book, options); AssertAudioBook (audio_book, audio_book.GetOptions ()); }