@@ -218,6 +218,43 @@ public void UseTabSet_Menus()
218218 cut . WaitForAssertion ( ( ) => cut . Contains ( "<div class=\" tabs-body-content\" >Binder</div>" ) ) ;
219219 }
220220
221+ [ Fact ]
222+ public void UseTabSet_ShowTabExtendButtons ( )
223+ {
224+ var cut = Context . RenderComponent < Layout > ( pb =>
225+ {
226+ pb . Add ( a => a . UseTabSet , true ) ;
227+ pb . Add ( a => a . AdditionalAssemblies , new Assembly [ ] { GetType ( ) . Assembly } ) ;
228+ pb . Add ( a => a . ShowTabExtendButtons , false ) ;
229+ } ) ;
230+ cut . DoesNotContain ( "<div class=\" nav-link-bar dropdown dropdown-toggle\" data-bs-toggle=\" dropdown\" aria-haspopup=\" true\" aria-expanded=\" false\" >" ) ;
231+ }
232+
233+ [ Fact ]
234+ public void UseTabSet_ShowCloseButton ( )
235+ {
236+ var cut = Context . RenderComponent < Layout > ( pb =>
237+ {
238+ pb . Add ( a => a . UseTabSet , true ) ;
239+ pb . Add ( a => a . AdditionalAssemblies , new Assembly [ ] { GetType ( ) . Assembly } ) ;
240+ pb . Add ( a => a . ShowTabItemClose , false ) ;
241+ } ) ;
242+ cut . DoesNotContain ( "<span class=\" tabs-item-close\" " ) ;
243+ }
244+
245+ [ Fact ]
246+ public void UseTabSet_ClickTabToNavigation ( )
247+ {
248+ var cut = Context . RenderComponent < Layout > ( pb =>
249+ {
250+ pb . Add ( a => a . UseTabSet , true ) ;
251+ pb . Add ( a => a . AdditionalAssemblies , new Assembly [ ] { GetType ( ) . Assembly } ) ;
252+ pb . Add ( a => a . ClickTabToNavigation , false ) ;
253+ } ) ;
254+ var tab = cut . FindComponent < Tab > ( ) ;
255+ Assert . False ( tab . Instance . ClickTabToNavigation ) ;
256+ }
257+
221258 [ Fact ]
222259 public void IsFixedHeader_OK ( )
223260 {
0 commit comments