Adding a E2E test and a indirect dependency to TestAppDependencyGraph.
This commit is contained in:
parent
fa6aa749bd
commit
83350434bc
2 changed files with 17 additions and 0 deletions
|
@ -3,6 +3,7 @@
|
|||
|
||||
using System;
|
||||
using System.Diagnostics;
|
||||
using TestLibrary;
|
||||
|
||||
namespace TestApp
|
||||
{
|
||||
|
@ -11,6 +12,7 @@ namespace TestApp
|
|||
public static int Main(string[] args)
|
||||
{
|
||||
Console.WriteLine("This string came from ProjectA");
|
||||
Console.WriteLine($"{ProjectD.GetMessage()}");
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -375,6 +375,21 @@ namespace Microsoft.DotNet.Migration.Tests
|
|||
VerifyAllMSBuildOutputsRunnable(projectDirectory);
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void It_builds_a_migrated_app_with_a_indirect_dependency()
|
||||
{
|
||||
const string projectName = "ProjectA";
|
||||
var solutionDirectory =
|
||||
TestAssetsManager.CreateTestInstance("TestAppDependencyGraph", callingMethod: "p").Path;
|
||||
var projectDirectory = Path.Combine(solutionDirectory, projectName);
|
||||
|
||||
MigrateProject(new string[] { projectDirectory });
|
||||
Restore3(projectDirectory);
|
||||
BuildMSBuild(projectDirectory, projectName);
|
||||
|
||||
VerifyAllMSBuildOutputsRunnable(projectDirectory);
|
||||
}
|
||||
|
||||
private void VerifyAutoInjectedDesktopReferences(string projectDirectory, string projectName, bool shouldBePresent)
|
||||
{
|
||||
if (projectName != null)
|
||||
|
|
Loading…
Add table
Reference in a new issue