便携式类库测试 [英] Portable Class Library Testing

查看:125
本文介绍了便携式类库测试的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

所以测试便携式类库没有任何特定平台的code时,针对来自足够的配置文件中的平台(.NET 4.5)只是一个测试?我的直觉说不准,但我读过一些声称并非如此。

So when testing a Portable Class Library without any platform specific code, is testing against just one of the platforms (.net 4.5) from the profile enough? My intuition says no, but I've read some claims otherwise.

如果你确实需要测试的每一个平台,做任何众多的测试框架在那里了.NET与亚军每个或大多数平台的PCL测试库,所以单元测试只有一个DLL是必要的?

And if you do need to test against each platform, do any of the multitude of test frameworks out there for .net have a PCL testing library with runners for each or most platforms, so only one DLL of unit tests would be necessary?

推荐答案

它通常是最好的测试在所有平台上。现在我不知道有任何测试框架/亚军支持这一点。我希望能帮助的xUnit这样做。

It's usually best to test on all platforms. Right now I'm not aware of any test framework/runner that supports this. I'm hoping to help xUnit do so.

我做了一个非常简单的实现了一个测试框架,我 PCL存储库。所以,你可以用它来让你开始在所有的平台上运行测试。

I've done a very simple implementation of a test framework for my PCL Storage library. So you could use that to get you started running tests on all the platforms.

这篇关于便携式类库测试的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆