public override void CreateContext() { _cardsUnderTest = new List<Card>{new Card(CardFigure.Two,CardColor.Clubs), new Card(CardFigure.Eight,CardColor.Hearts), new Card(CardFigure.Three, CardColor.Clubs), new Card(CardFigure.Six, CardColor.Hearts), new Card(CardFigure.Four, CardColor.Diamonds)}; _lowerCardHand = new List<Card>{new Card(CardFigure.Two,CardColor.Clubs), new Card(CardFigure.Seven,CardColor.Hearts), new Card(CardFigure.Three, CardColor.Clubs), new Card(CardFigure.Six, CardColor.Hearts), new Card(CardFigure.Four, CardColor.Diamonds)}; _sameHand = new List<Card>{new Card(CardFigure.Two,CardColor.Diamonds), new Card(CardFigure.Eight,CardColor.Diamonds), new Card(CardFigure.Three, CardColor.Diamonds), new Card(CardFigure.Six, CardColor.Spades), new Card(CardFigure.Four, CardColor.Diamonds)}; _pairHand = new List<Card>{new Card(CardFigure.Two,CardColor.Clubs), new Card(CardFigure.Two,CardColor.Hearts), new Card(CardFigure.Three, CardColor.Clubs), new Card(CardFigure.Six, CardColor.Hearts), new Card(CardFigure.Four, CardColor.Diamonds)}; _lowerCardHandValue = new Hand(_lowerCardHand).Value; _pairHandValue = new Hand(_pairHand).Value; _sameHandValue = new Hand(_sameHand).Value; }
public override void Because() { _hand = new Hand(_cards); }
public override void Because() { _hand = _handFinder.FindBestHand(_cards); }
public override void Because() { _cardsUnderTestHandValue = new Hand(_cardsUnderTest).Value; }
public override void CreateContext() { _cardsUnderTest = new List<Card>{new Card(CardFigure.Two,CardColor.Clubs), new Card(CardFigure.Three,CardColor.Hearts), new Card(CardFigure.Five, CardColor.Clubs), new Card(CardFigure.Four, CardColor.Hearts), new Card(CardFigure.Four, CardColor.Diamonds)}; _lowerPairHand = new List<Card>{new Card(CardFigure.Ace,CardColor.Clubs), new Card(CardFigure.King,CardColor.Hearts), new Card(CardFigure.Queen, CardColor.Clubs), new Card(CardFigure.Three, CardColor.Hearts), new Card(CardFigure.Three, CardColor.Diamonds)}; _lowerPairHandValue = new Hand(_lowerPairHand).Value; }