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!!
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!
With your new BDD naming convention are you finding that on non-trivial projects tests are hard to find with everything beginning with “When_”?