Exemple #1
0
        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);
            }
        }
Exemple #2
0
 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);
     }
 }
Exemple #3
0
 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);
     }
 }