mirror of
https://gitee.com/ant-design-blazor/ant-design-blazor.git
synced 2024-12-05 05:27:37 +08:00
24 lines
634 B
C#
24 lines
634 B
C#
@inherits AntDesignTestBase
|
|
|
|
@code{
|
|
|
|
[Theory]
|
|
[InlineData(AntSizeLDSType.Large,"lg")]
|
|
[InlineData(AntSizeLDSType.Small,"sm")]
|
|
public void Renders_with_each_size(string size,string cls)
|
|
{
|
|
var cut = Context.Render(@<AntDesign.Cascader Size="@size" />);
|
|
var spanNode = cut.Nodes.QuerySelector($".ant-select-{cls}");
|
|
|
|
Assert.NotNull(spanNode);
|
|
}
|
|
|
|
[Fact]
|
|
public void Renders_with_disabled()
|
|
{
|
|
var cut = Context.Render(@<AntDesign.Cascader Disabled />);
|
|
var spanNode = cut.Nodes.QuerySelector($".ant-select-disabled");
|
|
|
|
Assert.NotNull(spanNode);
|
|
}
|
|
} |