//- Copyright © 2008-2011 8th Light, Inc. All Rights Reserved.
//- Limelight and all included source files are distributed under terms of the MIT License.
package limelight.styles.values;
import junit.framework.TestCase;
import limelight.util.Box;
public class StaticYCoordinateValueTest extends TestCase
{
private StaticYCoordinateValue ten;
private StaticYCoordinateValue fifty;
public void setUp() throws Exception
{
ten = new StaticYCoordinateValue(10);
fifty = new StaticYCoordinateValue(50);
}
public void testGetY() throws Exception
{
assertEquals(10, ten.getY(0, new Box(0, 0, 100, 100)));
assertEquals(15, ten.getY(0, new Box(0, 5, 100, 100)));
assertEquals(10, ten.getY(-1, new Box(0, 0, 100, 100)));
assertEquals(50, fifty.getY(0, new Box(0, 0, 100, 100)));
}
}