Skip to content

Commit 5d05194

Browse files
committed
Add assertion for test case "Control_OnHandleDestroyed_CustomAccessibleObject_DoesNotThrow1"
1 parent 8aa399b commit 5d05194

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/test/unit/System.Windows.Forms/System/Windows/Forms/ControlTests.Methods.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -421,7 +421,8 @@ public void Control_OnHandleDestroyed_CustomAccessibleObject_DoesNotThrow1()
421421
};
422422

423423
AccessibleObject accessibleObject = control.AccessibilityObject;
424-
control.InvokeOnHandleDestroyed(EventArgs.Empty);
424+
Action action = () => control.InvokeOnHandleDestroyed(EventArgs.Empty);
425+
action.Should().NotThrow();
425426
}
426427

427428
[WinFormsFact]

0 commit comments

Comments
 (0)