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!!

This entry was posted in C#. Bookmark the permalink. Follow any comments here with the RSS feed for this post.

2 Responses to WPF UI Automation Testing With MbUnit

  1. I like the smell of this. I had begun something that “looked” similar a couple of months ago, and I was even talking about WPF Automation and TDD with a friend today!

  2. Joe says:

    With your new BDD naming convention are you finding that on non-trivial projects tests are hard to find with everything beginning with “When_”?

Leave a Reply