We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1b3a038 commit 9203da8Copy full SHA for 9203da8
test/UnitTest/Components/LayoutTest.cs
@@ -93,6 +93,22 @@ public async Task TabStyle_Ok()
93
Assert.True(show);
94
}
95
96
+ [Fact]
97
+ public void OnTabHeaderTextLocalizer_Ok()
98
+ {
99
+ var cut = Context.RenderComponent<Layout>(pb =>
100
101
+ pb.Add(a => a.UseTabSet, true);
102
+ pb.Add(a => a.AdditionalAssemblies, new Assembly[] { GetType().Assembly });
103
+ pb.Add(a => a.OnTabHeaderTextLocalizer, text => $"Localized-{text}");
104
+ });
105
+
106
+ var nav = cut.Services.GetRequiredService<FakeNavigationManager>();
107
+ nav.NavigateTo("/Cat");
108
109
+ cut.Contains("Localized-Cat");
110
+ }
111
112
[Fact]
113
public async Task ShowTabInHeader_Ok()
114
{
0 commit comments