Skip to content

Commit

Permalink
test: 更新单元测试
Browse files Browse the repository at this point in the history
  • Loading branch information
ArgoZhang committed Nov 17, 2024
1 parent 3fa3fdf commit 3737b65
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions test/UnitTest/Components/LayoutTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,12 @@ public void IsPage_OK()
pb.Add(a => a.IsPage, true);
});
Assert.Contains("is-page", cut.Markup);

cut.SetParametersAndRender(pb =>
{
pb.Add(a => a.IsPage, false);
});
Assert.DoesNotContain("is-page", cut.Markup);
}

[Fact]
Expand Down

0 comments on commit 3737b65

Please sign in to comment.