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"); }
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(); }