Skip to content

Commit

Permalink
- cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
PureWeen committed Feb 15, 2023
1 parent 2456407 commit 1e7ef41
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions src/Controls/tests/DeviceTests/ControlsHandlerTestBase.cs
Original file line number Diff line number Diff line change
Expand Up @@ -86,17 +86,11 @@ IWindow CreateWindowForContent(IElement view)
IWindow window;

if (view is IWindow w)
{
window = w;
}
else if (view is Page page)
{
window = new Controls.Window(page);
}
else
{
window = new Controls.Window(new ContentPage() { Content = (View)view });
}

return window;
}
Expand Down Expand Up @@ -148,6 +142,9 @@ await SetupWindowForTests<THandler>(window, async () =>
{
IView content = window.Content;
if (content is FlyoutPage fp)
content = fp.Detail;
if (content is IPageContainer<Page> pc)
{
content = pc.CurrentPage;
Expand Down

0 comments on commit 1e7ef41

Please sign in to comment.