예제 #1
0
        public void Issue28()
        {
            var strFilePath = Support2.GetFilePath(SolutionDirectory + "\\CsQuery.Tests\\Resources\\pupillogin.htm");

            var    objStreamReader = new StreamReader(strFilePath, Encoding.UTF8);
            string str             = objStreamReader.ReadToEnd();
            var    dom             = CQ.Create(str);
        }
예제 #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 + "/../");
        }