コード例 #1
0
 public static void RidingTest()
 {
     Game.CreateMap(MapWithEnemy);
     DoActions();
     Assert.AreEqual(true, Game.Map[2, 0] is Enemy);
 }
コード例 #2
0
 public static void ShootingTest()
 {
     Game.CreateMap(MapWithPlayerEnemy);
     DoActions();
     Assert.AreEqual(true, Game.Map[2, 0] is Shell);
 }
コード例 #3
0
 public static void KillingTest()
 {
     Game.CreateMap(MapWithEnemyShell);
     DoActions();
     Assert.AreEqual(true, Game.Map[0, 2] == null);
 }
コード例 #4
0
 public static void WallTest()
 {
     Game.CreateMap(MapWithWallEnemy);
     DoActions();
     Assert.AreEqual(true, Game.Map[0, 0] is Enemy);
 }
コード例 #5
0
 public static void UpgradeTest()
 {
     Game.CreateMap(MapWithUpgradeEnemy);
     DoActions();
     Assert.AreEqual(true, Game.Map[2, 0] is EnemyUpgraded);
 }
コード例 #6
0
 private static void Main()
 {
     Game.CreateMap(Maps.FirstMap);
     Application.Run(new TanksWindow());
 }
コード例 #7
0
 private void Map3Click(object sender, EventArgs e)
 {
     Game.CreateMap(Maps.ThirdMap);
     UpdateFormWithNewMap();
 }