Skip to content

Commit 2977321

Browse files
committed
test: 更新单元测试
1 parent e778430 commit 2977321

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

test/UnitTest/Components/DropdownWigetTest.cs renamed to test/UnitTest/Components/DropdownWidgetTest.cs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
namespace UnitTest.Components;
66

7-
public class DropdownWigetTest : BootstrapBlazorTestBase
7+
public class DropdownWidgetTest : BootstrapBlazorTestBase
88
{
99
[Fact]
1010
public void Items_OK()
@@ -54,12 +54,12 @@ public void Title_OK()
5454
builder.Add(s => s.ChildContent, new RenderFragment(builder =>
5555
{
5656
builder.OpenComponent<DropdownWidgetItem>(0);
57-
builder.AddAttribute(1, nameof(DropdownWidgetItem.Title), "Wiget Title");
57+
builder.AddAttribute(1, nameof(DropdownWidgetItem.Title), "Widget Title");
5858
builder.CloseComponent();
5959
}));
6060
});
6161

62-
Assert.Contains("Wiget Title", cut.Markup);
62+
Assert.Contains("Widget Title", cut.Markup);
6363
}
6464

6565
[Fact]
@@ -184,7 +184,7 @@ public void HeaderColor_OK()
184184
private static IEnumerable<DropdownWidgetItem> GetItems()
185185
{
186186
var ret = new List<DropdownWidgetItem>();
187-
var wiget = new DropdownWidgetItem();
187+
var widget = new DropdownWidgetItem();
188188
var parameters = new Dictionary<string, object?>()
189189
{
190190
["Icon"] = "fa-regular fa-bell",
@@ -207,8 +207,8 @@ private static IEnumerable<DropdownWidgetItem> GetItems()
207207
}),
208208

209209
};
210-
wiget.SetParametersAsync(ParameterView.FromDictionary(parameters!));
211-
ret.Add(wiget);
210+
widget.SetParametersAsync(ParameterView.FromDictionary(parameters!));
211+
ret.Add(widget);
212212
return ret;
213213
}
214214
}

0 commit comments

Comments
 (0)