Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

AssertUtils Members

AssertUtils overview

Public Static (Shared) Methods

ArgumentHasElements Checks the value of the supplied ICollectionargument and throws an ArgumentException if it is a null reference (Nothing in Visual Basic), contains no elements or only null elements.
ArgumentHasLengthOverloaded. Checks the value of the supplied ICollectionargument and throws an ArgumentNullException if it is a null reference (Nothing in Visual Basic) or contains no elements.
ArgumentHasTextOverloaded. Checks the value of the supplied string argument and throws an ArgumentNullException if it is a null reference (Nothing in Visual Basic) or contains only whitespace character(s).
ArgumentNotNullOverloaded. Checks the value of the supplied argument and throws an ArgumentNullException if it is a null reference (Nothing in Visual Basic).
AssertArgumentType Checks whether the specified argument can be cast into the requiredType.
IsTrueOverloaded. Assert a boolean expression, throwing
ArgumentException
if the test result is
false
.
State Assert a bool expression, throwing
InvalidOperationException
if the expression is
false
.
UnderstandsOverloaded. Checks, whether method may be invoked on target. Supports testing transparent proxies.

Public Instance Methods

Equals (inherited from Object)Determines whether the specified Object is equal to the current Object.
GetHashCode (inherited from Object)Serves as a hash function for a particular type. GetHashCode is suitable for use in hashing algorithms and data structures like a hash table.
GetType (inherited from Object)Gets the Type of the current instance.
ToString (inherited from Object)Returns a String that represents the current Object.

Protected Instance Methods

Finalize (inherited from Object)Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
MemberwiseClone (inherited from Object)Creates a shallow copy of the current Object.

See Also

AssertUtils Class | Spring.Util Namespace