public void InstallAppInstalledFalse_When_AppIsUninstalled() { // Uninstalls the app with the specified app package. App.AppService.RemoveApp("com.example.android.apis"); // Checks whether the app with the specified app package is installed. Assert.IsFalse(App.AppService.IsAppInstalled("com.example.android.apis")); string appPath = Path.Combine(ProcessProvider.GetExecutingAssemblyFolder(), "Demos\\ApiDemos.apk"); // Installs the APK file on the device. App.AppService.InstallApp(appPath); }
public void InstallAppInstalledFalse_When_AppIsUninstalled() { string appPath = Path.Combine(ProcessProvider.GetExecutingAssemblyFolder(), "Demos\\ApiDemos.apk"); App.AppService.InstallApp(appPath); App.AppService.RemoveApp(Constants.AndroidNativeAppAppExamplePackage); Assert.IsFalse(App.AppService.IsAppInstalled(Constants.AndroidNativeAppAppExamplePackage)); App.AppService.InstallApp(appPath); Assert.IsTrue(App.AppService.IsAppInstalled(Constants.AndroidNativeAppAppExamplePackage)); }
public void InstallAppInstalledFalse_When_AppIsUninstalled() { string appPath = Path.Combine(ProcessProvider.GetExecutingAssemblyFolder(), "Demos/TestApp.app.zip"); // Installs the app file on the device. App.AppService.InstallApp(appPath); // Uninstalls the app with the specified bundleId. You can get your app's bundleId from XCode. App.AppService.RemoveApp("com.apple.mobilecal"); Assert.IsFalse(App.AppService.IsAppInstalled("com.apple.mobilecal")); App.AppService.InstallApp(appPath); }