Class AssertExtensions
A collection of helpers to test various conditions within unit tests. If the condition being tested is not met, an exception is thrown.
Inheritance
Namespace: Cadru.UnitTest.Framework
Assembly: Cadru.UnitTest.Framework.dll
Syntax
public static class AssertExtensions : object
Methods
| Improve this Doc View SourceAreEqualIgnoringCase(Assert, String, String)
Asserts that two strings are equal, without regard to case.
Declaration
public static void AreEqualIgnoringCase(this Assert assert, string expected, string actual)
Parameters
| Type | Name | Description |
|---|---|---|
| Assert | assert | The |
| System.String | expected | The expected string. |
| System.String | actual | The actual string. |
AreEqualIgnoringCase(Assert, String, String, String)
Asserts that two strings are equal, without regard to case.
Declaration
public static void AreEqualIgnoringCase(this Assert assert, string expected, string actual, string message)
Parameters
| Type | Name | Description |
|---|---|---|
| Assert | assert | The |
| System.String | expected | The expected string. |
| System.String | actual | The actual string. |
| System.String | message | A message to display. This message can be seen in the unit test results. |
AreEqualIgnoringCase(Assert, String, String, String, Object[])
Asserts that two strings are equal, without regard to case.
Declaration
public static void AreEqualIgnoringCase(this Assert assert, string expected, string actual, string message, params object[] parameters)
Parameters
| Type | Name | Description |
|---|---|---|
| Assert | assert | The |
| System.String | expected | The expected string. |
| System.String | actual | The actual string. |
| System.String | message | A message to display. This message can be seen in the unit test results. |
| System.Object[] | parameters | An array of parameters to use when formatting |
AreNotEqualIgnoringCase(Assert, String, String)
Asserts that two strings are not equal, without regard to case.
Declaration
public static void AreNotEqualIgnoringCase(this Assert assert, string expected, string actual)
Parameters
| Type | Name | Description |
|---|---|---|
| Assert | assert | The |
| System.String | expected | The expected string. |
| System.String | actual | The actual string. |
AreNotEqualIgnoringCase(Assert, String, String, String)
Asserts that two strings are not equal, without regard to case.
Declaration
public static void AreNotEqualIgnoringCase(this Assert assert, string expected, string actual, string message)
Parameters
| Type | Name | Description |
|---|---|---|
| Assert | assert | The |
| System.String | expected | The expected string. |
| System.String | actual | The actual string. |
| System.String | message | A message to display. This message can be seen in the unit test results. |
AreNotEqualIgnoringCase(Assert, String, String, String, Object[])
Asserts that two strings are not equal, without regard to case.
Declaration
public static void AreNotEqualIgnoringCase(this Assert assert, string expected, string actual, string message, params object[] parameters)
Parameters
| Type | Name | Description |
|---|---|---|
| Assert | assert | The |
| System.String | expected | The expected string. |
| System.String | actual | The actual string. |
| System.String | message | A message to display. This message can be seen in the unit test results. |
| System.Object[] | parameters | An array of parameters to use when formatting |
DoesNotThrowException(Assert, Action)
Tests whether the code specified by delegate
action
does not throw an exception.
Declaration
public static void DoesNotThrowException(this Assert assert, Action action)
Parameters
| Type | Name | Description |
|---|---|---|
| Assert | assert | The |
| Action | action | Delegate to code to be tested and which is expected to throw exception. |
DoesNotThrowException(Assert, Action, String)
Tests whether the code specified by delegate
action
does not throw an exception.
Declaration
public static void DoesNotThrowException(this Assert assert, Action action, string message)
Parameters
| Type | Name | Description |
|---|---|---|
| Assert | assert | The |
| Action | action | Delegate to code to be tested and which is expected to throw exception. |
| System.String | message | The message to include in the exception when
|
DoesNotThrowException(Assert, Action, String, Object[])
Tests whether the code specified by delegate
action
does not throw an exception.
Declaration
public static void DoesNotThrowException(this Assert assert, Action action, string message, params object[] parameters)
Parameters
| Type | Name | Description |
|---|---|---|
| Assert | assert | The |
| Action | action | Delegate to code to be tested and which is expected to throw exception. |
| System.String | message | The message to include in the exception when
|
| System.Object[] | parameters | An array of parameters to use when formatting |
IsAssignableFrom<T>(Assert, Object)
Asserts that an object may be assigned a value of a given
Declaration
public static void IsAssignableFrom<T>(this Assert assert, object value)
Parameters
| Type | Name | Description |
|---|---|---|
| Assert | assert | The |
| System.Object | value | The value to be tested. |
Type Parameters
| Name | Description |
|---|---|
| T |
IsAssignableFrom<T>(Assert, Object, String)
Asserts that an object may be assigned a value of a given
Declaration
public static void IsAssignableFrom<T>(this Assert assert, object value, string message)
Parameters
| Type | Name | Description |
|---|---|---|
| Assert | assert | The |
| System.Object | value | The value to be tested. |
| System.String | message | A message to display. This message can be seen in the unit test results. |
Type Parameters
| Name | Description |
|---|---|
| T |
IsAssignableFrom<T>(Assert, Object, String, Object[])
Asserts that an object may be assigned a value of a given
Declaration
public static void IsAssignableFrom<T>(this Assert assert, object value, string message, params object[] parameters)
Parameters
| Type | Name | Description |
|---|---|---|
| Assert | assert | The |
| System.Object | value | The value to be tested. |
| System.String | message | A message to display. This message can be seen in the unit test results. |
| System.Object[] | parameters | An array of parameters to use when formatting |
Type Parameters
| Name | Description |
|---|---|
| T |
IsEmpty(Assert, Nullable<String>)
Asserts that a string is empty.
Declaration
public static void IsEmpty(this Assert assert, string? value)
Parameters
| Type | Name | Description |
|---|---|---|
| Assert | assert | The |
| System.Nullable<System.String> | value | The value to be tested. |
IsEmpty(Assert, Nullable<String>, String)
Asserts that a string is empty.
Declaration
public static void IsEmpty(this Assert assert, string? value, string message)
Parameters
| Type | Name | Description |
|---|---|---|
| Assert | assert | The |
| System.Nullable<System.String> | value | The value to be tested. |
| System.String | message | A message to display. This message can be seen in the unit test results. |
IsEmpty(Assert, Nullable<String>, String, Object[])
Asserts that a string is empty.
Declaration
public static void IsEmpty(this Assert assert, string? value, string message, params object[] parameters)
Parameters
| Type | Name | Description |
|---|---|---|
| Assert | assert | The |
| System.Nullable<System.String> | value | The value to be tested. |
| System.String | message | A message to display. This message can be seen in the unit test results. |
| System.Object[] | parameters | An array of parameters to use when formatting |
IsFalse(Assert, Nullable<Boolean>)
Verifies that the specified condition is false. The assertion fails if the condition is true.
Declaration
public static void IsFalse(this Assert assert, bool? condition)
Parameters
| Type | Name | Description |
|---|---|---|
| Assert | assert | The |
| System.Nullable<System.Boolean> | condition | The condition to verify is false. |
IsFalse(Assert, Nullable<Boolean>, String)
Verifies that the specified condition is false. The assertion fails if the condition is true. Displays a message if the assertion fails.
Declaration
public static void IsFalse(this Assert assert, bool? condition, string message)
Parameters
| Type | Name | Description |
|---|---|---|
| Assert | assert | The |
| System.Nullable<System.Boolean> | condition | The condition to verify is false. |
| System.String | message | A message to display if the assertion fails. This message can be seen in the unit test results. |
IsFalse(Assert, Nullable<Boolean>, String, Object[])
Verifies that the specified condition is false. The assertion fails if the condition is true. Displays a message if the assertion fails, and applies the specified formatting to it.
Declaration
public static void IsFalse(this Assert assert, bool? condition, string message, params object[] parameters)
Parameters
| Type | Name | Description |
|---|---|---|
| Assert | assert | The |
| System.Nullable<System.Boolean> | condition | The condition to verify is false. |
| System.String | message | A message to display if the assertion fails. This message can be seen in the unit test results. |
| System.Object[] | parameters | An array of parameters to use when formatting |
IsGreater(Assert, Byte, Byte)
Verifies that the first value is greater than the second value.
Declaration
public static void IsGreater(this Assert assert, byte expected, byte actual)
Parameters
| Type | Name | Description |
|---|---|---|
| Assert | assert | The |
| System.Byte | expected | The first byte to compare. This is the byte the tests expects. |
| System.Byte | actual | The second byte to compare. This is the byte produced by the code under test. |
IsGreater(Assert, Byte, Byte, String)
Verifies that the first value is greater than the second value.
Declaration
public static void IsGreater(this Assert assert, byte expected, byte actual, string message)
Parameters
| Type | Name | Description |
|---|---|---|
| Assert | assert | The |
| System.Byte | expected | The first byte to compare. This is the byte the tests expects. |
| System.Byte | actual | The second byte to compare. This is the byte produced by the code under test. |
| System.String | message | The message to include in the exception when |
IsGreater(Assert, Byte, Byte, String, Object[])
Verifies that the first value is greater than the second value.
Declaration
public static void IsGreater(this Assert assert, byte expected, byte actual, string message, params object[] parameters)
Parameters
| Type | Name | Description |
|---|---|---|
| Assert | assert | The |
| System.Byte | expected | The first byte to compare. This is the byte the tests expects. |
| System.Byte | actual | The second byte to compare. This is the byte produced by the code under test. |
| System.String | message | The message to include in the exception when |
| System.Object[] | parameters | An array of parameters to use when formatting |
IsGreater(Assert, Char, Char)
Verifies that the first value is greater than the second value.
Declaration
public static void IsGreater(this Assert assert, char expected, char actual)
Parameters
| Type | Name | Description |
|---|---|---|
| Assert | assert | The |
| System.Char | expected | The first char to compare. This is the char the tests expects. |
| System.Char | actual | The second char to compare. This is the char produced by the code under test. |
IsGreater(Assert, Char, Char, String)
Verifies that the first value is greater than the second value.
Declaration
public static void IsGreater(this Assert assert, char expected, char actual, string message)
Parameters
| Type | Name | Description |
|---|---|---|
| Assert | assert | The |
| System.Char | expected | The first char to compare. This is the char the tests expects. |
| System.Char | actual | The second char to compare. This is the char produced by the code under test. |
| System.String | message | The message to include in the exception when |
IsGreater(Assert, Char, Char, String, Object[])
Verifies that the first value is greater than the second value.
Declaration
public static void IsGreater(this Assert assert, char expected, char actual, string message, params object[] parameters)
Parameters
| Type | Name | Description |
|---|---|---|
| Assert | assert | The |
| System.Char | expected | The first char to compare. This is the char the tests expects. |
| System.Char | actual | The second char to compare. This is the char produced by the code under test. |
| System.String | message | The message to include in the exception when |
| System.Object[] | parameters | An array of parameters to use when formatting |
IsGreater(Assert, Decimal, Decimal)
Verifies that the first value is greater than the second value.
Declaration
public static void IsGreater(this Assert assert, decimal expected, decimal actual)
Parameters
| Type | Name | Description |
|---|---|---|
| Assert | assert | The |
| System.Decimal | expected | The first decimal to compare. This is the decimal the tests expects. |
| System.Decimal | actual | The second decimal to compare. This is the decimal produced by the code under test. |
IsGreater(Assert, Decimal, Decimal, String)
Verifies that the first value is greater than the second value.
Declaration
public static void IsGreater(this Assert assert, decimal expected, decimal actual, string message)
Parameters
| Type | Name | Description |
|---|---|---|
| Assert | assert | The |
| System.Decimal | expected | The first decimal to compare. This is the decimal the tests expects. |
| System.Decimal | actual | The second decimal to compare. This is the decimal produced by the code under test. |
| System.String | message | The message to include in the exception when |
IsGreater(Assert, Decimal, Decimal, String, Object[])
Verifies that the first value is greater than the second value.
Declaration
public static void IsGreater(this Assert assert, decimal expected, decimal actual, string message, params object[] parameters)
Parameters
| Type | Name | Description |
|---|---|---|
| Assert | assert | The |
| System.Decimal | expected | The first decimal to compare. This is the decimal the tests expects. |
| System.Decimal | actual | The second decimal to compare. This is the decimal produced by the code under test. |
| System.String | message | The message to include in the exception when |
| System.Object[] | parameters | An array of parameters to use when formatting |
IsGreater(Assert, Double, Double)
Verifies that the first value is greater than the second value.
Declaration
public static void IsGreater(this Assert assert, double expected, double actual)
Parameters
| Type | Name | Description |
|---|---|---|
| Assert | assert | The |
| System.Double | expected | The first double to compare. This is the double the tests expects. |
| System.Double | actual | The second double to compare. This is the double produced by the code under test. |
IsGreater(Assert, Double, Double, String)
Verifies that the first value is greater than the second value.
Declaration
public static void IsGreater(this Assert assert, double expected, double actual, string message)
Parameters
| Type | Name | Description |
|---|---|---|
| Assert | assert | The |
| System.Double | expected | The first double to compare. This is the double the tests expects. |
| System.Double | actual | The second double to compare. This is the double produced by the code under test. |
| System.String | message | The message to include in the exception when |
IsGreater(Assert, Double, Double, String, Object[])
Verifies that the first value is greater than the second value.
Declaration
public static void IsGreater(this Assert assert, double expected, double actual, string message, params object[] parameters)
Parameters
| Type | Name | Description |
|---|---|---|
| Assert | assert | The |
| System.Double | expected | The first double to compare. This is the double the tests expects. |
| System.Double | actual | The second double to compare. This is the double produced by the code under test. |
| System.String | message | The message to include in the exception when |
| System.Object[] | parameters | An array of parameters to use when formatting |
IsGreater(Assert, Int16, Int16)
Verifies that the first value is greater than the second value.
Declaration
public static void IsGreater(this Assert assert, short expected, short actual)
Parameters
| Type | Name | Description |
|---|---|---|
| Assert | assert | The |
| System.Int16 | expected | The first short to compare. This is the short the tests expects. |
| System.Int16 | actual | The second short to compare. This is the short produced by the code under test. |
IsGreater(Assert, Int16, Int16, String)
Verifies that the first value is greater than the second value.
Declaration
public static void IsGreater(this Assert assert, short expected, short actual, string message)
Parameters
| Type | Name | Description |
|---|---|---|
| Assert | assert | The |
| System.Int16 | expected | The first short to compare. This is the short the tests expects. |
| System.Int16 | actual | The second short to compare. This is the short produced by the code under test. |
| System.String | message | The message to include in the exception when |
IsGreater(Assert, Int16, Int16, String, Object[])
Verifies that the first value is greater than the second value.
Declaration
public static void IsGreater(this Assert assert, short expected, short actual, string message, params object[] parameters)
Parameters
| Type | Name | Description |
|---|---|---|
| Assert | assert | The |
| System.Int16 | expected | The first short to compare. This is the short the tests expects. |
| System.Int16 | actual | The second short to compare. This is the short produced by the code under test. |
| System.String | message | The message to include in the exception when |
| System.Object[] | parameters | An array of parameters to use when formatting |
IsGreater(Assert, Int32, Int32)
Verifies that the first value is greater than the second value.
Declaration
public static void IsGreater(this Assert assert, int expected, int actual)
Parameters
| Type | Name | Description |
|---|---|---|
| Assert | assert | The |
| System.Int32 | expected | The first int to compare. This is the int the tests expects. |
| System.Int32 | actual | The second int to compare. This is the int produced by the code under test. |
IsGreater(Assert, Int32, Int32, String)
Verifies that the first value is greater than the second value.
Declaration
public static void IsGreater(this Assert assert, int expected, int actual, string message)
Parameters
| Type | Name | Description |
|---|---|---|
| Assert | assert | The |
| System.Int32 | expected | The first int to compare. This is the int the tests expects. |
| System.Int32 | actual | The second int to compare. This is the int produced by the code under test. |
| System.String | message | The message to include in the exception when |
IsGreater(Assert, Int32, Int32, String, Object[])
Verifies that the first value is greater than the second value.
Declaration
public static void IsGreater(this Assert assert, int expected, int actual, string message, params object[] parameters)
Parameters
| Type | Name | Description |
|---|---|---|
| Assert | assert | The |
| System.Int32 | expected | The first int to compare. This is the int the tests expects. |
| System.Int32 | actual | The second int to compare. This is the int produced by the code under test. |
| System.String | message | The message to include in the exception when |
| System.Object[] | parameters | An array of parameters to use when formatting |
IsGreater(Assert, Int64, Int64)
Verifies that the first value is greater than the second value.
Declaration
public static void IsGreater(this Assert assert, long expected, long actual)
Parameters
| Type | Name | Description |
|---|---|---|
| Assert | assert | The |
| System.Int64 | expected | The first long to compare. This is the long the tests expects. |
| System.Int64 | actual | The second long to compare. This is the long produced by the code under test. |
IsGreater(Assert, Int64, Int64, String)
Verifies that the first value is greater than the second value.
Declaration
public static void IsGreater(this Assert assert, long expected, long actual, string message)
Parameters
| Type | Name | Description |
|---|---|---|
| Assert | assert | The |
| System.Int64 | expected | The first long to compare. This is the long the tests expects. |
| System.Int64 | actual | The second long to compare. This is the long produced by the code under test. |
| System.String | message | The message to include in the exception when |
IsGreater(Assert, Int64, Int64, String, Object[])
Verifies that the first value is greater than the second value.
Declaration
public static void IsGreater(this Assert assert, long expected, long actual, string message, params object[] parameters)
Parameters
| Type | Name | Description |
|---|---|---|
| Assert | assert | The |
| System.Int64 | expected | The first long to compare. This is the long the tests expects. |
| System.Int64 | actual | The second long to compare. This is the long produced by the code under test. |
| System.String | message | The message to include in the exception when |
| System.Object[] | parameters | An array of parameters to use when formatting |
IsGreater(Assert, SByte, SByte)
Verifies that the first value is greater than the second value.
Declaration
public static void IsGreater(this Assert assert, sbyte expected, sbyte actual)
Parameters
| Type | Name | Description |
|---|---|---|
| Assert | assert | The |
| System.SByte | expected | The first sbyte to compare. This is the sbyte the tests expects. |
| System.SByte | actual | The second sbyte to compare. This is the sbyte produced by the code under test. |
IsGreater(Assert, SByte, SByte, String)
Verifies that the first value is greater than the second value.
Declaration
public static void IsGreater(this Assert assert, sbyte expected, sbyte actual, string message)
Parameters
| Type | Name | Description |
|---|---|---|
| Assert | assert | The |
| System.SByte | expected | The first sbyte to compare. This is the sbyte the tests expects. |
| System.SByte | actual | The second sbyte to compare. This is the sbyte produced by the code under test. |
| System.String | message | The message to include in the exception when |
IsGreater(Assert, SByte, SByte, String, Object[])
Verifies that the first value is greater than the second value.
Declaration
public static void IsGreater(this Assert assert, sbyte expected, sbyte actual, string message, params object[] parameters)
Parameters
| Type | Name | Description |
|---|---|---|
| Assert | assert | The |
| System.SByte | expected | The first sbyte to compare. This is the sbyte the tests expects. |
| System.SByte | actual | The second sbyte to compare. This is the sbyte produced by the code under test. |
| System.String | message | The message to include in the exception when |
| System.Object[] | parameters | An array of parameters to use when formatting |
IsGreater(Assert, Single, Single)
Verifies that the first value is greater than the second value.
Declaration
public static void IsGreater(this Assert assert, float expected, float actual)
Parameters
| Type | Name | Description |
|---|---|---|
| Assert | assert | The |
| System.Single | expected | The first float to compare. This is the float the tests expects. |
| System.Single | actual | The second float to compare. This is the float produced by the code under test. |
IsGreater(Assert, Single, Single, String)
Verifies that the first value is greater than the second value.
Declaration
public static void IsGreater(this Assert assert, float expected, float actual, string message)
Parameters
| Type | Name | Description |
|---|---|---|
| Assert | assert | The |
| System.Single | expected | The first float to compare. This is the float the tests expects. |
| System.Single | actual | The second float to compare. This is the float produced by the code under test. |
| System.String | message | The message to include in the exception when |
IsGreater(Assert, Single, Single, String, Object[])
Verifies that the first value is greater than the second value.
Declaration
public static void IsGreater(this Assert assert, float expected, float actual, string message, params object[] parameters)
Parameters
| Type | Name | Description |
|---|---|---|
| Assert | assert | The |
| System.Single | expected | The first float to compare. This is the float the tests expects. |
| System.Single | actual | The second float to compare. This is the float produced by the code under test. |
| System.String | message | The message to include in the exception when |
| System.Object[] | parameters | An array of parameters to use when formatting |
IsGreater(Assert, UInt16, UInt16)
Verifies that the first value is greater than the second value.
Declaration
public static void IsGreater(this Assert assert, ushort expected, ushort actual)
Parameters
| Type | Name | Description |
|---|---|---|
| Assert | assert | The |
| System.UInt16 | expected | The first ushort to compare. This is the ushort the tests expects. |
| System.UInt16 | actual | The second ushort to compare. This is the ushort produced by the code under test. |
IsGreater(Assert, UInt16, UInt16, String)
Verifies that the first value is greater than the second value.
Declaration
public static void IsGreater(this Assert assert, ushort expected, ushort actual, string message)
Parameters
| Type | Name | Description |
|---|---|---|
| Assert | assert | The |
| System.UInt16 | expected | The first ushort to compare. This is the ushort the tests expects. |
| System.UInt16 | actual | The second ushort to compare. This is the ushort produced by the code under test. |
| System.String | message | The message to include in the exception when |
IsGreater(Assert, UInt16, UInt16, String, Object[])
Verifies that the first value is greater than the second value.
Declaration
public static void IsGreater(this Assert assert, ushort expected, ushort actual, string message, params object[] parameters)
Parameters
| Type | Name | Description |
|---|---|---|
| Assert | assert | The |
| System.UInt16 | expected | The first ushort to compare. This is the ushort the tests expects. |
| System.UInt16 | actual | The second ushort to compare. This is the ushort produced by the code under test. |
| System.String | message | The message to include in the exception when |
| System.Object[] | parameters | An array of parameters to use when formatting |
IsGreater(Assert, UInt32, UInt32)
Verifies that the first value is greater than the second value.
Declaration
public static void IsGreater(this Assert assert, uint expected, uint actual)
Parameters
| Type | Name | Description |
|---|---|---|
| Assert | assert | The |
| System.UInt32 | expected | The first uint to compare. This is the uint the tests expects. |
| System.UInt32 | actual | The second uint to compare. This is the uint produced by the code under test. |
IsGreater(Assert, UInt32, UInt32, String)
Verifies that the first value is greater than the second value.
Declaration
public static void IsGreater(this Assert assert, uint expected, uint actual, string message)
Parameters
| Type | Name | Description |
|---|---|---|
| Assert | assert | The |
| System.UInt32 | expected | The first uint to compare. This is the uint the tests expects. |
| System.UInt32 | actual | The second uint to compare. This is the uint produced by the code under test. |
| System.String | message | The message to include in the exception when |
IsGreater(Assert, UInt32, UInt32, String, Object[])
Verifies that the first value is greater than the second value.
Declaration
public static void IsGreater(this Assert assert, uint expected, uint actual, string message, params object[] parameters)
Parameters
| Type | Name | Description |
|---|---|---|
| Assert | assert | The |
| System.UInt32 | expected | The first uint to compare. This is the uint the tests expects. |
| System.UInt32 | actual | The second uint to compare. This is the uint produced by the code under test. |
| System.String | message | The message to include in the exception when |
| System.Object[] | parameters | An array of parameters to use when formatting |
IsGreater(Assert, UInt64, UInt64)
Verifies that the first value is greater than the second value.
Declaration
public static void IsGreater(this Assert assert, ulong expected, ulong actual)
Parameters
| Type | Name | Description |
|---|---|---|
| Assert | assert | The |
| System.UInt64 | expected | The first ulong to compare. This is the ulong the tests expects. |
| System.UInt64 | actual | The second ulong to compare. This is the ulong produced by the code under test. |
IsGreater(Assert, UInt64, UInt64, String)
Verifies that the first value is greater than the second value.
Declaration
public static void IsGreater(this Assert assert, ulong expected, ulong actual, string message)
Parameters
| Type | Name | Description |
|---|---|---|
| Assert | assert | The |
| System.UInt64 | expected | The first ulong to compare. This is the ulong the tests expects. |
| System.UInt64 | actual | The second ulong to compare. This is the ulong produced by the code under test. |
| System.String | message | The message to include in the exception when |
IsGreater(Assert, UInt64, UInt64, String, Object[])
Verifies that the first value is greater than the second value.
Declaration
public static void IsGreater(this Assert assert, ulong expected, ulong actual, string message, params object[] parameters)
Parameters
| Type | Name | Description |
|---|---|---|
| Assert | assert | The |
| System.UInt64 | expected | The first ulong to compare. This is the ulong the tests expects. |
| System.UInt64 | actual | The second ulong to compare. This is the ulong produced by the code under test. |
| System.String | message | The message to include in the exception when |
| System.Object[] | parameters | An array of parameters to use when formatting |
IsGreater<T>(Assert, T, T)
Verifies that the first value is greater than the second value.
Declaration
public static void IsGreater<T>(this Assert assert, T expected, T actual)
where T : IComparable
Parameters
| Type | Name | Description |
|---|---|---|
| Assert | assert | The |
| T | expected | The first |
| T | actual | The second |
Type Parameters
| Name | Description |
|---|---|
| T | The type of the values to compare. |
IsGreater<T>(Assert, T, T, String)
Verifies that the first value is greater than the second value.
Declaration
public static void IsGreater<T>(this Assert assert, T expected, T actual, string message)
where T : IComparable
Parameters
| Type | Name | Description |
|---|---|---|
| Assert | assert | The |
| T | expected | The first |
| T | actual | The second |
| System.String | message | The message to include in the exception when |
Type Parameters
| Name | Description |
|---|---|
| T | The type of the values to compare. |
IsGreater<T>(Assert, T, T, String, Object[])
Verifies that the first value is greater than the second value.
Declaration
public static void IsGreater<T>(this Assert assert, T expected, T actual, string message, params object[] parameters)
where T : IComparable
Parameters
| Type | Name | Description |
|---|---|---|
| Assert | assert | The |
| T | expected | The first |
| T | actual | The second |
| System.String | message | The message to include in the exception when |
| System.Object[] | parameters | An array of parameters to use when formatting |
Type Parameters
| Name | Description |
|---|---|
| T | The type of the values to compare. |
IsGreaterOrEqual(Assert, Byte, Byte)
Verifies that the first value is greater than or equal to the second value.
Declaration
public static void IsGreaterOrEqual(this Assert assert, byte expected, byte actual)
Parameters
| Type | Name | Description |
|---|---|---|
| Assert | assert | The |
| System.Byte | expected | The first byte to compare. This is the byte the tests expects. |
| System.Byte | actual | The second byte to compare. This is the byte produced by the code under test. |
IsGreaterOrEqual(Assert, Byte, Byte, String)
Verifies that the first value is greater than or equal to the second value.
Declaration
public static void IsGreaterOrEqual(this Assert assert, byte expected, byte actual, string message)
Parameters
| Type | Name | Description |
|---|---|---|
| Assert | assert | The |
| System.Byte | expected | The first byte to compare. This is the byte the tests expects. |
| System.Byte | actual | The second byte to compare. This is the byte produced by the code under test. |
| System.String | message | The message to include in the exception when |
IsGreaterOrEqual(Assert, Byte, Byte, String, Object[])
Verifies that the first value is greater than or equal to the second value.
Declaration
public static void IsGreaterOrEqual(this Assert assert, byte expected, byte actual, string message, params object[] parameters)
Parameters
| Type | Name | Description |
|---|---|---|
| Assert | assert | The |
| System.Byte | expected | The first byte to compare. This is the byte the tests expects. |
| System.Byte | actual | The second byte to compare. This is the byte produced by the code under test. |
| System.String | message | The message to include in the exception when |
| System.Object[] | parameters | An array of parameters to use when formatting |
IsGreaterOrEqual(Assert, Char, Char)
Verifies that the first value is greater than or equal to the second value.
Declaration
public static void IsGreaterOrEqual(this Assert assert, char expected, char actual)
Parameters
| Type | Name | Description |
|---|---|---|
| Assert | assert | The |
| System.Char | expected | The first char to compare. This is the char the tests expects. |
| System.Char | actual | The second char to compare. This is the char produced by the code under test. |
IsGreaterOrEqual(Assert, Char, Char, String)
Verifies that the first value is greater than or equal to the second value.
Declaration
public static void IsGreaterOrEqual(this Assert assert, char expected, char actual, string message)
Parameters
| Type | Name | Description |
|---|---|---|
| Assert | assert | The |
| System.Char | expected | The first char to compare. This is the char the tests expects. |
| System.Char | actual | The second char to compare. This is the char produced by the code under test. |
| System.String | message | The message to include in the exception when |
IsGreaterOrEqual(Assert, Char, Char, String, Object[])
Verifies that the first value is greater than or equal to the second value.
Declaration
public static void IsGreaterOrEqual(this Assert assert, char expected, char actual, string message, params object[] parameters)
Parameters
| Type | Name | Description |
|---|---|---|
| Assert | assert | The |
| System.Char | expected | The first char to compare. This is the char the tests expects. |
| System.Char | actual | The second char to compare. This is the char produced by the code under test. |
| System.String | message | The message to include in the exception when |
| System.Object[] | parameters | An array of parameters to use when formatting |
IsGreaterOrEqual(Assert, Decimal, Decimal)
Verifies that the first value is greater than or equal to the second value.
Declaration
public static void IsGreaterOrEqual(this Assert assert, decimal expected, decimal actual)
Parameters
| Type | Name | Description |
|---|---|---|
| Assert | assert | The |
| System.Decimal | expected | The first decimal to compare. This is the decimal the tests expects. |
| System.Decimal | actual | The second decimal to compare. This is the decimal produced by the code under test. |
IsGreaterOrEqual(Assert, Decimal, Decimal, String)
Verifies that the first value is greater than or equal to the second value.
Declaration
public static void IsGreaterOrEqual(this Assert assert, decimal expected, decimal actual, string message)
Parameters
| Type | Name | Description |
|---|---|---|
| Assert | assert | The |
| System.Decimal | expected | The first decimal to compare. This is the decimal the tests expects. |
| System.Decimal | actual | The second decimal to compare. This is the decimal produced by the code under test. |
| System.String | message | The message to include in the exception when |
IsGreaterOrEqual(Assert, Decimal, Decimal, String, Object[])
Verifies that the first value is greater than or equal to the second value.
Declaration
public static void IsGreaterOrEqual(this Assert assert, decimal expected, decimal actual, string message, params object[] parameters)
Parameters
| Type | Name | Description |
|---|---|---|
| Assert | assert | The |
| System.Decimal | expected | The first decimal to compare. This is the decimal the tests expects. |
| System.Decimal | actual | The second decimal to compare. This is the decimal produced by the code under test. |
| System.String | message | The message to include in the exception when |
| System.Object[] | parameters | An array of parameters to use when formatting |
IsGreaterOrEqual(Assert, Double, Double)
Verifies that the first value is greater than or equal to the second value.
Declaration
public static void IsGreaterOrEqual(this Assert assert, double expected, double actual)
Parameters
| Type | Name | Description |
|---|---|---|
| Assert | assert | The |
| System.Double | expected | The first double to compare. This is the double the tests expects. |
| System.Double | actual | The second double to compare. This is the double produced by the code under test. |
IsGreaterOrEqual(Assert, Double, Double, String)
Verifies that the first value is greater than or equal to the second value.
Declaration
public static void IsGreaterOrEqual(this Assert assert, double expected, double actual, string message)
Parameters
| Type | Name | Description |
|---|---|---|
| Assert | assert | The |
| System.Double | expected | The first double to compare. This is the double the tests expects. |
| System.Double | actual | The second double to compare. This is the double produced by the code under test. |
| System.String | message | The message to include in the exception when |
IsGreaterOrEqual(Assert, Double, Double, String, Object[])
Verifies that the first value is greater than or equal to the second value.
Declaration
public static void IsGreaterOrEqual(this Assert assert, double expected, double actual, string message, params object[] parameters)
Parameters
| Type | Name | Description |
|---|---|---|
| Assert | assert | The |
| System.Double | expected | The first double to compare. This is the double the tests expects. |
| System.Double | actual | The second double to compare. This is the double produced by the code under test. |
| System.String | message | The message to include in the exception when |
| System.Object[] | parameters | An array of parameters to use when formatting |
IsGreaterOrEqual(Assert, Int16, Int16)
Verifies that the first value is greater than or equal to the second value.
Declaration
public static void IsGreaterOrEqual(this Assert assert, short expected, short actual)
Parameters
| Type | Name | Description |
|---|---|---|
| Assert | assert | The |
| System.Int16 | expected | The first short to compare. This is the short the tests expects. |
| System.Int16 | actual | The second short to compare. This is the short produced by the code under test. |
IsGreaterOrEqual(Assert, Int16, Int16, String)
Verifies that the first value is greater than or equal to the second value.
Declaration
public static void IsGreaterOrEqual(this Assert assert, short expected, short actual, string message)
Parameters
| Type | Name | Description |
|---|---|---|
| Assert | assert | The |
| System.Int16 | expected | The first short to compare. This is the short the tests expects. |
| System.Int16 | actual | The second short to compare. This is the short produced by the code under test. |
| System.String | message | The message to include in the exception when |
IsGreaterOrEqual(Assert, Int16, Int16, String, Object[])
Verifies that the first value is greater than or equal to the second value.
Declaration
public static void IsGreaterOrEqual(this Assert assert, short expected, short actual, string message, params object[] parameters)
Parameters
| Type | Name | Description |
|---|---|---|
| Assert | assert | The |
| System.Int16 | expected | The first short to compare. This is the short the tests expects. |
| System.Int16 | actual | The second short to compare. This is the short produced by the code under test. |
| System.String | message | The message to include in the exception when |
| System.Object[] | parameters | An array of parameters to use when formatting |
IsGreaterOrEqual(Assert, Int32, Int32)
Verifies that the first value is greater than or equal to the second value.
Declaration
public static void IsGreaterOrEqual(this Assert assert, int expected, int actual)
Parameters
| Type | Name | Description |
|---|---|---|
| Assert | assert | The |
| System.Int32 | expected | The first int to compare. This is the int the tests expects. |
| System.Int32 | actual | The second int to compare. This is the int produced by the code under test. |
IsGreaterOrEqual(Assert, Int32, Int32, String)
Verifies that the first value is greater than or equal to the second value.
Declaration
public static void IsGreaterOrEqual(this Assert assert, int expected, int actual, string message)
Parameters
| Type | Name | Description |
|---|---|---|
| Assert | assert | The |
| System.Int32 | expected | The first int to compare. This is the int the tests expects. |
| System.Int32 | actual | The second int to compare. This is the int produced by the code under test. |
| System.String | message | The message to include in the exception when |
IsGreaterOrEqual(Assert, Int32, Int32, String, Object[])
Verifies that the first value is greater than or equal to the second value.
Declaration
public static void IsGreaterOrEqual(this Assert assert, int expected, int actual, string message, params object[] parameters)
Parameters
| Type | Name | Description |
|---|---|---|
| Assert | assert | The |
| System.Int32 | expected | The first int to compare. This is the int the tests expects. |
| System.Int32 | actual | The second int to compare. This is the int produced by the code under test. |
| System.String | message | The message to include in the exception when |
| System.Object[] | parameters | An array of parameters to use when formatting |
IsGreaterOrEqual(Assert, Int64, Int64)
Verifies that the first value is greater than or equal to the second value.
Declaration
public static void IsGreaterOrEqual(this Assert assert, long expected, long actual)
Parameters
| Type | Name | Description |
|---|---|---|
| Assert | assert | The |
| System.Int64 | expected | The first long to compare. This is the long the tests expects. |
| System.Int64 | actual | The second long to compare. This is the long produced by the code under test. |
IsGreaterOrEqual(Assert, Int64, Int64, String)
Verifies that the first value is greater than or equal to the second value.
Declaration
public static void IsGreaterOrEqual(this Assert assert, long expected, long actual, string message)
Parameters
| Type | Name | Description |
|---|---|---|
| Assert | assert | The |
| System.Int64 | expected | The first long to compare. This is the long the tests expects. |
| System.Int64 | actual | The second long to compare. This is the long produced by the code under test. |
| System.String | message | The message to include in the exception when |
IsGreaterOrEqual(Assert, Int64, Int64, String, Object[])
Verifies that the first value is greater than or equal to the second value.
Declaration
public static void IsGreaterOrEqual(this Assert assert, long expected, long actual, string message, params object[] parameters)
Parameters
| Type | Name | Description |
|---|---|---|
| Assert | assert | The |
| System.Int64 | expected | The first long to compare. This is the long the tests expects. |
| System.Int64 | actual | The second long to compare. This is the long produced by the code under test. |
| System.String | message | The message to include in the exception when |
| System.Object[] | parameters | An array of parameters to use when formatting |
IsGreaterOrEqual(Assert, SByte, SByte)
Verifies that the first value is greater than or equal to the second value.
Declaration
public static void IsGreaterOrEqual(this Assert assert, sbyte expected, sbyte actual)
Parameters
| Type | Name | Description |
|---|---|---|
| Assert | assert | The |
| System.SByte | expected | The first sbyte to compare. This is the sbyte the tests expects. |
| System.SByte | actual | The second sbyte to compare. This is the sbyte produced by the code under test. |
IsGreaterOrEqual(Assert, SByte, SByte, String)
Verifies that the first value is greater than or equal to the second value.
Declaration
public static void IsGreaterOrEqual(this Assert assert, sbyte expected, sbyte actual, string message)
Parameters
| Type | Name | Description |
|---|---|---|
| Assert | assert | The |
| System.SByte | expected | The first sbyte to compare. This is the sbyte the tests expects. |
| System.SByte | actual | The second sbyte to compare. This is the sbyte produced by the code under test. |
| System.String | message | The message to include in the exception when |
IsGreaterOrEqual(Assert, SByte, SByte, String, Object[])
Verifies that the first value is greater than or equal to the second value.
Declaration
public static void IsGreaterOrEqual(this Assert assert, sbyte expected, sbyte actual, string message, params object[] parameters)
Parameters
| Type | Name | Description |
|---|---|---|
| Assert | assert | The |
| System.SByte | expected | The first sbyte to compare. This is the sbyte the tests expects. |
| System.SByte | actual | The second sbyte to compare. This is the sbyte produced by the code under test. |
| System.String | message | The message to include in the exception when |
| System.Object[] | parameters | An array of parameters to use when formatting |
IsGreaterOrEqual(Assert, Single, Single)
Verifies that the first value is greater than or equal to the second value.
Declaration
public static void IsGreaterOrEqual(this Assert assert, float expected, float actual)
Parameters
| Type | Name | Description |
|---|---|---|
| Assert | assert | The |
| System.Single | expected | The first float to compare. This is the float the tests expects. |
| System.Single | actual | The second float to compare. This is the float produced by the code under test. |
IsGreaterOrEqual(Assert, Single, Single, String)
Verifies that the first value is greater than or equal to the second value.
Declaration
public static void IsGreaterOrEqual(this Assert assert, float expected, float actual, string message)
Parameters
| Type | Name | Description |
|---|---|---|
| Assert | assert | The |
| System.Single | expected | The first float to compare. This is the float the tests expects. |
| System.Single | actual | The second float to compare. This is the float produced by the code under test. |
| System.String | message | The message to include in the exception when |
IsGreaterOrEqual(Assert, Single, Single, String, Object[])
Verifies that the first value is greater than or equal to the second value.
Declaration
public static void IsGreaterOrEqual(this Assert assert, float expected, float actual, string message, params object[] parameters)
Parameters
| Type | Name | Description |
|---|---|---|
| Assert | assert | The |
| System.Single | expected | The first float to compare. This is the float the tests expects. |
| System.Single | actual | The second float to compare. This is the float produced by the code under test. |
| System.String | message | The message to include in the exception when |
| System.Object[] | parameters | An array of parameters to use when formatting |
IsGreaterOrEqual(Assert, UInt16, UInt16)
Verifies that the first value is greater than or equal to the second value.
Declaration
public static void IsGreaterOrEqual(this Assert assert, ushort expected, ushort actual)
Parameters
| Type | Name | Description |
|---|---|---|
| Assert | assert | The |
| System.UInt16 | expected | The first ushort to compare. This is the ushort the tests expects. |
| System.UInt16 | actual | The second ushort to compare. This is the ushort produced by the code under test. |
IsGreaterOrEqual(Assert, UInt16, UInt16, String)
Verifies that the first value is greater than or equal to the second value.
Declaration
public static void IsGreaterOrEqual(this Assert assert, ushort expected, ushort actual, string message)
Parameters
| Type | Name | Description |
|---|---|---|
| Assert | assert | The |
| System.UInt16 | expected | The first ushort to compare. This is the ushort the tests expects. |
| System.UInt16 | actual | The second ushort to compare. This is the ushort produced by the code under test. |
| System.String | message | The message to include in the exception when |
IsGreaterOrEqual(Assert, UInt16, UInt16, String, Object[])
Verifies that the first value is greater than or equal to the second value.
Declaration
public static void IsGreaterOrEqual(this Assert assert, ushort expected, ushort actual, string message, params object[] parameters)
Parameters
| Type | Name | Description |
|---|---|---|
| Assert | assert | The |
| System.UInt16 | expected | The first ushort to compare. This is the ushort the tests expects. |
| System.UInt16 | actual | The second ushort to compare. This is the ushort produced by the code under test. |
| System.String | message | The message to include in the exception when |
| System.Object[] | parameters | An array of parameters to use when formatting |
IsGreaterOrEqual(Assert, UInt32, UInt32)
Verifies that the first value is greater than or equal to the second value.
Declaration
public static void IsGreaterOrEqual(this Assert assert, uint expected, uint actual)
Parameters
| Type | Name | Description |
|---|---|---|
| Assert | assert | The |
| System.UInt32 | expected | The first uint to compare. This is the uint the tests expects. |
| System.UInt32 | actual | The second uint to compare. This is the uint produced by the code under test. |
IsGreaterOrEqual(Assert, UInt32, UInt32, String)
Verifies that the first value is greater than or equal to the second value.
Declaration
public static void IsGreaterOrEqual(this Assert assert, uint expected, uint actual, string message)
Parameters
| Type | Name | Description |
|---|---|---|
| Assert | assert | The |
| System.UInt32 | expected | The first uint to compare. This is the uint the tests expects. |
| System.UInt32 | actual | The second uint to compare. This is the uint produced by the code under test. |
| System.String | message | The message to include in the exception when |
IsGreaterOrEqual(Assert, UInt32, UInt32, String, Object[])
Verifies that the first value is greater than or equal to the second value.
Declaration
public static void IsGreaterOrEqual(this Assert assert, uint expected, uint actual, string message, params object[] parameters)
Parameters
| Type | Name | Description |
|---|---|---|
| Assert | assert | The |
| System.UInt32 | expected | The first uint to compare. This is the uint the tests expects. |
| System.UInt32 | actual | The second uint to compare. This is the uint produced by the code under test. |
| System.String | message | The message to include in the exception when |
| System.Object[] | parameters | An array of parameters to use when formatting |
IsGreaterOrEqual(Assert, UInt64, UInt64)
Verifies that the first value is greater than or equal to the second value.
Declaration
public static void IsGreaterOrEqual(this Assert assert, ulong expected, ulong actual)
Parameters
| Type | Name | Description |
|---|---|---|
| Assert | assert | The |
| System.UInt64 | expected | The first ulong to compare. This is the ulong the tests expects. |
| System.UInt64 | actual | The second ulong to compare. This is the ulong produced by the code under test. |
IsGreaterOrEqual(Assert, UInt64, UInt64, String)
Verifies that the first value is greater than or equal to the second value.
Declaration
public static void IsGreaterOrEqual(this Assert assert, ulong expected, ulong actual, string message)
Parameters
| Type | Name | Description |
|---|---|---|
| Assert | assert | The |
| System.UInt64 | expected | The first ulong to compare. This is the ulong the tests expects. |
| System.UInt64 | actual | The second ulong to compare. This is the ulong produced by the code under test. |
| System.String | message | The message to include in the exception when |
IsGreaterOrEqual(Assert, UInt64, UInt64, String, Object[])
Verifies that the first value is greater than or equal to the second value.
Declaration
public static void IsGreaterOrEqual(this Assert assert, ulong expected, ulong actual, string message, params object[] parameters)
Parameters
| Type | Name | Description |
|---|---|---|
| Assert | assert | The |
| System.UInt64 | expected | The first ulong to compare. This is the ulong the tests expects. |
| System.UInt64 | actual | The second ulong to compare. This is the ulong produced by the code under test. |
| System.String | message | The message to include in the exception when |
| System.Object[] | parameters | An array of parameters to use when formatting |
IsGreaterOrEqual<T>(Assert, T, T)
Verifies that the first value is greater than or equal to the second value.
Declaration
public static void IsGreaterOrEqual<T>(this Assert assert, T expected, T actual)
where T : IComparable
Parameters
| Type | Name | Description |
|---|---|---|
| Assert | assert | The |
| T | expected | The first |
| T | actual | The second |
Type Parameters
| Name | Description |
|---|---|
| T | The type of the values to compare. |
IsGreaterOrEqual<T>(Assert, T, T, String)
Verifies that the first value is greater than or equal to the second value.
Declaration
public static void IsGreaterOrEqual<T>(this Assert assert, T expected, T actual, string message)
where T : IComparable
Parameters
| Type | Name | Description |
|---|---|---|
| Assert | assert | The |
| T | expected | The first |
| T | actual | The second |
| System.String | message | The message to include in the exception when |
Type Parameters
| Name | Description |
|---|---|
| T | The type of the values to compare. |
IsGreaterOrEqual<T>(Assert, T, T, String, Object[])
Verifies that the first value is greater than or equal to the second value.
Declaration
public static void IsGreaterOrEqual<T>(this Assert assert, T expected, T actual, string message, params object[] parameters)
where T : IComparable
Parameters
| Type | Name | Description |
|---|---|---|
| Assert | assert | The |
| T | expected | The first |
| T | actual | The second |
| System.String | message | The message to include in the exception when |
| System.Object[] | parameters | An array of parameters to use when formatting |
Type Parameters
| Name | Description |
|---|---|
| T | The type of the values to compare. |
IsLess(Assert, Byte, Byte)
Verifies that the first value is less than the second value.
Declaration
public static void IsLess(this Assert assert, byte expected, byte actual)
Parameters
| Type | Name | Description |
|---|---|---|
| Assert | assert | The |
| System.Byte | expected | The first byte to compare. This is the byte the tests expects. |
| System.Byte | actual | The second byte to compare. This is the byte produced by the code under test. |
IsLess(Assert, Byte, Byte, String)
Verifies that the first value is less than the second value.
Declaration
public static void IsLess(this Assert assert, byte expected, byte actual, string message)
Parameters
| Type | Name | Description |
|---|---|---|
| Assert | assert | The |
| System.Byte | expected | The first byte to compare. This is the byte the tests expects. |
| System.Byte | actual | The second byte to compare. This is the byte produced by the code under test. |
| System.String | message | The message to include in the exception when |
IsLess(Assert, Byte, Byte, String, Object[])
Verifies that the first value is less than the second value.
Declaration
public static void IsLess(this Assert assert, byte expected, byte actual, string message, params object[] parameters)
Parameters
| Type | Name | Description |
|---|---|---|
| Assert | assert | The |
| System.Byte | expected | The first byte to compare. This is the byte the tests expects. |
| System.Byte | actual | The second byte to compare. This is the byte produced by the code under test. |
| System.String | message | The message to include in the exception when |
| System.Object[] | parameters | An array of parameters to use when formatting |
IsLess(Assert, Char, Char)
Verifies that the first value is less than the second value.
Declaration
public static void IsLess(this Assert assert, char expected, char actual)
Parameters
| Type | Name | Description |
|---|---|---|
| Assert | assert | The |
| System.Char | expected | The first char to compare. This is the char the tests expects. |
| System.Char | actual | The second char to compare. This is the char produced by the code under test. |
IsLess(Assert, Char, Char, String)
Verifies that the first value is less than the second value.
Declaration
public static void IsLess(this Assert assert, char expected, char actual, string message)
Parameters
| Type | Name | Description |
|---|---|---|
| Assert | assert | The |
| System.Char | expected | The first char to compare. This is the char the tests expects. |
| System.Char | actual | The second char to compare. This is the char produced by the code under test. |
| System.String | message | The message to include in the exception when |
IsLess(Assert, Char, Char, String, Object[])
Verifies that the first value is less than the second value.
Declaration
public static void IsLess(this Assert assert, char expected, char actual, string message, params object[] parameters)
Parameters
| Type | Name | Description |
|---|---|---|
| Assert | assert | The |
| System.Char | expected | The first char to compare. This is the char the tests expects. |
| System.Char | actual | The second char to compare. This is the char produced by the code under test. |
| System.String | message | The message to include in the exception when |
| System.Object[] | parameters | An array of parameters to use when formatting |
IsLess(Assert, Decimal, Decimal)
Verifies that the first value is less than the second value.
Declaration
public static void IsLess(this Assert assert, decimal expected, decimal actual)
Parameters
| Type | Name | Description |
|---|---|---|
| Assert | assert | The |
| System.Decimal | expected | The first decimal to compare. This is the decimal the tests expects. |
| System.Decimal | actual | The second decimal to compare. This is the decimal produced by the code under test. |
IsLess(Assert, Decimal, Decimal, String)
Verifies that the first value is less than the second value.
Declaration
public static void IsLess(this Assert assert, decimal expected, decimal actual, string message)
Parameters
| Type | Name | Description |
|---|---|---|
| Assert | assert | The |
| System.Decimal | expected | The first decimal to compare. This is the decimal the tests expects. |
| System.Decimal | actual | The second decimal to compare. This is the decimal produced by the code under test. |
| System.String | message | The message to include in the exception when |
IsLess(Assert, Decimal, Decimal, String, Object[])
Verifies that the first value is less than the second value.
Declaration
public static void IsLess(this Assert assert, decimal expected, decimal actual, string message, params object[] parameters)
Parameters
| Type | Name | Description |
|---|---|---|
| Assert | assert | The |
| System.Decimal | expected | The first decimal to compare. This is the decimal the tests expects. |
| System.Decimal | actual | The second decimal to compare. This is the decimal produced by the code under test. |
| System.String | message | The message to include in the exception when |
| System.Object[] | parameters | An array of parameters to use when formatting |
IsLess(Assert, Double, Double)
Verifies that the first value is less than the second value.
Declaration
public static void IsLess(this Assert assert, double expected, double actual)
Parameters
| Type | Name | Description |
|---|---|---|
| Assert | assert | The |
| System.Double | expected | The first double to compare. This is the double the tests expects. |
| System.Double | actual | The second double to compare. This is the double produced by the code under test. |
IsLess(Assert, Double, Double, String)
Verifies that the first value is less than the second value.
Declaration
public static void IsLess(this Assert assert, double expected, double actual, string message)
Parameters
| Type | Name | Description |
|---|---|---|
| Assert | assert | The |
| System.Double | expected | The first double to compare. This is the double the tests expects. |
| System.Double | actual | The second double to compare. This is the double produced by the code under test. |
| System.String | message | The message to include in the exception when |
IsLess(Assert, Double, Double, String, Object[])
Verifies that the first value is less than the second value.
Declaration
public static void IsLess(this Assert assert, double expected, double actual, string message, params object[] parameters)
Parameters
| Type | Name | Description |
|---|---|---|
| Assert | assert | The |
| System.Double | expected | The first double to compare. This is the double the tests expects. |
| System.Double | actual | The second double to compare. This is the double produced by the code under test. |
| System.String | message | The message to include in the exception when |
| System.Object[] | parameters | An array of parameters to use when formatting |
IsLess(Assert, Int16, Int16)
Verifies that the first value is less than the second value.
Declaration
public static void IsLess(this Assert assert, short expected, short actual)
Parameters
| Type | Name | Description |
|---|---|---|
| Assert | assert | The |
| System.Int16 | expected | The first short to compare. This is the short the tests expects. |
| System.Int16 | actual | The second short to compare. This is the short produced by the code under test. |
IsLess(Assert, Int16, Int16, String)
Verifies that the first value is less than the second value.
Declaration
public static void IsLess(this Assert assert, short expected, short actual, string message)
Parameters
| Type | Name | Description |
|---|---|---|
| Assert | assert | The |
| System.Int16 | expected | The first short to compare. This is the short the tests expects. |
| System.Int16 | actual | The second short to compare. This is the short produced by the code under test. |
| System.String | message | The message to include in the exception when |
IsLess(Assert, Int16, Int16, String, Object[])
Verifies that the first value is less than the second value.
Declaration
public static void IsLess(this Assert assert, short expected, short actual, string message, params object[] parameters)
Parameters
| Type | Name | Description |
|---|---|---|
| Assert | assert | The |
| System.Int16 | expected | The first short to compare. This is the short the tests expects. |
| System.Int16 | actual | The second short to compare. This is the short produced by the code under test. |
| System.String | message | The message to include in the exception when |
| System.Object[] | parameters | An array of parameters to use when formatting |
IsLess(Assert, Int32, Int32)
Verifies that the first value is less than the second value.
Declaration
public static void IsLess(this Assert assert, int expected, int actual)
Parameters
| Type | Name | Description |
|---|---|---|
| Assert | assert | The |
| System.Int32 | expected | The first int to compare. This is the int the tests expects. |
| System.Int32 | actual | The second int to compare. This is the int produced by the code under test. |
IsLess(Assert, Int32, Int32, String)
Verifies that the first value is less than the second value.
Declaration
public static void IsLess(this Assert assert, int expected, int actual, string message)
Parameters
| Type | Name | Description |
|---|---|---|
| Assert | assert | The |
| System.Int32 | expected | The first int to compare. This is the int the tests expects. |
| System.Int32 | actual | The second int to compare. This is the int produced by the code under test. |
| System.String | message | The message to include in the exception when |
IsLess(Assert, Int32, Int32, String, Object[])
Verifies that the first value is less than the second value.
Declaration
public static void IsLess(this Assert assert, int expected, int actual, string message, params object[] parameters)
Parameters
| Type | Name | Description |
|---|---|---|
| Assert | assert | The |
| System.Int32 | expected | The first int to compare. This is the int the tests expects. |
| System.Int32 | actual | The second int to compare. This is the int produced by the code under test. |
| System.String | message | The message to include in the exception when |
| System.Object[] | parameters | An array of parameters to use when formatting |
IsLess(Assert, Int64, Int64)
Verifies that the first value is less than the second value.
Declaration
public static void IsLess(this Assert assert, long expected, long actual)
Parameters
| Type | Name | Description |
|---|---|---|
| Assert | assert | The |
| System.Int64 | expected | The first long to compare. This is the long the tests expects. |
| System.Int64 | actual | The second long to compare. This is the long produced by the code under test. |
IsLess(Assert, Int64, Int64, String)
Verifies that the first value is less than the second value.
Declaration
public static void IsLess(this Assert assert, long expected, long actual, string message)
Parameters
| Type | Name | Description |
|---|---|---|
| Assert | assert | The |
| System.Int64 | expected | The first long to compare. This is the long the tests expects. |
| System.Int64 | actual | The second long to compare. This is the long produced by the code under test. |
| System.String | message | The message to include in the exception when |
IsLess(Assert, Int64, Int64, String, Object[])
Verifies that the first value is less than the second value.
Declaration
public static void IsLess(this Assert assert, long expected, long actual, string message, params object[] parameters)
Parameters
| Type | Name | Description |
|---|---|---|
| Assert | assert | The |
| System.Int64 | expected | The first long to compare. This is the long the tests expects. |
| System.Int64 | actual | The second long to compare. This is the long produced by the code under test. |
| System.String | message | The message to include in the exception when |
| System.Object[] | parameters | An array of parameters to use when formatting |
IsLess(Assert, SByte, SByte)
Verifies that the first value is less than the second value.
Declaration
public static void IsLess(this Assert assert, sbyte expected, sbyte actual)
Parameters
| Type | Name | Description |
|---|---|---|
| Assert | assert | The |
| System.SByte | expected | The first sbyte to compare. This is the sbyte the tests expects. |
| System.SByte | actual | The second sbyte to compare. This is the sbyte produced by the code under test. |
IsLess(Assert, SByte, SByte, String)
Verifies that the first value is less than the second value.
Declaration
public static void IsLess(this Assert assert, sbyte expected, sbyte actual, string message)
Parameters
| Type | Name | Description |
|---|---|---|
| Assert | assert | The |
| System.SByte | expected | The first sbyte to compare. This is the sbyte the tests expects. |
| System.SByte | actual | The second sbyte to compare. This is the sbyte produced by the code under test. |
| System.String | message | The message to include in the exception when |
IsLess(Assert, SByte, SByte, String, Object[])
Verifies that the first value is less than the second value.
Declaration
public static void IsLess(this Assert assert, sbyte expected, sbyte actual, string message, params object[] parameters)
Parameters
| Type | Name | Description |
|---|---|---|
| Assert | assert | The |
| System.SByte | expected | The first sbyte to compare. This is the sbyte the tests expects. |
| System.SByte | actual | The second sbyte to compare. This is the sbyte produced by the code under test. |
| System.String | message | The message to include in the exception when |
| System.Object[] | parameters | An array of parameters to use when formatting |
IsLess(Assert, Single, Single)
Verifies that the first value is less than the second value.
Declaration
public static void IsLess(this Assert assert, float expected, float actual)
Parameters
| Type | Name | Description |
|---|---|---|
| Assert | assert | The |
| System.Single | expected | The first float to compare. This is the float the tests expects. |
| System.Single | actual | The second float to compare. This is the float produced by the code under test. |
IsLess(Assert, Single, Single, String)
Verifies that the first value is less than the second value.
Declaration
public static void IsLess(this Assert assert, float expected, float actual, string message)
Parameters
| Type | Name | Description |
|---|---|---|
| Assert | assert | The |
| System.Single | expected | The first float to compare. This is the float the tests expects. |
| System.Single | actual | The second float to compare. This is the float produced by the code under test. |
| System.String | message | The message to include in the exception when |
IsLess(Assert, Single, Single, String, Object[])
Verifies that the first value is less than the second value.
Declaration
public static void IsLess(this Assert assert, float expected, float actual, string message, params object[] parameters)
Parameters
| Type | Name | Description |
|---|---|---|
| Assert | assert | The |
| System.Single | expected | The first float to compare. This is the float the tests expects. |
| System.Single | actual | The second float to compare. This is the float produced by the code under test. |
| System.String | message | The message to include in the exception when |
| System.Object[] | parameters | An array of parameters to use when formatting |
IsLess(Assert, UInt16, UInt16)
Verifies that the first value is less than the second value.
Declaration
public static void IsLess(this Assert assert, ushort expected, ushort actual)
Parameters
| Type | Name | Description |
|---|---|---|
| Assert | assert | The |
| System.UInt16 | expected | The first ushort to compare. This is the ushort the tests expects. |
| System.UInt16 | actual | The second ushort to compare. This is the ushort produced by the code under test. |
IsLess(Assert, UInt16, UInt16, String)
Verifies that the first value is less than the second value.
Declaration
public static void IsLess(this Assert assert, ushort expected, ushort actual, string message)
Parameters
| Type | Name | Description |
|---|---|---|
| Assert | assert | The |
| System.UInt16 | expected | The first ushort to compare. This is the ushort the tests expects. |
| System.UInt16 | actual | The second ushort to compare. This is the ushort produced by the code under test. |
| System.String | message | The message to include in the exception when |
IsLess(Assert, UInt16, UInt16, String, Object[])
Verifies that the first value is less than the second value.
Declaration
public static void IsLess(this Assert assert, ushort expected, ushort actual, string message, params object[] parameters)
Parameters
| Type | Name | Description |
|---|---|---|
| Assert | assert | The |
| System.UInt16 | expected | The first ushort to compare. This is the ushort the tests expects. |
| System.UInt16 | actual | The second ushort to compare. This is the ushort produced by the code under test. |
| System.String | message | The message to include in the exception when |
| System.Object[] | parameters | An array of parameters to use when formatting |
IsLess(Assert, UInt32, UInt32)
Verifies that the first value is less than the second value.
Declaration
public static void IsLess(this Assert assert, uint expected, uint actual)
Parameters
| Type | Name | Description |
|---|---|---|
| Assert | assert | The |
| System.UInt32 | expected | The first uint to compare. This is the uint the tests expects. |
| System.UInt32 | actual | The second uint to compare. This is the uint produced by the code under test. |
IsLess(Assert, UInt32, UInt32, String)
Verifies that the first value is less than the second value.
Declaration
public static void IsLess(this Assert assert, uint expected, uint actual, string message)
Parameters
| Type | Name | Description |
|---|---|---|
| Assert | assert | The |
| System.UInt32 | expected | The first uint to compare. This is the uint the tests expects. |
| System.UInt32 | actual | The second uint to compare. This is the uint produced by the code under test. |
| System.String | message | The message to include in the exception when |
IsLess(Assert, UInt32, UInt32, String, Object[])
Verifies that the first value is less than the second value.
Declaration
public static void IsLess(this Assert assert, uint expected, uint actual, string message, params object[] parameters)
Parameters
| Type | Name | Description |
|---|---|---|
| Assert | assert | The |
| System.UInt32 | expected | The first uint to compare. This is the uint the tests expects. |
| System.UInt32 | actual | The second uint to compare. This is the uint produced by the code under test. |
| System.String | message | The message to include in the exception when |
| System.Object[] | parameters | An array of parameters to use when formatting |
IsLess(Assert, UInt64, UInt64)
Verifies that the first value is less than the second value.
Declaration
public static void IsLess(this Assert assert, ulong expected, ulong actual)
Parameters
| Type | Name | Description |
|---|---|---|
| Assert | assert | The |
| System.UInt64 | expected | The first ulong to compare. This is the ulong the tests expects. |
| System.UInt64 | actual | The second ulong to compare. This is the ulong produced by the code under test. |
IsLess(Assert, UInt64, UInt64, String)
Verifies that the first value is less than the second value.
Declaration
public static void IsLess(this Assert assert, ulong expected, ulong actual, string message)
Parameters
| Type | Name | Description |
|---|---|---|
| Assert | assert | The |
| System.UInt64 | expected | The first ulong to compare. This is the ulong the tests expects. |
| System.UInt64 | actual | The second ulong to compare. This is the ulong produced by the code under test. |
| System.String | message | The message to include in the exception when |
IsLess(Assert, UInt64, UInt64, String, Object[])
Verifies that the first value is less than the second value.
Declaration
public static void IsLess(this Assert assert, ulong expected, ulong actual, string message, params object[] parameters)
Parameters
| Type | Name | Description |
|---|---|---|
| Assert | assert | The |
| System.UInt64 | expected | The first ulong to compare. This is the ulong the tests expects. |
| System.UInt64 | actual | The second ulong to compare. This is the ulong produced by the code under test. |
| System.String | message | The message to include in the exception when |
| System.Object[] | parameters | An array of parameters to use when formatting |
IsLess<T>(Assert, T, T)
Verifies that the first value is less than the second value.
Declaration
public static void IsLess<T>(this Assert assert, T expected, T actual)
where T : IComparable
Parameters
| Type | Name | Description |
|---|---|---|
| Assert | assert | The |
| T | expected | The first |
| T | actual | The second |
Type Parameters
| Name | Description |
|---|---|
| T | The type of the values to compare. |
IsLess<T>(Assert, T, T, String)
Verifies that the first value is less than the second value.
Declaration
public static void IsLess<T>(this Assert assert, T expected, T actual, string message)
where T : IComparable
Parameters
| Type | Name | Description |
|---|---|---|
| Assert | assert | The |
| T | expected | The first |
| T | actual | The second |
| System.String | message | The message to include in the exception when |
Type Parameters
| Name | Description |
|---|---|
| T | The type of the values to compare. |
IsLess<T>(Assert, T, T, String, Object[])
Verifies that the first value is less than the second value.
Declaration
public static void IsLess<T>(this Assert assert, T expected, T actual, string message, params object[] parameters)
where T : IComparable
Parameters
| Type | Name | Description |
|---|---|---|
| Assert | assert | The |
| T | expected | The first |
| T | actual | The second |
| System.String | message | The message to include in the exception when |
| System.Object[] | parameters | An array of parameters to use when formatting |
Type Parameters
| Name | Description |
|---|---|
| T | The type of the values to compare. |
IsLessOrEqual(Assert, Byte, Byte)
Verifies that the first value is less than or equal to or equal to the second value.
Declaration
public static void IsLessOrEqual(this Assert assert, byte expected, byte actual)
Parameters
| Type | Name | Description |
|---|---|---|
| Assert | assert | The |
| System.Byte | expected | The first byte to compare. This is the byte the tests expects. |
| System.Byte | actual | The second byte to compare. This is the byte produced by the code under test. |
IsLessOrEqual(Assert, Byte, Byte, String)
Verifies that the first value is less than or equal to or equal to the second value.
Declaration
public static void IsLessOrEqual(this Assert assert, byte expected, byte actual, string message)
Parameters
| Type | Name | Description |
|---|---|---|
| Assert | assert | The |
| System.Byte | expected | The first byte to compare. This is the byte the tests expects. |
| System.Byte | actual | The second byte to compare. This is the byte produced by the code under test. |
| System.String | message | The message to include in the exception when |
IsLessOrEqual(Assert, Byte, Byte, String, Object[])
Verifies that the first value is less than or equal to or equal to the second value.
Declaration
public static void IsLessOrEqual(this Assert assert, byte expected, byte actual, string message, params object[] parameters)
Parameters
| Type | Name | Description |
|---|---|---|
| Assert | assert | The |
| System.Byte | expected | The first byte to compare. This is the byte the tests expects. |
| System.Byte | actual | The second byte to compare. This is the byte produced by the code under test. |
| System.String | message | The message to include in the exception when |
| System.Object[] | parameters | An array of parameters to use when formatting |
IsLessOrEqual(Assert, Char, Char)
Verifies that the first value is less than or equal to or equal to the second value.
Declaration
public static void IsLessOrEqual(this Assert assert, char expected, char actual)
Parameters
| Type | Name | Description |
|---|---|---|
| Assert | assert | The |
| System.Char | expected | The first char to compare. This is the char the tests expects. |
| System.Char | actual | The second char to compare. This is the char produced by the code under test. |
IsLessOrEqual(Assert, Char, Char, String)
Verifies that the first value is less than or equal to or equal to the second value.
Declaration
public static void IsLessOrEqual(this Assert assert, char expected, char actual, string message)
Parameters
| Type | Name | Description |
|---|---|---|
| Assert | assert | The |
| System.Char | expected | The first char to compare. This is the char the tests expects. |
| System.Char | actual | The second char to compare. This is the char produced by the code under test. |
| System.String | message | The message to include in the exception when |
IsLessOrEqual(Assert, Char, Char, String, Object[])
Verifies that the first value is less than or equal to or equal to the second value.
Declaration
public static void IsLessOrEqual(this Assert assert, char expected, char actual, string message, params object[] parameters)
Parameters
| Type | Name | Description |
|---|---|---|
| Assert | assert | The |
| System.Char | expected | The first char to compare. This is the char the tests expects. |
| System.Char | actual | The second char to compare. This is the char produced by the code under test. |
| System.String | message | The message to include in the exception when |
| System.Object[] | parameters | An array of parameters to use when formatting |
IsLessOrEqual(Assert, Decimal, Decimal)
Verifies that the first value is less than or equal to or equal to the second value.
Declaration
public static void IsLessOrEqual(this Assert assert, decimal expected, decimal actual)
Parameters
| Type | Name | Description |
|---|---|---|
| Assert | assert | The |
| System.Decimal | expected | The first decimal to compare. This is the decimal the tests expects. |
| System.Decimal | actual | The second decimal to compare. This is the decimal produced by the code under test. |
IsLessOrEqual(Assert, Decimal, Decimal, String)
Verifies that the first value is less than or equal to or equal to the second value.
Declaration
public static void IsLessOrEqual(this Assert assert, decimal expected, decimal actual, string message)
Parameters
| Type | Name | Description |
|---|---|---|
| Assert | assert | The |
| System.Decimal | expected | The first decimal to compare. This is the decimal the tests expects. |
| System.Decimal | actual | The second decimal to compare. This is the decimal produced by the code under test. |
| System.String | message | The message to include in the exception when |
IsLessOrEqual(Assert, Decimal, Decimal, String, Object[])
Verifies that the first value is less than or equal to or equal to the second value.
Declaration
public static void IsLessOrEqual(this Assert assert, decimal expected, decimal actual, string message, params object[] parameters)
Parameters
| Type | Name | Description |
|---|---|---|
| Assert | assert | The |
| System.Decimal | expected | The first decimal to compare. This is the decimal the tests expects. |
| System.Decimal | actual | The second decimal to compare. This is the decimal produced by the code under test. |
| System.String | message | The message to include in the exception when |
| System.Object[] | parameters | An array of parameters to use when formatting |
IsLessOrEqual(Assert, Double, Double)
Verifies that the first value is less than or equal to or equal to the second value.
Declaration
public static void IsLessOrEqual(this Assert assert, double expected, double actual)
Parameters
| Type | Name | Description |
|---|---|---|
| Assert | assert | The |
| System.Double | expected | The first double to compare. This is the double the tests expects. |
| System.Double | actual | The second double to compare. This is the double produced by the code under test. |
IsLessOrEqual(Assert, Double, Double, String)
Verifies that the first value is less than or equal to or equal to the second value.
Declaration
public static void IsLessOrEqual(this Assert assert, double expected, double actual, string message)
Parameters
| Type | Name | Description |
|---|---|---|
| Assert | assert | The |
| System.Double | expected | The first double to compare. This is the double the tests expects. |
| System.Double | actual | The second double to compare. This is the double produced by the code under test. |
| System.String | message | The message to include in the exception when |
IsLessOrEqual(Assert, Double, Double, String, Object[])
Verifies that the first value is less than or equal to or equal to the second value.
Declaration
public static void IsLessOrEqual(this Assert assert, double expected, double actual, string message, params object[] parameters)
Parameters
| Type | Name | Description |
|---|---|---|
| Assert | assert | The |
| System.Double | expected | The first double to compare. This is the double the tests expects. |
| System.Double | actual | The second double to compare. This is the double produced by the code under test. |
| System.String | message | The message to include in the exception when |
| System.Object[] | parameters | An array of parameters to use when formatting |
IsLessOrEqual(Assert, Int16, Int16)
Verifies that the first value is less than or equal to or equal to the second value.
Declaration
public static void IsLessOrEqual(this Assert assert, short expected, short actual)
Parameters
| Type | Name | Description |
|---|---|---|
| Assert | assert | The |
| System.Int16 | expected | The first short to compare. This is the short the tests expects. |
| System.Int16 | actual | The second short to compare. This is the short produced by the code under test. |
IsLessOrEqual(Assert, Int16, Int16, String)
Verifies that the first value is less than or equal to or equal to the second value.
Declaration
public static void IsLessOrEqual(this Assert assert, short expected, short actual, string message)
Parameters
| Type | Name | Description |
|---|---|---|
| Assert | assert | The |
| System.Int16 | expected | The first short to compare. This is the short the tests expects. |
| System.Int16 | actual | The second short to compare. This is the short produced by the code under test. |
| System.String | message | The message to include in the exception when |
IsLessOrEqual(Assert, Int16, Int16, String, Object[])
Verifies that the first value is less than or equal to or equal to the second value.
Declaration
public static void IsLessOrEqual(this Assert assert, short expected, short actual, string message, params object[] parameters)
Parameters
| Type | Name | Description |
|---|---|---|
| Assert | assert | The |
| System.Int16 | expected | The first short to compare. This is the short the tests expects. |
| System.Int16 | actual | The second short to compare. This is the short produced by the code under test. |
| System.String | message | The message to include in the exception when |
| System.Object[] | parameters | An array of parameters to use when formatting |
IsLessOrEqual(Assert, Int32, Int32)
Verifies that the first value is less than or equal to or equal to the second value.
Declaration
public static void IsLessOrEqual(this Assert assert, int expected, int actual)
Parameters
| Type | Name | Description |
|---|---|---|
| Assert | assert | The |
| System.Int32 | expected | The first int to compare. This is the int the tests expects. |
| System.Int32 | actual | The second int to compare. This is the int produced by the code under test. |
IsLessOrEqual(Assert, Int32, Int32, String)
Verifies that the first value is less than or equal to or equal to the second value.
Declaration
public static void IsLessOrEqual(this Assert assert, int expected, int actual, string message)
Parameters
| Type | Name | Description |
|---|---|---|
| Assert | assert | The |
| System.Int32 | expected | The first int to compare. This is the int the tests expects. |
| System.Int32 | actual | The second int to compare. This is the int produced by the code under test. |
| System.String | message | The message to include in the exception when |
IsLessOrEqual(Assert, Int32, Int32, String, Object[])
Verifies that the first value is less than or equal to or equal to the second value.
Declaration
public static void IsLessOrEqual(this Assert assert, int expected, int actual, string message, params object[] parameters)
Parameters
| Type | Name | Description |
|---|---|---|
| Assert | assert | The |
| System.Int32 | expected | The first int to compare. This is the int the tests expects. |
| System.Int32 | actual | The second int to compare. This is the int produced by the code under test. |
| System.String | message | The message to include in the exception when |
| System.Object[] | parameters | An array of parameters to use when formatting |
IsLessOrEqual(Assert, Int64, Int64)
Verifies that the first value is less than or equal to or equal to the second value.
Declaration
public static void IsLessOrEqual(this Assert assert, long expected, long actual)
Parameters
| Type | Name | Description |
|---|---|---|
| Assert | assert | The |
| System.Int64 | expected | The first long to compare. This is the long the tests expects. |
| System.Int64 | actual | The second long to compare. This is the long produced by the code under test. |
IsLessOrEqual(Assert, Int64, Int64, String)
Verifies that the first value is less than or equal to or equal to the second value.
Declaration
public static void IsLessOrEqual(this Assert assert, long expected, long actual, string message)
Parameters
| Type | Name | Description |
|---|---|---|
| Assert | assert | The |
| System.Int64 | expected | The first long to compare. This is the long the tests expects. |
| System.Int64 | actual | The second long to compare. This is the long produced by the code under test. |
| System.String | message | The message to include in the exception when |
IsLessOrEqual(Assert, Int64, Int64, String, Object[])
Verifies that the first value is less than or equal to or equal to the second value.
Declaration
public static void IsLessOrEqual(this Assert assert, long expected, long actual, string message, params object[] parameters)
Parameters
| Type | Name | Description |
|---|---|---|
| Assert | assert | The |
| System.Int64 | expected | The first long to compare. This is the long the tests expects. |
| System.Int64 | actual | The second long to compare. This is the long produced by the code under test. |
| System.String | message | The message to include in the exception when |
| System.Object[] | parameters | An array of parameters to use when formatting |
IsLessOrEqual(Assert, SByte, SByte)
Verifies that the first value is less than or equal to or equal to the second value.
Declaration
public static void IsLessOrEqual(this Assert assert, sbyte expected, sbyte actual)
Parameters
| Type | Name | Description |
|---|---|---|
| Assert | assert | The |
| System.SByte | expected | The first sbyte to compare. This is the sbyte the tests expects. |
| System.SByte | actual | The second sbyte to compare. This is the sbyte produced by the code under test. |
IsLessOrEqual(Assert, SByte, SByte, String)
Verifies that the first value is less than or equal to or equal to the second value.
Declaration
public static void IsLessOrEqual(this Assert assert, sbyte expected, sbyte actual, string message)
Parameters
| Type | Name | Description |
|---|---|---|
| Assert | assert | The |
| System.SByte | expected | The first sbyte to compare. This is the sbyte the tests expects. |
| System.SByte | actual | The second sbyte to compare. This is the sbyte produced by the code under test. |
| System.String | message | The message to include in the exception when |
IsLessOrEqual(Assert, SByte, SByte, String, Object[])
Verifies that the first value is less than or equal to or equal to the second value.
Declaration
public static void IsLessOrEqual(this Assert assert, sbyte expected, sbyte actual, string message, params object[] parameters)
Parameters
| Type | Name | Description |
|---|---|---|
| Assert | assert | The |
| System.SByte | expected | The first sbyte to compare. This is the sbyte the tests expects. |
| System.SByte | actual | The second sbyte to compare. This is the sbyte produced by the code under test. |
| System.String | message | The message to include in the exception when |
| System.Object[] | parameters | An array of parameters to use when formatting |
IsLessOrEqual(Assert, Single, Single)
Verifies that the first value is less than or equal to or equal to the second value.
Declaration
public static void IsLessOrEqual(this Assert assert, float expected, float actual)
Parameters
| Type | Name | Description |
|---|---|---|
| Assert | assert | The |
| System.Single | expected | The first float to compare. This is the float the tests expects. |
| System.Single | actual | The second float to compare. This is the float produced by the code under test. |
IsLessOrEqual(Assert, Single, Single, String)
Verifies that the first value is less than or equal to or equal to the second value.
Declaration
public static void IsLessOrEqual(this Assert assert, float expected, float actual, string message)
Parameters
| Type | Name | Description |
|---|---|---|
| Assert | assert | The |
| System.Single | expected | The first float to compare. This is the float the tests expects. |
| System.Single | actual | The second float to compare. This is the float produced by the code under test. |
| System.String | message | The message to include in the exception when |
IsLessOrEqual(Assert, Single, Single, String, Object[])
Verifies that the first value is less than or equal to or equal to the second value.
Declaration
public static void IsLessOrEqual(this Assert assert, float expected, float actual, string message, params object[] parameters)
Parameters
| Type | Name | Description |
|---|---|---|
| Assert | assert | The |
| System.Single | expected | The first float to compare. This is the float the tests expects. |
| System.Single | actual | The second float to compare. This is the float produced by the code under test. |
| System.String | message | The message to include in the exception when |
| System.Object[] | parameters | An array of parameters to use when formatting |
IsLessOrEqual(Assert, UInt16, UInt16)
Verifies that the first value is less than or equal to or equal to the second value.
Declaration
public static void IsLessOrEqual(this Assert assert, ushort expected, ushort actual)
Parameters
| Type | Name | Description |
|---|---|---|
| Assert | assert | The |
| System.UInt16 | expected | The first ushort to compare. This is the ushort the tests expects. |
| System.UInt16 | actual | The second ushort to compare. This is the ushort produced by the code under test. |
IsLessOrEqual(Assert, UInt16, UInt16, String)
Verifies that the first value is less than or equal to or equal to the second value.
Declaration
public static void IsLessOrEqual(this Assert assert, ushort expected, ushort actual, string message)
Parameters
| Type | Name | Description |
|---|---|---|
| Assert | assert | The |
| System.UInt16 | expected | The first ushort to compare. This is the ushort the tests expects. |
| System.UInt16 | actual | The second ushort to compare. This is the ushort produced by the code under test. |
| System.String | message | The message to include in the exception when |
IsLessOrEqual(Assert, UInt16, UInt16, String, Object[])
Verifies that the first value is less than or equal to or equal to the second value.
Declaration
public static void IsLessOrEqual(this Assert assert, ushort expected, ushort actual, string message, params object[] parameters)
Parameters
| Type | Name | Description |
|---|---|---|
| Assert | assert | The |
| System.UInt16 | expected | The first ushort to compare. This is the ushort the tests expects. |
| System.UInt16 | actual | The second ushort to compare. This is the ushort produced by the code under test. |
| System.String | message | The message to include in the exception when |
| System.Object[] | parameters | An array of parameters to use when formatting |
IsLessOrEqual(Assert, UInt32, UInt32)
Verifies that the first value is less than or equal to or equal to the second value.
Declaration
public static void IsLessOrEqual(this Assert assert, uint expected, uint actual)
Parameters
| Type | Name | Description |
|---|---|---|
| Assert | assert | The |
| System.UInt32 | expected | The first uint to compare. This is the uint the tests expects. |
| System.UInt32 | actual | The second uint to compare. This is the uint produced by the code under test. |
IsLessOrEqual(Assert, UInt32, UInt32, String)
Verifies that the first value is less than or equal to or equal to the second value.
Declaration
public static void IsLessOrEqual(this Assert assert, uint expected, uint actual, string message)
Parameters
| Type | Name | Description |
|---|---|---|
| Assert | assert | The |
| System.UInt32 | expected | The first uint to compare. This is the uint the tests expects. |
| System.UInt32 | actual | The second uint to compare. This is the uint produced by the code under test. |
| System.String | message | The message to include in the exception when |
IsLessOrEqual(Assert, UInt32, UInt32, String, Object[])
Verifies that the first value is less than or equal to or equal to the second value.
Declaration
public static void IsLessOrEqual(this Assert assert, uint expected, uint actual, string message, params object[] parameters)
Parameters
| Type | Name | Description |
|---|---|---|
| Assert | assert | The |
| System.UInt32 | expected | The first uint to compare. This is the uint the tests expects. |
| System.UInt32 | actual | The second uint to compare. This is the uint produced by the code under test. |
| System.String | message | The message to include in the exception when |
| System.Object[] | parameters | An array of parameters to use when formatting |
IsLessOrEqual(Assert, UInt64, UInt64)
Verifies that the first value is less than or equal to or equal to the second value.
Declaration
public static void IsLessOrEqual(this Assert assert, ulong expected, ulong actual)
Parameters
| Type | Name | Description |
|---|---|---|
| Assert | assert | The |
| System.UInt64 | expected | The first ulong to compare. This is the ulong the tests expects. |
| System.UInt64 | actual | The second ulong to compare. This is the ulong produced by the code under test. |
IsLessOrEqual(Assert, UInt64, UInt64, String)
Verifies that the first value is less than or equal to or equal to the second value.
Declaration
public static void IsLessOrEqual(this Assert assert, ulong expected, ulong actual, string message)
Parameters
| Type | Name | Description |
|---|---|---|
| Assert | assert | The |
| System.UInt64 | expected | The first ulong to compare. This is the ulong the tests expects. |
| System.UInt64 | actual | The second ulong to compare. This is the ulong produced by the code under test. |
| System.String | message | The message to include in the exception when |
IsLessOrEqual(Assert, UInt64, UInt64, String, Object[])
Verifies that the first value is less than or equal to or equal to the second value.
Declaration
public static void IsLessOrEqual(this Assert assert, ulong expected, ulong actual, string message, params object[] parameters)
Parameters
| Type | Name | Description |
|---|---|---|
| Assert | assert | The |
| System.UInt64 | expected | The first ulong to compare. This is the ulong the tests expects. |
| System.UInt64 | actual | The second ulong to compare. This is the ulong produced by the code under test. |
| System.String | message | The message to include in the exception when |
| System.Object[] | parameters | An array of parameters to use when formatting |
IsLessOrEqual<T>(Assert, T, T)
Verifies that the first value is less than or equal to the second value.
Declaration
public static void IsLessOrEqual<T>(this Assert assert, T expected, T actual)
where T : IComparable
Parameters
| Type | Name | Description |
|---|---|---|
| Assert | assert | The |
| T | expected | The first |
| T | actual | The second |
Type Parameters
| Name | Description |
|---|---|
| T | The type of the values to compare. |
IsLessOrEqual<T>(Assert, T, T, String)
Verifies that the first value is less than or equal to the second value.
Declaration
public static void IsLessOrEqual<T>(this Assert assert, T expected, T actual, string message)
where T : IComparable
Parameters
| Type | Name | Description |
|---|---|---|
| Assert | assert | The |
| T | expected | The first |
| T | actual | The second |
| System.String | message | The message to include in the exception when |
Type Parameters
| Name | Description |
|---|---|
| T | The type of the values to compare. |
IsLessOrEqual<T>(Assert, T, T, String, Object[])
Verifies that the first value is less than or equal to the second value.
Declaration
public static void IsLessOrEqual<T>(this Assert assert, T expected, T actual, string message, params object[] parameters)
where T : IComparable
Parameters
| Type | Name | Description |
|---|---|---|
| Assert | assert | The |
| T | expected | The first |
| T | actual | The second |
| System.String | message | The message to include in the exception when |
| System.Object[] | parameters | An array of parameters to use when formatting |
Type Parameters
| Name | Description |
|---|---|
| T | The type of the values to compare. |
IsNaN(Assert, Double)
Verifies that the value is
Declaration
public static void IsNaN(this Assert assert, double value)
Parameters
| Type | Name | Description |
|---|---|---|
| Assert | assert | The |
| System.Double | value | The value to test. |
IsNaN(Assert, Double, String)
Verifies that the value is
Declaration
public static void IsNaN(this Assert assert, double value, string message)
Parameters
| Type | Name | Description |
|---|---|---|
| Assert | assert | The |
| System.Double | value | The value to test. |
| System.String | message | A message to display. This message can be seen in the unit test results. |
IsNaN(Assert, Double, String, Object[])
Verifies that the value is
Declaration
public static void IsNaN(this Assert assert, double value, string message, params object[] parameters)
Parameters
| Type | Name | Description |
|---|---|---|
| Assert | assert | The |
| System.Double | value | The value to test. |
| System.String | message | A message to display. This message can be seen in the unit test results. |
| System.Object[] | parameters | An array of parameters to use when formatting |
IsNaN(Assert, Single)
Verifies that the value is
Declaration
public static void IsNaN(this Assert assert, float value)
Parameters
| Type | Name | Description |
|---|---|---|
| Assert | assert | The |
| System.Single | value | The value to test. |
IsNaN(Assert, Single, String)
Verifies that the value is
Declaration
public static void IsNaN(this Assert assert, float value, string message)
Parameters
| Type | Name | Description |
|---|---|---|
| Assert | assert | The |
| System.Single | value | The value to test. |
| System.String | message | A message to display. This message can be seen in the unit test results. |
IsNaN(Assert, Single, String, Object[])
Verifies that the value is
Declaration
public static void IsNaN(this Assert assert, float value, string message, params object[] parameters)
Parameters
| Type | Name | Description |
|---|---|---|
| Assert | assert | The |
| System.Single | value | The value to test. |
| System.String | message | A message to display. This message can be seen in the unit test results. |
| System.Object[] | parameters | An array of parameters to use when formatting |
IsNotAssignableFrom<T>(Assert, Object)
Asserts that an object may not be assigned a value of a given
Declaration
public static void IsNotAssignableFrom<T>(this Assert assert, object value)
Parameters
| Type | Name | Description |
|---|---|---|
| Assert | assert | The |
| System.Object | value | The value to be tested. |
Type Parameters
| Name | Description |
|---|---|
| T |
IsNotAssignableFrom<T>(Assert, Object, String)
Asserts that an object may not be assigned a value of a given
Declaration
public static void IsNotAssignableFrom<T>(this Assert assert, object value, string message)
Parameters
| Type | Name | Description |
|---|---|---|
| Assert | assert | The |
| System.Object | value | The value to be tested. |
| System.String | message | A message to display. This message can be seen in the unit test results. |
Type Parameters
| Name | Description |
|---|---|
| T |
IsNotAssignableFrom<T>(Assert, Object, String, Object[])
Asserts that an object may not be assigned a value of a given
Declaration
public static void IsNotAssignableFrom<T>(this Assert assert, object value, string message, params object[] parameters)
Parameters
| Type | Name | Description |
|---|---|---|
| Assert | assert | The |
| System.Object | value | The value to be tested. |
| System.String | message | A message to display. This message can be seen in the unit test results. |
| System.Object[] | parameters | An array of parameters to use when formatting |
Type Parameters
| Name | Description |
|---|---|
| T |
IsNotEmpty(Assert, Nullable<String>)
Asserts that a string is not empty.
Declaration
public static void IsNotEmpty(this Assert assert, string? value)
Parameters
| Type | Name | Description |
|---|---|---|
| Assert | assert | The |
| System.Nullable<System.String> | value | The value to be tested. |
IsNotEmpty(Assert, Nullable<String>, String)
Asserts that a string is not empty.
Declaration
public static void IsNotEmpty(this Assert assert, string? value, string message)
Parameters
| Type | Name | Description |
|---|---|---|
| Assert | assert | The |
| System.Nullable<System.String> | value | The value to be tested. |
| System.String | message | A message to display. This message can be seen in the unit test results. |
IsNotEmpty(Assert, Nullable<String>, String, Object[])
Asserts that a string is not empty.
Declaration
public static void IsNotEmpty(this Assert assert, string? value, string message, params object[] parameters)
Parameters
| Type | Name | Description |
|---|---|---|
| Assert | assert | The |
| System.Nullable<System.String> | value | The value to be tested. |
| System.String | message | A message to display. This message can be seen in the unit test results. |
| System.Object[] | parameters | An array of parameters to use when formatting |
IsTrue(Assert, Nullable<Boolean>)
Verifies that the specified condition is true. The assertion fails if the condition is false.
Declaration
public static void IsTrue(this Assert assert, bool? condition)
Parameters
| Type | Name | Description |
|---|---|---|
| Assert | assert | The |
| System.Nullable<System.Boolean> | condition | The condition to verify is true. |
IsTrue(Assert, Nullable<Boolean>, String)
Verifies that the specified condition is true. The assertion fails if the condition is false. Displays a message if the assertion fails.
Declaration
public static void IsTrue(this Assert assert, bool? condition, string message)
Parameters
| Type | Name | Description |
|---|---|---|
| Assert | assert | The |
| System.Nullable<System.Boolean> | condition | The condition to verify is true. |
| System.String | message | A message to display if the assertion fails. This message can be seen in the unit test results. |
IsTrue(Assert, Nullable<Boolean>, String, Object[])
Verifies that the specified condition is true. The assertion fails if the condition is false. Displays a message if the assertion fails, and applies the specified formatting to it.
Declaration
public static void IsTrue(this Assert assert, bool? condition, string message, params object[] parameters)
Parameters
| Type | Name | Description |
|---|---|---|
| Assert | assert | The |
| System.Nullable<System.Boolean> | condition | The condition to verify is true. |
| System.String | message | A message to display if the assertion fails. This message can be seen in the unit test results. |
| System.Object[] | parameters | An array of parameters to use when formatting |
IsType<T>(Assert, Object)
Asserts that an object is of the given
Declaration
public static void IsType<T>(this Assert assert, object value)
Parameters
| Type | Name | Description |
|---|---|---|
| Assert | assert | The |
| System.Object | value | The value to be tested. |
Type Parameters
| Name | Description |
|---|---|
| T | The expected |
IsType<T>(Assert, Object, String)
Asserts that an object is of the given
Declaration
public static void IsType<T>(this Assert assert, object value, string message)
Parameters
| Type | Name | Description |
|---|---|---|
| Assert | assert | The |
| System.Object | value | The value to be tested. |
| System.String | message | A message to display. This message can be seen in the unit test results. |
Type Parameters
| Name | Description |
|---|---|
| T | The expected |
IsType<T>(Assert, Object, String, Object[])
Asserts that an object is of the given
Declaration
public static void IsType<T>(this Assert assert, object value, string message, params object[] parameters)
Parameters
| Type | Name | Description |
|---|---|---|
| Assert | assert | The |
| System.Object | value | The value to be tested. |
| System.String | message | A message to display. This message can be seen in the unit test results. |
| System.Object[] | parameters | An array of parameters to use when formatting |
Type Parameters
| Name | Description |
|---|---|
| T | The expected |