public void Test(JavaScriptFact fact) { // Append JavaScript 'Fact' File. Script.AppendFile(fact.TestFile); // Verify 'Fact'. RunTest(fact); }
protected String RunTest(JavaScriptFact fact) { try { // The action will always be the function name to call; must invoke function with (); to run test. return(Script.RunTest(fact)); } catch (ScriptException ex) { // StackTrace intentionally thrown away as it contains no meaninful information; exception details are in message. throw new ScriptException(fact.TestName + Environment.NewLine + ex.Message); } }
protected String RunTest(JavaScriptFact fact) { try { // The action will always be the function name to call; must invoke function with (); to run test. return Script.RunTest(fact); } catch (ScriptException ex) { // StackTrace intentionally thrown away as it contains no meaninful information; exception details are in message. throw new ScriptException(fact.TestName + Environment.NewLine + ex.Message); } }