diff --git a/src/Controls/tests/DeviceTests/Elements/FlyoutPage/FlyoutPageTests.Windows.cs b/src/Controls/tests/DeviceTests/Elements/FlyoutPage/FlyoutPageTests.Windows.cs index f4fd4f8be78c..df14f2001411 100644 --- a/src/Controls/tests/DeviceTests/Elements/FlyoutPage/FlyoutPageTests.Windows.cs +++ b/src/Controls/tests/DeviceTests/Elements/FlyoutPage/FlyoutPageTests.Windows.cs @@ -15,6 +15,7 @@ using Microsoft.Maui.Hosting; using Microsoft.Maui.Handlers; using Microsoft.UI.Xaml.Controls; +using Microsoft.Maui.DeviceTests.Stubs; namespace Microsoft.Maui.DeviceTests { diff --git a/src/Controls/tests/DeviceTests/Elements/NavigationPage/NavigationPageTests.Android.cs b/src/Controls/tests/DeviceTests/Elements/NavigationPage/NavigationPageTests.Android.cs index 10d2b5a39784..03a5d26edcaa 100644 --- a/src/Controls/tests/DeviceTests/Elements/NavigationPage/NavigationPageTests.Android.cs +++ b/src/Controls/tests/DeviceTests/Elements/NavigationPage/NavigationPageTests.Android.cs @@ -7,6 +7,7 @@ using Microsoft.Maui; using Microsoft.Maui.Controls; using Microsoft.Maui.Controls.Handlers; +using Microsoft.Maui.DeviceTests.Stubs; using Microsoft.Maui.Platform; using Xunit; diff --git a/src/Controls/tests/DeviceTests/Elements/Window/WindowTests.cs b/src/Controls/tests/DeviceTests/Elements/Window/WindowTests.cs index 8ef717f0ff06..14a5f7decb55 100644 --- a/src/Controls/tests/DeviceTests/Elements/Window/WindowTests.cs +++ b/src/Controls/tests/DeviceTests/Elements/Window/WindowTests.cs @@ -11,6 +11,7 @@ using Microsoft.Maui.Hosting; using Microsoft.Maui.Handlers; using Microsoft.Maui.Graphics; +using Microsoft.Maui.DeviceTests.Stubs; #if ANDROID || IOS using ShellHandler = Microsoft.Maui.Controls.Handlers.Compatibility.ShellRenderer; diff --git a/src/Controls/tests/DeviceTests/HandlerTestBase.Windows.cs b/src/Controls/tests/DeviceTests/HandlerTestBase.Windows.cs index db72c954e2b9..66c067308d5e 100644 --- a/src/Controls/tests/DeviceTests/HandlerTestBase.Windows.cs +++ b/src/Controls/tests/DeviceTests/HandlerTestBase.Windows.cs @@ -29,7 +29,6 @@ Task SetupWindowForTests(IWindow window, Func runTests) { return InvokeOnMainThreadAsync(async () => { - var testingRootPanel = (WFrameworkElement)MauiProgram.CurrentWindow.Content; var applicationContext = MauiContext.MakeApplicationScope(UI.Xaml.Application.Current); var appStub = new MauiAppNewWindowStub(window); diff --git a/src/Controls/tests/DeviceTests/HandlerTestBase.iOS.cs b/src/Controls/tests/DeviceTests/HandlerTestBase.iOS.cs index ed3f2180b2ce..2f8b8ac07682 100644 --- a/src/Controls/tests/DeviceTests/HandlerTestBase.iOS.cs +++ b/src/Controls/tests/DeviceTests/HandlerTestBase.iOS.cs @@ -4,6 +4,7 @@ using Microsoft.Maui.Controls.Handlers.Compatibility; using Microsoft.Maui.Controls.Platform; using Microsoft.Maui.Controls.Platform.Compatibility; +using Microsoft.Maui.DeviceTests.Stubs; using Microsoft.Maui.Platform; using UIKit;