Ok, maybe this is a really dumb question and I'm just not seeing the button...but how do I r开发者_开发问答erun checked tests in the SL Unit Testing application UI?
I launch the Unit Test App, let it run the tests.....then I can even check or uncheck certain tests when it completes....but how do I rerun those checked tests without restarting the whole darn thing? I just don't see a button "Run Selected Tests".....
Honestly, I really hope I'm being stupid about this.
I posted the same question on CodePlex, got not answer. I sent a direct email to the creator of the framework, got no answer.
This tells me some of a couple of things:
I'm really so dumb that I've missed something terribly obvious.
No one really uses Silverlight for production applications or at least none that require unit testing, so no-one really knows the answer here.
Microsoft's commitment to Silverlight and support for it is sub-standard, at best.
I've just gotten unlucky in my hopes for support on this matter.
That said, I found an answer myself. In App.xaml.cs:
private UnitTestPage _page;
In Application_Startup:
RootVisual = _page = (TestPage) UnitTestSystem.CreateTestPage();
Add a button or a right click handler or something, then call
_page.UnitTestHarness.Run();
Hopefully this helps someone else.
精彩评论