Skip to content

Commit c127c3f

Browse files
mattleibowCopilot
andauthored
[net11.0] Fix Windows build: add missing 'using static AssertHelpers' to TabbedPageTests.Windows.cs (#37818)
<!-- Please let the below note in for people that find this PR --> > [!NOTE] > Are you waiting for the changes in this PR to be merged? > It would be very helpful if you could [test the resulting artifacts](https://github.com/dotnet/maui/wiki/Testing-PR-Builds) from this PR and let us know in a comment if this change resolves your issue. Thank you! ## Description PR #37755 added Windows TabbedPage badge tests that call `AssertEventually`, but `TabbedPageTests.Windows.cs` was missing the static import for `Microsoft.Maui.DeviceTests.AssertHelpers`. This causes CS0103 in both net11.0 Windows TFMs and blocks the Debug and Release Windows builds for every PR targeting `net11.0`. This adds the same `using static Microsoft.Maui.DeviceTests.AssertHelpers;` directive already present in every sibling `TabbedPageTests` partial. No test logic or runtime behavior changes. ## Verification Verified by code inspection that the sibling partials use the same static import and that `AssertHelpers.AssertEventually(Func<bool>, ...)` exists. Windows compile verification is deferred to CI because the local host is macOS and cannot build the `net11.0-windows` TFMs. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
1 parent 4695c95 commit c127c3f

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/Controls/tests/DeviceTests/Elements/TabbedPage/TabbedPageTests.Windows.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
using Microsoft.Maui.Hosting;
1414
using Microsoft.Maui.Platform;
1515
using Xunit;
16+
using static Microsoft.Maui.DeviceTests.AssertHelpers;
1617
using WContentPresenter = Microsoft.UI.Xaml.Controls.ContentPresenter;
1718
using WFrame = Microsoft.UI.Xaml.Controls.Frame;
1819
using WFrameworkElement = Microsoft.UI.Xaml.FrameworkElement;

0 commit comments

Comments
 (0)