CodeBetter.Com
CodeBetter.Com
RSS 2.0 via Feedburner
           Do you Twitter? Follow us @CodeBetter

Jean-Paul S. Boodhoo

Develop With Passion

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


Published Jan 17 2008, 03:25 PM by bitwisejp
Filed under:

Comments

Christopher Bennage said:

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!

# January 18, 2008 1:09 AM

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

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

# January 18, 2008 8:51 AM

Leave a Comment

(required)  
(optional)
(required)  

Enter the numbers above:
Add
Check out Devlicio.us!