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()); }
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()); }
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()); }
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 }); }
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()); }
private Prestige GetPrestige() => Prestige.FromScalar(ObjetiveSelector.CurrentValue);
public void Should_not_instantiate_lower_than_0() { Action action = () => Prestige.FromScalar(-1); action.Should().Throw <ArgumentOutOfRangeException>(); }