public void Then_it_should_be_able_to_remove_all_zune_media_ids() { var container = (ZuneWMATagContainer)ZuneTagContainerFactory.GetContainer(_path); container.AddZuneAttribute(new ZuneAttribute(ZuneIds.Artist, Guid.NewGuid())); container.RemoveZuneAttribute(ZuneIds.Artist); container.RemoveZuneAttribute(ZuneIds.Album); container.RemoveZuneAttribute(ZuneIds.Track); container.WriteToFile(_path); IZuneTagContainer tagContainer = ZuneTagContainerFactory.GetContainer(_path); Assert.That(tagContainer.ReadZuneAttributes(), Is.Empty); }
public void Then_it_should_be_able_to_read_out_all_the_zune_data() { IZuneTagContainer container = ZuneTagContainerFactory.GetContainer(_path); IEnumerable <ZuneAttribute> ids = container.ReadZuneAttributes().ToList(); Assert.That(ids.Count(), Is.EqualTo(3)); var mediaID = new ZuneAttribute(ZuneIds.Track, new Guid("29c29901-0100-11db-89ca-0019b92a3933")); var albumArtistMediaID = new ZuneAttribute(ZuneIds.Artist, new Guid("760f0800-0600-11db-89ca-0019b92a3933")); var albumMediaID = new ZuneAttribute(ZuneIds.Album, new Guid("25c29901-0100-11db-89ca-0019b92a3933")); Assert.That(ids.Contains(mediaID)); Assert.That(ids.Contains(albumArtistMediaID)); Assert.That(ids.Contains(albumMediaID)); }