Skip to content

Commit

Permalink
chore: build errors
Browse files Browse the repository at this point in the history
  • Loading branch information
ramezgerges committed Dec 18, 2024
1 parent 046a258 commit ee6b960
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -492,6 +492,7 @@ public async Task When_Exception_In_OnNavigatedTo()
Assert.IsTrue(navigationFailed);
}

#if HAS_UNO
[TestMethod]
#if !__ANDROID__
[Ignore("This test specifically tests Android's NativeFramePresenter")]
Expand Down Expand Up @@ -562,14 +563,15 @@ public async Task When_Navigating_NativeFrame_Pages_Get_Collected(bool backAndFo
for (int i = 0; i < 10; i++)
{
GC.Collect(GC.MaxGeneration, GCCollectionMode.Forced);
GC.WaitForPendingFinalizers();
GC.WaitForPendingFinalizers();
}

Assert.AreEqual(backAndForth ? 2 : 12, FinalizeCounterPage.ConstructorCalls);
// 10 and not 11 because NativeFramePresenter won't immediately clear its "cache" on
// SUT.BackStack.Clear(), but waits for the next SUT.Navigate()
Assert.AreEqual(backAndForth ? 0 : 10, FinalizeCounterPage.FinalizerCalls);
}
#endif

[TestCleanup]
public void Cleanup()
Expand Down

0 comments on commit ee6b960

Please sign in to comment.