コード例 #1
0
ファイル: UnitTest1.cs プロジェクト: szledan/aplusdotnet
        public void TestAPlusCoreCompiler()
        {
            //VariableHelper Tests
            VariableHelper.BuildValueQualifiedName("str.1", "str2");
            VariableHelper.CreateContextParts("str1", "str2");
            VariableHelper.CreateContextParts("", "str2");

            //FunctionInformation Tests
            FunctionInformation fi = new FunctionInformation("stringContext");
            fi.IsLocalFunction("string2");
            fi.RegisterLocalFunction("string");
            fi.Context = "string";

            //ParseExcemtion Tests
            ParseException pe = new ParseException("string");
            if (pe.CanContinue){}
        }