From ffaca1dfd6a9035e16666fb48f7582b43a8fff6f Mon Sep 17 00:00:00 2001 From: Argo Zhang Date: Sun, 27 Apr 2025 12:54:37 +0800 Subject: [PATCH] =?UTF-8?q?test:=20=E5=A2=9E=E5=8A=A0=E5=8D=95=E5=85=83?= =?UTF-8?q?=E6=B5=8B=E8=AF=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- test/UnitTest/Components/InputTest.cs | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/test/UnitTest/Components/InputTest.cs b/test/UnitTest/Components/InputTest.cs index 1abadf077ce..ce128891938 100644 --- a/test/UnitTest/Components/InputTest.cs +++ b/test/UnitTest/Components/InputTest.cs @@ -324,6 +324,22 @@ public void InputGroup_Width() cut.MarkupMatches("
BootstrapInputGroup
"); } + [Fact] + public void InputGroup_ChildContent() + { + var cut = Context.RenderComponent(builder => + { + builder.Add(s => s.ChildContent, new RenderFragment(builder => + { + builder.OpenComponent(0); + builder.AddAttribute(1, nameof(BootstrapInputGroupLabel.ChildContent), new RenderFragment(builder => builder.AddContent(0, "child-content"))); + builder.CloseComponent(); + })); + }); + + cut.Contains("child-content"); + } + [Theory] [InlineData(Alignment.Center, "center")] [InlineData(Alignment.Right, "end")]