Skip to content

Commit

Permalink
Add a Unit Test
Browse files Browse the repository at this point in the history
  • Loading branch information
dellis1972 authored and jonpryor committed Jan 12, 2023
1 parent ff399ab commit 809149e
Showing 1 changed file with 24 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -247,6 +247,30 @@ public void AllProjectsHaveSameOutputDirectory()
sb.Dispose ();
}

[Test]
public void BuildSolutionWithMultipleProjectsInParallel ()
{
var testPath = Path.Combine ("temp", "BuildSolutionWithMultipleProjects");
var sb = new SolutionBuilder("BuildSolutionWithMultipleProjects.sln") {
SolutionPath = Path.Combine (Root, testPath),
MaxCpuCount = 4,
};
for (int i=1; i <= 4; i++) {
var app1 = new XamarinAndroidApplicationProject () {
ProjectName = $"App{i}",
PackageName = $"com.companyname.App{i}",
AotAssemblies = true,
IsRelease = true,
};
app1.SetProperty ("AndroidEnableMarshalMethods", "True");
sb.Projects.Add (app1);
}
sb.BuildingInsideVisualStudio = false;
Assert.IsTrue (sb.Build (), "Build of solution should have succeeded");
Assert.IsTrue (sb.ReBuild (), "ReBuild of solution should have succeeded");
sb.Dispose ();
}

[Test]
public void JavacTaskDoesNotRunOnSecondBuild ()
{
Expand Down

0 comments on commit 809149e

Please sign in to comment.