人应该根据未来计划现在,不能根据现在计划未来
技术
Update the application configuration file automatically in C#
七 24th
The structure of an application’s configuration file always include: Read more...
DotNet下NUnit的使用(2)—- 第一个NUnit工程
十一 9th
DotNet下NUnit的使用(2)—- 第一个NUnit工程 收藏
准备工作
1. 打开visual studio, 新建一个“Class Library”工程,命名为“NUnitDemo”
2. 在工程中新建一个Class:“FirstNUnitClass”, 在类中添加一个public的方法:GetBonous(int level), 最终类的内容:
准备工作
1. 打开visual studio, 新建一个“Class Library”工程,命名为“NUnitDemo”
2. 在工程中新建一个Class:“FirstNUnitClass”, 在类中添加一个public的方法:GetBonous(int level), 最终类的内容: Read more...
DotNet下NUnit的使用(1)—- NUnit入门
十一 9th
- 什么是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 fifth 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.
Read more...