logo
  • 教程列表
  • SO官方文档
  • 诊断断言
    • 参数检查
    • 确保项目处于编辑模式
    • 确保两个值相等
    • 确保值为 true 或 false
    • ResultNotNull
    • 必需对象
    • NullEmpty 检查
    • 安全断言
  1. StackOverflow 文档
  2. sitecore 教程
  3. 诊断断言
  4. 确保两个值相等

确保两个值相等

Created: November-22, 2018

比较两个值是否相等。它只能比较字符串,整数和布尔值。

Assert.AreEqual(documentElement.LocalName, "xamlControls", "Xaml files must have a root node named 'xamlControls'.");
  • 确保值为 true 或 false
  • 确保项目处于编辑模式

Copyright © 2018. All right reserved

tastones.com 备案号:鲁ICP备18045372号-1

  • 关于我们
  • 免责声明