MarginLeft extends AbstractCssProperty<MarginLeft> { @Override public String getCssValue() { return cssValue; } MarginLeft();  MarginLeft(final String cssValue);  MarginLeft(final MarginLeft marginLeft);  MarginLeft(final float percent);  MarginLeft(final float value, final CssLengthUnit cssLengthUnit); MarginLeft setValue(final float value,
            final CssLengthUnit cssLengthUnit); void setPercent(final float percent); @Override String getCssName(); @Override String getCssValue(); @Override String toString(); Float getValue(); CssLengthUnit getUnit(); @Override MarginLeft setCssValue(final String cssValue); void setAsInitial(); void setAsInherit(); void setAsAuto(); static boolean isValid(final String cssValue); static final String INITIAL; static final String INHERIT; static final String AUTO; }
@Test public void testMarginLeftString() { { MarginLeft marginLeft = new MarginLeft(MarginLeft.INITIAL); assertEquals(MarginLeft.INITIAL, marginLeft.getCssValue()); } { MarginLeft marginLeft = new MarginLeft("50px"); assertEquals("50px", marginLeft.getCssValue()); } }
@Test public void testMarginLeftMarginLeft() { MarginLeft marginLeft = new MarginLeft("50px"); MarginLeft marginLeft1 = new MarginLeft(marginLeft); assertEquals("50px", marginLeft1.getCssValue()); }
@Test public void testMarginLeftFloat() { MarginLeft marginLeft = new MarginLeft(75); assertEquals("75.0%", marginLeft.getCssValue()); }
@Test public void testGetCssValue() { MarginLeft marginLeft = new MarginLeft(); marginLeft.setAsInherit(); assertEquals(MarginLeft.INHERIT, marginLeft.getCssValue()); marginLeft.setAsInitial(); assertEquals(MarginLeft.INITIAL, marginLeft.getCssValue()); }