Skip to content

Commit

Permalink
reverting commit. (microsoft#324)
Browse files Browse the repository at this point in the history
  • Loading branch information
harshjain2 committed Jan 6, 2017
1 parent 3743280 commit 29f8d3d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ public int LaunchTestHost(TestProcessStartInfo testHostStartInfo)
// G:\tmp\netcore-test\bin\Debug\netcoreapp1.0\netcore-test.dll
startInfo.Arguments = args;
startInfo.EnvironmentVariables = environmentVariables ?? new Dictionary<string, string>();
startInfo.WorkingDirectory = sourceDirectory;
startInfo.WorkingDirectory = Directory.GetCurrentDirectory();

return startInfo;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -257,14 +257,14 @@ public void GetTestHostProcessStartInfoShouldThrowExceptionWhenDotnetIsNotInstal
}

[TestMethod]
public void GetTestHostProcessStartInfoShouldIncludeSourceDirectoryAsWorkingDirectory()
public void GetTestHostProcessStartInfoShouldIncludeCurrentDirectoryAsWorkingDirectory()
{
// Absolute path to the source directory
var sourcePath = Path.Combine($"{Path.DirectorySeparatorChar}tmp", "test.dll");
this.mockFileHelper.Setup(ph => ph.Exists(@"\tmp\testhost.dll")).Returns(true);
var startInfo = this.dotnetHostManager.GetTestHostProcessStartInfo(new[] { sourcePath }, null, this.defaultConnectionInfo);
Assert.AreEqual($"{Path.DirectorySeparatorChar}tmp", startInfo.WorkingDirectory);

Assert.AreEqual(Directory.GetCurrentDirectory(), startInfo.WorkingDirectory);
}

[TestMethod]
Expand Down

0 comments on commit 29f8d3d

Please sign in to comment.