NUnit Samples
This directory contains sample applications demonstrating the use of NUnit and organized as follows...
CSharp: Samples in C#
Failures: Demonstrates 4 failing tests and one that is not run.
Money: This is a C# version of the money example which is found in most xUnit implementations. Thanks to Kent Beck.
Money-Port: This shows how the Money example can be ported from Version 1 of NUnit with minimal changes.
Syntax: Illustrates most Assert methods using both the classic and constraint-based syntax.
JSharp: Samples in J#
Failures: Demonstrates 4 failing tests and one that is not run.
CPP: C++ Samples
MANAGED: Managed C++ Samples (VS 2003 compatible)
Failures: Demonstrates 4 failing tests and one that is not run.
CPP-CLI: C++/CLI Samples (VS 2005 only)
Failures: Demonstrates 4 failing tests and one that is not run.
Syntax: Illustrates most Assert methods using both the classic and constraint-based syntax.
VB: Samples in VB.NET
Failures: Demonstrates 4 failing tests and one that is not run.
Money: This is a VB.NET version of the money example found in most xUnit implementations. Thanks to Kent Beck.
Syntax: Illustrates most Assert methods using both the classic and constraint-based syntax.
Extensibility: Examples of extending NUnit
Framework:
Core:
TestSuiteExtension
TestFixtureExtension
Building the Samples
A Visual Studio 2003 project is included for most samples.
Visual Studio 2005 will convert the format automatically upon
opening it. The C++/CLI samples, as well as other samples that
depend on .NET 2.0 features, include Visual Studio 2005 projects.
In most cases, you will need to remove the reference to the
nunit.framework assembly and replace it with a reference to
your installed copy of NUnit.
To build using the Microsoft compiler, use a command similar
to the following:
csc /target:library /r:<path-to-NUnit>/nunit.framework.dll example.cs
To build using the mono compiler, use a command like this:
msc /target:library /r:<path-to-NUNit>/nunit.framework.dll example.cs
没有合适的资源?快使用搜索试试~ 我知道了~
温馨提示
NUnit是一个单元测试框架,专门针对于.NET来写的.其实在前面有JUnit(Java),CPPUnit(C++),他们都是xUnit的一员.最初,它是从JUnit而来.现在的版本是2.2.接下来我所用的都是基于这个版本. NUnit最初是由James W. Newkirk, Alexei A. Vorontsov 和Philip A. Craig, 后来开发团队逐渐庞大起来.在开发过程中, Kent Beck 和Erich Gamma2位牛人也提供了许多帮助.看来对于NUnit还真是下了一番力气了.J NUnit是xUnit家族种的第4个主打产品,完全由C#语言来编写,并且编写时充分利用了许多.NET的特性,比如反射,客户属性等等. 最重要的一点是它适合于所有.NET语言.
资源推荐
资源详情
资源评论
收起资源包目录
DotNet Nunit (324个子文件)
runpnunit.bat 55B
runpnunit.bat 55B
cpp-managed-failures.build 965B
cpp-cli-failures.build 680B
Minimal.build 552B
SampleFixtureExtension.build 547B
SampleSuiteExtension.build 528B
cs-money.build 350B
vb-money.build 348B
cpp-cli-syntax.build 265B
jsharp-failures.build 260B
vb-syntax.build 259B
cs-syntax.build 257B
vb-failures.build 254B
cs-failures.build 251B
samples.common 9KB
test.conf 778B
test.conf 778B
agent.log.conf 491B
launcher.log.conf 491B
agent.log.conf 491B
launcher.log.conf 491B
agent.conf 89B
agent.conf 89B
NUnitTests.config 3KB
NUnitTests.config 3KB
nunit.exe.config 3KB
nunit-x86.exe.config 3KB
pnunit-agent.exe.config 3KB
pnunit-launcher.exe.config 3KB
pnunit-agent.exe.config 3KB
pnunit-launcher.exe.config 3KB
nunit-agent.exe.config 2KB
nunit-agent-x86.exe.config 2KB
nunit-agent.exe.config 2KB
nunit-console.exe.config 2KB
nunit-console.exe.config 2KB
nunit-console-x86.exe.config 2KB
runFile.exe.config 2KB
runFile.exe.config 2KB
cpp-cli-syntax.cpp 18KB
AssemblyInfo.cpp 2KB
AssemblyInfo.cpp 2KB
AssemblyInfo.cpp 1KB
cppsample.cpp 1KB
cppsample.cpp 1KB
AssertSyntaxTests.cs 26KB
MoneyTest.cs 7KB
MoneyBag.cs 4KB
AssemblyInfo.cs 2KB
AssemblyInfo.cs 2KB
AssemblyInfo.cs 2KB
AssemblyInfo.cs 2KB
AssemblyInfo.cs 2KB
AssemblyInfo.cs 2KB
Money.cs 2KB
SampleFixtureExtensionBuilder.cs 2KB
CSharpTest.cs 2KB
SampleFixtureExtension.cs 2KB
SampleSuiteExtension.cs 1KB
SampleSuiteExtensionBuilder.cs 1KB
Minimal.cs 1KB
IMoney.cs 1KB
SampleFixtureExtensionTests.cs 1KB
Addin.cs 878B
SampleSuiteExtensionTests.cs 805B
SampleFixtureExtensionAttribute.cs 610B
SampleSuiteExtensionAttribute.cs 606B
SampleSuiteExtension.csproj 4KB
SampleFixtureExtension.csproj 4KB
SampleFixtureExtensionTests.csproj 3KB
SampleSuiteExtensionTests.csproj 3KB
Minimal.csproj 3KB
cs-money.csproj 2KB
cs-syntax.csproj 2KB
cs-failures.csproj 2KB
nunit.css 7KB
nunit.framework.tests.dll 336KB
nunit.framework.tests.dll 324KB
log4net.dll 252KB
nunit.uikit.dll 252KB
log4net.dll 252KB
nunit.core.tests.dll 184KB
nunit-gui-runner.dll 184KB
nunit.util.tests.dll 176KB
nunit.util.tests.dll 176KB
nunit.core.tests.dll 172KB
nunit.core.dll 136KB
nunit.framework.dll 132KB
nunit.framework.dll 132KB
nunit.framework.dll 132KB
nunit.framework.dll 128KB
nunit.framework.dll 128KB
nunit.framework.dll 128KB
nunit.core.dll 128KB
nunit.util.dll 124KB
nunit.uiexception.tests.dll 124KB
nunit.util.dll 124KB
nunit.uiexception.dll 88KB
test-assembly.dll 56KB
共 324 条
- 1
- 2
- 3
- 4
资源评论
- 凌夜望天涯2013-05-17刚刚开始了解,有帮助
- qiqiprayer2012-11-24适合入门级,不错不错
authors008
- 粉丝: 0
- 资源: 29
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
- 2023-04-06-项目笔记 - 第一百十九阶段 - 4.4.2.117全局变量的作用域-117 -2024.04.30
- Highlight Plus v20.0.1
- 基于MIC+NE555光敏电阻的声光控电路Multisim仿真原理图
- python tkinter-08-盒子模型.ev4.rar
- Doozy UI Manager 2023
- 基于matlab实现夜间车牌识别程序(1).rar
- 基于matlab实现无线传感器网络无需测距定位算法matlab源代码 包括apit,dv-hop,amorphous在内的共7个
- 基于python的yolov5实现的旋转目标检测
- 基于matlab实现无线传感器网络 CAB定位仿真程序 这是无线传感器节点定位CAB算法的仿真程序,由matlab完成.rar
- 基于matlab实现图像处理,本程序使用背景差分法对来往车辆进行检测和跟踪.rar
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功