单元测试Assert类断言方法总结

  1. Zero 断言为0
  2. Ture 断言为真
  3. That 断言条件为真
  4. Positive 断言是正数 Negative 负数
  5. Null和不是Null
  6. Contain
  7. Lee 和 Creator 小于 大于
  8. IsFalse
  9. IsEmpty
  10. List item
  11. Assert.IsInstanceOf(typeof(xiGai),a); 是否是给定类型的实例

猜你喜欢

转载自blog.csdn.net/qq_37811712/article/details/89256945
今日推荐