public void Test(JavaScriptFact fact)
        {
            // Append JavaScript 'Fact' File.
            Script.AppendFile(fact.TestFile);

            // Verify 'Fact'.
            RunTest(fact);
        }
示例#2
0
 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);
     }
 }
示例#3
0
 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);
     }
 }