Ejemplo n.º 1
0
 static void AssertAlbum (Album album, AlbumOptions options)
 {
     AssertContainer (album, options);
     Assert.AreEqual (album.StorageMedium, options.StorageMedium);
     Assert.AreEqual (album.LongDescription, options.LongDescription);
     Assert.AreEqual (album.Description, options.Description);
     Assert.AreEqual (album.Date, options.Date);
     Assert.IsTrue (album.Publishers.IsReadOnly);
     Assert.IsTrue (album.Contributors.IsReadOnly);
     Assert.IsTrue (album.Relations.IsReadOnly);
     Assert.IsTrue (album.Rights.IsReadOnly);
     CollectionAssert.AreEqual (album.Publishers, options.Publishers);
     CollectionAssert.AreEqual (album.Contributors, options.Contributors);
     CollectionAssert.AreEqual (album.Relations, options.Relations);
     CollectionAssert.AreEqual (album.Rights, options.Rights);
 }
Ejemplo n.º 2
0
 public void AlbumInstantiation ()
 {
     var options = new AlbumOptions ();
     SetAlbumOptions (options);
     var album = new Album ("-1", "-1", options);
     AssertAlbum (album, options);
     AssertAlbum (album, album.GetOptions ());
 }