NUnit.Framework.Constraints.ThrowsConstraint public class ThrowsConstraint : PrefixConstraint ThrowsConstraint is used to test the exception thrown by a delegate by applying a constraint to it. Documentation Code namespace NUnit.Framework.Constraints { }