public async Task TestCardDataUpdateAvailable() { _cardsService.CardDataInfoUrl = "https://raw.githubusercontent.com/BenReierson/DragonFrontDb/v2_test/Info.json"; bool UpdateAvailableFired = false; bool DataUpdatedFired = false; _cardsService.DataUpdateAvailable += (o, e) => UpdateAvailableFired = true; _cardsService.DataUpdated += (o, e) => DataUpdatedFired = true; var latestInfo = await _cardsService.CheckForUpdatesAsync(); Assert.IsTrue(latestInfo.CardDataVersion > Info.Current.CardDataVersion); Assert.AreEqual(new Version(9, 0, 0, 0), latestInfo.CardDataVersion); Assert.IsTrue(UpdateAvailableFired); Assert.IsFalse(DataUpdatedFired); }