public void Calculates_correct_percentages(int daisyMaeSellPrice, int[] nookBuyPrices, float[] expected)
        {
            var exampleData = new CurrentWeekData(daisyMaeSellPrice, nookBuyPrices);

            var actual = exampleData.GetPercentages();

            actual.Should().ContainInOrder(expected);
        }
Пример #2
0
        public bool MatchesFor(CurrentWeekData data)
        {
            if (data.NookBuyPrices.Count() < dayIndex + 1)
            {
                return(false);
            }

            var specificPercentage = data.GetPercentages().ElementAt(dayIndex);

            return(specificPercentage < lower || specificPercentage > upper);
        }
Пример #3
0
 public bool MatchesFor(CurrentWeekData data)
 {
     return(data.GetPercentages().Any(percentage => percentage < lower || percentage > upper));
 }