public ReservedDevelopmentView(ReserveDevelopment gameAction, string playerName)
 {
     InitializeComponent();
     this.gameAction = gameAction;
     SetText(playerName);
     Draw();
 }
Beispiel #2
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());
        }
Beispiel #3
0
        public void ShouldReserveDevelopment()
        {
            var reserve = new ReserveDevelopment(fourPointDevelopment, takeGold: false, null);

            reserve.Development.Should().BeEquivalentTo(fourPointDevelopment);
            reserve.TakeGold.Should().BeFalse();
            reserve.Noble.Should().BeNull();
            reserve.Type.Should().Be(MoveType.ReserveDevelopment);
            reserve.PrestigeObtained.Should().Be(Prestige.Zero);
            reserve.PrestigeObtainedText.Should().Be("");
        }