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

  • 關於本站
  • 免責聲明