Unit Testing WPF controls with Automation Peers

by Michael R. Albertin 1. June 2009 13:10

Unit Testing WPF controls with Automation Peers
http://miketwo.blogspot.com/2007/03/unit-testing-wpf-controls-with.html

ReSharper and GUI-Testing

by Michael R. Albertin 1. June 2009 10:59

If you try to run a test like the following from NUnit, you will find that it does not work.
You get an InvalidOperationException telling you that “The calling thread must be STA, because many UI components require this”.

http://www.hedgate.net/articles/2007/01/08/instantiating-a-wpf-control-from-an-nunit-test/

System.InvalidOperationException: Beim aufrufenden Thread muss es sich um einen STA-Thread handeln, da dies für viele Komponenten der Benutzeroberfläche erforderlich ist.

Disclaimer
The opinions expressed herein are my own personal opinions and do not represent my employer's view in anyway.

© Copyright 2012 Syntax Error