WPF UI Automation Testing With MbUnit

I’ll blog about the details of what I’m working on at a later date (if I can disclose). Needless to say. Make sure you use the TestFixture attribute as follows:

[TestFixture(ApartmentState = ApartmentState.STA)]

public class When_the_tree_item_is_expanded



This ensures that all of the tests in the fixture will run in a Single Threaded Apartment. And no putting the STAThread attribute on top of the test method won’t do it!!

Develop with passion!!