GetConfigDir() static private method

static private GetConfigDir ( ) : string
return string
Exemplo n.º 1
0
        private void createProcessStartInfo()
        {
            psInfo = new ProcessStartInfo(SERVEREXE);

            if (debug)
            {
                psInfo.Arguments = " -DV ";
            }
            else
            {
#if NET45
                psInfo.WindowStyle = ProcessWindowStyle.Hidden;
#else
                psInfo.CreateNoWindow = true;
#endif
            }

            psInfo.WorkingDirectory = UnitTestUtilities.GetConfigDir();
        }
Exemplo n.º 2
0
        private ProcessStartInfo createProcessStartInfo(TestContext context)
        {
            string           gnatsd = Properties.Settings.Default.gnatsd;
            ProcessStartInfo psInfo = new ProcessStartInfo(gnatsd);

            if (debug)
            {
                psInfo.Arguments = " -DV ";
            }
            else
            {
                psInfo.WindowStyle = ProcessWindowStyle.Hidden;
            }

            if (context != null)
            {
                psInfo.WorkingDirectory =
                    UnitTestUtilities.GetConfigDir(context);
            }

            return(psInfo);
        }