ThrowsExceptionConstraint public class ThrowsExceptionConstraint : Constraint ThrowsExceptionConstraint tests that an exception has been thrown, without any further tests. Documentation Code public ThrowsExceptionConstraint()