[Managed.Windows.Forms] Revert a revert commit that accidentally changed the wrong code

When the commit 8334fe3 was reverted in a791cfc, accidentally the wrong chunk of code was changed.
The first commit reverts the changes correctly, the seconds adds some Asserts for the testcase that were usefuly while investigating this.