コード例 #1
0
 public void ScriptRunnerReturnsFailureOnNullData()
 {
     _runner = new ScriptContextRunner(new ScriptContext {
         ScriptName = null, CallingObject = 0
     });
     Assert.Equal(-1, _runner.RunScript());
 }
コード例 #2
0
 public void ScriptRunnerWillNotResolveUnmanaged()
 {
     _runner = new ScriptContextRunner(_unmanagedContext);
     Assert.Equal(-1, _runner.RunScript());
 }
コード例 #3
0
 public void ScriptRunnerMockScriptReturnsZero()
 {
     _runner = new ScriptContextRunner(_managedContext);
     Assert.Equal(0, _runner.RunScript());
 }
コード例 #4
0
 public void ScriptRunnerCanFindScriptsInSubdirectories()
 {
     _runner = new ScriptContextRunner(_managedContextNested);
     Assert.Equal(0, _runner.RunScript());
 }