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 cdd0fe5 commit 73a94d1Copy full SHA for 73a94d1
test/UnitTest/Components/TabTest.cs
@@ -1167,6 +1167,21 @@ public void TabHeader_Ok()
1167
tab.DoesNotContain("tabs-header");
1168
}
1169
1170
+ [Fact]
1171
+ public void OnTabHeaderTextLocalizer_Ok()
1172
+ {
1173
+ var cut = Context.RenderComponent<Tab>(pb =>
1174
1175
+ pb.Add(a => a.AdditionalAssemblies, new Assembly[] { GetType().Assembly });
1176
+ pb.Add(a => a.OnTabHeaderTextLocalizer, text =>
1177
1178
+ return $"Localized-{text}";
1179
+ });
1180
+ pb.Add(a => a.DefaultUrl, "/Cat");
1181
1182
+ cut.Contains("Localized-Cat");
1183
+ }
1184
+
1185
class DisableTabItemButton : ComponentBase
1186
{
1187
[CascadingParameter, NotNull]
0 commit comments