diff --git a/tests/MSBuildDeviceIntegration/Tests/InstallTests.cs b/tests/MSBuildDeviceIntegration/Tests/InstallTests.cs index 7e52e74de3b..57591ee8fc9 100644 --- a/tests/MSBuildDeviceIntegration/Tests/InstallTests.cs +++ b/tests/MSBuildDeviceIntegration/Tests/InstallTests.cs @@ -291,7 +291,7 @@ public void ToggleFastDev () } [Test] - public void ToggleDebugReleaseWithSigning () + public void ToggleDebugReleaseWithSigning ([Values ("aab", "apk")] string packageFormat) { AssertCommercialBuild (); AssertHasDevices (); @@ -310,7 +310,7 @@ public void ToggleDebugReleaseWithSigning () proj.SetProperty (proj.ReleaseProperties, "AndroidSigningKeyStore", "test.keystore"); proj.SetProperty (proj.ReleaseProperties, "AndroidSigningKeyAlias", "mykey"); proj.SetAndroidSupportedAbis ("armeabi-v7a", "x86", "x86_64"); - proj.SetProperty (proj.ReleaseProperties, "AndroidPackageFormat", "aab"); + proj.SetProperty (proj.ReleaseProperties, "AndroidPackageFormat", packageFormat); proj.SetProperty ("AndroidUseApkSigner", "true"); proj.OtherBuildItems.Add (new BuildItem (BuildActions.None, "test.keystore") { BinaryContent = () => data @@ -329,8 +329,8 @@ public void ToggleDebugReleaseWithSigning () //Now toggle to Release proj.IsRelease = true; Assert.IsTrue (builder.Install (proj), "Second install should have succeeded."); - proj.IsRelease = true; - Assert.IsTrue (builder.Install (proj), "Install should have succeeded."); + proj.IsRelease = false; + Assert.IsTrue (builder.Install (proj), "Third install should have succeeded."); Assert.IsTrue (builder.Uninstall (proj), "unnstall should have succeeded."); } }