Exemplo n.º 1
0
 public NormalDamageDicePool(int num) : base(num)
 {
     for (int i = 0; i < Pool.Length; i++)
     {
         Pool[i] = new NormalDamageDice();
     }
 }
        public void TestRoll_ReturnBodyBasedOnStunRolled()
        {
            NormalDamageDice d = new NormalDamageDice();

            d.Stun = 5;
            int actual   = d.Body;
            int expected = 2;

            Assert.AreEqual(actual, expected);

            d.Stun   = 6;
            actual   = d.Body;
            expected = 2;
            Assert.AreEqual(actual, expected);

            d.Stun   = 3;
            actual   = d.Body;
            expected = 1;
            Assert.AreEqual(actual, expected);
        }