Example #1
0
        public void TestLatestReleases_GetLatestReleases()
        {
            UpdateChecker.LatestReleases latest = UpdateChecker.LatestReleases.GetLatestReleases(HTML);

            Assert.AreEqual(latest.html_url, "releases/tag/0.0.1", "A1");
            Assert.AreEqual(latest.tag_name, "0.0.1", "A2");
            Assert.AreEqual(latest.assets.Count, 1, "A3");

            UpdateChecker.LatestReleases.Assets assets = latest.assets[0];
            Assert.AreEqual(assets.name, "0.0.1.zip", "A4");
            Assert.AreEqual(assets.browser_download_url, "/releases/download/0.0.1/0.0.1.zip", "A5");
        }
Example #2
0
        public void TestLatestReleases_GetLatestReleases()
        {
            UpdateChecker.LatestReleases latest = UpdateChecker.LatestReleases.GetLatestReleases(HTML);

            Assert.AreEqual(latest.tag_name, "0.0.1", "A2");
        }