winforms
winforms copied to clipboard
Unstable unit test: System.Windows.Forms.Tests.ToolTipTests.ToolTip_WmShow_Invokes_AnnounceText_WithExpectedText_ForTabControlTabs
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:
- #20240411.4 • [main] Update dependencies from dotnet/arcade (#11200)
- #20240410.28 • Fix some record issues
- #20240418.1 • Port TreeNodeCollectionEditor to core
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)