static void Main(string[] args) { NavigationTest NT = new NavigationTest(); NT.SetupTest(); NT.Test(); NT.cleanUp(); Console.WriteLine("Done"); }
public async Task PushesModalIntoNextInner() { var page = new ContentPage(); var navProxy = new NavigationProxy(); await navProxy.PushModalAsync(page); var navTest = new NavigationTest(); navProxy.Inner = navTest; Assert.AreEqual(page, navTest.LastPushedModal); }
public async Task TestPushModalWithInner() { var proxy = new NavigationProxy(); var inner = new NavigationTest(); proxy.Inner = inner; var child = new ContentPage { Content = new View() }; await proxy.PushModalAsync(child); Assert.AreEqual(child, inner.LastPushedModal); }
public async Task TestPopModalWithInner() { var proxy = new NavigationProxy(); var inner = new NavigationTest(); proxy.Inner = inner; var child = new ContentPage { Content = new View() }; await proxy.PushModalAsync(child); await proxy.PopModalAsync(); Assert.True(inner.PoppedModal, "Pop was never called on the inner proxy item"); }
public async Task TestPopWithInner() { var proxy = new NavigationProxy(); var inner = new NavigationTest(); proxy.Inner = inner; var child = new ContentPage { Content = new View() }; await proxy.PushAsync(child); var result = await proxy.PopAsync(); Assert.AreEqual(child, result); Assert.True(inner.Popped, "Pop was never called on the inner proxy item"); }