首页| JavaScript| HTML/CSS| Matlab| PHP| Python| Java| C/C++/VC++| C#| ASP| 其他|
购买积分 购买会员 激活码充值

您现在的位置是:虫虫源码 > 其他 > 在nunitlite精神dunit改进

在nunitlite精神dunit改进

  • 资源大小:31.94 kB
  • 上传时间:2021-06-30
  • 下载次数:0次
  • 浏览次数:1次
  • 资源积分:1积分
  • 标      签: DUnit 改进 精神

资 源 简 介

DUnitLite is an attempt to improve upon the DUnit unit-testing framework for Delphi. It"s currently an add-on library for DUnit (though, as the name suggests, it may someday grow to be a full lightweight testing library in its own right). Right now, DUnitLite offers three major features over the base DUnit library: Readable assertions Most xUnit test frameworks have backwards assertion methods. They make you put the expected value first, followed by the actual value: CheckEquals(4, Add(2, 2)); How do you read that? "Check that 4 is what you get when you add 2 and 2"? You shouldn"t have to think this hard to understand what the test is doing. What if you could write it the way you would speak: "Check that 2 plus 2 is 4"? Enter DUnitLite. Specify.That(Add(2, 2), Should.Equal(4));Specify.That(Control.Caption, Should.Equal("Close").IgnoringCase);

文 件 列 表

CHANGELOG.txt
Constraints.pas
ConstraintTests.pas
dcu
DUnitAssertions.bdsproj
DUnitAssertions.dpr
DUnitAssertions.res
InsulatedTests.pas
Specifications.pas
Specifiers.pas
SpecifierTests.pas
StringInspectors.pas
StringInspectorSpecs.pas
TestValues.pas
ValueComparers.pas
ValueComparerSpecs.pas
Values.pas
ValueTests.pas

相 关 资 源

您 可 能 感 兴 趣 的

同 类 别 推 荐

VIP VIP
  • 猕猴桃 1天前 成为了本站会员

  • 11 1天前 成为了本站会员

  • 开心快活人 1天前 成为了本站会员

  • 晋财 1天前 成为了本站会员

  • WYG 2天前 成为了本站会员

  • Shine 2天前 成为了本站会员

  • 柳贻 2天前 成为了本站会员

  • hallelujah_HL 2天前 成为了本站会员

  • 焦昱贺 2天前 成为了本站会员

  • Rubin 2天前 成为了本站会员

0.217524s