コード例 #1
0
        public void AreFilesOutOfDate_LocalLessThan_Current()
        {
            PackageInstaller pkgInstaller    = new PackageInstaller();
            IInstallSettings currentSettings = pkgInstaller.ReadInstallSettings(Consts.settingsXml01);
            string           filePath        = this.WriteTextToTempFile(Consts.settingsXml_Version05);
            bool             result          = pkgInstaller.AreExistingFilesOutOfDate(currentSettings, filePath);

            Assert.IsTrue(result);
        }
コード例 #2
0
        public void InstallFilesTest01()
        {
            // TODO: delete files which reside in the install location locally

            try {
                PackageInstaller pkgInstaller = new PackageInstaller();

                IInstallSettings settings = pkgInstaller.ReadInstallSettings(Consts.settingsXml01);
                pkgInstaller.InstallFiles(settings);
            }
            catch (Exception ex) {
                throw ex;
            }
            // TODO: Some assertions here
        }