Exemplo n.º 1
0
        public void decrease_location_by_12_if_location_is_greater_than_11()
        {
            var player = new Player("bob", 2, 0);

            player.ChangeLocation(13);

            Assert.That(player.Location(), Is.EqualTo(3));
        }
Exemplo n.º 2
0
 public void Init()
 {
     _gamePrinter = new GamePrinter(_console.WriteLine);
     _mockedPlayer = Substitute.For<IPlayer>();
     _players = Substitute.For<IPlayers>();
     _gameEngine = new GameEngine(_players, _gamePrinter);
     _playerA = new Player("ana", _defaultLocation, _defaultNumberOfCoins);
     _playerB = new Player("bob", _defaultLocation, _defaultNumberOfCoins);
 }
Exemplo n.º 3
0
        public void return_its_name()
        {
            var player = new Player("bob", 0, 6);

            Assert.That(player.Name(), Is.EqualTo("bob"));
        }
Exemplo n.º 4
0
        public void check_if_it_is_winning_if_it_has_6_coins()
        {
            var player = new Player("bob", 0, 6);

            Assert.That(player.IsNotWinning(), Is.False);
        }
Exemplo n.º 5
0
        public void check_if_it_is_not_winning_if_it_does_not_have_6_coins()
        {
            var player = new Player("bob", 0, 5);

            Assert.That(player.IsNotWinning(), Is.True);
        }