IGLib
1.7.2
The IGLib base library EXTENDED - with other lilbraries and applications.
|
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... | |
Helper class with properties and methods that supply constraints that operate on exceptions.
|
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().
|
inlinestatic |
Creates a constraint specifying the exact type of exception expected
|
inlinestatic |
Creates a constraint specifying the type of exception expected
Referenced by NUnit.Engine.Services.Tests.ServiceManagerTests.InitializationFailure(), NUnit.Framework.Syntax.ThrowsTests.LambdaThrowsException(), NUnit.Framework.Syntax.ThrowsTests.LambdaThrowsExceptionWithMessage(), NUnit.Framework.Internal.RandomizerTests.RandomBoolWithProbabilityOutOfRange(), NUnit.Framework.Internal.RandomizerTests.RandomByteInRange_Reversed(), NUnit.Framework.Internal.RandomizerTests.RandomDecimalInRange_Reversed(), NUnit.Framework.Internal.RandomizerTests.RandomDecimalRangeTooGreat(), NUnit.Framework.Internal.RandomizerTests.RandomDoubleInRange_Reversed(), NUnit.Framework.Internal.RandomizerTests.RandomFloatInRange_Reversed(), NUnit.Framework.Internal.RandomizerTests.RandomLongInRange_Reversed(), NUnit.Framework.Internal.RandomizerTests.RandomSByteInRange_Reversed(), NUnit.Framework.Internal.RandomizerTests.RandomShortInRange_Reversed(), NUnit.Framework.Internal.RandomizerTests.RandomUintInRange_Reversed(), NUnit.Framework.Internal.RandomizerTests.RandomULongInRange_Reversed(), NUnit.Framework.Internal.RandomizerTests.RandomUShortInRange_Reversed(), and NUnit.Framework.Syntax.ThrowsTests.ThrowsInstanceOf().
|
inlinestatic |
Creates a constraint specifying the type of exception expected
|
staticget |
Creates a constraint specifying an expected exception
Referenced by NUnit.Framework.Assertions.AssertThrowsTests.CorrectExceptionThrown(), NUnit.Framework.Syntax.ThrowsTests.DelegateThrowsException(), NUnit.Framework.Tests.Constraints.DictionaryContainsKeyConstraintTests.FailsWhenKeyIsMissing(), NUnit.Framework.Tests.Constraints.DictionaryContainsValueConstraintTests.FailsWhenValueIsMissing(), NUnit.Framework.Syntax.ThrowsTests.ThrowsException(), NUnit.Framework.Syntax.ThrowsTests.ThrowsExceptionInstanceOf(), NUnit.Framework.Syntax.ThrowsTests.ThrowsExceptionTypeOf(), NUnit.Framework.Syntax.ThrowsTests.ThrowsExceptionTypeOfAndConstraint(), and NUnit.Framework.Syntax.ThrowsTests.ThrowsExceptionWithConstraint().
|
staticget |
Creates a constraint specifying an exception with a given InnerException
|
staticget |
Creates a constraint specifying an expected TargetInvocationException
|
staticget |
Creates a constraint specifying an expected ArgumentException
Referenced by NUnit.Framework.Attributes.ApartmentAttributeTests.ApartmentStateUnknownThrowsException(), NUnit.Engine.Drivers.Tests.NUnit3FrameworkDriverTests.ConstructController_MissingFile_ThrowsArgumentInvalid(), NUnit.Framework.Tests.Constraints.DictionaryContainsValueConstraintTests.FailsWhenNotUsedAgainstADictionary(), NUnit.Framework.Tests.Constraints.DictionaryContainsKeyConstraintTests.FailsWhenNotUsedAgainstADictionary(), NUnit.Engine.Services.Tests.ResultServiceTests.NUnit3Format_NonExistentTransform_ThrowsArgumentException(), and NUnit.Framework.Constraints.RangeTests.ShouldThrowExceptionIfFromIsLessThanTo().
|
staticget |
Creates a constraint specifying an expected ArgumentNUllException
Referenced by NUnit.Framework.Tests.ThrowsTests.ArgumentNullException_ConstraintMatchesThrownArgumentNullException(), and NUnit.Common.Tests.TokenizerTests.NullInputThrowsException().
|
staticget |
Creates a constraint specifying an expected InvalidOperationException
|
staticget |
Creates a constraint specifying that no exception is thrown