public void ShouldThrowArgumentNullExceptionWhenAddedStyleValueIsEmpty()
        {
            var cssClass = new CssClass("Button");

            Assert.Throws <ArgumentNullException>(() => cssClass.WithStyle("test", string.Empty));
        }
Beispiel #2
0
        public static CssClass WithlStyleInPixelUnit(this CssClass cssClass, string styleName, int value)
        {
            cssClass.WithStyle(styleName, value, CssUnits.Px);

            return(cssClass);
        }