Skip to content

Commit fa5171a

Browse files
committed
test: 更新单元测试
1 parent 0eb6911 commit fa5171a

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/BootstrapBlazor.Server/Components/Components/CustomTreeItem.cs renamed to src/BootstrapBlazor.Server/Data/CustomTreeItem.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
using Microsoft.AspNetCore.Components.Rendering;
77
using Microsoft.AspNetCore.Components.Web;
88

9-
namespace BootstrapBlazor.Server.Components.Components;
9+
namespace BootstrapBlazor.Server.Data;
1010

1111
/// <summary>
1212
/// CustomTreeItem 组件

test/UnitTest/Components/TreeViewTest.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ public async Task Items_SetActive()
133133
await cut.InvokeAsync(() => cut.Instance.SetActiveItem(items[0]));
134134

135135
var node = cut.Find(".active .tree-node-text");
136-
Assert.Equal("navigation one", node.TextContent);
136+
Assert.Equal("Navigation one", node.TextContent);
137137

138138
var activeItem = items[1].Items[0].Value;
139139
await cut.InvokeAsync(() => cut.Instance.SetActiveItem(activeItem));

test/UnitTest/UnitTest.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
</ItemGroup>
2828

2929
<ItemGroup>
30-
<Compile Include="..\..\src\BootstrapBlazor.Server\Components\Components\CustomTreeItem.cs" Link="Misc\CustomTreeItem.cs" />
30+
<Compile Include="..\..\src\BootstrapBlazor.Server\Data\CustomTreeItem.cs" Link="Misc\CustomTreeItem.cs" />
3131
<Compile Include="..\..\src\BootstrapBlazor.Server\Data\Foo.cs" Link="Misc\Foo.cs" />
3232
<Compile Include="..\..\src\BootstrapBlazor.Server\Data\TreeFoo.cs" Link="Misc\TreeFoo.cs" />
3333
<Compile Include="..\..\src\BootstrapBlazor.Server\Extensions\IpExtensions.cs" Link="Extensions\IpExtensions.cs" />

0 commit comments

Comments
 (0)