简体   繁体   English

VS2010 Express中的vb.net单元测试

[英]unit testing vb.net in VS2010 express

What are some easy and simple unit testing frameworks to use with Visual Studio 2010 Express vb.net? 与Visual Studio 2010 Express vb.net一起使用的一些简单 易用的单元测试框架是什么?

Are there any good tutorials geared towards this? 是否有针对此的好的教程?

It may not be true anymore, but previous versions of VS Express weren't able to install any plugins. 它可能不再适用,但以前版本的VS Express无法安装任何插件。 This meant that you couldn't use the integrated test-runners, but that's really not that big of a deal. 这意味着你无法使用集成的测试运行器,但这真的不是那么大的交易。

Worst case is that you use VS to write your tests and compile both, then manually run your tests using their testrunner external to VS. 最糟糕的情况是你使用VS编写测试并编译它们,然后使用VS外部的testrunner手动运行测试。 The most common unit-testing platform for .NET is nUnit which includes a standalone test runner. 最常见的.NET单元测试平台是nUnit,它包含一个独立的测试运行器。

You can certainly install nUnit for VS 2010 Express C# (I just tried this out this morning), so I would think you could for VB. 您当然可以为VS 2010 Express C#安装nUnit (我今天上午刚刚尝试过此操作),所以我认为您可以为VB安装。 The link is a tutorial/demo for VS Express 2008, but it worked in my Express 2010 -- again, C#. 该链接是VS Express 2008的教程/演示,但它在我的Express 2010中仍然有效-还是C#。

I also found a older tutorial using nUnit and VS 2005 Express VB 我还发现了使用nUnit和VS 2005 Express VB的旧教程。

See also: 也可以看看:


声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM