Esempio n. 1
0
        public void Should_contain_gems()
        {
            foreach (var gem in Gems.GetAllGems())
            {
                simpleMarket.AvaliableOfType(gem).Should().Be(2);
                simpleMarket.CanBeTakenTwoOfType(gem).Should().BeFalse();

                completeMarket.AvaliableOfType(gem).Should().Be(7);
                completeMarket.CanBeTakenTwoOfType(gem).Should().BeTrue();
            }

            simpleMarket.AvaliableOfType(Gems.Gold).Should().Be(1);
            completeMarket.AvaliableOfType(Gems.Gold).Should().Be(5);

            simpleMarket.CanBeTakenTwoOfType(Gems.Gold).Should().BeFalse();
            completeMarket.CanBeTakenTwoOfType(Gems.Gold).Should().BeFalse();
        }
Esempio n. 2
0
 private void CheckMarket(Market market, int[] values, int gold)
 {
     foreach (var gem in Gems.GetAllGems())
     {
         market.AvaliableOfType(gem).Should().Be(values[gem.Id - 1]);
         market.AvaliableGold().Should().Be(gold);
     }
 }