public static string ToCssClass(this FlexContentAlignment contentAlignment, Breakpoint breakpoint) { return(contentAlignment == FlexContentAlignment.None ? string.Empty : new CssClassBuilder("align-content") .Append(() => breakpoint.GetCssClassPart(), () => breakpoint != Breakpoint.None) .Append(() => contentAlignment.GetCssClassPart()) .Build()); }
public void ToCssClass(FlexContentAlignment contentAlignment, Breakpoint breakpoint, string expected) { contentAlignment.ToCssClass(breakpoint).Should().Be(expected); }
private static FlexOptions ToFlexOptions(FlexContentAlignment contentAlignment) { return(new FlexOptions { ContentAlignment = contentAlignment }); }