Integration Tests which make use of `ControlTestBase` can erroneously pass when an exception is present
Open
test-bug
- Dominant language
- C#
- Stars
- 4.9k
- Forks
- 1.1k
- Avg merge
- 20h 23m
- Merged PRs (30d)
- 103
Description
Add the following test to `System.Windows.Forms.UI.IntegrationTests`. It should fail as an exception is thrown. But it passes.
```csharp
[WinFormsFact]
public async Task Special_Test()
{
using Form form = new();
form.Shown += (object? sender, EventArgs e) => { throw new Exception("test"); };
await RunFormWithoutControlAsync(() => form, async (form) =>
{
await MoveMouseAsync(form, new Point(0, 0), false);
form.Close();
});
}
```
Contributor guide
Assessment
This issue has not been assessed yet.