public void something() { var hero = new FakePlayer("Hero"); var villain = new FakePlayer("Villain"); villain.Will("CALL", "CALL", "CALL", "CALL"); hero.Will("BET", "BET", "BET", "BET"); var game = new OneCardPokerGame(hero, villain, 2, new FakeHandFactory(() => new FakeDeck("2", "A"))); game.Play(); game.ReportWinner(this); Assert.That(_winnerName, Is.EqualTo("Villain")); }
public void creates_a_hand_from_factory() { var p1 = new AlwaysRaises(); var p2 = new AlwaysRaises(); var game = new OneCardPokerGame(p1, p2, 10, this); game.Play(); Assert.That(_handCreated, Is.True); }