File tree Expand file tree Collapse file tree
BlazorWebFormsComponents.Test Expand file tree Collapse file tree Original file line number Diff line number Diff line change 33
44@code {
55
6- private int _clickedIndex = - 1 ;
7-
86 [Fact ]
97 public async Task BulletedList_LinkButtonClick_InvokesOnClickEvent ()
108 {
Original file line number Diff line number Diff line change 2929 CurrentUrl = " /products/electronics/phones/iphone"
3030 ParentLevelsDisplayed = " -1" / > );
3131
32- // Assert - Should show all 5 nodes
33- var allElements = cut .FindAll (" a, span > span" );
34- // 4 links + 1 current node span + separator spans
32+ // Assert - Should show all 5 nodes (4 links + 1 current node span + separator spans)
3533 cut .FindAll (" a" ).Count .ShouldBe (4 );
3634 }
3735
Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ namespace BlazorWebFormsComponents
1616 /// <typeparam name="TItem">The type of items in the data source.</typeparam>
1717 public partial class BulletedList < TItem > : DataBoundComponent < TItem > , IStyle
1818 {
19- private string _baseId = Guid . NewGuid ( ) . ToString ( "N" ) . Substring ( 0 , 8 ) ;
19+ private readonly string _baseId = Guid . NewGuid ( ) . ToString ( "N" ) . Substring ( 0 , 8 ) ;
2020
2121 /// <summary>
2222 /// Gets or sets the bullet style of the list.
Original file line number Diff line number Diff line change 77 {
88 var node = NavigationPath [i ];
99 var isFirst = i == 0 ;
10- var isLast = i == NavigationPath .Count - 1 ;
1110 var isCurrent = IsCurrentNode (node );
1211 var isRoot = IsRootNode (node );
1312
You can’t perform that action at this time.
0 commit comments