You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
TileView tests assume Views can be Added to SuperView twice
e.g.:
[Fact]publicvoidTestDisposal_NoEarlyDisposalsOfUsersViews_DuringInsertTile(){TileViewtv=GetTileView(20,10);varmyReusableView=newDisposeCounter();// I want my view in the first tiletv.Tiles.ElementAt(0).ContentView.Add(myReusableView);Assert.Equal(0,myReusableView.DisposalCount);// I've changed my mind, I want 3 tiles nowtv.InsertTile(0);tv.InsertTile(2);// but I still want my view in the first tile// BUGBUG: Adding a view twice is not legittv.Tiles.ElementAt(0).ContentView.Add(myReusableView);Assert.Multiple(()=>Assert.Equal(0,myReusableView.DisposalCount),()=>{tv.Dispose();Assert.True(myReusableView.DisposalCount>=1);});}
The text was updated successfully, but these errors were encountered:
tig
changed the title
TileView tests assume Views can be added to two SuperViewsTileView tests assume Views can be Added to SuperView twice
Mar 8, 2025
AND, to make View.Add/Remove throw exceptions when these situations are detected. The both emit warnings now, but I had to remove the throws for tests to pass.
TileView
tests assumeViews
can be Added toSuperView
twicee.g.:
The text was updated successfully, but these errors were encountered: