Exemplo n.º 1
0
        public static void SetupTestRun(TestContext context)
        {
            string testAppPath = Path.GetDirectoryName(new System.Diagnostics.StackFrame(true).GetFileName());

            string mvcAppPath = Support.CleanFilePath(testAppPath + "/../CsQuery.MvcApp");

            Host = MvcAppHost.CreateApplicationHost <CsQuery.MvcApp.MvcApplication>(mvcAppPath);
        }
Exemplo n.º 2
0
        public static void AssemblySetup()
        {
            string solutionFolderTry;
            bool   isMSTest = Support2.TryGetFilePath("./TestResults/", out solutionFolderTry);

            if (!isMSTest)
            {
                solutionFolderTry = Support2.GetFilePath("./CsQuery.Tests/");
            }

            CsQueryTest.SolutionDirectory = Support.CleanFilePath(solutionFolderTry + "/../");
        }