예제 #1
0
        /// <summary>
        /// This is the base classes setup method.  It will be called by Xunit before each test.
        /// You should not have anything to do with it.
        /// </summary>
        public XunitFormTest()
        {
            verified = false;

            if (!SystemInformation.UserInteractive)
            {
                isUserInteractive.SetValue(null, true);
            }

            if (UseHidden)
            {
                testDesktop = new Desktop("XunitForms Test Desktop", DisplayHidden);
            }

            modal = new ModalFormTester();
            mouse = new MouseController();
            keyboard = new KeyboardController(new OldSendKeysFactory());
            Util.GetMessageHook.InstallHook();
            Setup();
        }