public void GetPackages() { IPackageRepository rep = new DirectoryPackageRepository("myrep", IO.Path.Combine("Testdata", "packagerepository")); PackageList packages = rep.GetPackages(); Assert.IsNotNull(packages); Assert.AreEqual(4, packages.Count()); Assert.IsTrue(packages.Contains("package1")); Assert.IsTrue(packages.Contains("package2")); Assert.IsTrue(packages.Contains("package3")); Assert.IsTrue(packages.Contains("package4")); Assert.IsTrue(packages["package1"].Versions.Contains("1.1")); Assert.IsTrue(packages["package2"].Versions.Contains("2.1")); Assert.IsTrue(packages ["package3"].Dependencies.Contains("package4.feature2")); Assert.AreEqual("4.4", packages ["package3"].Dependencies["package4.feature2"].Version.Name); }