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.Has Class Reference

Helper class with properties and methods that supply a number of constraints used in Asserts. More...

Static Public Member Functions

static ConstraintExpression Exactly (int expectedCount)
 Returns a ConstraintExpression, which will apply the following constraint to all members of a collection, succeeding only if a specified number of them succeed. More...
 
static
ResolvableConstraintExpression 
Property (string name)
 Returns a new PropertyConstraintExpression, which will either test for the existence of the named property on the object being tested or apply any following constraint to that property. More...
 
static
ResolvableConstraintExpression 
Attribute (Type expectedType)
 Returns a new AttributeConstraint checking for the presence of a particular attribute on an object. More...
 
static
ResolvableConstraintExpression 
Attribute< T > ()
 Returns a new AttributeConstraint checking for the presence of a particular attribute on an object. More...
 
static CollectionContainsConstraint Member (object expected)
 Returns a new CollectionContainsConstraint checking for the presence of a particular object in the collection. More...
 

Properties

static ConstraintExpression No [get]
 Returns a ConstraintExpression that negates any following constraint. More...
 
static ConstraintExpression All [get]
 Returns a ConstraintExpression, which will apply the following constraint to all members of a collection, succeeding if all of them succeed. More...
 
static ConstraintExpression Some [get]
 Returns a ConstraintExpression, which will apply the following constraint to all members of a collection, succeeding if at least one of them succeeds. More...
 
static ConstraintExpression None [get]
 Returns a ConstraintExpression, which will apply the following constraint to all members of a collection, succeeding if all of them fail. More...
 
static
ResolvableConstraintExpression 
Length [get]
 Returns a new ConstraintExpression, which will apply the following constraint to the Length property of the object being tested. More...
 
static
ResolvableConstraintExpression 
Count [get]
 Returns a new ConstraintExpression, which will apply the following constraint to the Count property of the object being tested. More...
 
static
ResolvableConstraintExpression 
Message [get]
 Returns a new ConstraintExpression, which will apply the following constraint to the Message property of the object being tested. More...
 
static
ResolvableConstraintExpression 
InnerException [get]
 Returns a new ConstraintExpression, which will apply the following constraint to the InnerException property of the object being tested. More...
 

Detailed Description

Helper class with properties and methods that supply a number of constraints used in Asserts.

Member Function Documentation

static ConstraintExpression NUnit.Framework.Has.Exactly ( int  expectedCount)
inlinestatic

Returns a new AttributeConstraint checking for the presence of a particular attribute on an object.

Property Documentation

ConstraintExpression NUnit.Framework.Has.No
staticget
ConstraintExpression NUnit.Framework.Has.All
staticget

Returns a ConstraintExpression, which will apply the following constraint to all members of a collection, succeeding if all of them succeed.

Referenced by NUnit.Framework.Tests.AssertSyntaxTests.AllItemsTests(), NUnit.Framework.Tests.AssertSyntaxTests.CollectionContainsTests(), and NUnit.Framework.Tests.AssertSyntaxTests.PropertyTests().

ConstraintExpression NUnit.Framework.Has.None
staticget
ResolvableConstraintExpression NUnit.Framework.Has.Message
staticget

Returns a new ConstraintExpression, which will apply the following constraint to the Message property of the object being tested.

Referenced by NUnit.Framework.Syntax.MessageTest.SetUp().

ResolvableConstraintExpression NUnit.Framework.Has.InnerException
staticget

Returns a new ConstraintExpression, which will apply the following constraint to the InnerException property of the object being tested.


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