public void CheckEnemyFront_on_enemy_7_5_and_tank_3_5_should_return_false_because_of_obstacle_on_4_5() { var tank = new Tank { Coord = new Coord(3, 5), Direction = Direction.Right, }; var result = EnemiesChecking.CheckEnemyFront(map, tank); Assert.AreEqual(false, result); }
public void CheckEnemyRight_on_enemy_7_5_and_tank_7_2_Right_fireArea_2_should_return_false() { var tank = new Tank { Coord = new Coord(7, 2), Direction = Direction.Right, }; var result = EnemiesChecking.CheckEnemyRight(map, tank); Assert.AreEqual(false, result); }
public void CheckEnemyFront_on_enemy_7_5_and_tank_6_5_Right_should_return_true() { var tank = new Tank { Coord = new Coord(6, 5), Direction = Direction.Right, }; var result = EnemiesChecking.CheckEnemyFront(map, tank); Assert.AreEqual(true, result); }