dotnet / dotnet/winforms

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

Open
#11,236 0 comments 1 reaction 0 assignees View on GitHub
disabled-test test-bug
Dominant language
C#
Stars
4.9k
Forks
1.1k
Avg merge
1d 13m
Merged PRs (30d)
85

Description

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)](https://dev.azure.com/dnceng-public/public/_build/results?buildId=639450&view=ms.vss-test-web.build-test-results-tab&runId=15759194&resultId=116766)
- [#20240410.28 • Fix some record issues](https://dev.azure.com/dnceng-public/public/_build/results?buildId=638739&view=ms.vss-test-web.build-test-results-tab&runId=15736452&resultId=107835)
- [#20240418.1 • Port TreeNodeCollectionEditor to core](https://dev.azure.com/dnceng-public/public/_build/results?buildId=647707&view=ms.vss-test-web.build-test-results-tab&runId=16001064&resultId=104393&paneView=history)

**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(),
It.IsAny(), It.IsAny())
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)
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.