public void ShouldUseWyamRunnerFromToolPathIfProvidedOnWindows(string toolPath, string expected) { // Given WyamToolFixture fixture = new WyamToolFixture { Settings = { ToolPath = toolPath } }; fixture.GivenSettingsToolPathExist(); // When ToolFixtureResult result = fixture.Run(); // Then Assert.AreEqual(expected, result.Path.FullPath); }
public void ShouldUseWyamRunnerFromToolPathIfProvidedOnWindows(string toolPath, string expected) { // Given WyamToolFixture fixture = new WyamToolFixture { Settings = { ToolPath = toolPath } }; fixture.GivenSettingsToolPathExist(); // When ToolFixtureResult result = fixture.Run(); // Then result.Path.FullPath.ShouldBe("dotnet"); result.Args.ShouldStartWith(expected); }