Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
LeafShi1 opened this issue Apr 18, 2024 · 0 comments
Labels
disabled-test Tracking tests that have been disabled to prevent run failures. test-bug Problem in test source code (most likely)

Comments

@LeafShi1
Copy link
Member

LeafShi1 commented Apr 18, 2024

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)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
disabled-test Tracking tests that have been disabled to prevent run failures. test-bug Problem in test source code (most likely)
Projects
None yet
Development

No branches or pull requests

2 participants