Example #1
0
        private void TestPackageVersioning()
        {
            IUnpackZipToolSupport support = new UnpackZipToolTestSupport();
            string version1 = TestFilesDir.GetTestPath("TestPackageVersioning.zip");
            var    retval   = ToolInstaller.UnpackZipTool(version1, support);

            Assert.AreEqual(1, retval.Installations.Count);
            ProgramPathContainer ppc = new ProgramPathContainer("BogusProgram", "3.0.0");
            var ListPackages         = retval.Installations[ppc];

            Assert.AreEqual(3, ListPackages.Count);
            Assert.AreEqual("TestPAckages", ListPackages[0].Name);
            Assert.AreEqual("7.3-28", ListPackages[0].Version);
            Assert.AreEqual("TestOtherPAckage", ListPackages[1].Name);
            Assert.AreEqual("3.2.3", ListPackages[1].Version);
            Assert.AreEqual("noVersionPackage", ListPackages[2].Name);
            Assert.AreEqual(null, ListPackages[2].Version);
        }
Example #2
0
 private void TestPackageVersioning()
 {
     IUnpackZipToolSupport support = new UnpackZipToolTestSupport();
     string version1 = TestFilesDir.GetTestPath("TestPackageVersioning.zip");
     var retval = ToolInstaller.UnpackZipTool(version1, support);
     Assert.AreEqual(1, retval.Installations.Count);
     ProgramPathContainer ppc = new ProgramPathContainer("BogusProgram","3.0.0");
     var ListPackages = retval.Installations[ppc];
     Assert.AreEqual(3, ListPackages.Count);
     Assert.AreEqual("TestPAckages", ListPackages[0].Name);
     Assert.AreEqual("7.3-28",ListPackages[0].Version);
     Assert.AreEqual("TestOtherPAckage",ListPackages[1].Name);
     Assert.AreEqual("3.2.3",ListPackages[1].Version);
     Assert.AreEqual("noVersionPackage", ListPackages[2].Name);
     Assert.AreEqual(null,ListPackages[2].Version);
 }