开发者

Silverlight Unit Test Framework Rerun Tests

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:

  1. I'm really so dumb that I've missed something terribly obvious.

  2. No one really uses Silverlight for production applications or at least none that require unit testing, so no-one really knows the answer here.

  3. Microsoft's commitment to Silverlight and support for it is sub-standard, at best.

  4. 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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜