NUnit Assert.Equals与Assert.AreEqual [英] NUnit Assert.Equals vs. Assert.AreEqual

查看:179
本文介绍了NUnit Assert.Equals与Assert.AreEqual的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

两者之间有什么区别

  • Assert.EqualsAssert.AreEqual
  • Assert.NotNullAssert.IsNotNull
  • ...
  • Assert.Equals and Assert.AreEqual
  • Assert.NotNull and Assert.IsNotNull
  • ...

?

推荐答案

只需阅读文档:

NUnit-ConditionAsserts

为True提供了两种形式, False,Null和NotNull条件. 是"形式与 NUnit的早期版本 框架,而那些没有是"的框架 提供用于与 NUnitLite.

Two forms are provided for the True, False, Null and NotNull conditions. The "Is" forms are compatible with earlier versions of the NUnit framework, while those without "Is" are provided for compatibility with NUnitLite.

这篇关于NUnit Assert.Equals与Assert.AreEqual的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆