[WPF] Implement the unit test runner
[WPF] Fix unit test issues

Don't shut down the event loop after the first window has been closed, since
that breaks all unit tests. Properly set and update the margin of window
children.
Fix some unit tests

Increased the size of the test windows, since WPF has a default
min size of 132. Added checks for the bounds of window children.