RIP
Tutorial
Tags
Topics
Examples
eBooks
Download sitecore (PDF)
sitecore
Getting started with sitecore
Diagnostics: Asserts
Argument Checks
Ensure a value is true or false
Ensure item is in editing mode
Ensure two values are equal
Null/Empty Checks
Required Object
ResultNotNull
Security Asserts
Engagement Automation
Glass Mapper
Index configuration
Items
LinkManager
Scaling
Search
Security
Sitecore query syntax
Templates
Unicorn
Web Forms For Marketeers (WFFM)
Workflow
Workflow
sitecore
Getting started with sitecore
Diagnostics: Asserts
Argument Checks
Ensure a value is true or false
Ensure item is in editing mode
Ensure two values are equal
Null/Empty Checks
Required Object
ResultNotNull
Security Asserts
Engagement Automation
Glass Mapper
Index configuration
Items
LinkManager
Scaling
Search
Security
Sitecore query syntax
Templates
Unicorn
Web Forms For Marketeers (WFFM)
Workflow
Workflow
sitecore
Diagnostics: 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)
Diagnostics: Asserts Related Examples
Argument Checks
Ensure a value is true or false
Ensure item is in editing mode
Ensure two values are equal
Null/Empty Checks
Required Object
ResultNotNull
Security Asserts
PDF
- Download
sitecore
for free
Previous
Next
This modified text is an extract of the original
Stack Overflow Documentation
created by following
contributors
and released under
CC BY-SA 3.0
This website is not affiliated with
Stack Overflow