MonoTests.System.Windows.Automation.CustomProviderFragment.PerformInvoke C# (CSharp) Метод

PerformInvoke() публичный Метод

public PerformInvoke ( ) : void
Результат void
		public void PerformInvoke()
		{
			ClickCount++;
			AutomationInteropProvider.RaiseAutomationEvent (InvokePattern.InvokedEvent, this,
				new AutomationEventArgs(InvokePattern.InvokedEvent));
		}

Usage Example

Пример #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