예제 #1
0
 public int Run(string[] arguments, Configuration configuration, ProgressReporter reporter)
 {
     LastArguments = arguments;
     ApartmentState = Thread.CurrentThread.GetApartmentState();
     try {
         return int.Parse(ConfigurationManager.AppSettings.Get("returnCode"));
     }
     catch (Exception) {
         return Result;
     }
 }
예제 #2
0
 public int Run(IList <string> arguments, Configuration configuration, ProgressReporter reporter)
 {
     LastArguments  = arguments;
     ApartmentState = Thread.CurrentThread.GetApartmentState();
     try {
         return(int.Parse(ConfigurationManager.AppSettings.Get("returnCode")));
     }
     catch (Exception) {
         return(Result);
     }
 }
예제 #3
0
        public int Run(string[] commandLineArguments, Configuration configuration, ProgressReporter reporter)
        {
            IAppDomainSetup setup = AppDomain.CurrentDomain.SetupInformation;
            string baseDir = typeof(VerifyAppDomainRunner).Assembly.CodeBase.Substring(8);
            baseDir = Path.GetDirectoryName(Path.GetFullPath(baseDir));

            if (setup.ApplicationBase != Path.GetDirectoryName(baseDir))
                return 1;
            else if (setup.ApplicationName != "CustomAppDomainSetupIsUsed-test-domain")
                return 2;
            else if (setup.CachePath != Path.Combine(baseDir, "cache-tmp"))
                return 3;
            else if (setup.ConfigurationFile != Path.Combine(baseDir, "fitSharpTest.dll.alt.config"))
                return 4;
            else if (!setup.DynamicBase.StartsWith(Path.Combine(baseDir, "dynamic-tmp")))
                return 5;
            else if (setup.PrivateBinPath != baseDir)
                return 6;
            else if (setup.PrivateBinPathProbe != "")
                return 7;
            else
                return 0;
        }