public TestReactViewWithPreload()
            {
                AutoShowInnerView = true;
                var innerView = new InnerViewModule();

                innerView.Load();
            }
Esempio n. 2
0
        public void InnerViewIsLoaded()
        {
            var innerViewLoaded = false;
            var innerView       = new InnerViewModule();

            innerView.Loaded += () => innerViewLoaded = true;

            innerView.Load();

            WaitFor(() => innerViewLoaded, "inner view module load");
            Assert.IsTrue(innerViewLoaded);
        }
Esempio n. 3
0
        public void InnerViewMethodIsExecuted()
        {
            var methodCalled = false;
            var innerView    = new InnerViewModule();

            innerView.MethodCalled += () => methodCalled = true;

            innerView.Load();
            innerView.TestMethod();

            WaitFor(() => methodCalled, "method called");
            Assert.IsTrue(methodCalled);
        }