public void AttackInitialWallTwice() { Wall wall = new Wall(); wall.NewDay(); Assert.IsTrue(wall.Attack(10, 12, 6)); Assert.IsTrue(wall.Attack(10, 12, 6)); }
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)); }
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)); } }