public void Installer1_Install_DefaultFeature() { var config = new SetupConfigInstaller1 { TypeOfInstallation = TypeOfInstallation.Install, FeatureOne = true, FeatureTwo = false }; var testBed = new MsiTestBed(config); Assert.IsTrue(testBed.Execute()); }
public void Installer1_RepairFile() { var config = new SetupConfigInstaller1 { TypeOfInstallation = TypeOfInstallation.Repair }; var testBed = new MsiTestBed(config); MsiInstaller.InstallMSI(testBed.Verifier.SetupConfiguration, ((SetupConfigBaseMsi)testBed.Verifier.SetupConfiguration).FilePathToMsiFile, true, true); FileSystemTool.RemoveFile(config.InstallFolderParameter + @"\Payload1.txt"); Assert.IsTrue(testBed.Execute()); }
public void Installer1_UnInstall() { var config = new SetupConfigInstaller1 { TypeOfInstallation = TypeOfInstallation.UnInstall }; MsiInstaller.InstallMSI(config, config.FilePathToMsiFile, true, true); var testBed = new MsiTestBed(config); Assert.IsTrue(testBed.Execute()); }
public void Installer1_RepairNone() { var config = new SetupConfigInstaller1 { TypeOfInstallation = TypeOfInstallation.Repair }; var testBed = new MsiTestBed(config); MsiInstaller.InstallMSI(testBed.Verifier.SetupConfiguration, ((SetupConfigBaseMsi)testBed.Verifier.SetupConfiguration).FilePathToMsiFile, true, true); Assert.IsTrue(testBed.Execute()); }