Exemplo n.º 1
0
        public void Should_Render_A_Pull_Icon(IconPull iconPull, string expected)
        {
            Icon icon = Far.Adjust;

            icon
            .Pull(iconPull)
            .ToIcon().Should().Be(expected);
        }
Exemplo n.º 2
0
        public void Should_Render_A_Pull_Icon(IconPull iconPull, string expected)
        {
            var icon = _host.RenderComponent <FaIcon>(
                builder => builder
                .Parameter(x => x.Icon, Far.Adjust)
                .Parameter(x => x.Pull, iconPull)
                );

            icon.Markup.Should().Be(expected);
        }
Exemplo n.º 3
0
 private Icon(
     IconStyle style,
     string name,
     IconSize iconSize,
     bool fixedWidth,
     bool spin,
     bool pulse,
     IconPull pull,
     bool border,
     bool inverse,
     double grow,
     double shrink,
     double up,
     double down,
     double left,
     double right,
     double rotate,
     IconFlip flip,
     Icon?mask,
     string?cssClass,
     string?cssStyle
     )
 {
     Style       = style;
     Name        = name;
     _size       = iconSize;
     _fixedWidth = fixedWidth;
     _spin       = spin;
     _pulse      = pulse;
     _pull       = pull;
     _border     = border;
     _inverse    = inverse;
     _grow       = grow;
     _shrink     = shrink;
     _up         = up;
     _down       = down;
     _left       = left;
     _right      = right;
     _rotate     = rotate;
     _flip       = flip;
     _mask       = mask;
     _cssClass   = cssClass;
     _cssStyle   = cssStyle;
 }
Exemplo n.º 4
0
 public Icon Pull(IconPull pull = IconPull.Left) => new Icon(
     Style,
     Name,
     _size,
     _fixedWidth,
     _spin,
     _pulse,
     pull,
     _border,
     _inverse,
     _grow,
     _shrink,
     _up,
     _down,
     _left,
     _right,
     _rotate,
     _flip,
     _mask,
     _cssClass,
     _cssStyle
     );