コード例 #1
0
        public MsiTestBed(SetupConfigBaseMsi setupConfig)
        {
            if (!File.Exists(setupConfig.FilePathToMsiFile))
            {
                throw new FileNotFoundException(setupConfig.FilePathToMsiFile);
            }

            if (!File.Exists(setupConfig.FilePathToTestData))
            {
                throw new FileNotFoundException(setupConfig.FilePathToTestData);
            }

            Verifier = new Verifier(setupConfig.FilePathToTestData, setupConfig);
        }
コード例 #2
0
        private static void RunTest(SetupConfigBaseMsi config)
        {
            var testBed = new MsiTestBed(config);
            var result = testBed.Execute();
            WriteResult(result);

            new TestCleaner().CleanMachine();
        }