コード例 #1
0
        public void Rock_is_returned_for_the_human_player()
        {
            _player = new HumanPlayer();

            Execute();

            _result.Should().Equal(MoveTypes.Rock);
        }
コード例 #2
0
        public void First_move_is_a_random_move()
        {
            var expected = MoveTypes.Scissors;

            _randomGenerator.Setup(r => r.GetMove()).Returns(expected);

            Execute();

            _randomGenerator.Verify(r => r.GetMove(), Times.Once);
            _result.Should().Equal(expected);
        }