silverlight unit test framework for integration testing
I want to use the silverlight unit tes开发者_JAVA技巧t framework to integration test my application.
Can I load the entire application as part of a unit test?
Depending on how you have your Unit Test Application setup you would essentially be loading the entire application's assemblies into your test application (with the exception of the Application Resources). If for some reason you are trying to load the application .xap file this would take some more work, but I'm curious about the use case for doing that.
If you can provide some more concrete examples of what your are trying to test I'll be happy to help.
The sample code from this presentation may help http://www.bendewey.com/blog/index.php/291/silverlight-unit-testing-novacc
Update
I haven't tried this before, but you can write a javascript function on your Test Framework webpage that automates the calling of you ScriptableMember then have the TestFramework trigger the automated javascript call this in-turn could call into your ScriptableMember where you could then verify your input. You will probably have to Register your ScriptableObject twice, once in your production app and once in your Test application (unless you've abstracted this somewhere that it can be called by both applications).
精彩评论