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;
|
||||||
using System.Diagnostics;
|
using System.Diagnostics;
|
||||||
|
using TestLibrary;
|
||||||
|
|
||||||
namespace TestApp
|
namespace TestApp
|
||||||
{
|
{
|
||||||
|
@ -11,6 +12,7 @@ namespace TestApp
|
||||||
public static int Main(string[] args)
|
public static int Main(string[] args)
|
||||||
{
|
{
|
||||||
Console.WriteLine("This string came from ProjectA");
|
Console.WriteLine("This string came from ProjectA");
|
||||||
|
Console.WriteLine($"{ProjectD.GetMessage()}");
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -375,6 +375,21 @@ namespace Microsoft.DotNet.Migration.Tests
|
||||||
VerifyAllMSBuildOutputsRunnable(projectDirectory);
|
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)
|
private void VerifyAutoInjectedDesktopReferences(string projectDirectory, string projectName, bool shouldBePresent)
|
||||||
{
|
{
|
||||||
if (projectName != null)
|
if (projectName != null)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue