Skip to content

Commit

Permalink
Enable back RemovePageSetsCorrectNavigationSource
Browse files Browse the repository at this point in the history
  • Loading branch information
rmarinho committed Jul 29, 2024
1 parent 81fbe8f commit 8de3a6a
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions src/Controls/tests/Core.UnitTests/ShellNavigatedArgsTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -183,22 +183,22 @@ await shell.TestNavigationArgs(ShellNavigationSource.Insert,
// "//item/pagemiddle/page", "//item/page");
// }

// [Fact]
// public async Task RemovePageSetsCorrectNavigationSource()
// {
// Routing.RegisterRoute("pagemiddle", typeof(ContentPage));
// Routing.RegisterRoute("page", typeof(ContentPage));
// var shell = new TestShell(
// CreateShellItem(shellItemRoute: "item")
// );
[Fact]
public async Task RemovePageSetsCorrectNavigationSource()
{
Routing.RegisterRoute("pagemiddle", typeof(ContentPage));
Routing.RegisterRoute("page", typeof(ContentPage));
var shell = new TestShell(
CreateShellItem(shellItemRoute: "item")
);

// await shell.GoToAsync("//item/pagemiddle/page");
// await shell.GoToAsync("//item/page");
await shell.GoToAsync("//item/pagemiddle/page");
await shell.GoToAsync("//item/page");


// await shell.TestNavigationArgs(ShellNavigationSource.Remove,
// "//item/pagemiddle/page", "//item/page");
// }
await shell.TestNavigationArgs(ShellNavigationSource.Remove,
"//item/pagemiddle/page", "//item/page");
}

[Fact]
public async Task InitialNavigatingArgs()
Expand Down

0 comments on commit 8de3a6a

Please sign in to comment.