File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -470,6 +470,25 @@ public async Task TabStyle_Chrome_Ok()
470470 Assert . Equal ( TabStyle . Default , cut . Instance . TabStyle ) ;
471471 }
472472
473+ [ Fact ]
474+ public void TabStyle_Capsule_Ok ( )
475+ {
476+ var cut = Context . RenderComponent < Tab > ( pb =>
477+ {
478+ pb . Add ( a => a . TabStyle , TabStyle . Capsule ) ;
479+ pb . AddChildContent < TabItem > ( pb =>
480+ {
481+ pb . Add ( a => a . Text , "Text1" ) ;
482+ pb . Add ( a => a . ChildContent , builder => builder . AddContent ( 0 , "Test1" ) ) ;
483+ pb . Add ( a => a . Icon , "fa fa-fa" ) ;
484+ } ) ;
485+ } ) ;
486+ cut . Contains ( "tabs tabs-top tabs-capsule" ) ;
487+ cut . Contains ( "tabs-item-wrap active" ) ;
488+ cut . DoesNotContain ( "<i class=\" tab-corner tab-corner-left\" ></i>" ) ;
489+ cut . DoesNotContain ( "<i class=\" tab-corner tab-corner-right\" ></i>" ) ;
490+ }
491+
473492 [ Fact ]
474493 public void MenuItem_Null ( )
475494 {
You can’t perform that action at this time.
0 commit comments