MonoTests.System.Windows.Automation.CustomProviderFragment.PerformInvoke C# (CSharp) Method

PerformInvoke() public method

public PerformInvoke ( ) : void
return void
		public void PerformInvoke()
		{
			ClickCount++;
			AutomationInteropProvider.RaiseAutomationEvent (InvokePattern.InvokedEvent, this,
				new AutomationEventArgs(InvokePattern.InvokedEvent));
		}

Usage Example

Esempio n. 1
0
        public void EventTest()
        {
            int eventCount = 0;
            AutomationEventHandler handler = (o, e) => eventCount++;

            At.AddAutomationEventHandler(InvokePattern.InvokedEvent,
                                         child, TreeScope.Element, handler);
            childProvider.PerformInvoke();
            Thread.Sleep(500);
            Assert.AreEqual(1, eventCount);
        }
All Usage Examples Of MonoTests.System.Windows.Automation.CustomProviderFragment::PerformInvoke