コード例 #1
0
        public void RunGetWinningHands(IPokerService pokerService)
        {
            try
            {
                ValidateInitialProperties(pokerService);

                var winningHands = pokerService.GetWinningHands(Hands).ToList();
                ValidateGetWinningHands(winningHands);
            }

            catch
            {
                Console.WriteLine($"Description: {Description}");
                throw;
            }
        }
コード例 #2
0
 public void ShouldThrowMissingWinningHandsExceptionOnGetWinningHands(bool isNull)
 {
     Assert.Throws <MissingWinningHandsException>(() => _pokerService.GetWinningHands(isNull ? null : new List <Hand>()));
 }