mirror of
https://gitee.com/ant-design-blazor/ant-design-blazor.git
synced 2024-12-05 05:27:37 +08:00
18 lines
507 B
C#
18 lines
507 B
C#
|
@inherits AntDesignTestBase
|
|||
|
@code {
|
|||
|
[Theory]
|
|||
|
[InlineData("small", "-sm")]
|
|||
|
[InlineData("large", "-lg")]
|
|||
|
public void Size_is_applied(string size, string expectedCssClass)
|
|||
|
{
|
|||
|
var cut = Render<ButtonGroup>(@<ButtonGroup Size="@size">
|
|||
|
<Button>Test</Button>
|
|||
|
</ButtonGroup>
|
|||
|
);
|
|||
|
string classsAttribute = cut.Find("div").GetAttribute("class")!;
|
|||
|
classsAttribute.Should().Contain(expectedCssClass);
|
|||
|
cut.Instance.Size.Should().Be(size);
|
|||
|
}
|
|||
|
|
|||
|
}
|