public void WhenLastPlayerPlayACardTourIsReady() { List <string> ids = new List <string>(); ids.Add("a"); ids.Add("b"); Bataille bataille = new Bataille(ids); bataille.CardPlayed("a", 0); Assert.AreEqual(true, bataille.CardPlayed("b", 0)); }
public void WhenFirstPlayerPlayACardItIsRemovedFromHandandTransferedFromPlayedCard() { List <string> ids = new List <string>(); ids.Add("a"); ids.Add("b"); Bataille bataille = new Bataille(ids); Card currentCard = bataille.Players.GetValueOrDefault("a").GetHand()[0]; Assert.AreEqual(false, bataille.CardPlayed("a", 0)); Assert.AreEqual(5, bataille.Players.GetValueOrDefault("a").GetHand().Count); Assert.AreEqual(currentCard, bataille.Players.GetValueOrDefault("a").PlayedCard); }