Skip to content

Commit a3d49a5

Browse files
SuthiYuvarajjsuarezruiz
authored andcommitted
Fix item addition logic in Issue25991 test
1 parent 3b4646d commit a3d49a5

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

src/Controls/tests/TestCases.HostApp/Issues/Issue25991.cs

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -122,12 +122,11 @@ void OnScrollToPerson2ButtonClicked(object sender, EventArgs e)
122122

123123
void OnAddButtonClicked(object sender, EventArgs e)
124124
{
125-
_collection.RemoveAt(_collection.Count - 1);
126-
// _collection.Add(new Issue25991Model()
127-
// {
128-
// Text = "Item " + (_collection.Count + 1),
129-
// AutomationId = "Issue25991Item" + (_collection.Count + 1)
130-
// });
125+
_collection.Add(new Issue25991Model()
126+
{
127+
Text = "Item " + (_collection.Count + 1),
128+
AutomationId = "Issue25991Item" + (_collection.Count + 1)
129+
});
131130
}
132131

133132
void OnKeepItemsInViewButtonClicked(object sender, EventArgs e)

0 commit comments

Comments
 (0)