Ejemplo n.º 1
0
        public async Task GetPackageDetailsLeaf()
        {
            var leaf = await _target.GetPackageDetailsLeafAsync(TestData.PackageDetailsCatalogLeafUrl);

            Assert.Equal(TestData.PackageDetailsCatalogLeafUrl, leaf.CatalogLeafUrl);
            Assert.Equal(CatalogLeafType.PackageDetails, leaf.Type);

            Assert.Equal("Test.Package", leaf.PackageId);
            Assert.Equal("1.0.0", leaf.PackageVersion);
        }
Ejemplo n.º 2
0
        public async Task GetPackageDetailsLeaf()
        {
            var leaf = await _target.GetPackageDetailsLeafAsync(TestData.PackageDetailsCatalogLeafUrl);

            Assert.Equal(TestData.PackageDetailsCatalogLeafUrl, leaf.CatalogLeafUrl);
            Assert.Equal("PackageDetails", leaf.Type[0]);
            Assert.Equal("catalog:Permalink", leaf.Type[1]);

            Assert.Equal("Test.Package", leaf.PackageId);
            Assert.Equal("1.0.0", leaf.PackageVersion);
        }