sitecoreDiagnostics: Asserts


Syntax

  • Assert.ArgumentCondition(bool condition, string argumentName, string message)
  • Assert.ArgumentNotNull(object argument, string argumentName)
  • Assert.ArgumentNotNull(object argument, Func<string> getArgumentName)
  • Assert.ArgumentNotNullOrEmpty(ID argument, string argumentName)
  • Assert.ArgumentNotNullOrEmpty(string argument, string argumentName)
  • Assert.ArgumentNotNullOrEmpty(string argument, Func<string> getArgumentName)
  • Assert.AreEqual(int value1, int value2, string message)
  • Assert.AreEqual(int value1, int value2, string format, params object[] args)
  • Assert.AreEqual(string value1, string value2, string message)
  • Assert.AreEqual(string value1, string value2, string format, params object[] args)
  • Assert.AreEqual(bool value1, bool value2, string message)
  • Assert.AreEqual(bool value1, bool value2, string format, params object[] args)
  • Assert.CanRunApplication(string application)
  • Assert.HasAccess(bool accessAllowed, string message)
  • Assert.HasAccess(bool accessAllowed, string format, params object[] args)
  • Assert.IsEditing(Item item)
  • Assert.IsFalse(bool condition, string message)
  • Assert.IsFalse(bool condition, Func<string> getMessage)
  • Assert.IsTrue(bool condition, string format, params object[] args)
  • Assert.IsNotNull(object value, string message)
  • Assert.IsNotNull(object value, string format, params object[] args)
  • Assert.IsNotNull(object value, Type type)
  • Assert.IsNotNull(object value, Type type, string format, params object[] args)
  • Assert.IsNotNullOrEmpty(string value, string message)
  • Assert.IsNotNullOrEmpty(string value, string format, params object[] args)
  • Assert.IsNull(object value, string message)
  • Assert.IsNull(object value, string format, params object[] args)
  • Assert.IsTrue(bool condition, string message)
  • Assert.IsTrue(bool condition, Func<string> getMessage)
  • Assert.IsTrue(bool condition, string format, params object[] args)
  • Assert.Required(object obj, string message)
  • Assert.Required(object obj, string format, params object[] args)
  • Assert.ResultNotNull<T>(T result, string message)
  • Assert.ResultNotNull<T>(T result)