Skip to content

Commit d2d3c2a

Browse files
committed
test: 增加单元测试
1 parent 65ff796 commit d2d3c2a

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

test/UnitTest/Components/LogoutTest.cs

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,4 +96,15 @@ public void LinkTemplate_Ok()
9696
});
9797
Assert.Contains("link_template", cut.Markup);
9898
}
99+
100+
[Fact]
101+
public void AvatarRadius_Ok()
102+
{
103+
// 未设置 Items
104+
var cut = Context.RenderComponent<Logout>(pb =>
105+
{
106+
pb.Add(a => a.AvatarRadius, "50%");
107+
});
108+
Assert.Contains("--bb-logout-user-avatar-border-radius: 50%;", cut.Markup);
109+
}
99110
}

0 commit comments

Comments
 (0)