Namespace: DeltaEngine.Core
Assembly: DeltaEngine (in DeltaEngine.dll) Version: 1.1.1.0 (1.1.1)
Tests: DeltaEngine.Tests.Core.ProcessRunnerTests
2 unit tests call DeltaEngine.Core.ProcessRunner.WorkingDirectory
Assembly: DeltaEngine (in DeltaEngine.dll) Version: 1.1.1.0 (1.1.1)
Syntax
Property Value
Type: StringRemarks
Examples
[Test] public void DefaultWorkingDirectory() { var processRunner = new ProcessRunner("cmd.exe", "/c dir"); Assert.AreEqual(Environment.CurrentDirectory, processRunner.WorkingDirectory); }
[Test] public void ChangingWorkingDirectory() { var processRunner = new ProcessRunner("cmd.exe", "/c dir"); processRunner.Start(); var outputWithDefaultWorkingDirectory = processRunner.Output; processRunner.WorkingDirectory = @"C:\"; processRunner.Start(); var outputWithDefinedWorkingDirectory = processRunner.Output; Assert.AreNotEqual(outputWithDefaultWorkingDirectory, outputWithDefinedWorkingDirectory); }
See Also