NUnit.Framework.Throws public abstract class Throws Documentation Code public static ExactTypeConstraint ArgumentException { get; } public static ExactTypeConstraint ArgumentNullException { get; } public static ResolvableConstraintExpression Exception { get; } public static ResolvableConstraintExpression InnerException { get; } public static ExactTypeConstraint InvalidOperationException { get; } public static ThrowsNothingConstraint Nothing { get; } public static ExactTypeConstraint TargetInvocationException { get; } protected Throws() public static InstanceOfTypeConstraint InstanceOf(Type expectedType) public static InstanceOfTypeConstraint InstanceOf<TExpected>() where TExpected : Exception Creates a constraint specifying the type of exception expected public static ExactTypeConstraint TypeOf(Type expectedType) Creates a constraint specifying the exact type of exception expected public static ExactTypeConstraint TypeOf<TExpected>() where TExpected : Exception Creates a constraint specifying the exact type of exception expected