示例#1
0
        public void Releases_EarlyAccess_ShouldBeTrue_ForEarlyAccess()
        {
            var json       = File.ReadAllText(@"TestData\win-update.json");
            var categories = JsonConvert.DeserializeObject <CategoriesContract>(json);
            var releases   = new Update.Releases.Releases(categories.Categories, new Version(), "EarlyAccess");

            releases.Where(r => r.EarlyAccess).Should().HaveCount(2);
        }
示例#2
0
        public void Releases_New_ShouldBeTrue_ForNewReleases()
        {
            var json       = File.ReadAllText(@"TestData\win-update.json");
            var categories = JsonConvert.DeserializeObject <CategoriesContract>(json);
            var releases   = new Update.Releases.Releases(categories.Categories, Version.Parse("1.5.0"), "");

            releases.Where(r => r.New).Should().HaveCount(3);
        }