public Chariot() : base(4, 4, 1, 2) { Type = Unit.Chariot; Name = "Chariot"; RequiredTech = new TheWheel(); ObsoleteTech = new Chivalry(); SetIcon('D', 0, 2); }
public void Card_TheWheelAction1() { bool result = new TheWheel().Actions.ToList()[0].ActionHandler(new CardActionParameters { TargetPlayer = testGame.Players[0], Game = testGame, ActivePlayer = testGame.Players[0], PlayerSymbolCounts = new Dictionary <IPlayer, Dictionary <Symbol, int> >() }); Assert.AreEqual(true, result); Assert.AreEqual(5, testGame.Players[0].Hand.Count); Assert.AreEqual(1, testGame.AgeDecks.Where(x => x.Age == 1).FirstOrDefault().Cards.Count); Assert.AreEqual(3, testGame.AgeDecks.Where(x => x.Age == 2).FirstOrDefault().Cards.Count); Assert.AreEqual(0, testGame.Players[0].Tableau.ScorePile.Count); Assert.AreEqual(0, testGame.Players[1].Tableau.ScorePile.Count); Assert.AreEqual(1, testGame.Players[0].Tableau.Stacks[Color.Blue].Cards.Count); Assert.AreEqual(0, testGame.Players[0].Tableau.Stacks[Color.Green].Cards.Count); Assert.AreEqual(1, testGame.Players[0].Tableau.Stacks[Color.Red].Cards.Count); Assert.AreEqual(0, testGame.Players[0].Tableau.Stacks[Color.Purple].Cards.Count); Assert.AreEqual(0, testGame.Players[0].Tableau.Stacks[Color.Yellow].Cards.Count); }