Sep 29, 2010 at 5:46 AM
Edited Sep 29, 2010 at 12:19 PM
The solution given in the above post helped.Thanks for the help.
The solution is as follows:
1)For asynchonous Unit test of views SilverLight 4 unit test framework the resource needs to be added in the test initialise method explicitly.
2)initially i had added them in App.xaml Merged dictionary of my test application which was working fine when debugged/executed using VS 2010 but Statlight was giving me error when ran using command prompt.
3)So suppose i have a resource in my XAP to be tested as booleanTovisibilityconvertor then it need to be added in the Test App using the following line
App.Current.Resources.Add("boolToVisibilityConverter", new BoolToVisibilityConverter
3)Adding in the APp.xaml of the test didnt help and i still wonder why but adding the above line of code in Test class explicitly helped.