Skip to content

Commit 4ea7b9e

Browse files
test: add TableTreeNode unit test (#364)
Co-authored-by: alex chow <zhouchuanglin@gmail.com>
1 parent e4d6893 commit 4ea7b9e

1 file changed

Lines changed: 18 additions & 0 deletions

File tree

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
// Copyright (c) Argo Zhang (argo@163.com). All rights reserved.
2+
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
3+
// Website: https://www.blazor.zone or https://argozhang.github.io/
4+
5+
using BootstrapBlazor.Shared;
6+
7+
namespace UnitTest.Components;
8+
9+
public class TableTreeNodeTest
10+
{
11+
[Fact]
12+
public void Parent_Ok()
13+
{
14+
var node = new TableTreeNode<Foo>(new Foo() { Name = "Test" });
15+
var target = (IExpandableNode<Foo>)node;
16+
Assert.Null(target.Parent);
17+
}
18+
}

0 commit comments

Comments
 (0)