Skip to content

Commit ace61ac

Browse files
Ahamed-Alimattleibow
authored andcommitted
Added a Assert.NotNull test
1 parent a3e272d commit ace61ac

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/Controls/tests/DeviceTests/Elements/CollectionView/CollectionViewTests.iOS.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,8 @@ await CreateHandlerAndAddToWindow<CollectionViewHandler2>(collectionView, handle
103103
// Get the first cell's content
104104
var firstCellContent = collectionView.GetVisualTreeDescendants().OfType<Border>().FirstOrDefault();
105105

106+
Assert.NotNull(firstCellContent);
107+
106108
var frame = firstCellContent.Frame;
107109

108110
Assert.True(frame.Width == 200 && frame.Height == 300);

0 commit comments

Comments
 (0)