views:

13

answers:

2

Hello everybody,

when i try to create unit tests using the unit test wizzard in visual studio 2008 the following error message is shown:

"The following error was encountered while reading module 'PresentationFramework': Could not resolve member reference: System.Windows.Automation.Provider.IToggleProvider::get_ToggleState"

I am able to create unit tests for all prjects that do not reference the 'PresentationFramework' module.

Any suggestions?

Best regards Pascal

A: 

You're just missing some dll references to your test suite, namely PresentationFramework. You'll probably have to add PresentationCore and WindowsBase too.

Ray
A: 

it-support said the problem might be related to a crash of VS some time ago. setup a new system with a fresh installation of visual studio solved the problem.

obivandamme