Ejemplo n.º 1
0
        public void Should_have_a_random_nature_assigned_to_it_between_0_and_100()
        {
            var randomMock = new Mock<IRandom>();
            randomMock.Setup(x => x.Get(100)).Returns(60);

            var player = new Player(randomMock.Object);

            Assert.AreEqual(60, player.Nature);
        }
Ejemplo n.º 2
0
 public void Setup()
 {
     _player = new Player(new RandomGenerator());
 }
Ejemplo n.º 3
0
 public void AddPlayer(Player player)
 {
     _players.Add(player);
 }