Adding a new factory that creates the command as is, without adding the dotnet to it. We need it so that the runner can pass dotnet-test-xunit and get back the final corehost command, which is the right one for VS to use and attach to.

This commit is contained in:
Livar Cunha 2016-02-26 14:31:53 -08:00
parent 178d05a5ec
commit 5b5d2cd31a
6 changed files with 34 additions and 7 deletions

View file

@ -38,10 +38,10 @@ namespace Microsoft.Dotnet.Tools.Test.Tests
_commandFactoryMock = new Mock<ICommandFactory>();
_commandFactoryMock.Setup(c => c.Create(
_runner,
$"dotnet-{_runner}",
_testRunnerArguments,
new NuGetFramework("DNXCore", Version.Parse("5.0")),
null)).Returns(_commandMock.Object).Verifiable();
Constants.DefaultConfiguration)).Returns(_commandMock.Object).Verifiable();
}
[Fact]