Method | Description | |
---|---|---|
AreEqual ( object expected, object actual, string message = null ) : void |
Verifies that two specified objects are equal. The assertion fails if the objects are not equal. expected and actual must be the same type. |
|
AreNotEqual ( object expected, object actual, string message = null ) : void |
Verifies that two specified objects are not equal. The assertion fails if the objects are equal. expected and actual must be the same type. |
|
AreNotSame ( object expected, object actual, string message = null ) : void |
Verifies that two specified object variables refer to different objects. The assertion fails if they refer to the same object.
|
|
AreSame ( object expected, object actual, string message = null ) : void |
Verifies that two specified object variables refer to the same object. The assertion fails if they refer to different objects.
|
|
Fail ( string message = null ) : void |
Fails the assertion without checking any conditions.
|
|
Inconclusive ( string message = null ) : void |
Indicates that the assertion cannot be verified.
|
|
IsFalse ( bool condition, string message = null ) : void |
Verifies that the specified condition is
|
|
IsNotNothing ( object value, string message = null ) : void |
Verifies that the specified object is not
|
|
IsNothing ( object value, string message = null ) : void |
Verifies that the specified object is
|
|
IsTrue ( bool condition, string message = null ) : void |
Verifies that the specified condition is
|
public AreEqual ( object expected, object actual, string message = null ) : void | ||
expected | object | The expected value. |
actual | object | The actual value. |
message | string | An optional message to display if the assertion fails. |
return | void |
public AreNotEqual ( object expected, object actual, string message = null ) : void | ||
expected | object | The expected value. |
actual | object | The actual value. |
message | string | An optional message to display if the assertion fails. |
return | void |
public AreNotSame ( object expected, object actual, string message = null ) : void | ||
expected | object | The expected reference. |
actual | object | The actual reference. |
message | string | An optional message to display if the assertion fails. |
return | void |
public AreSame ( object expected, object actual, string message = null ) : void | ||
expected | object | The expected reference. |
actual | object | The actual reference. |
message | string | An optional message to display if the assertion fails. |
return | void |
public Fail ( string message = null ) : void | ||
message | string | An optional message to display. |
return | void |
public Inconclusive ( string message = null ) : void | ||
message | string | An optional message to display. |
return | void |
public IsFalse ( bool condition, string message = null ) : void | ||
condition | bool | Any Boolean value or expression. |
message | string | An optional message to display if the assertion fails. |
return | void |
public IsNotNothing ( object value, string message = null ) : void | ||
value | object | The object to verify. |
message | string | An optional message to display if the assertion fails. |
return | void |
public IsNothing ( object value, string message = null ) : void | ||
value | object | The object to verify. |
message | string | An optional message to display if the assertion fails. |
return | void |
public IsTrue ( bool condition, string message = null ) : void | ||
condition | bool | Any Boolean value or expression. |
message | string | An optional message to display if the assertion fails. |
return | void |