ant-design-blazor/tests/AntDesign.Tests/Cascader/CascaderTests.razor

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);
}
}