Ejemplo n.º 1
0
 public HandsPlay(HandMovementOptions.HandMovement handPlayFromPlayer1, HandMovementOptions.HandMovement handPlayFromPlayer2)
 {
     HandPlayFromPlayer1 = handPlayFromPlayer1;
     HandPlayFromPlayer2 = handPlayFromPlayer2;
 }
        public void Test_that_the_factory_returns_a_valid_hands_play_from_humand_and_computer_players_using(HandMovementOptions.HandMovement handPlayChoiceByHumanPlayer)
        {
            // act
            var handsPlayObtained = _handsPlayFactory.GetHandsPlayFromHumandAndComputerPlayersUsing((int)handPlayChoiceByHumanPlayer);

            // assert
            Assert.That(handsPlayObtained, Is.Not.Null);
            Assert.That(handsPlayObtained.HandPlayFromPlayer1, Is.TypeOf <HandMovementOptions.HandMovement>());
            Assert.That(handsPlayObtained.HandPlayFromPlayer2, Is.TypeOf <HandMovementOptions.HandMovement>());
            Assert.That(handsPlayObtained.HandPlayFromPlayer1, Is.EqualTo(handPlayChoiceByHumanPlayer));
        }
Ejemplo n.º 3
0
        public void Test_that_the_service_returns_the_correct_hand_movement_by_humar_player(int movementValue, HandMovementOptions.HandMovement expectedHandMovement)
        {
            // Act
            var returneHandMovement = _handMovementService.GetHandMovementPlayedByHumanPlayer(movementValue);

            // Assert
            Assert.That(returneHandMovement, Is.EqualTo(expectedHandMovement));
        }