public void ShouldThrowArgumentNullExceptionWhenAddedStyleValueIsEmpty() { var cssClass = new CssClass("Button"); Assert.Throws <ArgumentNullException>(() => cssClass.WithStyle("test", string.Empty)); }
public static CssClass WithlStyleInPixelUnit(this CssClass cssClass, string styleName, int value) { cssClass.WithStyle(styleName, value, CssUnits.Px); return(cssClass); }