public void TestGetPackages() { repositoryOne.AddPackage(Helper.MockPackage("foo", "1.0")); repositoryTwo.AddPackage(Helper.MockPackage("bar", "1.0")); var packages = repositoryComposite.GetPackages(); Assert.AreEqual(2, packages.Length); Assert.AreEqual("foo", packages[0].GetName()); Assert.AreEqual("1.0", packages[0].GetVersionPretty()); Assert.AreEqual("bar", packages[1].GetName()); Assert.AreEqual("1.0", packages[1].GetVersionPretty()); }