File tree Expand file tree Collapse file tree 2 files changed +10
-4
lines changed Expand file tree Collapse file tree 2 files changed +10
-4
lines changed Original file line number Diff line number Diff line change @@ -453,8 +453,10 @@ await cut.InvokeAsync(async () =>
453453 Assert . False ( max ) ;
454454 }
455455
456- [ Fact ]
457- public void ItemTemplate_Ok ( )
456+ [ Theory ]
457+ [ InlineData ( true ) ]
458+ [ InlineData ( false ) ]
459+ public void ItemTemplate_Ok ( bool isButton )
458460 {
459461 var items = new List < SelectedItem > ( )
460462 {
@@ -464,6 +466,7 @@ public void ItemTemplate_Ok()
464466 } ;
465467 var cut = Context . RenderComponent < CheckboxList < string > > ( pb =>
466468 {
469+ pb . Add ( a => a . IsButton , isButton ) ;
467470 pb . Add ( a => a . Items , items ) ;
468471 pb . Add ( a => a . ItemTemplate , item => b =>
469472 {
Original file line number Diff line number Diff line change @@ -160,11 +160,14 @@ public void ShowLabel_Ok()
160160 cut . Contains ( "AfterLabel" ) ;
161161 }
162162
163- [ Fact ]
164- public void ItemTemplate_Ok ( )
163+ [ Theory ]
164+ [ InlineData ( true ) ]
165+ [ InlineData ( false ) ]
166+ public void ItemTemplate_Ok ( bool isButton )
165167 {
166168 var cut = Context . RenderComponent < RadioList < IEnumerable < SelectedItem > > > ( pb =>
167169 {
170+ pb . Add ( a => a . IsButton , isButton ) ;
168171 pb . Add ( a => a . Items , new List < SelectedItem >
169172 {
170173 new ( "1" , "Test1" ) ,
You can’t perform that action at this time.
0 commit comments