Exemple #1
0
 public TakenGemsView(TakeGems gameAction, string playerName)
 {
     InitializeComponent();
     this.gameAction = gameAction;
     SetText(playerName);
     Draw();
 }
Exemple #2
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());
        }
Exemple #3
0
        public void ShouldTakeGemsWithoutNoble()
        {
            var takeGems = new TakeGems(new List <Gem> {
                Gems.Onyx, Gems.Ruby
            }, null);

            takeGems.Gems.Should().Contain(Gems.Onyx);
            takeGems.Gems.Should().Contain(Gems.Ruby);
            takeGems.Noble.Should().BeNull();
            takeGems.Type.Should().Be(MoveType.TakeGems);
            takeGems.PrestigeObtained.Should().Be(Prestige.Zero);
            takeGems.PrestigeObtainedText.Should().Be("");
        }