Summary
Helper class with properties and methods that supply
constraints that operate on exceptions.
- Namespace
- TCLite
- Base Types
-
- object
graph BT
Type-->Base0["object"]
Type["Throws"]
class Type type-node
Syntax
public abstract class Throws
Properties
Name | Value | Summary |
---|---|---|
ArgumentException | ExactTypeConstraint |
Creates a constraint specifying an expected ArgumentException
static
|
Argument |
ExactTypeConstraint |
Creates a constraint specifying an expected ArgumentNullException
static
|
Exception | Resolvable |
Creates a constraint specifying an expected exception
static
|
Invalid |
ExactTypeConstraint |
Creates a constraint specifying an expected InvalidOperationException
static
|
Nothing | Throws |
Creates a constraint specifying that no exception is thrown
static
|
Target |
ExactTypeConstraint |
Creates a constraint specifying an expected TargetInvocationException
static
|
Methods
Name | Value | Summary |
---|---|---|
InstanceOf |
Instance |
Creates a constraint specifying the type of exception expected
static
|
InstanceOf |
Instance |
Creates a constraint specifying the type of exception expected
static
|
TypeOf |
ExactTypeConstraint |
Creates a constraint specifying the exact type of exception expected
static
|
TypeOf |
ExactTypeConstraint |
Creates a constraint specifying the exact type of exception expected
static
|