Skip to content

Commit f728327

Browse files
committed
InstallAndRunTests.AppStartsWithManagedMarshalMethodsLookupEnabled works
1 parent ccc3472 commit f728327

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
@@ -1750,9 +1750,17 @@ public void NativeAOTSample ()
17501750
}
17511751

17521752
[Test]
1753-
public void AppStartsWithManagedMarshalMethodsLookupEnabled ()
1753+
public void AppStartsWithManagedMarshalMethodsLookupEnabled ([Values] AndroidRuntime runtime)
17541754
{
1755-
var proj = new XamarinAndroidApplicationProject { IsRelease = true };
1755+
const bool isRelease = true;
1756+
if (IgnoreUnsupportedConfiguration (runtime, release: isRelease)) {
1757+
return;
1758+
}
1759+
1760+
var proj = new XamarinAndroidApplicationProject (packageName: PackageUtils.MakePackageName (runtime)) {
1761+
IsRelease = isRelease,
1762+
};
1763+
proj.SetRuntime (runtime);
17561764
proj.SetProperty ("AndroidUseMarshalMethods", "true");
17571765
proj.SetProperty ("_AndroidUseManagedMarshalMethodsLookup", "true");
17581766

0 commit comments

Comments
 (0)