public void TestThrowSupply() { for (int i = 0; i < 10; i++) { Thread.Sleep(1000); airc.ThrowWeapon(list); } Assert.True(airc.NumOfWeapons < 10); }
public void MoveAirCraft() { for (int i = GameObjects.Count - 1; i >= 0; i--) { if (GameObjects[i] is Aircraft) { Aircraft ac = GameObjects[i] as Aircraft; ac.Move(); ac.ThrowWeapon(GameObjects); } } }