public void Day22_Should_Cut_N_cards(int n, int cut, int[] cards) { var deck = new Day22.Deck(n); deck.Cut(cut); Assert.True(deck.Cards.SequenceEqual(cards)); }
public void Day22_Should_Deal_With_Increment(int n, int deal, int[] cards) { var deck = new Day22.Deck(n); deck.Deal(deal); Assert.True(deck.Cards.SequenceEqual(cards)); }
public void Day22_Should_Deal_Into_New_Stack(int n, int[] cards) { var deck = new Day22.Deck(n); deck.DealNew(); Assert.Equal(10, deck.Cards.Length); Assert.True(deck.Cards.SequenceEqual(cards)); }
public void Day22_Should_Shuffle3(int[] cards) { var deck = new Day22.Deck(10); deck.Deal(7); deck.Deal(9); deck.Cut(-2); Assert.True(deck.Cards.SequenceEqual(cards)); }