Tests.IntegrationTestsBase.FindAppMetricsPath C# (CSharp) Method

FindAppMetricsPath() private static method

private static FindAppMetricsPath ( ) : string
return string
        private static string FindAppMetricsPath()
        {
            var serviceRootFolder = TestSettings.Instance.ServiceRootFolder;
            if (String.IsNullOrEmpty(serviceRootFolder))
            {
                throw new ApplicationException(
                    "Unable to find the TestSettings.Instance.ServiceRootFolder. "
                    + @"Make sure that you have configured the AppMetricsTest_ServiceRootFolder environment variable to point to the folder location of the AppMetrics website - eg C:\Dev\fandrei\AppMetrics\AppMetrics");
            }
            var p = Path.GetFullPath(serviceRootFolder);
            if (!Directory.Exists(p))
            {
                throw new ApplicationException(
                    string.Format("Cannot find {0}.  Make sure that your unit test runner is not copying the tests to a shadow folder", p));
            }
            return p;
        }