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