getHeight() public method

public getHeight ( int ID ) : double
ID int
return double
Beispiel #1
0
 public void addObjectTest()
 {
     ActionHandler target = new ActionHandler();
     Vector2 Pos = new Vector2(300, 200);
     int ID = 208;
     float Height = 30F;
     float Width = 30F;
     target.addObject(Pos, ID, Height, Width);
     Assert.IsTrue(target.getPos(ID) == Pos, "Position fail");
     Assert.IsTrue(target.getWidth(ID) == Width, "Width fail");
     Assert.IsTrue(target.getHeight(ID) == Height, "Height fail ");
 }
Beispiel #2
0
 public void getHeightTest()
 {
     ActionHandler target = new ActionHandler();
     int ID = 12;
     double expected = 30F;
     double actual;
     actual = target.getHeight(ID);
     Assert.AreEqual(expected, actual);
 }