DynamoDS/Dynamo — pull request #3427 by pboyer (2014-12-15 16:24:57+00:00)
Title: Another attempt at fixing flaky NodeViewCustomizationTests

### Issue

The `NodeViewCustomizationTests` seems to fail sporadically on the CI.

### Potential fix

My next best guess is that this failure has to do with the fact that the UI has not been updated after completing a `RecorableCommand` like `Open` or `Run`.

Here I use the `DispatcherUtils.DoEvents()` to ensure the Dispatcher has emptied it's queue before doing UI assertions. This class was found in various places on StackOverflow, but probably has its origin in the WPF Application Framework https://waf.codeplex.com/.

### Test runs

I ran the tests 4 times on my machine without failure, but then again, I've never seen them fail like the CI (very frustrating).

### Reviewers

- [ ] @ikeough
- [ ] @Benglin