@@ -56,6 +56,7 @@ public void ReInstallIfUserUninstalled ([Values (false, true)] bool isRelease)
5656 Assert . IsTrue ( builder . Output . AreTargetsAllBuilt ( "_Upload" ) , "_Upload should have built completely." ) ;
5757 Assert . AreEqual ( $ "package:{ proj . PackageName } ", RunAdbCommand ( $ "shell pm list packages { proj . PackageName } ") . Trim ( ) ,
5858 $ "{ proj . PackageName } is not installed on the device.") ;
59+ Assert . IsTrue ( builder . Uninstall ( proj ) , "unnstall should have succeeded." ) ;
5960 }
6061 }
6162
@@ -68,7 +69,7 @@ public void InstallAndUnInstall ([Values (false, true)] bool isRelease)
6869 if ( ! HasDevices ) {
6970 Assert . Ignore ( "Test Skipped no devices or emulators found." ) ;
7071 }
71-
72+
7273 var proj = new XamarinAndroidApplicationProject ( ) {
7374 IsRelease = isRelease ,
7475 } ;
@@ -136,6 +137,7 @@ public void ChangeKeystoreRedeploy ()
136137 proj . SetProperty ( "AndroidSigningKeyAlias" , "mykey" ) ;
137138
138139 Assert . IsTrue ( builder . Install ( proj ) , "second install should succeed." ) ;
140+ Assert . IsTrue ( builder . Uninstall ( proj ) , "unnstall should have succeeded." ) ;
139141 }
140142 }
141143
@@ -179,7 +181,7 @@ public void SwitchConfigurationsShouldRedeploy ()
179181 Assert . IsTrue ( builder . Install ( proj ) ) ;
180182 Assert . AreEqual ( $ "package:{ proj . PackageName } ", RunAdbCommand ( $ "shell pm list packages { proj . PackageName } ") . Trim ( ) ,
181183 $ "{ proj . PackageName } is not installed on the device.") ;
182-
184+
183185 directorylist = string . Empty ;
184186 foreach ( var dir in overrideDirs ) {
185187 var listing = RunAdbCommand ( $ "shell ls { dir } ") ;
@@ -200,7 +202,7 @@ public void SwitchConfigurationsShouldRedeploy ()
200202 directorylist += listing ;
201203 }
202204 StringAssert . Contains ( $ "{ proj . AssemblyName } ", directorylist , $ "{ proj . AssemblyName } not found in fastdev directory.") ;
203-
205+
204206 Assert . IsTrue ( builder . Uninstall ( proj ) ) ;
205207 Assert . AreNotEqual ( $ "package:{ proj . PackageName } ", RunAdbCommand ( $ "shell pm list packages { proj . PackageName } ") . Trim ( ) ,
206208 $ "{ proj . PackageName } is installed on the device.") ;
@@ -262,7 +264,7 @@ public void InstallWithoutSharedRuntime ()
262264 StringAssert . Contains ( $ "{ proj . ProjectName } .dll", directorylist , $ "{ proj . ProjectName } .dll should exist in the .__override__ directory.") ;
263265 StringAssert . Contains ( $ "System.dll", directorylist , $ "System.dll should exist in the .__override__ directory.") ;
264266 StringAssert . Contains ( $ "Mono.Android.dll", directorylist , $ "Mono.Android.dll should exist in the .__override__ directory.") ;
265-
267+ Assert . IsTrue ( builder . Uninstall ( proj ) , "unnstall should have succeeded." ) ;
266268 }
267269 }
268270
@@ -345,6 +347,7 @@ public void ToggleFastDev ()
345347
346348 //Deploy one last time to verify install still works without the .__override__ directory existing
347349 Assert . IsTrue ( builder . Install ( proj ) , "Third install should have succeeded." ) ;
350+ Assert . IsTrue ( builder . Uninstall ( proj ) , "unnstall should have succeeded." ) ;
348351 }
349352 }
350353
0 commit comments