@@ -56,6 +56,7 @@ public void ReInstallIfUserUninstalled ([Values (false, true)] bool isRelease)
56
56
Assert . IsTrue ( builder . Output . AreTargetsAllBuilt ( "_Upload" ) , "_Upload should have built completely." ) ;
57
57
Assert . AreEqual ( $ "package:{ proj . PackageName } ", RunAdbCommand ( $ "shell pm list packages { proj . PackageName } ") . Trim ( ) ,
58
58
$ "{ proj . PackageName } is not installed on the device.") ;
59
+ Assert . IsTrue ( builder . Uninstall ( proj ) , "unnstall should have succeeded." ) ;
59
60
}
60
61
}
61
62
@@ -68,7 +69,7 @@ public void InstallAndUnInstall ([Values (false, true)] bool isRelease)
68
69
if ( ! HasDevices ) {
69
70
Assert . Ignore ( "Test Skipped no devices or emulators found." ) ;
70
71
}
71
-
72
+
72
73
var proj = new XamarinAndroidApplicationProject ( ) {
73
74
IsRelease = isRelease ,
74
75
} ;
@@ -136,6 +137,7 @@ public void ChangeKeystoreRedeploy ()
136
137
proj . SetProperty ( "AndroidSigningKeyAlias" , "mykey" ) ;
137
138
138
139
Assert . IsTrue ( builder . Install ( proj ) , "second install should succeed." ) ;
140
+ Assert . IsTrue ( builder . Uninstall ( proj ) , "unnstall should have succeeded." ) ;
139
141
}
140
142
}
141
143
@@ -179,7 +181,7 @@ public void SwitchConfigurationsShouldRedeploy ()
179
181
Assert . IsTrue ( builder . Install ( proj ) ) ;
180
182
Assert . AreEqual ( $ "package:{ proj . PackageName } ", RunAdbCommand ( $ "shell pm list packages { proj . PackageName } ") . Trim ( ) ,
181
183
$ "{ proj . PackageName } is not installed on the device.") ;
182
-
184
+
183
185
directorylist = string . Empty ;
184
186
foreach ( var dir in overrideDirs ) {
185
187
var listing = RunAdbCommand ( $ "shell ls { dir } ") ;
@@ -200,7 +202,7 @@ public void SwitchConfigurationsShouldRedeploy ()
200
202
directorylist += listing ;
201
203
}
202
204
StringAssert . Contains ( $ "{ proj . AssemblyName } ", directorylist , $ "{ proj . AssemblyName } not found in fastdev directory.") ;
203
-
205
+
204
206
Assert . IsTrue ( builder . Uninstall ( proj ) ) ;
205
207
Assert . AreNotEqual ( $ "package:{ proj . PackageName } ", RunAdbCommand ( $ "shell pm list packages { proj . PackageName } ") . Trim ( ) ,
206
208
$ "{ proj . PackageName } is installed on the device.") ;
@@ -262,7 +264,7 @@ public void InstallWithoutSharedRuntime ()
262
264
StringAssert . Contains ( $ "{ proj . ProjectName } .dll", directorylist , $ "{ proj . ProjectName } .dll should exist in the .__override__ directory.") ;
263
265
StringAssert . Contains ( $ "System.dll", directorylist , $ "System.dll should exist in the .__override__ directory.") ;
264
266
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." ) ;
266
268
}
267
269
}
268
270
@@ -345,6 +347,7 @@ public void ToggleFastDev ()
345
347
346
348
//Deploy one last time to verify install still works without the .__override__ directory existing
347
349
Assert . IsTrue ( builder . Install ( proj ) , "Third install should have succeeded." ) ;
350
+ Assert . IsTrue ( builder . Uninstall ( proj ) , "unnstall should have succeeded." ) ;
348
351
}
349
352
}
350
353
0 commit comments