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); }
public void Setup() { _player = new Player(new RandomGenerator()); }
public void AddPlayer(Player player) { _players.Add(player); }