Ejemplo n.º 1
0
        public void ShouldBuyDevelopmentAndNoble()
        {
            var buy = new BuyDevelopment(fourPointDevelopment, Nobles.ElisabethOfAustria);

            buy.Development.Should().BeEquivalentTo(fourPointDevelopment);
            buy.Noble.Should().BeEquivalentTo(Nobles.ElisabethOfAustria);
            buy.Type.Should().Be(MoveType.BuyDevelopment);
            buy.PrestigeObtained.Should().Be(Prestige.FromScalar(7));
            buy.PrestigeObtainedText.Should().Be(Prestige.FromScalar(7).ToString());
        }
Ejemplo n.º 2
0
        public void ShouldBuyDevelopment()
        {
            var buy = new BuyDevelopment(fourPointDevelopment, null);

            buy.Development.Should().BeEquivalentTo(fourPointDevelopment);
            buy.Noble.Should().BeNull();
            buy.Type.Should().Be(MoveType.BuyDevelopment);
            buy.PrestigeObtained.Should().Be(Prestige.FromScalar(4));
            buy.PrestigeObtainedText.Should().Be(Prestige.FromScalar(4).ToString());
        }
Ejemplo n.º 3
0
        public void ShouldReserveDevelopmentAndNoble()
        {
            var reserve = new ReserveDevelopment(fourPointDevelopment, takeGold: true, Nobles.CharlesQuint);

            reserve.Development.Should().BeEquivalentTo(fourPointDevelopment);
            reserve.TakeGold.Should().BeTrue();
            reserve.Noble.Should().BeEquivalentTo(Nobles.CharlesQuint);
            reserve.Type.Should().Be(MoveType.ReserveDevelopment);
            reserve.PrestigeObtained.Should().Be(Prestige.FromScalar(3));
            reserve.PrestigeObtainedText.Should().Be(Prestige.FromScalar(3).ToString());
        }
Ejemplo n.º 4
0
        public GemsServiceTests()
        {
            game = new Game(Prestige.FromScalar(15),
                            (Avatars.Danilo, ColorFactory.DefaultBlue),
                            (Avatars.Debra, ColorFactory.Gray));

            foreach (var gem in Gems.GetAllGems())
            {
                Take(gem.Get(2).ToArray());
            }
            //Take(new Gem[3] { Gems.Diamond, Gems.Ruby, Gems.Onyx });
            //Take(new Gem[3] { Gems.Diamond, Gems.Ruby, Gems.Onyx });
        }
Ejemplo n.º 5
0
        public void ShouldTakeGemsandNoble()
        {
            var takeGems = new TakeGems(new List <Gem> {
                Gems.Onyx, Gems.Ruby
            }, Nobles.AnneOfBrittany);

            takeGems.Gems.Should().Contain(Gems.Onyx);
            takeGems.Gems.Should().Contain(Gems.Ruby);
            takeGems.Noble.Should().BeEquivalentTo(Nobles.AnneOfBrittany);
            takeGems.Type.Should().Be(MoveType.TakeGems);
            takeGems.PrestigeObtained.Should().Be(Prestige.FromScalar(3));
            takeGems.PrestigeObtainedText.Should().Be(Prestige.FromScalar(3).ToString());
        }
Ejemplo n.º 6
0
 private Prestige GetPrestige() => Prestige.FromScalar(ObjetiveSelector.CurrentValue);
Ejemplo n.º 7
0
        public void Should_not_instantiate_lower_than_0()
        {
            Action action = () => Prestige.FromScalar(-1);

            action.Should().Throw <ArgumentOutOfRangeException>();
        }