专注于互联网--专注于架构

最新标签
网站地图
文章索引
Rss订阅

首页 »DotNet » nunit使用:DotNet下NUnit的使用(1) »正文

nunit使用:DotNet下NUnit的使用(1)

来源: 发布时间:星期四, 2009年2月12日 浏览:115次 评论:0


什么是Nunit
NUnit 是个单元测试框架可以用于所有.Net语言和JUnit类似可以用来很方便进行单元测试NUnit是完全用C#语言编写而成使用NUnit您可以只需在您代码上加上简单'Attribute'就可以进行单元测试目前NUnit最新稳定版本是 2.4.8 (下载 ), 下面是来自就NUnit官方介绍:

NUnit is a unit-testing framework for all .Net languages. Initially ported from JUnit, the current production release, version 2.4, is the fth major release of this xUnit based unit testing tool for Microsoft .NET. It is written entirely in C# and has been completely redesigned to take advantage of many .NET language features, for example custom attributes and other reflection related capabilities. NUnit brings xUnit to all .NET languages.

准备工作
1. 下载NUnit (最新稳定版本 2.4.8)
2. 安装NUnit
实际上我们需要NUnit几个核心文件(nunit.framework.dll, nunit.core.dll, nunit.fixtures.dll)就可以了当然为了能够使用NUnit运行unit-tests 建议完全安装
0

相关文章

读者评论

发表评论

  • 昵称:
  • 内容: