Returns the temp file of the script
Syntax
Visual Basic (Declaration) | |
---|
Public ReadOnly Property ScriptFile As String |
C# | |
---|
public string ScriptFile {get;} |
Example
Library/Library.Test/TestScriptRunner.cs
C# | Copy Code |
---|
using (TempFile file = TempFile.FromExtension(".exe"))
using (ScriptRunner runner = new ScriptRunner(ScriptEngine.Language.Exe, file.TempPath))
{
Assert.AreEqual(ScriptEngine.Language.Exe, runner.ScriptEngine.ScriptType);
Assert.AreEqual(file.TempPath, runner.ScriptEngine.Executable);
Assert.IsFalse(File.Exists(runner.ScriptFile));
} |
VB.NET | Copy Code |
---|
Using file As TempFile = TempFile.FromExtension(".exe")
Using runner As New ScriptRunner(ScriptEngine.Language.Exe, file.TempPath)
Assert.AreEqual(ScriptEngine.Language.Exe, runner.ScriptEngine.ScriptType)
Assert.AreEqual(file.TempPath, runner.ScriptEngine.Executable)
Assert.IsFalse(File.Exists(runner.ScriptFile))
End Using
End Using |
Requirements
Target Platforms: Windows XP, Windows Server 2003, Windows Vista, Windows Server 2008, Windows 7
See Also