public void ScriptRunnerReturnsFailureOnNullData() { _runner = new ScriptContextRunner(new ScriptContext { ScriptName = null, CallingObject = 0 }); Assert.Equal(-1, _runner.RunScript()); }
public void ScriptRunnerWillNotResolveUnmanaged() { _runner = new ScriptContextRunner(_unmanagedContext); Assert.Equal(-1, _runner.RunScript()); }
public void ScriptRunnerMockScriptReturnsZero() { _runner = new ScriptContextRunner(_managedContext); Assert.Equal(0, _runner.RunScript()); }
public void ScriptRunnerCanFindScriptsInSubdirectories() { _runner = new ScriptContextRunner(_managedContextNested); Assert.Equal(0, _runner.RunScript()); }