Fix projects and tests after merge of rel/1.0.0.
This commit is contained in:
parent
7543551602
commit
a2c1a39d07
14 changed files with 94 additions and 67 deletions
|
@ -59,15 +59,26 @@ namespace Microsoft.DotNet.Tests
|
|||
}
|
||||
|
||||
[Theory]
|
||||
[InlineData("AppWithDirectAndToolDep")]
|
||||
[InlineData("AppWithToolDependency")]
|
||||
public void TestProjectToolIsAvailableThroughDriver(string appName)
|
||||
[InlineData("AppWithDirectAndToolDep", true)]
|
||||
[InlineData("AppWithToolDependency", false)]
|
||||
public void TestProjectToolIsAvailableThroughDriver(string appName, bool useCurrentFrameworkRuntimeVersion)
|
||||
{
|
||||
var testInstance = TestAssets.Get(appName)
|
||||
.CreateInstance()
|
||||
.WithSourceFiles()
|
||||
.WithRestoreFiles();
|
||||
|
||||
if (useCurrentFrameworkRuntimeVersion)
|
||||
{
|
||||
testInstance = testInstance.UseCurrentRuntimeFrameworkVersion();
|
||||
|
||||
// restore again now that the project has changed
|
||||
new RestoreCommand()
|
||||
.WithWorkingDirectory(testInstance.Root)
|
||||
.Execute()
|
||||
.Should().Pass();
|
||||
}
|
||||
|
||||
new BuildCommand()
|
||||
.WithProjectDirectory(testInstance.Root)
|
||||
.Execute()
|
||||
|
@ -263,7 +274,14 @@ namespace Microsoft.DotNet.Tests
|
|||
var testInstance = TestAssets.Get("AppWithDirectDep")
|
||||
.CreateInstance()
|
||||
.WithSourceFiles()
|
||||
.WithRestoreFiles();
|
||||
.WithRestoreFiles()
|
||||
.UseCurrentRuntimeFrameworkVersion();
|
||||
|
||||
// restore again now that the project has changed
|
||||
new RestoreCommand()
|
||||
.WithWorkingDirectory(testInstance.Root)
|
||||
.Execute()
|
||||
.Should().Pass();
|
||||
|
||||
new BuildCommand()
|
||||
.WithWorkingDirectory(testInstance.Root)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue