public void FindCloudletFaliure(string orgName, string appName, string appVers, double latitude, double longitude) { using (MobiledgeXIntegration mxi = new MobiledgeXIntegration(new CarrierInfoClass(), null, new UniqueIDClass(), new TestDeviceInfo())) { mxi.appName = appName; mxi.appVers = appVers; mxi.orgName = orgName; try { var task = Task.Run(async() => { mxi.useFallbackLocation = true; mxi.SetFallbackLocation(longitude, latitude); await RegisterHelper(mxi); return(await FindCloudletHelper(mxi)); }); } catch (Exception e) { if (e.GetBaseException().GetType() == typeof(FindCloudletException)) { Assert.True(true); } else { if (e.GetBaseException().GetType() != typeof(HttpException)) { Assert.True(false); } } } } }