Beispiel #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();
        }
Beispiel #2
0
 /// <summary>
 /// A patch method to allow migration to an alternative SendKeys class instead
 /// of the dot Net SendKeys class. Once the new class is completed this method
 /// will be replaced by a method to allow use of the dot Net class.
 ///
 /// This method must only be called at the start of the test fixture's overriden
 /// SetUp().
 /// </summary>
 protected void EmulateWindowSpecificSendKeys()
 {
     keyboard =
         new KeyboardController(
             new SendKeysFactory(new SendKeysParserFactory(), new WindowSpecificSendKeyboardInput()));
 }
        /// <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();
        }
 /// <summary>
 /// A patch method to allow migration to an alternative SendKeys class instead
 /// of the dot Net SendKeys class. Once the new class is completed this method
 /// will be replaced by a method to allow use of the dot Net class.
 /// 
 /// This method must only be called at the start of the test fixture's overriden
 /// SetUp().
 /// </summary>
 protected void EmulateWindowSpecificSendKeys()
 {
     keyboard =
         new KeyboardController(
             new SendKeysFactory(new SendKeysParserFactory(), new WindowSpecificSendKeyboardInput()));
 }