public void testMilitiaEffectLessThanThreeInHand() { StatusObject o = new StatusObject(false); o.setMilitiaPlayed(true); p.getHand().remove(CardMother.Copper()); p.getHand().remove(CardMother.Copper()); o = p.militiaDiscardEffect(new List<Card>()); Assert.IsFalse(o.wasMilitiaPlayed()); Assert.AreEqual(0, p.getDeck().getInDiscard().Count); }
public void testMilitiaEffectTooManyCards() { StatusObject o = new StatusObject(false); o.setMilitiaPlayed(true); List<Card> cards = new List<Card>(); cards.Add(CardMother.Copper()); cards.Add(CardMother.Copper()); cards.Add(CardMother.Copper()); o = p.militiaDiscardEffect(cards); Assert.IsTrue(o.wasMilitiaPlayed()); Assert.AreEqual(0, p.getDeck().getInDiscard().Count); }
public StatusObject callDelayedFunctions() { StatusObject stat = new StatusObject(false); while (this.functionsToCall.Count > 0) { DelayedFunction func = this.functionsToCall.Dequeue(); stat = func.performAction(); if (stat.wasMilitiaPlayed()) { break; } } return stat; }