public void RunGetWinningHands(IPokerService pokerService) { try { ValidateInitialProperties(pokerService); var winningHands = pokerService.GetWinningHands(Hands).ToList(); ValidateGetWinningHands(winningHands); } catch { Console.WriteLine($"Description: {Description}"); throw; } }
public void ShouldThrowMissingWinningHandsExceptionOnGetWinningHands(bool isNull) { Assert.Throws <MissingWinningHandsException>(() => _pokerService.GetWinningHands(isNull ? null : new List <Hand>())); }