Example #1
0
        public void ShouldConstructWithEmpty()
        {
            //arrange
            var ClassToRender = CssBuilder.Empty().NullIfEmpty();

            //assert
            ClassToRender.Should().BeNull();
        }
 public IEnumerable <string> BuildCssClasses()
 {
     return(CssBuilder.Empty()
            .AddClasses(BuildSideCssClasses(AdditiveSides), IsValidCssClass)
            .AddClasses(BuildSideCssClasses(SubtractiveSides, "0"), IsValidCssClass)
            .AddColor(CSS_CLASS_PREFIX, () => Color, () => Color != Color.Muted && Color != Color.None)
            .Build()
            .Split(new[] { " " }, StringSplitOptions.RemoveEmptyEntries));
 }