@@ -291,7 +291,7 @@ public void ToggleFastDev ()
291
291
}
292
292
293
293
[ Test ]
294
- public void ToggleDebugReleaseWithSigning ( )
294
+ public void ToggleDebugReleaseWithSigning ( [ Values ( "aab" , "apk" ) ] string packageFormat )
295
295
{
296
296
AssertCommercialBuild ( ) ;
297
297
AssertHasDevices ( ) ;
@@ -310,7 +310,7 @@ public void ToggleDebugReleaseWithSigning ()
310
310
proj . SetProperty ( proj . ReleaseProperties , "AndroidSigningKeyStore" , "test.keystore" ) ;
311
311
proj . SetProperty ( proj . ReleaseProperties , "AndroidSigningKeyAlias" , "mykey" ) ;
312
312
proj . SetAndroidSupportedAbis ( "armeabi-v7a" , "x86" , "x86_64" ) ;
313
- proj . SetProperty ( proj . ReleaseProperties , "AndroidPackageFormat" , "aab" ) ;
313
+ proj . SetProperty ( proj . ReleaseProperties , "AndroidPackageFormat" , packageFormat ) ;
314
314
proj . SetProperty ( "AndroidUseApkSigner" , "true" ) ;
315
315
proj . OtherBuildItems . Add ( new BuildItem ( BuildActions . None , "test.keystore" ) {
316
316
BinaryContent = ( ) => data
@@ -329,8 +329,8 @@ public void ToggleDebugReleaseWithSigning ()
329
329
//Now toggle to Release
330
330
proj . IsRelease = true ;
331
331
Assert . IsTrue ( builder . Install ( proj ) , "Second install should have succeeded." ) ;
332
- proj . IsRelease = true ;
333
- Assert . IsTrue ( builder . Install ( proj ) , "Install should have succeeded." ) ;
332
+ proj . IsRelease = false ;
333
+ Assert . IsTrue ( builder . Install ( proj ) , "Third install should have succeeded." ) ;
334
334
Assert . IsTrue ( builder . Uninstall ( proj ) , "unnstall should have succeeded." ) ;
335
335
}
336
336
}
0 commit comments