Visibility() публичный Метод

public Visibility ( int ID1, int ID2 ) : Vector2
ID1 int
ID2 int
Результат Vector2
Пример #1
0
 public void VisibilityTest1()
 {
     ActionHandler target = new ActionHandler();
     //Object Assignment
     target.addObject(new Vector2(300, 250), 0, 30, 30);
     target.addObject(new Vector2(100, 100), 101, 90, 90);
     target.addObject(new Vector2(0, 0), 102, 90, 90);
     target.addObject(new Vector2(400, 240), 103, 90, 90);
     //Enemy Position is changed
     target.addObject(new Vector2(600, 250), 201, 35, 35);
     int ID1 = 201; //Enemy
     int ID2 = 0;   //Character
     //Vector2(-999, -999) is returned when enemy didn't find
     Vector2 expected = new Vector2(-999, -999);
     Vector2 actual;
     actual = target.Visibility(ID1, ID2);
     Assert.AreEqual(expected, actual); //true
 }