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

您现在的位置是:虫虫源码 > 其他 > 一个框架,使对象比较

一个框架,使对象比较

  • 资源大小:159.67 kB
  • 上传时间:2021-06-30
  • 下载次数:0次
  • 浏览次数:0次
  • 资源积分:1积分
  • 标      签: 框架 一个 比较 对象

资 源 简 介

TDD is good, but... Sometimes, when you write another test which asserts that objects are equals you need to override Equals method. I think that this solution is not quite right, because "you write code for test, but you must write test for code" =:) This library enables you to perform comparison via reflection, and some other possible ways to compare objects (for example via IEnumerable or IDictionary interface). And as a bonus you will get ShallowCopy() and DeepCopy() which can be also used in tests. Performing compare assertions is quite simple: CAssert.That.ObjectsAreEquals(, );

文 件 列 表

nunit.framework.dll
nunit.framework.xml
TestCases.dll
TestCases.pdb
VIP VIP
0.193703s