IGLib
1.7.2
The IGLib base library EXTENDED - with other lilbraries and applications.
|
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... | |
Helper class with properties and methods that supply a number of constraints used in Asserts.
|
inlinestatic |
Returns a ConstraintExpression, which will apply the following constraint to all members of a collection, succeeding only if a specified number of them succeed.
References NUnit.Framework.Constraints.ConstraintExpression.Exactly().
Referenced by NUnit.Framework.Constraints.ConstraintFactory.Exactly(), NUnit.Framework.Constraints.ExactCountConstraintTests.ExactlyOneItemMatches(), NUnit.Framework.Constraints.ExactCountConstraintTests.ExactlyTwoItemsMatch(), and NUnit.Framework.Constraints.ExactCountConstraintTests.ZeroItemsMatch().
|
inlinestatic |
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.
References NUnit.Framework.Constraints.ConstraintExpression.Property().
Referenced by NUnit.Framework.Syntax.ArbitraryConstraintMatching.ApplyMatchesToProperty(), NUnit.Framework.Internal.Filters.NotFilterTests.BuildFromXml(), NUnit.Framework.Constraints.ToStringTests.CanDisplayPrefixConstraints_Resolved(), NUnit.Framework.Constraints.ToStringTests.CanDisplaySimpleConstraints_Resolved(), NUnit.Framework.Constraints.ToStringTests.CanDisplaySimpleConstraints_Unresolved(), NUnit.Framework.Constraints.ToStringTests.DisplayPrefixConstraints_Unresolved(), NUnit.Framework.Syntax.PropertySyntaxVariations.ExistenceTest(), NUnit.Framework.Constraints.ConstraintFactory.Property(), NUnit.Framework.Tests.AssertSyntaxTests.PropertyTests(), NUnit.Framework.Syntax.PropertySyntaxVariations.SeparateConstraintTest(), NUnit.Framework.Syntax.PropertyExistsTest.SetUp(), NUnit.Framework.Syntax.PropertyExistsTest_AndFollows.SetUp(), NUnit.Framework.Syntax.AfterTest_PropertyTest.SetUp(), NUnit.Framework.Syntax.PropertyTest_ConstraintFollows.SetUp(), NUnit.Framework.Syntax.PropertyTest_NotFollows.SetUp(), and NUnit.Framework.Syntax.OperatorPrecedenceTests.WithTests().
|
inlinestatic |
Returns a new AttributeConstraint checking for the presence of a particular attribute on an object.
References NUnit.Framework.Constraints.ConstraintExpression.Attribute().
Referenced by NUnit.Framework.Constraints.ConstraintFactory.Attribute(), NUnit.Framework.Constraints.AttributeExistsConstraintTests.AttributeTestPropertyValueOnMethodInfo(), NUnit.Framework.Constraints.ToStringTests.CanDisplaySimpleConstraints_Resolved(), NUnit.Framework.Constraints.ToStringTests.CanDisplaySimpleConstraints_Unresolved(), NUnit.Framework.Constraints.ToStringTests.DisplayPrefixConstraints_Unresolved(), NUnit.Framework.Syntax.AttributeTest.SetUp(), NUnit.Framework.Syntax.AttributeTestWithFollowingConstraint.SetUp(), and NUnit.Framework.Syntax.AttributeTest_Generic.SetUp().
|
inlinestatic |
Returns a new AttributeConstraint checking for the presence of a particular attribute on an object.
|
inlinestatic |
Returns a new CollectionContainsConstraint checking for the presence of a particular object in the collection.
Referenced by NUnit.Framework.Internal.PropertyBagTests.AllKeysAreListed(), NUnit.Framework.Tests.AssertSyntaxTests.CollectionContainsTests(), NUnit.Framework.CollectionAssert.Contains(), NUnit.Framework.Syntax.AfterSyntaxUsingAnonymousDelegates.HasMemberTest(), NUnit.Framework.Syntax.AfterSyntaxUsingLambda.HasMemberTest(), NUnit.Framework.Internal.PropertyBagTests.SetAddsNewSingleValue(), NUnit.Framework.Syntax.CollectionContainsTest.SetUp(), and NUnit.Framework.Internal.TestMethodSignatureTests.TestMethodWithMultipleTestCasesUsesCorrectNames().
|
staticget |
Returns a ConstraintExpression that negates any following constraint.
Referenced by NUnit.Framework.Tests.AssertSyntaxTests.CollectionContainsTests(), NUnit.Framework.CollectionAssert.DoesNotContain(), and NUnit.Framework.Tests.AssertSyntaxTests.PropertyTests().
|
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().
|
staticget |
Returns a ConstraintExpression, which will apply the following constraint to all members of a collection, succeeding if at least one of them succeeds.
Referenced by NUnit.Framework.Tests.AssertSyntaxTests.AllItemsTests(), NUnit.Framework.Tests.AssertSyntaxTests.CollectionContainsTests(), NUnit.Framework.Tests.AssertSyntaxTests.PropertyTests(), NUnit.Framework.Syntax.SomeTest.SetUp(), NUnit.Framework.Syntax.SomeTest_BeforeBinaryOperators.SetUp(), NUnit.Framework.Syntax.SomeTest_NestedSome.SetUp(), NUnit.Framework.Syntax.SomeTest_UseOfAndSome.SetUp(), NUnit.Framework.Tests.AssertSyntaxTests.SomeItemTests(), and NUnit.Framework.Syntax.OperatorPrecedenceTests.SomeTests().
|
staticget |
Returns a ConstraintExpression, which will apply the following constraint to all members of a collection, succeeding if all of them fail.
Referenced by NUnit.Framework.Tests.AssertSyntaxTests.AllItemsTests(), NUnit.Framework.Tests.AssertSyntaxTests.CollectionContainsTests(), NUnit.Framework.Tests.AssertSyntaxTests.NoItemTests(), NUnit.Framework.Syntax.NoneTest.SetUp(), and NUnit.Framework.Syntax.OperatorPrecedenceTests.SomeTests().
|
staticget |
Returns a new ConstraintExpression, which will apply the following constraint to the Length property of the object being tested.
Referenced by NUnit.Engine.Tests.RuntimeFrameworkTests.CanListAvailableFrameworks(), NUnit.Framework.Syntax.PropertySyntaxVariations.ExistenceTest(), NUnit.Framework.Tests.AssertSyntaxTests.PropertyTests(), NUnit.Framework.Attributes.ApartmentAttributeTests.ChildFixtureRequiresMTA.RequiresMTAAtributeIsInheritable(), NUnit.Framework.Attributes.ApartmentAttributeTests.ChildFixtureRequiresSTA.RequiresSTAAtributeIsInheritable(), NUnit.Framework.Attributes.RequiresThreadAttributeTests.ChildFixtureRequiresThread.RequiresThreadAttributeIsInheritable(), NUnit.Framework.Syntax.PropertySyntaxVariations.SeparateConstraintTest(), and NUnit.Framework.Syntax.LengthTest.SetUp().
|
staticget |
Returns a new ConstraintExpression, which will apply the following constraint to the Count property of the object being tested.
Referenced by NUnit.Framework.Syntax.ArbitraryConstraintMatching.ApplyMatchesToProperty(), NUnit.Framework.Constraints.DelayedConstraintTests.CanTestContentsOfDelegateReturningList(), NUnit.Framework.Constraints.DelayedConstraintTests.CanTestContentsOfList(), NUnit.Framework.Tests.AssertSyntaxTests.PropertyTests(), and NUnit.Framework.Syntax.CountTest.SetUp().
|
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().
|
staticget |
Returns a new ConstraintExpression, which will apply the following constraint to the InnerException property of the object being tested.