예제 #1
0
 public void TestInitialize()
 {
     engine = new VBScriptEngine(WindowsScriptEngineFlags.EnableDebugging);
     engine.Execute("function pi : pi = 4 * atn(1) : end function");
     engine.Execute("function e : e = exp(1) : end function");
 }
예제 #2
0
        public void VBScriptEngine_StandardsMode()
        {
            engine.Dispose();
            engine = new VBScriptEngine(WindowsScriptEngineFlags.EnableDebugging | WindowsScriptEngineFlags.EnableStandardsMode);

            // Standards Mode shouldn't affect VBScriptEngine at all
            engine.Execute("function pi : pi = 4 * atn(1) : end function");
            engine.Execute("function e : e = exp(1) : end function");
            VBScriptEngine_Execute();
        }