Example #1
0
        public void InitialDealTo_Player()
        {
            var twoCards = new List<uint> { 1, 10 }.ToArray();
            _shoeMock.Setup(x => x.CardRequest(It.Is<int>(y => y.Equals(2)))).Returns(twoCards);
            _playerMock.Setup(x => x.SetNewHand(It.Is<uint[]>(y => y.Equals(twoCards))));

            var sut = new Table(1, 2, 1, .25, _listPlayerMocks, _dealerMock.Object, _shoeMock.Object);
            sut.InitialDealTo<IPlayer>();

            _mockRepository.VerifyAll();
        }
Example #2
0
 public void InitialDealTo_BadType()
 {
     var sut = new Table(1, 2, 1, .25, _listPlayerMocks, _dealerMock.Object, _shoeMock.Object);
     sut.InitialDealTo<object>();
 }