IGLib  1.7.2
The IGLib base library EXTENDED - with other lilbraries and applications.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Events Macros
NUnit.Framework.Throws Class Reference

Helper class with properties and methods that supply constraints that operate on exceptions. More...

Static Public Member Functions

static ExactTypeConstraint TypeOf (Type expectedType)
 Creates a constraint specifying the exact type of exception expected More...
 
static ExactTypeConstraint TypeOf< TExpected > ()
 Creates a constraint specifying the exact type of exception expected More...
 
static InstanceOfTypeConstraint InstanceOf (Type expectedType)
 Creates a constraint specifying the type of exception expected More...
 
static InstanceOfTypeConstraint InstanceOf< TExpected > ()
 Creates a constraint specifying the type of exception expected More...
 

Properties

static
ResolvableConstraintExpression 
Exception [get]
 Creates a constraint specifying an expected exception More...
 
static
ResolvableConstraintExpression 
InnerException [get]
 Creates a constraint specifying an exception with a given InnerException More...
 
static ExactTypeConstraint TargetInvocationException [get]
 Creates a constraint specifying an expected TargetInvocationException More...
 
static ExactTypeConstraint ArgumentException [get]
 Creates a constraint specifying an expected ArgumentException More...
 
static ExactTypeConstraint ArgumentNullException [get]
 Creates a constraint specifying an expected ArgumentNUllException More...
 
static ExactTypeConstraint InvalidOperationException [get]
 Creates a constraint specifying an expected InvalidOperationException More...
 
static ThrowsNothingConstraint Nothing [get]
 Creates a constraint specifying that no exception is thrown More...
 

Detailed Description

Helper class with properties and methods that supply constraints that operate on exceptions.

Member Function Documentation

static ExactTypeConstraint NUnit.Framework.Throws.TypeOf ( Type  expectedType)
inlinestatic

Creates a constraint specifying the exact type of exception expected

Referenced by NUnit.Framework.Attributes.MaxTimeTests.FailureReport(), NUnit.Framework.Constraints.RangeTests.InRangeFails(), NUnit.Common.Tests.OutputSpecificationTests.MultipleFormatSpecifiersNotAllowed(), NUnit.Common.Tests.OutputSpecificationTests.MultipleTransformSpecifiersNotAllowed(), NUnit.Framework.Constraints.RangeTests.NotInRangeFails(), NUnit.Engine.Services.Tests.ResultServiceTests.NUnit3Format_NullArgument_ThrowsArgumentNullException(), NUnit.Common.Tests.OutputSpecificationTests.SpecMayNotBeNull(), NUnit.Common.Tests.OutputSpecificationTests.SpecOptionMustContainEqualSign(), NUnit.Common.Tests.OutputSpecificationTests.SpecOptionMustContainJustOneEqualSign(), NUnit.Framework.Tests.Constraints.ToleranceTests.TestModeMustFollowTolerance(), NUnit.Framework.Tests.Constraints.ToleranceTests.TestModesCanOnlyBeUsedOnce(), NUnit.Framework.Tests.Constraints.ToleranceTests.TestNumericToleranceRequired(), NUnit.Common.Tests.TestSelectionParserTests.TestParser_InvalidInput(), NUnit.Framework.Tests.Constraints.ToleranceTests.TestWithinCanOnlyBeUsedOnce(), NUnit.Framework.Assertions.AssertFailTests.ThrowsAssertionException(), NUnit.Framework.Assertions.AssertFailTests.ThrowsAssertionException_MessageSpecified(), NUnit.Framework.Assertions.AssertFailTests.ThrowsAssertionExceptionWithMessage(), NUnit.Framework.Assertions.AssertFailTests.ThrowsAssertionExceptionWithMessageAndArgs(), NUnit.Framework.Assertions.AssertIgnoreTests.ThrowsIgnoreException(), NUnit.Framework.Assertions.AssertIgnoreTests.ThrowsIgnoreExceptionWithMessage(), NUnit.Framework.Assertions.AssertIgnoreTests.ThrowsIgnoreExceptionWithMessageAndArgs(), NUnit.Framework.Assertions.AssertInconclusiveTests.ThrowsInconclusiveException(), NUnit.Framework.Assertions.AssertInconclusiveTests.ThrowsInconclusiveExceptionWithMessage(), NUnit.Framework.Assertions.AssertInconclusiveTests.ThrowsInconclusiveExceptionWithMessageAndArgs(), NUnit.Framework.Assertions.AssertPassTests.ThrowsSuccessException(), NUnit.Framework.Assertions.AssertPassTests.ThrowsSuccessExceptionWithMessage(), NUnit.Framework.Assertions.AssertPassTests.ThrowsSuccessExceptionWithMessageAndArgs(), NUnit.Framework.Syntax.ThrowsTests.ThrowsTypeOf(), NUnit.Framework.Syntax.ThrowsTests.ThrowsTypeOfAndConstraint(), NUnit.Framework.Syntax.ThrowsTests.ThrowsTypeOfWithConstraint(), and NUnit.Common.Tests.OutputSpecificationTests.TransformWithNonUserFormatNotAllowed().

static ExactTypeConstraint NUnit.Framework.Throws.TypeOf< TExpected > ( )
inlinestatic

Creates a constraint specifying the exact type of exception expected

static InstanceOfTypeConstraint NUnit.Framework.Throws.InstanceOf< TExpected > ( )
inlinestatic

Creates a constraint specifying the type of exception expected

Property Documentation

ResolvableConstraintExpression NUnit.Framework.Throws.InnerException
staticget

Creates a constraint specifying an exception with a given InnerException

ExactTypeConstraint NUnit.Framework.Throws.TargetInvocationException
staticget

Creates a constraint specifying an expected TargetInvocationException

ExactTypeConstraint NUnit.Framework.Throws.ArgumentNullException
staticget
ExactTypeConstraint NUnit.Framework.Throws.InvalidOperationException
staticget

Creates a constraint specifying an expected InvalidOperationException

ThrowsNothingConstraint NUnit.Framework.Throws.Nothing
staticget

Creates a constraint specifying that no exception is thrown


The documentation for this class was generated from the following file: