CK.Text.Tests.TestHelper.InitalizePaths C# (CSharp) Method

InitalizePaths() static private method

static private InitalizePaths ( ) : void
return void
        static void InitalizePaths()
        {
#if NET451
            string p = new Uri( System.Reflection.Assembly.GetExecutingAssembly().CodeBase ).LocalPath;
            p = Path.GetDirectoryName( Path.GetDirectoryName( Path.GetDirectoryName( p ) ) );
#else
            string p = Microsoft.Extensions.PlatformAbstractions.PlatformServices.Default.Application.ApplicationBasePath;
#endif
            _testFolder = Path.Combine( p, "TestDir" );
            do
            {
                p = Path.GetDirectoryName( p );
            }
            while( !File.Exists( Path.Combine( p, "CK-Core.sln" ) ) );
            _solutionFolder = p;

            Console.WriteLine( "SolutionFolder is: {1}\r\nTestFolder is: {0}", _testFolder, _solutionFolder );
            CleanupTestFolder();
        }
    }