public void TestRound() { //TODO: use Mocks for players and Game Player One = new Player("North"); Player Two = new Player("East"); Player Three = new Player("South"); Player Four = new Player("West"); PinochleGame Game = new PinochleGame(One, Two, Three, Four); PinochleRound round = new PinochleRound(Game.GetNextDealer()); PinochleDeck deck = new PinochleDeck(); deck.Shuffle(); List <Hand> hands = deck.Deal(); round.HandPlayerOne = hands[0]; round.HandPlayerTwo = hands[1]; round.HandPlayerThree = hands[2]; round.HandPlayerFour = hands[3]; //bid //select suit //pass //pass back //meld //play //score Assert.Fail(); }
public void Deal() { //TODO: Create Deck with known values //Is this Integration Test? PinochleDeck deck = new PinochleDeck(); var hands = deck.Deal(4, 12); Assert.AreEqual(hands[0].Cards.Count, 12); Assert.AreEqual(hands[1].Cards.Count, 12); Assert.AreEqual(hands[2].Cards.Count, 12); Assert.AreEqual(hands[3].Cards.Count, 12); }