Skip to content

Commit 1fc2bd5

Browse files
committed
InstallAndRunTests.AppStartsWithManagedMarshalMethodsLookupEnabled works
1 parent 2b88517 commit 1fc2bd5

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

tests/MSBuildDeviceIntegration/Tests/InstallAndRunTests.cs

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1739,9 +1739,17 @@ public void NativeAOTSample ()
17391739
}
17401740

17411741
[Test]
1742-
public void AppStartsWithManagedMarshalMethodsLookupEnabled ()
1742+
public void AppStartsWithManagedMarshalMethodsLookupEnabled ([Values] AndroidRuntime runtime)
17431743
{
1744-
var proj = new XamarinAndroidApplicationProject { IsRelease = true };
1744+
const bool isRelease = true;
1745+
if (IgnoreUnsupportedConfiguration (runtime, release: isRelease)) {
1746+
return;
1747+
}
1748+
1749+
var proj = new XamarinAndroidApplicationProject (packageName: PackageUtils.MakePackageName (runtime)) {
1750+
IsRelease = isRelease,
1751+
};
1752+
proj.SetRuntime (runtime);
17451753
proj.SetProperty ("AndroidUseMarshalMethods", "true");
17461754
proj.SetProperty ("_AndroidUseManagedMarshalMethodsLookup", "true");
17471755

0 commit comments

Comments
 (0)