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.Tests.AssertSyntaxTests Class Reference

This test fixture attempts to exercise all the syntactic variations of Assert without getting into failures, errors or corner cases. Thus, some of the tests may be duplicated in other fixtures. More...

+ Inheritance diagram for NUnit.Framework.Tests.AssertSyntaxTests:
+ Collaboration diagram for NUnit.Framework.Tests.AssertSyntaxTests:

Public Member Functions

void IsNull ()
 
void IsNotNull ()
 
void IsTrue ()
 
void IsFalse ()
 
void IsNaN ()
 
void EmptyStringTests ()
 
void EmptyCollectionTests ()
 
void ExactTypeTests ()
 
void InstanceOfTests ()
 
void AssignableFromTypeTests ()
 
void SubstringTests ()
 
void StartsWithTests ()
 
void EndsWithTests ()
 
void EqualIgnoringCaseTests ()
 
void RegularExpressionTests ()
 
void EqualityTests ()
 
void EqualityTestsWithTolerance ()
 
void EqualityTestsWithTolerance_MixedFloatAndDouble ()
 
void EqualityTestsWithTolerance_MixingTypesGenerally ()
 
void ComparisonTests ()
 
void AllItemsTests ()
 
void SomeItemTests ()
 
void NoItemTests ()
 
void CollectionContainsTests ()
 
void CollectionEquivalenceTests ()
 
void SubsetTests ()
 
void PropertyTests ()
 
void NotTests ()
 
void NotOperator ()
 
void AndOperator ()
 
void OrOperator ()
 
void ComplexTests ()
 
void IsNull ()
 
void IsNotNull ()
 
void IsTrue ()
 
void IsFalse ()
 
void IsNaN ()
 
void EmptyStringTests ()
 
void EmptyCollectionTests ()
 
void ExactTypeTests ()
 
void InstanceOfTests ()
 
void AssignableFromTypeTests ()
 
void SubstringTests ()
 
void StartsWithTests ()
 
void EndsWithTests ()
 
void EqualIgnoringCaseTests ()
 
void RegularExpressionTests ()
 
void EqualityTests ()
 
void EqualityTestsWithTolerance ()
 
void EqualityTestsWithTolerance_MixedFloatAndDouble ()
 
void EqualityTestsWithTolerance_MixingTypesGenerally ()
 
void ComparisonTests ()
 
void AllItemsTests ()
 
void SomeItemTests ()
 
void NoItemTests ()
 
void CollectionContainsTests ()
 
void CollectionEquivalenceTests ()
 
void SubsetTests ()
 
void PropertyTests ()
 
void NotTests ()
 
void NotOperator ()
 
void AndOperator ()
 
void OrOperator ()
 
void ComplexTests ()
 
- Public Member Functions inherited from NUnit.Framework.AssertionHelper
void Expect (bool condition, string message, params object[] args)
 Asserts that a condition is true. If the condition is false the method throws an AssertionException. Works Identically to Assert.That(bool, string, object[]). More...
 
void Expect (bool condition)
 Asserts that a condition is true. If the condition is false the method throws an AssertionException. Works Identically to Assert.That(bool). More...
 
void Expect< TActual > (ActualValueDelegate< TActual > del, IResolveConstraint expr)
 Apply a constraint to an actual value, succeeding if the constraint is satisfied and throwing an assertion exception on failure. More...
 
void Expect< TActual > (ActualValueDelegate< TActual > del, IResolveConstraint expr, string message, params object[] args)
 Apply a constraint to an actual value, succeeding if the constraint is satisfied and throwing an assertion exception on failure. More...
 
void Expect (TestDelegate code, IResolveConstraint constraint)
 Asserts that the code represented by a delegate throws an exception that satisfies the constraint provided. More...
 
ListMapper Map (ICollection original)
 Returns a ListMapper based on a collection. More...
 
- Public Member Functions inherited from NUnit.Framework.Constraints.ConstraintFactory
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...
 
ResolvableConstraintExpression Attribute (Type expectedType)
 Returns a new AttributeConstraint checking for the presence of a particular attribute on an object. More...
 
ResolvableConstraintExpression Attribute< TExpected > ()
 Returns a new AttributeConstraint checking for the presence of a particular attribute on an object. More...
 
EqualConstraint EqualTo (object expected)
 Returns a constraint that tests two items for equality More...
 
SameAsConstraint SameAs (object expected)
 Returns a constraint that tests that two references are the same object More...
 
GreaterThanConstraint GreaterThan (object expected)
 Returns a constraint that tests whether the actual value is greater than the supplied argument More...
 
GreaterThanOrEqualConstraint GreaterThanOrEqualTo (object expected)
 Returns a constraint that tests whether the actual value is greater than or equal to the supplied argument More...
 
GreaterThanOrEqualConstraint AtLeast (object expected)
 Returns a constraint that tests whether the actual value is greater than or equal to the supplied argument More...
 
LessThanConstraint LessThan (object expected)
 Returns a constraint that tests whether the actual value is less than the supplied argument More...
 
LessThanOrEqualConstraint LessThanOrEqualTo (object expected)
 Returns a constraint that tests whether the actual value is less than or equal to the supplied argument More...
 
LessThanOrEqualConstraint AtMost (object expected)
 Returns a constraint that tests whether the actual value is less than or equal to the supplied argument More...
 
ExactTypeConstraint TypeOf (Type expectedType)
 Returns a constraint that tests whether the actual value is of the exact type supplied as an argument. More...
 
ExactTypeConstraint TypeOf< TExpected > ()
 Returns a constraint that tests whether the actual value is of the exact type supplied as an argument. More...
 
InstanceOfTypeConstraint InstanceOf (Type expectedType)
 Returns a constraint that tests whether the actual value is of the type supplied as an argument or a derived type. More...
 
InstanceOfTypeConstraint InstanceOf< TExpected > ()
 Returns a constraint that tests whether the actual value is of the type supplied as an argument or a derived type. More...
 
AssignableFromConstraint AssignableFrom (Type expectedType)
 Returns a constraint that tests whether the actual value is assignable from the type supplied as an argument. More...
 
AssignableFromConstraint AssignableFrom< TExpected > ()
 Returns a constraint that tests whether the actual value is assignable from the type supplied as an argument. More...
 
AssignableToConstraint AssignableTo (Type expectedType)
 Returns a constraint that tests whether the actual value is assignable from the type supplied as an argument. More...
 
AssignableToConstraint AssignableTo< TExpected > ()
 Returns a constraint that tests whether the actual value is assignable from the type supplied as an argument. More...
 
CollectionEquivalentConstraint EquivalentTo (IEnumerable expected)
 Returns a constraint that tests whether the actual value is a collection containing the same elements as the collection supplied as an argument. More...
 
CollectionSubsetConstraint SubsetOf (IEnumerable expected)
 Returns a constraint that tests whether the actual value is a subset of the collection supplied as an argument. More...
 
CollectionSupersetConstraint SupersetOf (IEnumerable expected)
 Returns a constraint that tests whether the actual value is a superset of the collection supplied as an argument. More...
 
CollectionContainsConstraint Member (object expected)
 Returns a new CollectionContainsConstraint checking for the presence of a particular object in the collection. More...
 
CollectionContainsConstraint Contains (object expected)
 Returns a new CollectionContainsConstraint checking for the presence of a particular object in the collection. More...
 
ContainsConstraint Contains (string expected)
 Returns a new ContainsConstraint. This constraint will, in turn, make use of the appropriate second-level constraint, depending on the type of the actual argument. This overload is only used if the item sought is a string, since any other type implies that we are looking for a collection member. More...
 
SubstringConstraint StringContaining (string expected)
 Returns a constraint that succeeds if the actual value contains the substring supplied as an argument. More...
 
SubstringConstraint ContainsSubstring (string expected)
 Returns a constraint that succeeds if the actual value contains the substring supplied as an argument. More...
 
SubstringConstraint DoesNotContain (string expected)
 Returns a constraint that fails if the actual value contains the substring supplied as an argument. More...
 
StartsWithConstraint StartWith (string expected)
 Returns a constraint that succeeds if the actual value starts with the substring supplied as an argument. More...
 
StartsWithConstraint StartsWith (string expected)
 Returns a constraint that succeeds if the actual value starts with the substring supplied as an argument. More...
 
StartsWithConstraint StringStarting (string expected)
 Returns a constraint that succeeds if the actual value starts with the substring supplied as an argument. More...
 
StartsWithConstraint DoesNotStartWith (string expected)
 Returns a constraint that fails if the actual value starts with the substring supplied as an argument. More...
 
EndsWithConstraint EndWith (string expected)
 Returns a constraint that succeeds if the actual value ends with the substring supplied as an argument. More...
 
EndsWithConstraint EndsWith (string expected)
 Returns a constraint that succeeds if the actual value ends with the substring supplied as an argument. More...
 
EndsWithConstraint StringEnding (string expected)
 Returns a constraint that succeeds if the actual value ends with the substring supplied as an argument. More...
 
EndsWithConstraint DoesNotEndWith (string expected)
 Returns a constraint that fails if the actual value ends with the substring supplied as an argument. More...
 
RegexConstraint Match (string pattern)
 Returns a constraint that succeeds if the actual value matches the regular expression supplied as an argument. More...
 
RegexConstraint Matches (string pattern)
 Returns a constraint that succeeds if the actual value matches the regular expression supplied as an argument. More...
 
RegexConstraint StringMatching (string pattern)
 Returns a constraint that succeeds if the actual value matches the regular expression supplied as an argument. More...
 
RegexConstraint DoesNotMatch (string pattern)
 Returns a constraint that fails if the actual value matches the pattern supplied as an argument. More...
 
SamePathConstraint SamePath (string expected)
 Returns a constraint that tests whether the path provided is the same as an expected path after canonicalization. More...
 
SubPathConstraint SubPathOf (string expected)
 Returns a constraint that tests whether the path provided is a subpath of the expected path after canonicalization. More...
 
SamePathOrUnderConstraint SamePathOrUnder (string expected)
 Returns a constraint that tests whether the path provided is the same path or under an expected path after canonicalization. More...
 
RangeConstraint InRange (IComparable from, IComparable to)
 Returns a constraint that tests whether the actual value falls within a specified range. More...
 

Additional Inherited Members

- Static Public Member Functions inherited from NUnit.Framework.AssertionHelper
static void Expect< TActual > (TActual actual, IResolveConstraint expression)
 Apply a constraint to an actual value, succeeding if the constraint is satisfied and throwing an assertion exception on failure. More...
 
static void Expect< TActual > (TActual actual, IResolveConstraint expression, string message, params object[] args)
 Apply a constraint to an actual value, succeeding if the constraint is satisfied and throwing an assertion exception on failure. More...
 
- Static Public Member Functions inherited from NUnit.Framework.Constraints.ConstraintFactory
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...
 
- Properties inherited from NUnit.Framework.Constraints.ConstraintFactory
ConstraintExpression Not [get]
 Returns a ConstraintExpression that negates any following constraint. More...
 
ConstraintExpression No [get]
 Returns a ConstraintExpression that negates any following constraint. More...
 
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...
 
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...
 
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...
 
ResolvableConstraintExpression Length [get]
 Returns a new ConstraintExpression, which will apply the following constraint to the Length property of the object being tested. More...
 
ResolvableConstraintExpression Count [get]
 Returns a new ConstraintExpression, which will apply the following constraint to the Count property of the object being tested. More...
 
ResolvableConstraintExpression Message [get]
 Returns a new ConstraintExpression, which will apply the following constraint to the Message property of the object being tested. More...
 
ResolvableConstraintExpression InnerException [get]
 Returns a new ConstraintExpression, which will apply the following constraint to the InnerException property of the object being tested. More...
 
NullConstraint Null [get]
 Returns a constraint that tests for null More...
 
TrueConstraint True [get]
 Returns a constraint that tests for True More...
 
FalseConstraint False [get]
 Returns a constraint that tests for False More...
 
GreaterThanConstraint Positive [get]
 Returns a constraint that tests for a positive value More...
 
LessThanConstraint Negative [get]
 Returns a constraint that tests for a negative value More...
 
NaNConstraint NaN [get]
 Returns a constraint that tests for NaN More...
 
EmptyConstraint Empty [get]
 Returns a constraint that tests for empty More...
 
UniqueItemsConstraint Unique [get]
 Returns a constraint that tests whether a collection contains all unique items. More...
 
BinarySerializableConstraint BinarySerializable [get]
 Returns a constraint that tests whether an object graph is serializable in binary format. More...
 
XmlSerializableConstraint XmlSerializable [get]
 Returns a constraint that tests whether an object graph is serializable in xml format. More...
 
CollectionOrderedConstraint Ordered [get]
 Returns a constraint that tests whether a collection is ordered More...
 

Detailed Description

This test fixture attempts to exercise all the syntactic variations of Assert without getting into failures, errors or corner cases. Thus, some of the tests may be duplicated in other fixtures.

Each test performs the same operations using the classic syntax (if available) and the new syntax in both the helper-based and inherited forms.

This Fixture will eventually be duplicated in other supported languages.

Member Function Documentation

void NUnit.Framework.Tests.AssertSyntaxTests.IsNull ( )
inline
void NUnit.Framework.Tests.AssertSyntaxTests.IsTrue ( )
inline
void NUnit.Framework.Tests.AssertSyntaxTests.IsFalse ( )
inline
void NUnit.Framework.Tests.AssertSyntaxTests.IsNaN ( )
inline
void NUnit.Framework.Tests.AssertSyntaxTests.EqualityTestsWithTolerance_MixedFloatAndDouble ( )
inline
void NUnit.Framework.Tests.AssertSyntaxTests.EqualityTestsWithTolerance_MixingTypesGenerally ( )
inline
void NUnit.Framework.Tests.AssertSyntaxTests.NotOperator ( )
inline
void NUnit.Framework.Tests.AssertSyntaxTests.AndOperator ( )
inline
void NUnit.Framework.Tests.AssertSyntaxTests.OrOperator ( )
inline
void NUnit.Framework.Tests.AssertSyntaxTests.IsNull ( )
inline
void NUnit.Framework.Tests.AssertSyntaxTests.IsTrue ( )
inline
void NUnit.Framework.Tests.AssertSyntaxTests.IsFalse ( )
inline
void NUnit.Framework.Tests.AssertSyntaxTests.IsNaN ( )
inline
void NUnit.Framework.Tests.AssertSyntaxTests.EqualityTestsWithTolerance_MixedFloatAndDouble ( )
inline
void NUnit.Framework.Tests.AssertSyntaxTests.EqualityTestsWithTolerance_MixingTypesGenerally ( )
inline
void NUnit.Framework.Tests.AssertSyntaxTests.NotOperator ( )
inline
void NUnit.Framework.Tests.AssertSyntaxTests.AndOperator ( )
inline
void NUnit.Framework.Tests.AssertSyntaxTests.OrOperator ( )
inline

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