winforms icon indicating copy to clipboard operation
winforms copied to clipboard

Unstable unit test: System.Windows.Forms.Tests.ToolTipTests.ToolTip_WmShow_Invokes_AnnounceText_WithExpectedText_ForTabControlTabs

Open LeafShi1 opened this issue 1 year ago • 0 comments

Related #11227

Test

System.Windows.Forms.Tests.ToolTipTests.ToolTip_WmShow_Invokes_AnnounceText_WithExpectedText_ForTabControlTabs

Issue description

The case failed in X64 and X86 unit tests, the failure link:

Error Message:

Moq.MockException: 
Expected invocation on the mock once, but was 0 times: a => 
a.InternalRaiseAutomationNotification(AutomationNotificationKind.ActionCompleted, AutomationNotificationProcessing.All, " TabPage")

Configured setups: 
ControlAccessibleObject a => a.InternalRaiseAutomationNotification(It.IsAny<AutomationNotificationKind>(), 
It.IsAny<AutomationNotificationProcessing>(), It.IsAny<String>())
No invocations performed.

Stack trace:

   at Moq.Mock.Verify[T,TResult](Mock`1 mock, Expression`1 expression, Times times, String failMessage)
   at Moq.Mock`1.Verify[TResult](Expression`1 expression, Func`1 times)
   at System.Windows.Forms.Tests.ToolTipTests.ToolTip_WmShow_Invokes_AnnounceText_WithExpectedText_ForTabControlTabs() in D:\a\_work\1\s\src\System.Windows.Forms\tests\UnitTests\System\Windows\Forms\ToolTipTests.cs:line 860
   at System.RuntimeMethodHandle.InvokeMethod(Object target, Void** arguments, Signature sig, Boolean isConstructor)
   at System.Reflection.MethodBaseInvoker.InvokeWithNoArgs(Object obj, BindingFlags invokeAttr)

LeafShi1 avatar Apr 18 '24 09:04 LeafShi1