File tree Expand file tree Collapse file tree 1 file changed +25
-0
lines changed Expand file tree Collapse file tree 1 file changed +25
-0
lines changed Original file line number Diff line number Diff line change @@ -630,6 +630,31 @@ public void ButtonTemplate_Ok()
630630 cut . Contains ( "<div>test-button</div>" ) ;
631631 }
632632
633+ [ Fact ]
634+ public void ShowNavigatorButtons_Ok ( )
635+ {
636+ var cut = Context . RenderComponent < Tab > ( pb =>
637+ {
638+ pb . Add ( a => a . AdditionalAssemblies , new Assembly [ ] { GetType ( ) . Assembly } ) ;
639+ pb . Add ( a => a . ShowNavigatorButtons , true ) ;
640+ pb . AddChildContent < TabItem > ( pb =>
641+ {
642+ pb . Add ( a => a . Text , "Tab1" ) ;
643+ pb . Add ( a => a . Url , "/Cat" ) ;
644+ } ) ;
645+ } ) ;
646+
647+ var links = cut . FindAll ( ".nav-link-bar" ) ;
648+ Assert . Equal ( 2 , links . Count ) ;
649+
650+ cut . SetParametersAndRender ( pb =>
651+ {
652+ pb . Add ( a => a . ShowNavigatorButtons , false ) ;
653+ } ) ;
654+ links = cut . FindAll ( ".nav-link-bar" ) ;
655+ Assert . Empty ( links ) ;
656+ }
657+
633658 [ Fact ]
634659 public void Text_Ok ( )
635660 {
You can’t perform that action at this time.
0 commit comments