public void AddTowerWallInCorrectTest(int t, int w, int deltaT, int deltaW) { castle = new Castle(t, w); Exception ex = null; try { castle.AddTower(deltaT); castle.AddTower(deltaW); } catch (Exception e) { ex = e; } Assert.NotNull(ex); }
public void AddTowerWallCorrectTest(int t, int w, int deltaT, int deltaW) { castle = new Castle(t, w); castle.AddTower(deltaT); castle.AddWall(deltaW); Assert.AreEqual(t + deltaT, castle.TowerHealth); Assert.AreEqual(w + deltaW, castle.WallHealth); }