示例#1
0
        public void Q554072_3()
        {
            var control = new EventToCommandTestView();

            Window.Content = control;
            EnqueueShowWindow();
            EnqueueCallback(() => {
                EventToCommandTestViewModel vm = (EventToCommandTestViewModel)control.DataContext;
                Assert.AreEqual(2, vm.Q554072CommandCount);
            });
            EnqueueTestComplete();
        }
        public async Task Q554072_3()
        {
#endif
            var control = new EventToCommandTestView();
            Window.Content = control;
#if NETFX_CORE
            await
#endif
            EnqueueShowWindow();
            EnqueueCallback(() => {
                EventToCommandTestViewModel vm = (EventToCommandTestViewModel)control.DataContext;
#if !NETFX_CORE
                Assert.AreEqual(2, vm.Q554072CommandCount);
#else
                Assert.IsTrue(vm.Q554072CommandCount > 1);
#endif
            });
            EnqueueTestComplete();
        }