Class Verify
Class for verifying expected values in your application.
Inherited Members
Namespace: HP.LFT.Verifications
Assembly: HP.LFT.Verifications.dll
Syntax
public static class Verify
Remarks
When a Verify method returns a false value, the step fails, but the failure does not throw an exception or cause the test to stop running.
Methods
AreEqual(IEnumerable, IEnumerable, string, string, Image)
Checks whether two IEnumerable values are equal.
Declaration
public static bool AreEqual(IEnumerable expected, IEnumerable actual, string verificationName = "Verification", string verificationDescription = null, Image verificationImage = null)
Parameters
| Type | Name | Description |
|---|---|---|
| IEnumerable | expected | The expected value. |
| IEnumerable | actual | The actual value. |
| string | verificationName | The verification title. |
| string | verificationDescription | The verification description. |
| Image | verificationImage | An image related to the verification. |
Returns
| Type | Description |
|---|---|
| bool |
AreEqual(decimal, decimal, string, string, Image)
Checks whether two decimal values are equal.
Declaration
public static bool AreEqual(decimal expected, decimal actual, string verificationName = "Verification", string verificationDescription = null, Image verificationImage = null)
Parameters
| Type | Name | Description |
|---|---|---|
| decimal | expected | The expected value. |
| decimal | actual | The actual value. |
| string | verificationName | The verification title. |
| string | verificationDescription | The verification description. |
| Image | verificationImage | An image related to the verification. |
Returns
| Type | Description |
|---|---|
| bool |
AreEqual(double, double, string, string, Image)
Checks whether two double values are equal.
Declaration
public static bool AreEqual(double expected, double actual, string verificationName = "Verification", string verificationDescription = null, Image verificationImage = null)
Parameters
| Type | Name | Description |
|---|---|---|
| double | expected | The expected value. |
| double | actual | The actual value. |
| string | verificationName | The verification title. |
| string | verificationDescription | The verification description. |
| Image | verificationImage | An image related to the verification. |
Returns
| Type | Description |
|---|---|
| bool |
AreEqual(IComparable, IComparable, string, string, Image)
Checks whether two objects are equal.
Declaration
public static bool AreEqual(IComparable expected, IComparable actual, string verificationName = "Verification", string verificationDescription = null, Image verificationImage = null)
Parameters
| Type | Name | Description |
|---|---|---|
| IComparable | expected | The expected value. |
| IComparable | actual | The actual value. |
| string | verificationName | The verification title. |
| string | verificationDescription | The verification description. |
| Image | verificationImage | An image related to the verification. |
Returns
| Type | Description |
|---|---|
| bool |
AreEqual(int, int, string, string, Image)
Checks whether two integer values are equal.
Declaration
public static bool AreEqual(int expected, int actual, string verificationName = "Verification", string verificationDescription = null, Image verificationImage = null)
Parameters
| Type | Name | Description |
|---|---|---|
| int | expected | The expected value. |
| int | actual | The actual value. |
| string | verificationName | The verification title. |
| string | verificationDescription | The verification description. |
| Image | verificationImage | An image related to the verification. |
Returns
| Type | Description |
|---|---|
| bool |
AreEqual(long, long, string, string, Image)
Checks whether two long values are equal.
Declaration
public static bool AreEqual(long expected, long actual, string verificationName = "Verification", string verificationDescription = null, Image verificationImage = null)
Parameters
| Type | Name | Description |
|---|---|---|
| long | expected | The expected value. |
| long | actual | The actual value. |
| string | verificationName | The verification title. |
| string | verificationDescription | The verification description. |
| Image | verificationImage | An image related to the verification. |
Returns
| Type | Description |
|---|---|
| bool |
AreEqual(string, string, string, string, Image)
Checks whether two strings values are equal.
Declaration
public static bool AreEqual(string expected, string actual, string verificationName = "Verification", string verificationDescription = null, Image verificationImage = null)
Parameters
| Type | Name | Description |
|---|---|---|
| string | expected | The expected value. |
| string | actual | The actual value. |
| string | verificationName | The verification title. |
| string | verificationDescription | The verification description. |
| Image | verificationImage | An image related to the verification. |
Returns
| Type | Description |
|---|---|
| bool |
AreEqual(uint, uint, string, string, Image)
Checks whether two unsigned integer values are equal.
Declaration
public static bool AreEqual(uint expected, uint actual, string verificationName = "Verification", string verificationDescription = null, Image verificationImage = null)
Parameters
| Type | Name | Description |
|---|---|---|
| uint | expected | The expected value. |
| uint | actual | The actual value. |
| string | verificationName | The verification title. |
| string | verificationDescription | The verification description. |
| Image | verificationImage | An image related to the verification. |
Returns
| Type | Description |
|---|---|
| bool |
AreEqualIgnoringCase(string, string, string, string, Image)
Checks whether two string values are equal, ignoring case.
Declaration
public static bool AreEqualIgnoringCase(string expected, string actual, string verificationName = "Verification", string verificationDescription = null, Image verificationImage = null)
Parameters
| Type | Name | Description |
|---|---|---|
| string | expected | The expected string. |
| string | actual | The actual string. |
| string | verificationName | The verification title. |
| string | verificationDescription | The verification description. |
| Image | verificationImage | An image related to the verification. |
Returns
| Type | Description |
|---|---|
| bool |
AreNotEqual(IEnumerable, IEnumerable, string, string, Image)
Checks whether two IEnumerable values are different.
Declaration
public static bool AreNotEqual(IEnumerable expected, IEnumerable actual, string verificationName = "Verification", string verificationDescription = null, Image verificationImage = null)
Parameters
| Type | Name | Description |
|---|---|---|
| IEnumerable | expected | The expected value. |
| IEnumerable | actual | The actual value. |
| string | verificationName | The verification title. |
| string | verificationDescription | The verification description. |
| Image | verificationImage | An image related to the verification. |
Returns
| Type | Description |
|---|---|
| bool |
AreNotEqual(decimal, decimal, string, string, Image)
Checks whether two decimal values are different.
Declaration
public static bool AreNotEqual(decimal expected, decimal actual, string verificationName = "Verification", string verificationDescription = null, Image verificationImage = null)
Parameters
| Type | Name | Description |
|---|---|---|
| decimal | expected | The expected value. |
| decimal | actual | The actual value. |
| string | verificationName | The verification title. |
| string | verificationDescription | The verification description. |
| Image | verificationImage | An image related to the verification. |
Returns
| Type | Description |
|---|---|
| bool |
AreNotEqual(double, double, string, string, Image)
Checks whether two double values are different.
Declaration
public static bool AreNotEqual(double expected, double actual, string verificationName = "Verification", string verificationDescription = null, Image verificationImage = null)
Parameters
| Type | Name | Description |
|---|---|---|
| double | expected | The expected value. |
| double | actual | The actual value. |
| string | verificationName | The verification title. |
| string | verificationDescription | The verification description. |
| Image | verificationImage | An image related to the verification. |
Returns
| Type | Description |
|---|---|
| bool |
AreNotEqual(IComparable, IComparable, string, string, Image)
Checks whether two enum values are different.
Declaration
public static bool AreNotEqual(IComparable expected, IComparable actual, string verificationName = "Verification", string verificationDescription = null, Image verificationImage = null)
Parameters
| Type | Name | Description |
|---|---|---|
| IComparable | expected | The expected value. |
| IComparable | actual | The actual value. |
| string | verificationName | The verification title. |
| string | verificationDescription | The verification description. |
| Image | verificationImage | An image related to the verification. |
Returns
| Type | Description |
|---|---|
| bool |
AreNotEqual(int, int, string, string, Image)
Checks whether two integer values are different.
Declaration
public static bool AreNotEqual(int expected, int actual, string verificationName = "Verification", string verificationDescription = null, Image verificationImage = null)
Parameters
| Type | Name | Description |
|---|---|---|
| int | expected | The expected value. |
| int | actual | The actual value. |
| string | verificationName | The verification title. |
| string | verificationDescription | The verification description. |
| Image | verificationImage | An image related to the verification. |
Returns
| Type | Description |
|---|---|
| bool |
AreNotEqual(long, long, string, string, Image)
Checks whether two long values are different.
Declaration
public static bool AreNotEqual(long expected, long actual, string verificationName = "Verification", string verificationDescription = null, Image verificationImage = null)
Parameters
| Type | Name | Description |
|---|---|---|
| long | expected | The expected value. |
| long | actual | The actual value. |
| string | verificationName | The verification title. |
| string | verificationDescription | The verification description. |
| Image | verificationImage | An image related to the verification. |
Returns
| Type | Description |
|---|---|
| bool |
AreNotEqual(string, string, string, string, Image)
Checks whether two strings values are different.
Declaration
public static bool AreNotEqual(string expected, string actual, string verificationName = "Verification", string verificationDescription = null, Image verificationImage = null)
Parameters
| Type | Name | Description |
|---|---|---|
| string | expected | The expected value. |
| string | actual | The actual value. |
| string | verificationName | The verification title. |
| string | verificationDescription | The verification description. |
| Image | verificationImage | An image related to the verification. |
Returns
| Type | Description |
|---|---|
| bool |
AreNotEqual(uint, uint, string, string, Image)
Checks whether two unsigned integer values are different.
Declaration
public static bool AreNotEqual(uint expected, uint actual, string verificationName = "Verification", string verificationDescription = null, Image verificationImage = null)
Parameters
| Type | Name | Description |
|---|---|---|
| uint | expected | The expected value. |
| uint | actual | The actual value. |
| string | verificationName | The verification title. |
| string | verificationDescription | The verification description. |
| Image | verificationImage | An image related to the verification. |
Returns
| Type | Description |
|---|---|
| bool |
AreNotEqualIgnoringCase(string, string, string, string, Image)
Checks whether two string values are different, ignoring case.
Declaration
public static bool AreNotEqualIgnoringCase(string expected, string actual, string verificationName = "Verification", string verificationDescription = null, Image verificationImage = null)
Parameters
| Type | Name | Description |
|---|---|---|
| string | expected | The expected string. |
| string | actual | The actual string. |
| string | verificationName | The verification title. |
| string | verificationDescription | The verification description. |
| Image | verificationImage | An image related to the verification. |
Returns
| Type | Description |
|---|---|
| bool |
Contains(IEnumerable, object, string, string, Image)
Checks whether the provided collection contains the object provided in the second argument.
Declaration
public static bool Contains(IEnumerable collection, object element, string verificationName = "Verification", string verificationDescription = null, Image verificationImage = null)
Parameters
| Type | Name | Description |
|---|---|---|
| IEnumerable | collection | The collection to check. |
| object | element | The object to search for. |
| string | verificationName | The verification title. |
| string | verificationDescription | The verification description. |
| Image | verificationImage | An image related to the verification. |
Returns
| Type | Description |
|---|---|
| bool |
Contains(string, string, string, string, Image)
Checks whether the first string specified is contained within the second string.
Declaration
public static bool Contains(string substring, string source, string verificationName = "Verification", string verificationDescription = null, Image verificationImage = null)
Parameters
| Type | Name | Description |
|---|---|---|
| string | substring | The string to search for. |
| string | source | The string to check. |
| string | verificationName | The verification title. |
| string | verificationDescription | The verification description. |
| Image | verificationImage | An image related to the verification. |
Returns
| Type | Description |
|---|---|
| bool |
EndsWith(string, string, string, string, Image)
Checks whether the 'expected' string is the last part of the 'actual' string.
Declaration
public static bool EndsWith(string suffix, string source, string verificationName = "Verification", string verificationDescription = null, Image verificationImage = null)
Parameters
| Type | Name | Description |
|---|---|---|
| string | suffix | The string to search for. |
| string | source | The string to check. |
| string | verificationName | The verification title. |
| string | verificationDescription | The verification description. |
| Image | verificationImage | An image related to the verification. |
Returns
| Type | Description |
|---|---|
| bool |
Greater(decimal, decimal, string, string, Image)
Checks whether the first number specified is greater than the second for decimal values.
Declaration
public static bool Greater(decimal arg1, decimal arg2, string verificationName = "Verification", string verificationDescription = null, Image verificationImage = null)
Parameters
| Type | Name | Description |
|---|---|---|
| decimal | arg1 | The first value, expected to be the larger number. |
| decimal | arg2 | The second value, expected to be the smaller number. |
| string | verificationName | The verification title. |
| string | verificationDescription | The verification description. |
| Image | verificationImage | An image related to the verification. |
Returns
| Type | Description |
|---|---|
| bool |
Greater(double, double, string, string, Image)
Checks whether the first number specified is greater than the second for double values.
Declaration
public static bool Greater(double arg1, double arg2, string verificationName = "Verification", string verificationDescription = null, Image verificationImage = null)
Parameters
| Type | Name | Description |
|---|---|---|
| double | arg1 | The first value, expected to be the larger number. |
| double | arg2 | The second value, expected to be the smaller number. |
| string | verificationName | The verification title. |
| string | verificationDescription | The verification description. |
| Image | verificationImage | An image related to the verification. |
Returns
| Type | Description |
|---|---|
| bool |
Greater(IComparable, IComparable, string, string, Image)
Checks whether the first number specified is greater than the second for IComparable values.
Declaration
public static bool Greater(IComparable arg1, IComparable arg2, string verificationName = "Verification", string verificationDescription = null, Image verificationImage = null)
Parameters
| Type | Name | Description |
|---|---|---|
| IComparable | arg1 | The first value, expected to be the larger number. |
| IComparable | arg2 | The second value, expected to be the smaller number. |
| string | verificationName | The verification title. |
| string | verificationDescription | The verification description. |
| Image | verificationImage | An image related to the verification. |
Returns
| Type | Description |
|---|---|
| bool |
Greater(int, int, string, string, Image)
Checks whether the first number specified is greater than the second for integer values.
Declaration
public static bool Greater(int arg1, int arg2, string verificationName = "Verification", string verificationDescription = null, Image verificationImage = null)
Parameters
| Type | Name | Description |
|---|---|---|
| int | arg1 | The first value, expected to be the larger number. |
| int | arg2 | The second value, expected to be the smaller number. |
| string | verificationName | The verification title. |
| string | verificationDescription | The verification description. |
| Image | verificationImage | An image related to the verification. |
Returns
| Type | Description |
|---|---|
| bool |
Greater(long, long, string, string, Image)
Checks whether the first number specified is greater than the second for long values.
Declaration
public static bool Greater(long arg1, long arg2, string verificationName = "Verification", string verificationDescription = null, Image verificationImage = null)
Parameters
| Type | Name | Description |
|---|---|---|
| long | arg1 | The first value, expected to be the larger number. |
| long | arg2 | The second value, expected to be the smaller number. |
| string | verificationName | The verification title. |
| string | verificationDescription | The verification description. |
| Image | verificationImage | An image related to the verification. |
Returns
| Type | Description |
|---|---|
| bool |
Greater(float, float, string, string, Image)
Checks whether the first number specified is greater than the second for float values.
Declaration
public static bool Greater(float arg1, float arg2, string verificationName = "Verification", string verificationDescription = null, Image verificationImage = null)
Parameters
| Type | Name | Description |
|---|---|---|
| float | arg1 | The first value, expected to be the larger number. |
| float | arg2 | The second value, expected to be the smaller number. |
| string | verificationName | The verification title. |
| string | verificationDescription | The verification description. |
| Image | verificationImage | An image related to the verification. |
Returns
| Type | Description |
|---|---|
| bool |
Greater(uint, uint, string, string, Image)
Checks whether the first number specified is greater than the second for unsigned integer values.
Declaration
public static bool Greater(uint arg1, uint arg2, string verificationName = "Verification", string verificationDescription = null, Image verificationImage = null)
Parameters
| Type | Name | Description |
|---|---|---|
| uint | arg1 | The first value, expected to be the larger number. |
| uint | arg2 | The second value, expected to be the smaller number. |
| string | verificationName | The verification title. |
| string | verificationDescription | The verification description. |
| Image | verificationImage | An image related to the verification. |
Returns
| Type | Description |
|---|---|
| bool |
Greater(ulong, ulong, string, string, Image)
Checks whether the first number specified is greater than the second for unsigned long values.
Declaration
public static bool Greater(ulong arg1, ulong arg2, string verificationName = "Verification", string verificationDescription = null, Image verificationImage = null)
Parameters
| Type | Name | Description |
|---|---|---|
| ulong | arg1 | The first value, expected to be the larger number. |
| ulong | arg2 | The second value, expected to be the smaller number. |
| string | verificationName | The verification title. |
| string | verificationDescription | The verification description. |
| Image | verificationImage | An image related to the verification. |
Returns
| Type | Description |
|---|---|
| bool |
GreaterOrEqual(decimal, decimal, string, string, Image)
Checks whether the first number specified is greater than or equal to the second for decimal values.
Declaration
public static bool GreaterOrEqual(decimal arg1, decimal arg2, string verificationName = "Verification", string verificationDescription = null, Image verificationImage = null)
Parameters
| Type | Name | Description |
|---|---|---|
| decimal | arg1 | The first value, expected to be the larger number. |
| decimal | arg2 | The second value, expected to be the smaller number. |
| string | verificationName | The verification title. |
| string | verificationDescription | The verification description. |
| Image | verificationImage | An image related to the verification. |
Returns
| Type | Description |
|---|---|
| bool |
GreaterOrEqual(double, double, string, string, Image)
Checks whether the first number specified is greater than or equal to the second for double values.
Declaration
public static bool GreaterOrEqual(double arg1, double arg2, string verificationName = "Verification", string verificationDescription = null, Image verificationImage = null)
Parameters
| Type | Name | Description |
|---|---|---|
| double | arg1 | The first value, expected to be the larger number. |
| double | arg2 | The second value, expected to be the smaller number. |
| string | verificationName | The verification title. |
| string | verificationDescription | The verification description. |
| Image | verificationImage | An image related to the verification. |
Returns
| Type | Description |
|---|---|
| bool |
GreaterOrEqual(IComparable, IComparable, string, string, Image)
Checks whether the first number specified is greater than or equal to the second for IComparable values.
Declaration
public static bool GreaterOrEqual(IComparable arg1, IComparable arg2, string verificationName = "Verification", string verificationDescription = null, Image verificationImage = null)
Parameters
| Type | Name | Description |
|---|---|---|
| IComparable | arg1 | The first value, expected to be the larger number. |
| IComparable | arg2 | The second value, expected to be the smaller number. |
| string | verificationName | The verification title. |
| string | verificationDescription | The verification description. |
| Image | verificationImage | An image related to the verification. |
Returns
| Type | Description |
|---|---|
| bool |
GreaterOrEqual(int, int, string, string, Image)
Checks whether the first number specified is greater than or equal to the second for integer values.
Declaration
public static bool GreaterOrEqual(int arg1, int arg2, string verificationName = "Verification", string verificationDescription = null, Image verificationImage = null)
Parameters
| Type | Name | Description |
|---|---|---|
| int | arg1 | The first value, expected to be the larger number. |
| int | arg2 | The second value, expected to be the smaller number. |
| string | verificationName | The verification title. |
| string | verificationDescription | The verification description. |
| Image | verificationImage | An image related to the verification. |
Returns
| Type | Description |
|---|---|
| bool |
GreaterOrEqual(long, long, string, string, Image)
Checks whether the first number specified is greater than or equal to the second for long values.
Declaration
public static bool GreaterOrEqual(long arg1, long arg2, string verificationName = "Verification", string verificationDescription = null, Image verificationImage = null)
Parameters
| Type | Name | Description |
|---|---|---|
| long | arg1 | The first value, expected to be the larger number. |
| long | arg2 | The second value, expected to be the smaller number. |
| string | verificationName | The verification title. |
| string | verificationDescription | The verification description. |
| Image | verificationImage | An image related to the verification. |
Returns
| Type | Description |
|---|---|
| bool |
GreaterOrEqual(float, float, string, string, Image)
Checks whether the first number specified is greater than or equal to the second for float values.
Declaration
public static bool GreaterOrEqual(float arg1, float arg2, string verificationName = "Verification", string verificationDescription = null, Image verificationImage = null)
Parameters
| Type | Name | Description |
|---|---|---|
| float | arg1 | The first value, expected to be the larger number. |
| float | arg2 | The second value, expected to be the smaller number. |
| string | verificationName | The verification title. |
| string | verificationDescription | The verification description. |
| Image | verificationImage | An image related to the verification. |
Returns
| Type | Description |
|---|---|
| bool |
GreaterOrEqual(uint, uint, string, string, Image)
Checks whether the first number specified is greater than or equal to the second for unsigned integer values.
Declaration
public static bool GreaterOrEqual(uint arg1, uint arg2, string verificationName = "Verification", string verificationDescription = null, Image verificationImage = null)
Parameters
| Type | Name | Description |
|---|---|---|
| uint | arg1 | The first value, expected to be the larger number. |
| uint | arg2 | The second value, expected to be the smaller number. |
| string | verificationName | The verification title. |
| string | verificationDescription | The verification description. |
| Image | verificationImage | An image related to the verification. |
Returns
| Type | Description |
|---|---|
| bool |
GreaterOrEqual(ulong, ulong, string, string, Image)
Checks whether the first number specified is greater than or equal to the second for unsigned long values.
Declaration
public static bool GreaterOrEqual(ulong arg1, ulong arg2, string verificationName = "Verification", string verificationDescription = null, Image verificationImage = null)
Parameters
| Type | Name | Description |
|---|---|---|
| ulong | arg1 | The first value, expected to be the larger number. |
| ulong | arg2 | The second value, expected to be the smaller number. |
| string | verificationName | The verification title. |
| string | verificationDescription | The verification description. |
| Image | verificationImage | An image related to the verification. |
Returns
| Type | Description |
|---|---|
| bool |
IsFalse(bool, string, string, Image)
Checks whether the specified condition is false.
Declaration
public static bool IsFalse(bool condition, string verificationName = "Verification", string verificationDescription = null, Image verificationImage = null)
Parameters
| Type | Name | Description |
|---|---|---|
| bool | condition | The condition to check. |
| string | verificationName | The verification title. |
| string | verificationDescription | The verification description. |
| Image | verificationImage | An image related to the verification. |
Returns
| Type | Description |
|---|---|
| bool |
IsMatch(string, string, string, string, Image)
Checks whether the specified regular expression matches the specified string value.
Declaration
public static bool IsMatch(string actual, string regexPattern, string verificationName = "Verification", string verificationDescription = null, Image verificationImage = null)
Parameters
| Type | Name | Description |
|---|---|---|
| string | actual | The string to check. |
| string | regexPattern | The regular expression value to search for. Use standard C# regular expression syntax. |
| string | verificationName | The verification title. |
| string | verificationDescription | The verification description. |
| Image | verificationImage | An image related to the verification. |
Returns
| Type | Description |
|---|---|
| bool |
IsNotNullOrEmpty(IEnumerable, string, string, Image)
Checks whether the provided collection is not null or empty.
Declaration
public static bool IsNotNullOrEmpty(IEnumerable collection, string verificationName = "Verification", string verificationDescription = null, Image verificationImage = null)
Parameters
| Type | Name | Description |
|---|---|---|
| IEnumerable | collection | The collection to check. |
| string | verificationName | The verification title. |
| string | verificationDescription | The verification description. |
| Image | verificationImage | An image related to the verification. |
Returns
| Type | Description |
|---|---|
| bool |
IsNotNullOrEmpty(string, string, string, Image)
Checks whether the specified string is not null or empty.
Declaration
public static bool IsNotNullOrEmpty(string aString, string verificationName = "Verification", string verificationDescription = null, Image verificationImage = null)
Parameters
| Type | Name | Description |
|---|---|---|
| string | aString | The string to check |
| string | verificationName | The verification title. |
| string | verificationDescription | The verification description. |
| Image | verificationImage | An image related to the verification. |
Returns
| Type | Description |
|---|---|
| bool |
IsNullOrEmpty(IEnumerable, string, string, Image)
Checks whether the provided collection is null or empty.
Declaration
public static bool IsNullOrEmpty(IEnumerable collection, string verificationName = "Verification", string verificationDescription = null, Image verificationImage = null)
Parameters
| Type | Name | Description |
|---|---|---|
| IEnumerable | collection | The collection to check. |
| string | verificationName | The verification title. |
| string | verificationDescription | The verification description. |
| Image | verificationImage | An image related to the verification. |
Returns
| Type | Description |
|---|---|
| bool |
IsNullOrEmpty(string, string, string, Image)
Checks whether the specified string is null or empty.
Declaration
public static bool IsNullOrEmpty(string aString, string verificationName = "Verification", string verificationDescription = null, Image verificationImage = null)
Parameters
| Type | Name | Description |
|---|---|---|
| string | aString | The string to check. |
| string | verificationName | The verification title. |
| string | verificationDescription | The verification description. |
| Image | verificationImage | An image related to the verification. |
Returns
| Type | Description |
|---|---|
| bool |
IsTrue(bool, string, string, Image)
Checks whether the specified condition is true.
Declaration
public static bool IsTrue(bool condition, string verificationName = "Verification", string verificationDescription = null, Image verificationImage = null)
Parameters
| Type | Name | Description |
|---|---|---|
| bool | condition | The condition to check. |
| string | verificationName | The verification title. |
| string | verificationDescription | The verification description. |
| Image | verificationImage | An image related to the verification. |
Returns
| Type | Description |
|---|---|
| bool |
Less(decimal, decimal, string, string, Image)
Checks whether the first number specified is less than the second for decimal values.
Declaration
public static bool Less(decimal arg1, decimal arg2, string verificationName = "Verification", string verificationDescription = null, Image verificationImage = null)
Parameters
| Type | Name | Description |
|---|---|---|
| decimal | arg1 | The first value, expected to be the smaller number. |
| decimal | arg2 | The second value, expected to be the larger number. |
| string | verificationName | The verification title. |
| string | verificationDescription | The verification description. |
| Image | verificationImage | An image related to the verification. |
Returns
| Type | Description |
|---|---|
| bool |
Less(double, double, string, string, Image)
Checks whether the first number specified is less than the second for double values.
Declaration
public static bool Less(double arg1, double arg2, string verificationName = "Verification", string verificationDescription = null, Image verificationImage = null)
Parameters
| Type | Name | Description |
|---|---|---|
| double | arg1 | The first value, expected to be the smaller number. |
| double | arg2 | The second value, expected to be the larger number. |
| string | verificationName | The verification title. |
| string | verificationDescription | The verification description. |
| Image | verificationImage | An image related to the verification. |
Returns
| Type | Description |
|---|---|
| bool |
Less(IComparable, IComparable, string, string, Image)
Checks whether the first number specified is less than the second for IComparable values.
Declaration
public static bool Less(IComparable arg1, IComparable arg2, string verificationName = "Verification", string verificationDescription = null, Image verificationImage = null)
Parameters
| Type | Name | Description |
|---|---|---|
| IComparable | arg1 | The first value, expected to be the smaller number. |
| IComparable | arg2 | The second value, expected to be the larger number. |
| string | verificationName | The verification title. |
| string | verificationDescription | The verification description. |
| Image | verificationImage | An image related to the verification. |
Returns
| Type | Description |
|---|---|
| bool |
Less(int, int, string, string, Image)
Checks whether the first number specified is less than the second for integer values.
Declaration
public static bool Less(int arg1, int arg2, string verificationName = "Verification", string verificationDescription = null, Image verificationImage = null)
Parameters
| Type | Name | Description |
|---|---|---|
| int | arg1 | The first value, expected to be the smaller number. |
| int | arg2 | The second value, expected to be the larger number. |
| string | verificationName | The verification title. |
| string | verificationDescription | The verification description. |
| Image | verificationImage | An image related to the verification. |
Returns
| Type | Description |
|---|---|
| bool |
Less(long, long, string, string, Image)
Checks whether the first number specified is less than the second for long values.
Declaration
public static bool Less(long arg1, long arg2, string verificationName = "Verification", string verificationDescription = null, Image verificationImage = null)
Parameters
| Type | Name | Description |
|---|---|---|
| long | arg1 | The first value, expected to be the smaller number. |
| long | arg2 | The second value, expected to be the larger number. |
| string | verificationName | The verification title. |
| string | verificationDescription | The verification description. |
| Image | verificationImage | An image related to the verification. |
Returns
| Type | Description |
|---|---|
| bool |
Less(float, float, string, string, Image)
Checks whether the first number specified is less than the second for float values.
Declaration
public static bool Less(float arg1, float arg2, string verificationName = "Verification", string verificationDescription = null, Image verificationImage = null)
Parameters
| Type | Name | Description |
|---|---|---|
| float | arg1 | The first value, expected to be the smaller number. |
| float | arg2 | The second value, expected to be the larger number. |
| string | verificationName | The verification title. |
| string | verificationDescription | The verification description. |
| Image | verificationImage | An image related to the verification. |
Returns
| Type | Description |
|---|---|
| bool |
Less(uint, uint, string, string, Image)
Checks whether the first number specified is less than the second for unsigned integer values.
Declaration
public static bool Less(uint arg1, uint arg2, string verificationName = "Verification", string verificationDescription = null, Image verificationImage = null)
Parameters
| Type | Name | Description |
|---|---|---|
| uint | arg1 | The first value, expected to be the smaller number. |
| uint | arg2 | The second value, expected to be the larger number. |
| string | verificationName | The verification title. |
| string | verificationDescription | The verification description. |
| Image | verificationImage | An image related to the verification. |
Returns
| Type | Description |
|---|---|
| bool |
Less(ulong, ulong, string, string, Image)
Checks whether the first number specified is less than the second for unsigned long values.
Declaration
public static bool Less(ulong arg1, ulong arg2, string verificationName = "Verification", string verificationDescription = null, Image verificationImage = null)
Parameters
| Type | Name | Description |
|---|---|---|
| ulong | arg1 | The first value, expected to be the smaller number. |
| ulong | arg2 | The second value, expected to be the larger number. |
| string | verificationName | The verification title. |
| string | verificationDescription | The verification description. |
| Image | verificationImage | An image related to the verification. |
Returns
| Type | Description |
|---|---|
| bool |
LessOrEqual(decimal, decimal, string, string, Image)
Checks whether the first number specified is less than or equal to the second for decimal values.
Declaration
public static bool LessOrEqual(decimal arg1, decimal arg2, string verificationName = "Verification", string verificationDescription = null, Image verificationImage = null)
Parameters
| Type | Name | Description |
|---|---|---|
| decimal | arg1 | The first value, expected to be the smaller number. |
| decimal | arg2 | The second value, expected to be the larger number. |
| string | verificationName | The verification title. |
| string | verificationDescription | The verification description. |
| Image | verificationImage | An image related to the verification. |
Returns
| Type | Description |
|---|---|
| bool |
LessOrEqual(double, double, string, string, Image)
Checks whether the first number specified is less than or equal to the second for double values.
Declaration
public static bool LessOrEqual(double arg1, double arg2, string verificationName = "Verification", string verificationDescription = null, Image verificationImage = null)
Parameters
| Type | Name | Description |
|---|---|---|
| double | arg1 | The first value, expected to be the smaller number. |
| double | arg2 | The second value, expected to be the larger number. |
| string | verificationName | The verification title. |
| string | verificationDescription | The verification description. |
| Image | verificationImage | An image related to the verification. |
Returns
| Type | Description |
|---|---|
| bool |
LessOrEqual(IComparable, IComparable, string, string, Image)
Checks whether the first number specified is less than or equal to the second for IComparable values.
Declaration
public static bool LessOrEqual(IComparable arg1, IComparable arg2, string verificationName = "Verification", string verificationDescription = null, Image verificationImage = null)
Parameters
| Type | Name | Description |
|---|---|---|
| IComparable | arg1 | The first value, expected to be the smaller number. |
| IComparable | arg2 | The second value, expected to be the larger number. |
| string | verificationName | The verification title. |
| string | verificationDescription | The verification description. |
| Image | verificationImage | An image related to the verification. |
Returns
| Type | Description |
|---|---|
| bool |
LessOrEqual(int, int, string, string, Image)
Checks whether the first number specified is less than or equal to the second for integer values.
Declaration
public static bool LessOrEqual(int arg1, int arg2, string verificationName = "Verification", string verificationDescription = null, Image verificationImage = null)
Parameters
| Type | Name | Description |
|---|---|---|
| int | arg1 | The first value, expected to be the smaller number. |
| int | arg2 | The second value, expected to be the larger number. |
| string | verificationName | The verification title. |
| string | verificationDescription | The verification description. |
| Image | verificationImage | An image related to the verification. |
Returns
| Type | Description |
|---|---|
| bool |
LessOrEqual(long, long, string, string, Image)
Checks whether the first number specified is less than or equal to the second for long values.
Declaration
public static bool LessOrEqual(long arg1, long arg2, string verificationName = "Verification", string verificationDescription = null, Image verificationImage = null)
Parameters
| Type | Name | Description |
|---|---|---|
| long | arg1 | The first value, expected to be the smaller number. |
| long | arg2 | The second value, expected to be the larger number. |
| string | verificationName | The verification title. |
| string | verificationDescription | The verification description. |
| Image | verificationImage | An image related to the verification. |
Returns
| Type | Description |
|---|---|
| bool |
LessOrEqual(float, float, string, string, Image)
Checks whether the first number specified is less than or equal to the second for float values.
Declaration
public static bool LessOrEqual(float arg1, float arg2, string verificationName = "Verification", string verificationDescription = null, Image verificationImage = null)
Parameters
| Type | Name | Description |
|---|---|---|
| float | arg1 | The first value, expected to be the smaller number. |
| float | arg2 | The second value, expected to be the larger number. |
| string | verificationName | The verification title. |
| string | verificationDescription | The verification description. |
| Image | verificationImage | An image related to the verification. |
Returns
| Type | Description |
|---|---|
| bool |
LessOrEqual(uint, uint, string, string, Image)
Checks whether the first number specified is less than or equal to the second for unsigned integer values.
Declaration
public static bool LessOrEqual(uint arg1, uint arg2, string verificationName = "Verification", string verificationDescription = null, Image verificationImage = null)
Parameters
| Type | Name | Description |
|---|---|---|
| uint | arg1 | The first value, expected to be the smaller number. |
| uint | arg2 | The second value, expected to be the larger number. |
| string | verificationName | The verification title. |
| string | verificationDescription | The verification description. |
| Image | verificationImage | An image related to the verification. |
Returns
| Type | Description |
|---|---|
| bool |
LessOrEqual(ulong, ulong, string, string, Image)
Checks whether the first number specified is less than or equal to the second for unsigned long values.
Declaration
public static bool LessOrEqual(ulong arg1, ulong arg2, string verificationName = "Verification", string verificationDescription = null, Image verificationImage = null)
Parameters
| Type | Name | Description |
|---|---|---|
| ulong | arg1 | The first value, expected to be the smaller number. |
| ulong | arg2 | The second value, expected to be the larger number. |
| string | verificationName | The verification title. |
| string | verificationDescription | The verification description. |
| Image | verificationImage | An image related to the verification. |
Returns
| Type | Description |
|---|---|
| bool |
StartsWith(string, string, string, string, Image)
Checks whether the 'expected' string is the first part of the 'actual' string.
Declaration
public static bool StartsWith(string prefix, string source, string verificationName = "Verification", string verificationDescription = null, Image verificationImage = null)
Parameters
| Type | Name | Description |
|---|---|---|
| string | prefix | The string to search for. |
| string | source | The string to check. |
| string | verificationName | The verification title. |
| string | verificationDescription | The verification description. |
| Image | verificationImage | An image related to the verification. |
Returns
| Type | Description |
|---|---|
| bool |