Inheritance: MonoBehaviour
Exemple #1
0
        static void Main(string[] args)
        {
            NavigationTest NT = new NavigationTest();

            NT.SetupTest();
            NT.Test();
            NT.cleanUp();

            Console.WriteLine("Done");
        }
Exemple #2
0
        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);
        }
Exemple #3
0
        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);
        }
Exemple #4
0
        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");
        }
Exemple #5
0
        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");
        }