public void Then_it_should_be_able_to_read_the_tracks_meta_data()
        {
            IZuneTagContainer container = ZuneTagContainerFactory.GetContainer(_path);

            MetaData metaData = container.ReadMetaData();

            Assert.That(metaData.AlbumArtist, Is.EqualTo("The Decemberists"));
            Assert.That(metaData.AlbumName, Is.EqualTo("The Hazards of Love"));
            Assert.That(metaData.ContributingArtists, Is.EqualTo(new List <string> {
                "The Decemberists", "Pendulum", "AFI"
            }));
            Assert.That(metaData.DiscNumber, Is.EqualTo("1/1"));
            Assert.That(metaData.Genre, Is.EqualTo("Pop"));
            Assert.That(metaData.Title, Is.EqualTo("Prelude"));
            Assert.That(metaData.TrackNumber, Is.EqualTo("1"));
            Assert.That(metaData.Year, Is.EqualTo("2009"));
        }
        public void Then_it_should_be_able_to_update_all_the_meta_data()
        {
            var container = ZuneWMATagContainerTestsHelpers.CreateEmptyContainer();

            var metaData = new MetaData
            {
                AlbumArtist         = "bleh",
                AlbumName           = "bleh",
                ContributingArtists = new List <string> {
                    "bleh", "bleh1", "bleh2"
                },
                DiscNumber  = "1",
                Genre       = "Pop",
                Title       = "YouTwo",
                TrackNumber = "3",
                Year        = "2009"
            };

            container.AddMetaData(metaData);

            container.WriteToFile(_path);

            IZuneTagContainer newContainer = ZuneTagContainerFactory.GetContainer(_path);

            MetaData newMetaData = newContainer.ReadMetaData();

            Assert.That(newMetaData.AlbumArtist, Is.EqualTo(metaData.AlbumArtist));
            Assert.That(newMetaData.AlbumName, Is.EqualTo(metaData.AlbumName));
            Assert.That(newMetaData.ContributingArtists.First(), Is.EqualTo(metaData.ContributingArtists.First()));
            Assert.That(newMetaData.ContributingArtists.ElementAt(1), Is.EqualTo(metaData.ContributingArtists.ElementAt(1)));
            Assert.That(newMetaData.ContributingArtists.Last(), Is.EqualTo(metaData.ContributingArtists.Last()));
            Assert.That(newMetaData.DiscNumber, Is.EqualTo(metaData.DiscNumber));
            Assert.That(newMetaData.Genre, Is.EqualTo(metaData.Genre));
            Assert.That(newMetaData.Title, Is.EqualTo(metaData.Title));
            Assert.That(newMetaData.TrackNumber, Is.EqualTo(metaData.TrackNumber));
            Assert.That(newMetaData.Year, Is.EqualTo(metaData.Year));
        }