mirror of
https://gitee.com/ant-design-blazor/ant-design-blazor.git
synced 2024-12-04 21:17:36 +08:00
58c5f2b6cc
* tests: added * missed scenarios for Button and ButtonGroup
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);
|
|
}
|
|
|
|
}
|