public void Setup()
        {
            string fileContent =
                "// I told the doctor I broke my leg in two places.\n" +
                "// He told me to stop going to those places.\n" +
                "//                               - Henny Youngman\n" +
                "\n" +
                "[Imperative]\n" +
                "{\n" +
                "\t    aVar = 2;\n" +
                "\t    nVar = -4.5678; // Assign value of -4.5678\n" +
                "\t    bVar = aVar;\n" +
                "\t    sVar = (32.7654 + 5) + bVar;\n" +
                "\n" +
                "\t    // An associative block.\n" +
                "\t    [Associative]\n" +
                "\t    {\n" +
                "\t    \tsVar = 3;\n" +
                "\t    }\n" +
                "}\n";

            testSolution = Solution.CreateTemporary();
            testSolution.AddNewScript(fileContent);
            testSolution.ActivateScript(0);

            textCore = TextEditorCore.CreateTemporary();
            textCore.ChangeScript(0);
            textCore.ParseScriptImmediate();
        }
Ejemplo n.º 2
0
 public void Setup()
 {
     testSolution = Solution.CreateTemporary();
     testSolution.AddNewScript("Assignment09.ds");
     testSolution.AddNewScript("Assignment19.ds");
     testSolution.AddNewScript("Assignment13.ds");
     TextEditorCore.CreateTemporary();
 }
        public void Setup()
        {
            string fileContent =
                "hello\n" +
                "\n" +
                "\t\tcruel\n" +
                "\tworld";

            testSolution = Solution.CreateTemporary();
            testSolution.AddNewScript(fileContent);
            testSolution.ActivateScript(0);

            textCore = TextEditorCore.CreateTemporary();
            textCore.ChangeScript(0);
        }
 public void Setup()
 {
     TextEditorCore.CreateTemporary();
 }