Tags method that should throw an exception if a predicate is true.

Namespace: MbUnit.Framework
Assembly:  MbUnit.Framework (in MbUnit.Framework.dll)

Syntax

         
 C#  Visual Basic  Visual C++ 
[AttributeUsageAttribute(AttributeTargets.Class|AttributeTargets.Method, AllowMultiple = true, 
	Inherited = true)]
public class ConditionalExceptionAttribute : ExpectedExceptionAttribute
<AttributeUsageAttribute(AttributeTargets.Class Or AttributeTargets.Method, AllowMultiple := True,  _
	Inherited := True)> _
Public Class ConditionalExceptionAttribute _
	Inherits ExpectedExceptionAttribute
[AttributeUsageAttribute(AttributeTargets::Class|AttributeTargets::Method, AllowMultiple = true, 
	Inherited = true)]
public ref class ConditionalExceptionAttribute : public ExpectedExceptionAttribute

Members

               
 All Members  Constructors Public method  Properties Public property  Methods Public method  Explicit Interface Implementations Explicit interface implemetation 
 Public

 Protected
 Instance

 Static Static member
 Declared

 Inherited
 XNA Framework Only Supported by the XNA Framework

 .NET Compact Framework Only Supported by the .NET Compact Framework

 MemberDescription
Public methodConditionalExceptionAttribute(Type, String)
Public methodConditionalExceptionAttribute(Type, String, String)
Public propertyDescription (Inherited from PatternAttribute.)
Public methodEquals(Object)
Returns a value that indicates whether this instance is equal to a specified object.
(Inherited from Attribute.)
Public propertyExceptionType
The expected exception.
(Inherited from ExpectedExceptionAttribute.)
Public propertyExpectedMessage
The expected message text.
(Inherited from ExpectedExceptionAttribute.)
Protected methodFinalize()()()
Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode()()()
Returns the hash code for this instance.
(Inherited from Attribute.)
Explicit interface implemetationPrivate method_Attribute..::.GetIDsOfNames(Guid%, IntPtr, UInt32, UInt32, IntPtr) (Inherited from Attribute.)
Public methodGetInvoker(IRunInvoker) (Overrides ExpectedExceptionAttribute..::.GetInvoker(IRunInvoker).)
Public methodGetType()()()
Gets the Type of the current instance.
(Inherited from Object.)
Explicit interface implemetationPrivate method_Attribute..::.GetTypeInfo(UInt32, UInt32, IntPtr) (Inherited from Attribute.)
Explicit interface implemetationPrivate method_Attribute..::.GetTypeInfoCount(UInt32%) (Inherited from Attribute.)
Public propertyInnerExceptionType
The expected inner exception.
(Inherited from ExpectedExceptionAttribute.)
Explicit interface implemetationPrivate method_Attribute..::.Invoke(UInt32, Guid%, UInt32, Int16, IntPtr, IntPtr, IntPtr, IntPtr) (Inherited from Attribute.)
Public methodIsDefaultAttribute()()()
When overridden in a derived class, indicates whether the value of this instance is the default value for the derived class.
(Inherited from Attribute.)
Public methodMatch(Object)
When overridden in a derived class, returns a value that indicates whether this instance equals a specified object.
(Inherited from Attribute.)
Protected methodMemberwiseClone()()()
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public propertyPredicateMethodName
Public methodToString()()()
Returns a String that represents the current Object.
(Inherited from Object.)
Public propertyTypeId
When implemented in a derived class, gets a unique identifier for this Attribute.
(Inherited from Attribute.)

Inheritance Hierarchy

See Also