Visual studio2010 (and above) test configuration code