コード例 #1
0
ファイル: ObjectTests.cs プロジェクト: pacificIT/mono-upnp
 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);
 }
コード例 #2
0
ファイル: ObjectTests.cs プロジェクト: pacificIT/mono-upnp
 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 ());
 }