Exemplo n.º 1
0
 public void AttackInitialWallTwoDays()
 {
     Wall wall = new Wall();
     wall.NewDay();
     Assert.IsTrue(wall.Attack(10, 12, 6));
     wall.NewDay();
     Assert.IsFalse(wall.Attack(10, 12, 6));
 }
Exemplo n.º 2
0
 public void AttackInitialWallTwoDaysDifferentPlaces()
 {
     Wall wall = new Wall();
     wall.NewDay();
     Assert.IsTrue(wall.Attack(10, 12, 6));
     wall.NewDay();
     Assert.IsTrue(wall.Attack(11, 13, 6));
 }
Exemplo n.º 3
0
        public void AttackInitialThousandDaysTwice()
        {
            Wall wall = new Wall();

            for (int k = 0; k < 1000; k++)
            {
                wall.NewDay();
                Assert.IsTrue(wall.Attack(k, k + 100, 6));
            }

            for (int k = 0; k < 1000; k++)
            {
                wall.NewDay();
                Assert.IsFalse(wall.Attack(k, k + 100, 6));
            }
        }