@@ -587,7 +587,7 @@ public void GroupName_Order_Ok(bool showUnsetGroupItemsOnTop)
587587 builder . AddAttribute ( index ++ , nameof ( EditorItem < Foo , string > . Text ) , "Test-Text" ) ;
588588 builder . AddAttribute ( index ++ , nameof ( EditorItem < Foo , string > . Order ) , 1 ) ;
589589 builder . AddAttribute ( index ++ , nameof ( EditorItem < Foo , string > . GroupName ) , "Test-Group-1" ) ;
590- builder . AddAttribute ( index ++ , nameof ( EditorItem < Foo , string > . GroupOrder ) , 1 ) ;
590+ builder . AddAttribute ( index ++ , nameof ( EditorItem < Foo , string > . GroupOrder ) , 2 ) ;
591591 builder . AddAttribute ( index ++ , nameof ( EditorItem < Foo , string > . EditTemplate ) , new RenderFragment < Foo > ( foo => builder => builder . AddContent ( 0 , "Test" ) ) ) ;
592592 builder . CloseComponent ( ) ;
593593
@@ -597,7 +597,7 @@ public void GroupName_Order_Ok(bool showUnsetGroupItemsOnTop)
597597 builder . AddAttribute ( index ++ , nameof ( EditorItem < Foo , string > . Text ) , "Test-Address" ) ;
598598 builder . AddAttribute ( index ++ , nameof ( EditorItem < Foo , string > . Order ) , 1 ) ;
599599 builder . AddAttribute ( index ++ , nameof ( EditorItem < Foo , string > . GroupName ) , "Test-Group-2" ) ;
600- builder . AddAttribute ( index ++ , nameof ( EditorItem < Foo , string > . GroupOrder ) , 2 ) ;
600+ builder . AddAttribute ( index ++ , nameof ( EditorItem < Foo , string > . GroupOrder ) , 1 ) ;
601601 builder . CloseComponent ( ) ;
602602
603603 builder . OpenComponent < EditorItem < Foo , bool > > ( index ++ ) ;
@@ -608,6 +608,11 @@ public void GroupName_Order_Ok(bool showUnsetGroupItemsOnTop)
608608 builder . CloseComponent ( ) ;
609609 } ) ;
610610 } ) ;
611+
612+ var groups = cut . FindAll ( ".legend" ) ;
613+ Assert . Equal ( 2 , groups . Count ) ;
614+ Assert . Equal ( "Test-Group-2" , groups [ 0 ] . TextContent ) ;
615+ Assert . Equal ( "Test-Group-1" , groups [ 1 ] . TextContent ) ;
611616 }
612617
613618 private static RenderFragment < Foo > GenerateEditorItems ( Foo foo ) => f => builder =>
0 commit comments