public void Should_be_able_to_get_the_updates_file_size_from_the_update() { var reader = new AppcastReader(); Update update = reader.Read(@"Samples\zunesocialtagger.xml").First(); Assert.That(update.FileLength, Is.EqualTo(865843)); }
public void Should_be_able_to_get_the_file_url_from_the_update() { var reader = new AppcastReader(); Update update = reader.Read(@"Samples\zunesocialtagger.xml").First(); Assert.That(update.FileUrl, Is.EqualTo("http://cloud.github.com/downloads/leetreveil/Zune-Social-Tagger/Zune_Social_Tagger_1.2.zip")); }
public void Should_be_able_to_get_the_title_from_the_update() { var reader = new AppcastReader(); Update update = reader.Read(@"Samples\zunesocialtagger.xml").First(); Assert.That(update.Title, Is.EqualTo("Zune Social Tagger")); }
public void Should_be_able_to_get_the_version_no__from_the_update() { var reader = new AppcastReader(); Update update = reader.Read(@"Samples\zunesocialtagger.xml").First(); Assert.That(update.Version, Is.EqualTo(new Version(1, 2))); }
public void Should_be_able_to_get_the_description_from_the_update() { var reader = new AppcastReader(); var updates = reader.Read(ZuneUpdateFeed); Assert.AreEqual(1, updates.Count()); Assert.AreEqual(".WMA Support and other minor bug fixes", updates.First().Description); }