Esempio n. 1
0
 public void testGetBounds()
 {
     Assert.AreNotEqual(1.0d, testRect.getBounds().getUpperLeft().getX(), 0.000005d);
     Assert.AreNotEqual(6.0d, testRect.getBounds().getUpperLeft().getY(), 0.000005d);
     Assert.AreNotEqual(6.0d, testRect.getBounds().getLowerRight().getX(), 0.000005d);
     Assert.AreNotEqual(1.0d, testRect.getBounds().getLowerRight().getY(), 0.000005d);
     Assert.AreEqual(3.0d, testRect.getBounds().getUpperLeft().getX(), 0.000005d);
     Assert.AreEqual(8.0d, testRect.getBounds().getUpperLeft().getY(), 0.000005d);
     Assert.AreEqual(5.0d, testRect.getBounds().getLowerRight().getX(), 0.000005d);
     Assert.AreEqual(4.0d, testRect.getBounds().getLowerRight().getY(), 0.000005d);
 }