Throws Class

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
ArgumentNullException ExactTypeConstraint
Creates a constraint specifying an expected ArgumentNullException
static
Exception ResolvableConstraintExpression
Creates a constraint specifying an expected exception
static
InvalidOperationException ExactTypeConstraint
Creates a constraint specifying an expected InvalidOperationException
static
Nothing ThrowsNothingConstraint
Creates a constraint specifying that no exception is thrown
static
TargetInvocationException ExactTypeConstraint
Creates a constraint specifying an expected TargetInvocationException
static

Methods

Name Value Summary
InstanceOf(Type) InstanceOfTypeConstraint
Creates a constraint specifying the type of exception expected
static
InstanceOf<TExpected>() InstanceOfTypeConstraint
Creates a constraint specifying the type of exception expected
static
TypeOf(Type) ExactTypeConstraint
Creates a constraint specifying the exact type of exception expected
static
TypeOf<TExpected>() ExactTypeConstraint
Creates a constraint specifying the exact type of exception expected
static