Method | Description | |
---|---|---|
Contains ( object expected, ICollection actual ) : void |
Asserts that an object is contained in a collection.
|
|
Contains ( object expected, ICollection actual, string message ) : void |
Asserts that an object is contained in a collection.
|
|
Fail ( ) : void |
Throws an AssertionException. This is used by the other Assert functions.
|
|
Fail ( string message ) : void |
Throws an AssertionException with the message and arguments that are passed in. This is used by the other Assert functions.
|
|
Ignore ( ) : void |
Throws an IgnoreException. This causes the test to be reported as ignored.
|
|
Ignore ( string message ) : void |
Throws an IgnoreException with the message and arguments that are passed in. This causes the test to be reported as ignored.
|
|
Inconclusive ( ) : void |
Throws an InconclusiveException. This causes the test to be reported as Inconclusive.
|
|
Inconclusive ( string message ) : void |
Throws an InconclusiveException with the message and arguments that are passed in. This causes the test to be reported as inconclusive.
|
|
Multiple ( TestDelegate testDelegate ) : void |
Wraps code containing a series of assertions, which should all be executed, even if they fail. Failed results are saved and reported at the end of the code block.
|
|
Pass ( ) : void |
Throws a SuccessException with the message and arguments that are passed in. This allows a test to be cut short, with a result of success returned to NUnit.
|
|
Pass ( string message ) : void |
Throws a SuccessException with the message and arguments that are passed in. This allows a test to be cut short, with a result of success returned to NUnit.
|
|
Warn ( string message ) : void |
Issues a warning using the message and arguments provided.
|
Method | Description | |
---|---|---|
Assert ( ) : System |
We don't actually want any instances of this object, but some people like to inherit from it to add other static methods. Hence, the protected constructor disallows any instances of this object.
|
Method | Description | |
---|---|---|
Equals ( object a, object b ) : bool | ||
GetStackTrace ( ) : string | ||
IncrementAssertCount ( ) : void | ||
IssueWarning ( string message ) : void | ||
ReferenceEquals ( object a, object b ) : void | ||
ReportFailure ( ConstraintResult result, string message ) : void | ||
ReportFailure ( string message ) : void |
public static Contains ( object expected, ICollection actual ) : void | ||
expected | object | The expected object |
actual | ICollection | The collection to be examined |
return | void |
public static Contains ( object expected, ICollection actual, string message ) : void | ||
expected | object | The expected object |
actual | ICollection | The collection to be examined |
message | string | The message to display in case of failure |
return | void |
static public Fail ( string message ) : void | ||
message | string | The message to initialize the |
return | void |
static public Ignore ( string message ) : void | ||
message | string | The message to initialize the |
return | void |
static public Inconclusive ( string message ) : void | ||
message | string | The message to initialize the |
return | void |
public static Multiple ( TestDelegate testDelegate ) : void | ||
testDelegate | TestDelegate | A TestDelegate to be executed in Multiple Assertion mode. |
return | void |
static public Pass ( string message ) : void | ||
message | string | The message to initialize the |
return | void |
static public Warn ( string message ) : void | ||
message | string | The message to display. |
return | void |