Jean-Paul S. Boodhoo

Sponsors

The Lounge

Advertisement

Images in this post missing? We recently lost them in a site migration. We're working to restore these as you read this. Should you need an image in an emergency, please contact us at imagehelp@codebetter.com
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!!


Posted Thu, Jan 17 2008 3:25 PM by bitwisejp
Filed under:

[Advertisement]

Comments

Joe wrote re: WPF UI Automation Testing With MbUnit
on Thu, Jan 17 2008 8:48 PM

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

Christopher Bennage wrote re: WPF UI Automation Testing With MbUnit
on Fri, Jan 18 2008 1:09 AM

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!

» Daily Bits - January 18, 2008 Alvin Ashcraft’s Daily Geek Bits: Daily links plus random ramblings about development, gadgets and raising rugrats. wrote » Daily Bits - January 18, 2008 Alvin Ashcraft’s Daily Geek Bits: Daily links plus random ramblings about development, gadgets and raising rugrats.
on Fri, Jan 18 2008 8:51 AM

Pingback from  » Daily Bits - January 18, 2008 Alvin Ashcraft’s Daily Geek Bits: Daily links plus random ramblings about development, gadgets and raising rugrats.