public void PackageReader_NestedReferenceItems() { using (var packageFile = TestPackagesCore.GetLibSubFolderPackage()) { var zip = TestPackagesCore.GetZip(packageFile); using (PackageArchiveReader reader = new PackageArchiveReader(zip)) { var groups = reader.GetReferenceItems().ToArray(); Assert.Equal(1, groups.Count()); Assert.Equal(NuGetFramework.Parse("net40"), groups[0].TargetFramework); Assert.Equal(2, groups[0].Items.Count()); Assert.Equal("lib/net40/test40.dll", groups[0].Items.ToArray()[0]); Assert.Equal("lib/net40/x86/testx86.dll", groups[0].Items.ToArray()[1]); } } }