From da964c1318f838c456d77ea59be7a377e7c8ccb7 Mon Sep 17 00:00:00 2001 From: Argo-Tianyi Date: Sat, 9 Apr 2022 10:58:14 +0800 Subject: [PATCH] =?UTF-8?q?test:=20=E5=A2=9E=E5=8A=A0=20BootstrapLabel=20?= =?UTF-8?q?=E5=8D=95=E5=85=83=E6=B5=8B=E8=AF=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- test/UnitTest/Components/TextareaTest.cs | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/test/UnitTest/Components/TextareaTest.cs b/test/UnitTest/Components/TextareaTest.cs index 585c70ed3..dccca69eb 100644 --- a/test/UnitTest/Components/TextareaTest.cs +++ b/test/UnitTest/Components/TextareaTest.cs @@ -14,4 +14,22 @@ public class TextareaTest : BootstrapBlazorTestBase var component = cut.FindComponent(); Assert.NotNull(component); } + + [Fact] + public void ShowLabelTooltip_OK() + { + var cut = Context.RenderComponent(pb => + { + pb.Add(a => a.ShowLabelTooltip, null); + }); + cut.SetParametersAndRender(pb => + { + pb.Add(a => a.ShowLabelTooltip, false); + }); + cut.SetParametersAndRender(pb => + { + pb.Add(a => a.Value, "Test"); + pb.Add(a => a.ShowLabelTooltip, true); + }); + } } -- Gitee