Esempio 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));
        }
Esempio 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);
 }
Esempio n. 3
0
        public void return_its_name()
        {
            var player = new Player("bob", 0, 6);

            Assert.That(player.Name(), Is.EqualTo("bob"));
        }
Esempio 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);
        }
Esempio 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);
        }