public void LotteryHandlerTest() { foreach (Enums.LotteryType lt in (Enums.LotteryType[])Enum.GetValues(typeof(Enums.LotteryType))) { var lh = new LotteryHandler(lt, "Whem", true, true); Assert.True( lh.GetLotteryCollection() != null && lh.LotteryStatistics != null && lh != null && lh.SaveNumbers.Count(number => number.DifferentInPercentage == null) == 0); } foreach (Enums.LotteryType lt in (Enums.LotteryType[])Enum.GetValues(typeof(Enums.LotteryType))) { var lh = new LotteryHandler(lt, "Whem", false, true); Assert.True(lh.GetLotteryCollection() != null && lh.LotteryStatistic != null); } foreach (Enums.LotteryType lt in (Enums.LotteryType[])Enum.GetValues(typeof(Enums.LotteryType))) { var lh = new LotteryHandler(lt, "Whem", false, false); Assert.True(lh.GetLotteryCollection() != null && lh.LotteryStatistic != null); } foreach (Enums.LotteryType lt in (Enums.LotteryType[])Enum.GetValues(typeof(Enums.LotteryType))) { var lh = new LotteryHandler(lt, "Whem", true, false); Assert.True(lh.GetLotteryCollection() != null && lh.LotteryStatistic != null && lh.GoogleSheetData != null); } }
public void DownloadNumbersFromInternetTest() { foreach (Enums.LotteryType lt in (Enums.LotteryType[])Enum.GetValues(typeof(Enums.LotteryType))) { var lh = new LotteryHandler(lt, "Whem", false, false); Assert.True(lh.GetLotteryCollection() != null); } }
public void MakeStatisticFromEarlierWeekTest() { foreach (Enums.LotteryType lt in (Enums.LotteryType[])Enum.GetValues(typeof(Enums.LotteryType))) { var lh = new LotteryHandler(lt, "Whem", true, true); Assert.True( lh.GetLotteryCollection() != null && lh.LotteryStatistics != null && lh != null && lh.SaveNumbers.Count(number => number.DifferentInPercentage == null) == 0); } }