diff --git a/examples/Spring/Spring.AopQuickStart/src/Spring.AopQuickStart.Step7/Program.cs b/examples/Spring/Spring.AopQuickStart/src/Spring.AopQuickStart.Step7/Program.cs
index d3743d27..be74d10c 100644
--- a/examples/Spring/Spring.AopQuickStart/src/Spring.AopQuickStart.Step7/Program.cs
+++ b/examples/Spring/Spring.AopQuickStart/src/Spring.AopQuickStart.Step7/Program.cs
@@ -21,7 +21,7 @@
#region Imports
using System;
-using System.Collections;
+using System.Collections.Generic;
using Spring.Context;
using Spring.Context.Support;
@@ -47,7 +47,7 @@ namespace Spring.AopQuickStart
{
// Create AOP proxy using Spring.NET IoC container.
IApplicationContext ctx = ContextRegistry.GetContext();
- IDictionary commands = ctx.GetObjectsOfType(typeof(ICommand));
+ IDictionary commands = ctx.GetObjects();
foreach (ICommand command in commands.Values)
{
diff --git a/examples/Spring/Spring.TxQuickStart/test/Spring/Spring.TxQuickStart.Tests/TxQuickStart/AccountManagerTests.cs b/examples/Spring/Spring.TxQuickStart/test/Spring/Spring.TxQuickStart.Tests/TxQuickStart/AccountManagerTests.cs
index d9bfead1..ff480e28 100644
--- a/examples/Spring/Spring.TxQuickStart/test/Spring/Spring.TxQuickStart.Tests/TxQuickStart/AccountManagerTests.cs
+++ b/examples/Spring/Spring.TxQuickStart/test/Spring/Spring.TxQuickStart.Tests/TxQuickStart/AccountManagerTests.cs
@@ -21,7 +21,7 @@
#region Imports
using System;
-using System.Collections;
+using System.Collections.Generic;
using System.Data;
using NUnit.Framework;
using Spring.Aop.Config;
@@ -30,7 +30,6 @@ using Spring.Context.Support;
using Spring.Data.Common;
using Spring.Data.Config;
using Spring.Data.Core;
-using Spring.Objects.Factory.Support;
using Spring.Objects.Factory.Xml;
using Spring.Transaction.Config;
using Spring.TxQuickStart.Services;
@@ -55,7 +54,7 @@ namespace Spring.TxQuickStart
NamespaceParserRegistry.RegisterParser(typeof(TxNamespaceParser));
NamespaceParserRegistry.RegisterParser(typeof(AopNamespaceParser));
IApplicationContext context = CreateContextFromXml();
- IDictionary dict = context.GetObjectsOfType(typeof (IAccountManager));
+ IDictionary dict = context.GetObjects();
accountManager = context["accountManager"] as IAccountManager;
CleanDb(context);
}
diff --git a/lib/Net/3.5/Apache.NMS.ActiveMQ.dll b/lib/Net/3.5/Apache.NMS.ActiveMQ.dll
new file mode 100644
index 00000000..fd910b6d
Binary files /dev/null and b/lib/Net/3.5/Apache.NMS.ActiveMQ.dll differ
diff --git a/lib/Net/3.5/Apache.NMS.ActiveMQ.xml b/lib/Net/3.5/Apache.NMS.ActiveMQ.xml
new file mode 100644
index 00000000..49360cc1
--- /dev/null
+++ b/lib/Net/3.5/Apache.NMS.ActiveMQ.xml
@@ -0,0 +1,8199 @@
+
+
+
+ Apache.NMS.ActiveMQ
+
+
+
+
+ Base class for all DataStructure implementations
+
+
+
+
+ An OpenWire command
+
+
+
+
+ An OpenWire command
+
+
+
+
+ Represents a marshallable entity
+
+
+
+
+
+ Get the unique identifier that this object and its own
+ Marshaler share.
+
+
+
+
+
+
+ Clone this object and return a new instance that the caller now owns.
+
+
+
+
+
+
+ Returns a string containing the information for this DataStructure
+ such as its type and value of its elements.
+
+
+
+
+
+
+ Allows a Visitor to visit this command and return a response to the
+ command based on the command type being visited. The command will call
+ the proper processXXX method in the visitor.
+
+
+
+
+
+
+ Return an answer of true to the isMessage() query.
+
+
+
+
+
+ The correlation ID used to correlate messages with conversations or long running business processes
+
+
+
+
+ The destination of the message
+
+
+
+
+ The time in milliseconds that this message should expire in
+
+
+
+
+ The message ID which is set by the provider
+
+
+
+
+ Whether or not this message is persistent
+
+
+
+
+ The Priority on this message
+
+
+
+
+ Returns true if this message has been redelivered to this or another consumer before being acknowledged successfully.
+
+
+
+
+ The destination that the consumer of this message should send replies to
+
+
+
+
+ The timestamp the broker added to the message
+
+
+
+
+ The type name of this message
+
+
+
+
+ Returns the number of times this message has been redelivered to other consumers without being acknowledged successfully.
+
+
+
+
+ The Message Group ID used to group messages together to the same consumer for the same group ID value
+
+
+
+
+ The Message Group Sequence counter to indicate the position in a group
+
+
+
+
+ Returns the ID of the producers transaction
+
+
+
+
+ Used when the message compression is enabled to track how many bytes
+ the EndianBinaryWriter actually writes to the stream before compression
+ so that the receiving client can read off the real bodylength from the
+ Message before the data is actually read.
+
+
+
+
+ Summary description for ActiveMQDestination.
+
+
+
+
+ Topic Destination object
+
+
+
+
+ Temporary Topic Destination object
+
+
+
+
+ Queue Destination object
+
+
+
+
+ Temporary Queue Destination object
+
+
+
+
+ prefix for Advisory message destinations
+
+
+
+
+ prefix for consumer advisory destinations
+
+
+
+
+ prefix for producer advisory destinations
+
+
+
+
+ prefix for connection advisory destinations
+
+
+
+
+ The default target for ordered destinations
+
+
+
+
+ The Default Constructor
+
+
+
+
+ Construct the Destination with a defined physical name;
+
+
+
+
+
+
+ Returns the advisory.
+
+
+
+
+ The advisory to set.
+
+
+
+
+ true if this is a destination for Consumer advisories
+
+
+
+
+ true if this is a destination for Producer advisories
+
+
+
+
+ true if this is a destination for Connection advisories
+
+
+
+
+ Returns the exclusive.
+
+
+
+
+ The exclusive to set.
+
+
+
+
+ Returns the ordered.
+
+
+
+
+ The ordered to set.
+
+
+
+
+ Returns the orderedTarget.
+
+
+
+
+ The orderedTarget to set.
+
+
+
+ A helper method to return a descriptive string for the topic or queue
+
+
+ a descriptive string for this queue or topic
+
+
+
+
+
+
+
+
+
+ Create a Destination
+
+
+
+
+
+
+
+ Create a temporary name from the clientId
+
+
+
+
+
+
+ From a temporary destination find the clientId of the Connection that created it
+
+
+ the clientId or null if not a temporary destination
+
+
+
+
+ object to compare
+ 1 if this is less than o else 0 if they are equal or -1 if this is less than o
+
+
+
+ Lets sort by name first then lets sort topics greater than queues
+
+ another destination to compare against
+ 1 if this is less than o else 0 if they are equal or -1 if this is less than o
+
+
+
+
+ Returns the Destination type
+
+
+
+ Gets the Destination Type of this Destination as a String value which is one
+ of {Queue,Topic,TempQueue,TempTopic}.
+
+
+ The Destination Type as a String.
+
+
+
+
+
+ string representation of this instance
+
+
+
+
+ hashCode for this instance
+
+
+
+ if the object passed in is equivalent, return true
+
+ the object to compare
+ true if this instance and obj are equivalent
+
+
+
+
+ true if the destination matches multiple possible destinations
+
+
+
+ Factory method to create a child destination if this destination is a composite
+
+
+ the created Destination
+
+
+
+ Dictionary of name/value pairs representing option values specified
+ in the URI used to create this Destination. A null value is returned
+ if no options were specified.
+
+
+
+
+ Returns true if this destination represents a collection of
+ destinations; allowing a set of destinations to be published to or subscribed
+ from in one NMS operation.
+
+ If this destination is a composite then you can call {@link #getChildDestinations()}
+ to return the list of child destinations.
+
+
+
+
+ Summary description for ActiveMQQueue.
+
+
+
+
+ Method GetDestinationType
+
+ An int
+
+
+
+ Method CreateDestination
+
+ An ActiveMQDestination
+ A String
+
+
+
+ A Temporary Queue
+
+
+
+
+ A Temporary Topic
+
+
+
+
+ Summary description for ActiveMQTopic.
+
+
+
+
+ Represents an exception on the broker
+
+
+
+
+
+ Get the unique identifier that this object and its own
+ Marshaler share.
+
+
+
+
+
+
+ Returns a string containing the information for this DataStructure
+ such as its type and value of its elements.
+
+
+
+
+
+
+ Get the unique identifier that this object and its own
+ Marshaler share.
+
+
+
+
+
+
+ Returns a string containing the information for this DataStructure
+ such as its type and value of its elements.
+
+
+
+
+
+
+ Allows a Visitor to visit this command and return a response to the
+ command based on the command type being visited. The command will call
+ the proper processXXX method in the visitor.
+
+
+
+
+
+
+ Return an answer of true to the isBrokerInfo() query.
+
+
+
+
+
+
+ Get the unique identifier that this object and its own
+ Marshaler share.
+
+
+
+
+
+
+ Returns a string containing the information for this DataStructure
+ such as its type and value of its elements.
+
+
+
+
+
+
+ Allows a Visitor to visit this command and return a response to the
+ command based on the command type being visited. The command will call
+ the proper processXXX method in the visitor.
+
+
+
+
+
+
+ Return an answer of true to the isConnectionControl() query.
+
+
+
+
+
+
+ Get the unique identifier that this object and its own
+ Marshaler share.
+
+
+
+
+
+
+ Returns a string containing the information for this DataStructure
+ such as its type and value of its elements.
+
+
+
+
+
+
+ Allows a Visitor to visit this command and return a response to the
+ command based on the command type being visited. The command will call
+ the proper processXXX method in the visitor.
+
+
+
+
+
+
+ Return an answer of true to the isConnectionError() query.
+
+
+
+
+
+
+ Get the unique identifier that this object and its own
+ Marshaler share.
+
+
+
+
+
+
+ Returns a string containing the information for this DataStructure
+ such as its type and value of its elements.
+
+
+
+
+
+
+ Get the unique identifier that this object and its own
+ Marshaler share.
+
+
+
+
+
+
+ Returns a string containing the information for this DataStructure
+ such as its type and value of its elements.
+
+
+
+
+
+
+ Allows a Visitor to visit this command and return a response to the
+ command based on the command type being visited. The command will call
+ the proper processXXX method in the visitor.
+
+
+
+
+
+
+ Return an answer of true to the isConnectionInfo() query.
+
+
+
+
+
+
+ Get the unique identifier that this object and its own
+ Marshaler share.
+
+
+
+
+
+
+ Returns a string containing the information for this DataStructure
+ such as its type and value of its elements.
+
+
+
+
+
+
+ Allows a Visitor to visit this command and return a response to the
+ command based on the command type being visited. The command will call
+ the proper processXXX method in the visitor.
+
+
+
+
+
+
+ Return an answer of true to the isConsumerControl() query.
+
+
+
+
+
+
+ Get the unique identifier that this object and its own
+ Marshaler share.
+
+
+
+
+
+
+ Returns a string containing the information for this DataStructure
+ such as its type and value of its elements.
+
+
+
+
+
+
+ Get the unique identifier that this object and its own
+ Marshaler share.
+
+
+
+
+
+
+ Returns a string containing the information for this DataStructure
+ such as its type and value of its elements.
+
+
+
+
+
+
+ Allows a Visitor to visit this command and return a response to the
+ command based on the command type being visited. The command will call
+ the proper processXXX method in the visitor.
+
+
+
+
+
+
+ Return an answer of true to the isConsumerInfo() query.
+
+
+
+
+
+
+ Get the unique identifier that this object and its own
+ Marshaler share.
+
+
+
+
+
+
+ Returns a string containing the information for this DataStructure
+ such as its type and value of its elements.
+
+
+
+
+
+
+ Allows a Visitor to visit this command and return a response to the
+ command based on the command type being visited. The command will call
+ the proper processXXX method in the visitor.
+
+
+
+
+
+
+ Return an answer of true to the isControlCommand() query.
+
+
+
+
+
+
+ Get the unique identifier that this object and its own
+ Marshaler share.
+
+
+
+
+
+
+ Returns a string containing the information for this DataStructure
+ such as its type and value of its elements.
+
+
+
+
+
+
+ Allows a Visitor to visit this command and return a response to the
+ command based on the command type being visited. The command will call
+ the proper processXXX method in the visitor.
+
+
+
+
+
+
+ Return an answer of true to the isResponse() query.
+
+
+
+
+
+
+ Get the unique identifier that this object and its own
+ Marshaler share.
+
+
+
+
+
+
+ Returns a string containing the information for this DataStructure
+ such as its type and value of its elements.
+
+
+
+
+
+
+ Get the unique identifier that this object and its own
+ Marshaler share.
+
+
+
+
+
+
+ Returns a string containing the information for this DataStructure
+ such as its type and value of its elements.
+
+
+
+
+
+ Summary description for DataStructureSupport.
+
+
+
+
+
+ Get the unique identifier that this object and its own
+ Marshaler share.
+
+
+
+
+
+
+ Returns a string containing the information for this DataStructure
+ such as its type and value of its elements.
+
+
+
+
+
+
+ Allows a Visitor to visit this command and return a response to the
+ command based on the command type being visited. The command will call
+ the proper processXXX method in the visitor.
+
+
+
+
+
+
+ Return an answer of true to the isDestinationInfo() query.
+
+
+
+
+
+
+ Get the unique identifier that this object and its own
+ Marshaler share.
+
+
+
+
+
+
+ Returns a string containing the information for this DataStructure
+ such as its type and value of its elements.
+
+
+
+
+
+
+ Get the unique identifier that this object and its own
+ Marshaler share.
+
+
+
+
+
+
+ Returns a string containing the information for this DataStructure
+ such as its type and value of its elements.
+
+
+
+
+
+
+ Get the unique identifier that this object and its own
+ Marshaler share.
+
+
+
+
+
+
+ Returns a string containing the information for this DataStructure
+ such as its type and value of its elements.
+
+
+
+
+
+
+ Allows a Visitor to visit this command and return a response to the
+ command based on the command type being visited. The command will call
+ the proper processXXX method in the visitor.
+
+
+
+
+
+
+ Return an answer of true to the isFlushCommand() query.
+
+
+
+
+
+
+ Get the unique identifier that this object and its own
+ Marshaler share.
+
+
+
+
+
+
+ Returns a string containing the information for this DataStructure
+ such as its type and value of its elements.
+
+
+
+
+
+
+ Get the unique identifier that this object and its own
+ Marshaler share.
+
+
+
+
+
+
+ Returns a string containing the information for this DataStructure
+ such as its type and value of its elements.
+
+
+
+
+
+
+ Get the unique identifier that this object and its own
+ Marshaler share.
+
+
+
+
+
+
+ Returns a string containing the information for this DataStructure
+ such as its type and value of its elements.
+
+
+
+
+
+
+ Get the unique identifier that this object and its own
+ Marshaler share.
+
+
+
+
+
+
+ Returns a string containing the information for this DataStructure
+ such as its type and value of its elements.
+
+
+
+
+
+
+ Get the unique identifier that this object and its own
+ Marshaler share.
+
+
+
+
+
+
+ Returns a string containing the information for this DataStructure
+ such as its type and value of its elements.
+
+
+
+
+
+
+ Get the unique identifier that this object and its own
+ Marshaler share.
+
+
+
+
+
+
+ Returns a string containing the information for this DataStructure
+ such as its type and value of its elements.
+
+
+
+
+
+
+ Allows a Visitor to visit this command and return a response to the
+ command based on the command type being visited. The command will call
+ the proper processXXX method in the visitor.
+
+
+
+
+
+
+ Return an answer of true to the isKeepAliveInfo() query.
+
+
+
+
+
+
+ Get the unique identifier that this object and its own
+ Marshaler share.
+
+
+
+
+
+
+ Returns a string containing the information for this DataStructure
+ such as its type and value of its elements.
+
+
+
+
+
+
+ Get the unique identifier that this object and its own
+ Marshaler share.
+
+
+
+
+
+
+ Returns a string containing the information for this DataStructure
+ such as its type and value of its elements.
+
+
+
+
+
+
+ Get the unique identifier that this object and its own
+ Marshaler share.
+
+
+
+
+
+
+ Returns a string containing the information for this DataStructure
+ such as its type and value of its elements.
+
+
+
+
+
+
+ Get the unique identifier that this object and its own
+ Marshaler share.
+
+
+
+
+
+
+ Returns a string containing the information for this DataStructure
+ such as its type and value of its elements.
+
+
+
+
+
+
+ Get the unique identifier that this object and its own
+ Marshaler share.
+
+
+
+
+
+
+ Returns a string containing the information for this DataStructure
+ such as its type and value of its elements.
+
+
+
+
+
+
+ Allows a Visitor to visit this command and return a response to the
+ command based on the command type being visited. The command will call
+ the proper processXXX method in the visitor.
+
+
+
+
+
+
+ Return an answer of true to the isMessageAck() query.
+
+
+
+
+
+
+ Get the unique identifier that this object and its own
+ Marshaler share.
+
+
+
+
+
+
+ Returns a string containing the information for this DataStructure
+ such as its type and value of its elements.
+
+
+
+
+
+
+ Allows a Visitor to visit this command and return a response to the
+ command based on the command type being visited. The command will call
+ the proper processXXX method in the visitor.
+
+
+
+
+
+
+ Return an answer of true to the isMessageDispatch() query.
+
+
+
+
+
+
+ Get the unique identifier that this object and its own
+ Marshaler share.
+
+
+
+
+
+
+ Returns a string containing the information for this DataStructure
+ such as its type and value of its elements.
+
+
+
+
+
+
+ Allows a Visitor to visit this command and return a response to the
+ command based on the command type being visited. The command will call
+ the proper processXXX method in the visitor.
+
+
+
+
+
+
+ Return an answer of true to the isMessageDispatchNotification() query.
+
+
+
+
+
+
+ Get the unique identifier that this object and its own
+ Marshaler share.
+
+
+
+
+
+
+ Returns a string containing the information for this DataStructure
+ such as its type and value of its elements.
+
+
+
+
+
+ Sets the value as a String
+
+
+
+
+
+ Get the unique identifier that this object and its own
+ Marshaler share.
+
+
+
+
+
+
+ Returns a string containing the information for this DataStructure
+ such as its type and value of its elements.
+
+
+
+
+
+
+ Allows a Visitor to visit this command and return a response to the
+ command based on the command type being visited. The command will call
+ the proper processXXX method in the visitor.
+
+
+
+
+
+
+ Return an answer of true to the isMessagePull() query.
+
+
+
+
+
+
+ Get the unique identifier that this object and its own
+ Marshaler share.
+
+
+
+
+
+
+ Returns a string containing the information for this DataStructure
+ such as its type and value of its elements.
+
+
+
+
+
+
+ Get the unique identifier that this object and its own
+ Marshaler share.
+
+
+
+
+
+
+ Returns a string containing the information for this DataStructure
+ such as its type and value of its elements.
+
+
+
+
+
+
+ Allows a Visitor to visit this command and return a response to the
+ command based on the command type being visited. The command will call
+ the proper processXXX method in the visitor.
+
+
+
+
+
+
+ Return an answer of true to the isProducerAck() query.
+
+
+
+
+
+
+ Get the unique identifier that this object and its own
+ Marshaler share.
+
+
+
+
+
+
+ Returns a string containing the information for this DataStructure
+ such as its type and value of its elements.
+
+
+
+
+
+
+ Get the unique identifier that this object and its own
+ Marshaler share.
+
+
+
+
+
+
+ Returns a string containing the information for this DataStructure
+ such as its type and value of its elements.
+
+
+
+
+
+
+ Allows a Visitor to visit this command and return a response to the
+ command based on the command type being visited. The command will call
+ the proper processXXX method in the visitor.
+
+
+
+
+
+
+ Return an answer of true to the isProducerInfo() query.
+
+
+
+
+
+
+ Get the unique identifier that this object and its own
+ Marshaler share.
+
+
+
+
+
+
+ Returns a string containing the information for this DataStructure
+ such as its type and value of its elements.
+
+
+
+
+
+
+ Allows a Visitor to visit this command and return a response to the
+ command based on the command type being visited. The command will call
+ the proper processXXX method in the visitor.
+
+
+
+
+
+
+ Return an answer of true to the isRemoveInfo() query.
+
+
+
+
+
+
+ Get the unique identifier that this object and its own
+ Marshaler share.
+
+
+
+
+
+
+ Returns a string containing the information for this DataStructure
+ such as its type and value of its elements.
+
+
+
+
+
+
+ Allows a Visitor to visit this command and return a response to the
+ command based on the command type being visited. The command will call
+ the proper processXXX method in the visitor.
+
+
+
+
+
+
+ Return an answer of true to the isRemoveSubscriptionInfo() query.
+
+
+
+
+
+
+ Get the unique identifier that this object and its own
+ Marshaler share.
+
+
+
+
+
+
+ Returns a string containing the information for this DataStructure
+ such as its type and value of its elements.
+
+
+
+
+
+
+ Allows a Visitor to visit this command and return a response to the
+ command based on the command type being visited. The command will call
+ the proper processXXX method in the visitor.
+
+
+
+
+
+
+ Return an answer of true to the isReplayCommand() query.
+
+
+
+
+
+
+ Get the unique identifier that this object and its own
+ Marshaler share.
+
+
+
+
+
+
+ Returns a string containing the information for this DataStructure
+ such as its type and value of its elements.
+
+
+
+
+
+
+ Get the unique identifier that this object and its own
+ Marshaler share.
+
+
+
+
+
+
+ Returns a string containing the information for this DataStructure
+ such as its type and value of its elements.
+
+
+
+
+
+
+ Allows a Visitor to visit this command and return a response to the
+ command based on the command type being visited. The command will call
+ the proper processXXX method in the visitor.
+
+
+
+
+
+
+ Return an answer of true to the isSessionInfo() query.
+
+
+
+
+
+
+ Get the unique identifier that this object and its own
+ Marshaler share.
+
+
+
+
+
+
+ Returns a string containing the information for this DataStructure
+ such as its type and value of its elements.
+
+
+
+
+
+
+ Allows a Visitor to visit this command and return a response to the
+ command based on the command type being visited. The command will call
+ the proper processXXX method in the visitor.
+
+
+
+
+
+
+ Return an answer of true to the isShutdownInfo() query.
+
+
+
+
+
+
+ Get the unique identifier that this object and its own
+ Marshaler share.
+
+
+
+
+
+
+ Returns a string containing the information for this DataStructure
+ such as its type and value of its elements.
+
+
+
+
+
+
+ Get the unique identifier that this object and its own
+ Marshaler share.
+
+
+
+
+
+
+ Returns a string containing the information for this DataStructure
+ such as its type and value of its elements.
+
+
+
+
+
+
+ Allows a Visitor to visit this command and return a response to the
+ command based on the command type being visited. The command will call
+ the proper processXXX method in the visitor.
+
+
+
+
+
+
+ Return an answer of true to the isTransactionInfo() query.
+
+
+
+
+
+
+ Return an answer of true to the IsWireFormatInfo() query.
+
+
+
+
+
+
+ Get the unique identifier that this object and its own
+ Marshaler share.
+
+
+
+
+
+
+ Returns a string containing the information for this DataStructure
+ such as its type and value of its elements.
+
+
+
+
+
+ Marshalling code for Open Wire Format for ActiveMQBlobMessage
+
+
+
+
+ Marshalling code for Open Wire Format for ActiveMQMessage
+
+
+
+
+ Marshalling code for Open Wire Format for Message
+
+
+
+
+ Marshalling code for Open Wire Format for BaseCommand
+
+
+
+
+ A base class with useful implementation inheritence methods
+ for creating marshallers of the OpenWire protocol
+
+
+
+
+ Converts the object to a String
+
+
+
+
+ Converts the object to a String
+
+
+
+
+ Converts the given transaction ID into a String
+
+
+
+
+ Creates the byte array into hexidecimal
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for ActiveMQBytesMessage
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for ActiveMQDestination
+
+
+
+
+ Marshalling code for Open Wire Format for ActiveMQMapMessage
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for ActiveMQObjectMessage
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for ActiveMQQueue
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for ActiveMQStreamMessage
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for ActiveMQTempDestination
+
+
+
+
+ Marshalling code for Open Wire Format for ActiveMQTempQueue
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for ActiveMQTempTopic
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for ActiveMQTextMessage
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for ActiveMQTopic
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for BrokerId
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for BrokerInfo
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for ConnectionControl
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for ConnectionError
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for ConnectionId
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for ConnectionInfo
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for ConsumerControl
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for ConsumerId
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for ConsumerInfo
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for ControlCommand
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for DataArrayResponse
+
+
+
+
+ Marshalling code for Open Wire Format for Response
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for DataResponse
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for DestinationInfo
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for DiscoveryEvent
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for ExceptionResponse
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for FlushCommand
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for IntegerResponse
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for JournalQueueAck
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for JournalTopicAck
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for JournalTrace
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for JournalTransaction
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for KeepAliveInfo
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for LastPartialCommand
+
+
+
+
+ Marshalling code for Open Wire Format for PartialCommand
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for LocalTransactionId
+
+
+
+
+ Marshalling code for Open Wire Format for TransactionId
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Used to create marshallers for a specific version of the OpenWire protocol.
+ Each non-abstract DataStructure object has a registered Marshaller that is
+ created and added to the OpenWireFormat objects format collection.
+
+
+
+
+ Adds the Marshallers for this version of the OpenWire protocol to the
+ Collection of Marshallers stored in the OpenWireFormat class.
+
+
+
+
+ Marshalling code for Open Wire Format for MessageAck
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for MessageDispatch
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for MessageDispatchNotification
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for MessageId
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for MessagePull
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for NetworkBridgeFilter
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for ProducerAck
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for ProducerId
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for ProducerInfo
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for RemoveInfo
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for RemoveSubscriptionInfo
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for ReplayCommand
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for SessionId
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for SessionInfo
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for ShutdownInfo
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for SubscriptionInfo
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for TransactionInfo
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for WireFormatInfo
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for XATransactionId
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for ActiveMQBlobMessage
+
+
+
+
+ Marshalling code for Open Wire Format for ActiveMQMessage
+
+
+
+
+ Marshalling code for Open Wire Format for Message
+
+
+
+
+ Marshalling code for Open Wire Format for BaseCommand
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for ActiveMQBytesMessage
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for ActiveMQDestination
+
+
+
+
+ Marshalling code for Open Wire Format for ActiveMQMapMessage
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for ActiveMQObjectMessage
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for ActiveMQQueue
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for ActiveMQStreamMessage
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for ActiveMQTempDestination
+
+
+
+
+ Marshalling code for Open Wire Format for ActiveMQTempQueue
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for ActiveMQTempTopic
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for ActiveMQTextMessage
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for ActiveMQTopic
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for BrokerId
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for BrokerInfo
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for ConnectionControl
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for ConnectionError
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for ConnectionId
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for ConnectionInfo
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for ConsumerControl
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for ConsumerId
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for ConsumerInfo
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for ControlCommand
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for DataArrayResponse
+
+
+
+
+ Marshalling code for Open Wire Format for Response
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for DataResponse
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for DestinationInfo
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for DiscoveryEvent
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for ExceptionResponse
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for FlushCommand
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for IntegerResponse
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for JournalQueueAck
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for JournalTopicAck
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for JournalTrace
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for JournalTransaction
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for KeepAliveInfo
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for LastPartialCommand
+
+
+
+
+ Marshalling code for Open Wire Format for PartialCommand
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for LocalTransactionId
+
+
+
+
+ Marshalling code for Open Wire Format for TransactionId
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Used to create marshallers for a specific version of the OpenWire protocol.
+ Each non-abstract DataStructure object has a registered Marshaller that is
+ created and added to the OpenWireFormat objects format collection.
+
+
+
+
+ Adds the Marshallers for this version of the OpenWire protocol to the
+ Collection of Marshallers stored in the OpenWireFormat class.
+
+
+
+
+ Marshalling code for Open Wire Format for MessageAck
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for MessageDispatch
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for MessageDispatchNotification
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for MessageId
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for MessagePull
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for NetworkBridgeFilter
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for ProducerAck
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for ProducerId
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for ProducerInfo
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for RemoveInfo
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for RemoveSubscriptionInfo
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for ReplayCommand
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for SessionId
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for SessionInfo
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for ShutdownInfo
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for SubscriptionInfo
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for TransactionInfo
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for WireFormatInfo
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for XATransactionId
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for ActiveMQBlobMessage
+
+
+
+
+ Marshalling code for Open Wire Format for ActiveMQMessage
+
+
+
+
+ Marshalling code for Open Wire Format for Message
+
+
+
+
+ Marshalling code for Open Wire Format for BaseCommand
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for ActiveMQBytesMessage
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for ActiveMQDestination
+
+
+
+
+ Marshalling code for Open Wire Format for ActiveMQMapMessage
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for ActiveMQObjectMessage
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for ActiveMQQueue
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for ActiveMQStreamMessage
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for ActiveMQTempDestination
+
+
+
+
+ Marshalling code for Open Wire Format for ActiveMQTempQueue
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for ActiveMQTempTopic
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for ActiveMQTextMessage
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for ActiveMQTopic
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for BrokerId
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for BrokerInfo
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for ConnectionControl
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for ConnectionError
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for ConnectionId
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for ConnectionInfo
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for ConsumerControl
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for ConsumerId
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for ConsumerInfo
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for ControlCommand
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for DataArrayResponse
+
+
+
+
+ Marshalling code for Open Wire Format for Response
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for DataResponse
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for DestinationInfo
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for DiscoveryEvent
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for ExceptionResponse
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for FlushCommand
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for IntegerResponse
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for JournalQueueAck
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for JournalTopicAck
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for JournalTrace
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for JournalTransaction
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for KeepAliveInfo
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for LastPartialCommand
+
+
+
+
+ Marshalling code for Open Wire Format for PartialCommand
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for LocalTransactionId
+
+
+
+
+ Marshalling code for Open Wire Format for TransactionId
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Used to create marshallers for a specific version of the OpenWire protocol.
+ Each non-abstract DataStructure object has a registered Marshaller that is
+ created and added to the OpenWireFormat objects format collection.
+
+
+
+
+ Adds the Marshallers for this version of the OpenWire protocol to the
+ Collection of Marshallers stored in the OpenWireFormat class.
+
+
+
+
+ Marshalling code for Open Wire Format for MessageAck
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for MessageDispatch
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for MessageDispatchNotification
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for MessageId
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for MessagePull
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for NetworkBridgeFilter
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for ProducerAck
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for ProducerId
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for ProducerInfo
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for RemoveInfo
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for RemoveSubscriptionInfo
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for ReplayCommand
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for SessionId
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for SessionInfo
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for ShutdownInfo
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for SubscriptionInfo
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for TransactionInfo
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for WireFormatInfo
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for XATransactionId
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for ActiveMQBlobMessage
+
+
+
+
+ Marshalling code for Open Wire Format for ActiveMQMessage
+
+
+
+
+ Marshalling code for Open Wire Format for Message
+
+
+
+
+ Marshalling code for Open Wire Format for BaseCommand
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for ActiveMQBytesMessage
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for ActiveMQDestination
+
+
+
+
+ Marshalling code for Open Wire Format for ActiveMQMapMessage
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for ActiveMQObjectMessage
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for ActiveMQQueue
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for ActiveMQStreamMessage
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for ActiveMQTempDestination
+
+
+
+
+ Marshalling code for Open Wire Format for ActiveMQTempQueue
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for ActiveMQTempTopic
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for ActiveMQTextMessage
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for ActiveMQTopic
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for BrokerId
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for BrokerInfo
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for ConnectionControl
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for ConnectionError
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for ConnectionId
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for ConnectionInfo
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for ConsumerControl
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for ConsumerId
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for ConsumerInfo
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for ControlCommand
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for DataArrayResponse
+
+
+
+
+ Marshalling code for Open Wire Format for Response
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for DataResponse
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for DestinationInfo
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for DiscoveryEvent
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for ExceptionResponse
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for FlushCommand
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for IntegerResponse
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for JournalQueueAck
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for JournalTopicAck
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for JournalTrace
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for JournalTransaction
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for KeepAliveInfo
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for LastPartialCommand
+
+
+
+
+ Marshalling code for Open Wire Format for PartialCommand
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for LocalTransactionId
+
+
+
+
+ Marshalling code for Open Wire Format for TransactionId
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Used to create marshallers for a specific version of the OpenWire protocol.
+ Each non-abstract DataStructure object has a registered Marshaller that is
+ created and added to the OpenWireFormat objects format collection.
+
+
+
+
+ Adds the Marshallers for this version of the OpenWire protocol to the
+ Collection of Marshallers stored in the OpenWireFormat class.
+
+
+
+
+ Marshalling code for Open Wire Format for MessageAck
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for MessageDispatch
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for MessageDispatchNotification
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for MessageId
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for MessagePull
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for NetworkBridgeFilter
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for ProducerAck
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for ProducerId
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for ProducerInfo
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for RemoveInfo
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for RemoveSubscriptionInfo
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for ReplayCommand
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for SessionId
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for SessionInfo
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for ShutdownInfo
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for SubscriptionInfo
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for TransactionInfo
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for WireFormatInfo
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for XATransactionId
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for ActiveMQBlobMessage
+
+
+
+
+ Marshalling code for Open Wire Format for ActiveMQMessage
+
+
+
+
+ Marshalling code for Open Wire Format for Message
+
+
+
+
+ Marshalling code for Open Wire Format for BaseCommand
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for ActiveMQBytesMessage
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for ActiveMQDestination
+
+
+
+
+ Marshalling code for Open Wire Format for ActiveMQMapMessage
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for ActiveMQObjectMessage
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for ActiveMQQueue
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for ActiveMQStreamMessage
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for ActiveMQTempDestination
+
+
+
+
+ Marshalling code for Open Wire Format for ActiveMQTempQueue
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for ActiveMQTempTopic
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for ActiveMQTextMessage
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for ActiveMQTopic
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for BrokerId
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for BrokerInfo
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for ConnectionControl
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for ConnectionError
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for ConnectionId
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for ConnectionInfo
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for ConsumerControl
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for ConsumerId
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for ConsumerInfo
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for ControlCommand
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for DataArrayResponse
+
+
+
+
+ Marshalling code for Open Wire Format for Response
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for DataResponse
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for DestinationInfo
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for DiscoveryEvent
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for ExceptionResponse
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for FlushCommand
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for IntegerResponse
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for JournalQueueAck
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for JournalTopicAck
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for JournalTrace
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for JournalTransaction
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for KeepAliveInfo
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for LastPartialCommand
+
+
+
+
+ Marshalling code for Open Wire Format for PartialCommand
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for LocalTransactionId
+
+
+
+
+ Marshalling code for Open Wire Format for TransactionId
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Used to create marshallers for a specific version of the OpenWire protocol.
+ Each non-abstract DataStructure object has a registered Marshaller that is
+ created and added to the OpenWireFormat objects format collection.
+
+
+
+
+ Adds the Marshallers for this version of the OpenWire protocol to the
+ Collection of Marshallers stored in the OpenWireFormat class.
+
+
+
+
+ Marshalling code for Open Wire Format for MessageAck
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for MessageDispatch
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for MessageDispatchNotification
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for MessageId
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for MessagePull
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for NetworkBridgeFilter
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for ProducerAck
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for ProducerId
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for ProducerInfo
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for RemoveInfo
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for RemoveSubscriptionInfo
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for ReplayCommand
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for SessionId
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for SessionInfo
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for ShutdownInfo
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for SubscriptionInfo
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for TransactionInfo
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for WireFormatInfo
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for XATransactionId
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for ActiveMQBlobMessage
+
+
+
+
+ Marshalling code for Open Wire Format for ActiveMQMessage
+
+
+
+
+ Marshalling code for Open Wire Format for Message
+
+
+
+
+ Marshalling code for Open Wire Format for BaseCommand
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for ActiveMQBytesMessage
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for ActiveMQDestination
+
+
+
+
+ Marshalling code for Open Wire Format for ActiveMQMapMessage
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for ActiveMQObjectMessage
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for ActiveMQQueue
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for ActiveMQStreamMessage
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for ActiveMQTempDestination
+
+
+
+
+ Marshalling code for Open Wire Format for ActiveMQTempQueue
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for ActiveMQTempTopic
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for ActiveMQTextMessage
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for ActiveMQTopic
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for BrokerId
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for BrokerInfo
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for ConnectionControl
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for ConnectionError
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for ConnectionId
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for ConnectionInfo
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for ConsumerControl
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for ConsumerId
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for ConsumerInfo
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for ControlCommand
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for DataArrayResponse
+
+
+
+
+ Marshalling code for Open Wire Format for Response
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for DataResponse
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for DestinationInfo
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for DiscoveryEvent
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for ExceptionResponse
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for FlushCommand
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for IntegerResponse
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for JournalQueueAck
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for JournalTopicAck
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for JournalTrace
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for JournalTransaction
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for KeepAliveInfo
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for LastPartialCommand
+
+
+
+
+ Marshalling code for Open Wire Format for PartialCommand
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for LocalTransactionId
+
+
+
+
+ Marshalling code for Open Wire Format for TransactionId
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Used to create marshallers for a specific version of the OpenWire protocol.
+ Each non-abstract DataStructure object has a registered Marshaller that is
+ created and added to the OpenWireFormat objects format collection.
+
+
+
+
+ Adds the Marshallers for this version of the OpenWire protocol to the
+ Collection of Marshallers stored in the OpenWireFormat class.
+
+
+
+
+ Marshalling code for Open Wire Format for MessageAck
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for MessageDispatch
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for MessageDispatchNotification
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for MessageId
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for MessagePull
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for NetworkBridgeFilter
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for ProducerAck
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for ProducerId
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for ProducerInfo
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for RemoveInfo
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for RemoveSubscriptionInfo
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for ReplayCommand
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for SessionId
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for SessionInfo
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for ShutdownInfo
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for SubscriptionInfo
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for TransactionInfo
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for WireFormatInfo
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for XATransactionId
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Represents a stream of boolean flags
+
+
+
+
+ Implements the OpenWire protocol.
+
+
+
+
+ Represents the marshalling of commands to and from an IO stream
+
+
+
+
+ Marshalls the given command object onto the stream
+
+
+
+
+ Unmarshalls the next command object from the stream
+
+
+
+
+ Gets the Transport that own this WireFormat instnace.
+
+
+
+
+ Gets the current version of the protocol that this WireFormat instance
+ supports
+
+
+
+
+ Tracks the state of a connection so a newly established transport can be
+ re-initialized to the state that was tracked.
+
+
+
+
+
+
+ null if the command is not state tracked.
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ A Composite task is one of N tasks that can be managed by a
+ CompositTaskRunner instance. The CompositeTaskRunner checks each
+ task when its wakeup method is called to determine if the Task has
+ any work it needs to complete, if no tasks have any pending work
+ then the CompositeTaskRunner can return to its sleep state until
+ the next time its wakeup method is called or it is shut down.
+
+
+
+
+ Represents a task that may take a few iterations to complete.
+
+
+
+
+ Performs some portion of the work that this Task object is
+ assigned to complete. When the task is entirely finished this
+ method should return false.
+
+
+ A this indicates if this Task should
+ be run again.
+
+
+
+
+ Indicates if this Task has any pending work.
+
+
+
+
+ A TaskRunner that dedicates a single thread to running a single Task.
+
+
+
+
+ Allows you to request a thread execute the associated Task.
+
+
+
+
+ Wakeup the TaskRunner and have it check for any pending work that
+ needs to be completed. If none is found it will go back to sleep
+ until another Wakeup call is made.
+
+
+
+
+ Attempt to Shutdown the TaskRunner, this method will wait indefinitely
+ for the TaskRunner to quite if the task runner is in a call to its Task's
+ run method and that never returns.
+
+
+
+
+ Performs a timed wait for the TaskRunner to shutdown. If the TaskRunner
+ is in a call to its Task's run method and that does not return before the
+ timeout expires this method returns and the TaskRunner may remain in the
+ running state.
+
+
+ A
+
+
+
+
+ Performs a timed wait for the TaskRunner to shutdown. If the TaskRunner
+ is in a call to its Task's run method and that does not return before the
+ timeout expires this method sends an Abort to the Task thread and return.
+
+
+ A
+
+
+
+
+ A TaskRunner that dedicates a single thread to running a single Task.
+
+
+
+
+ We Expect MANY wakeup calls on the same TaskRunner.
+
+
+
+
+ shut down the task
+
+
+
+
+
+ Manages the thread pool for long running tasks. Long running tasks are not
+ always active but when they are active, they may need a few iterations of
+ processing for them to become idle. The manager ensures that each task is
+ processes but that no one task overtakes the system. This is kina like
+ cooperative multitasking.
+
+ If your OS/JVM combination has a good thread model, you may want to avoid
+ using a thread pool to run tasks and use a DedicatedTaskRunner instead.
+
+
+
+
+ This class provides a wrapper around the ThreadPool mechanism in .NET
+ to allow for serial execution of jobs in the ThreadPool and provide
+ a means of shutting down the execution of jobs in a deterministic
+ way.
+
+
+
+
+ Represents an asynchronous task that is executed on the ThreadPool
+ at some point in the future.
+
+
+
+
+ Interface for a Logger object used to store and retrieve Recovery
+ Information needed to recover distributed transactions that operate
+ in the Microsoft Distributed Transaction Context.
+
+
+
+
+ The Unique Id of the Resource Manager that this logger is currently
+ logging recovery information for.
+
+
+
+
+ The Path to the location on disk where the recovery log is written
+ to and read from.
+
+
+
+
+ Indiciate that the Logger should create and sibdirs of the
+ given location that don't currently exist.
+
+
+
+
+ Attribute that decorates IRecoveryLoggerFactory implementations to allow
+ the Recovery Policy to find all the available factories dynamically.
+
+
+
+
+ Indexed by service name
+
+
+
+
+ This property indicates whether or not async send is enabled.
+
+
+
+
+ A Transport that is made reliable by being able to fail over to another
+ transport when a transport failure is detected.
+
+
+
+
+ Represents the logical networking transport layer. Transports implment the low
+ level protocol specific portion of the Communication between the Client and a Broker
+ such as TCP, UDP, etc. Transports make use of WireFormat objects to handle translateing
+ the cononical OpenWire Commands used in this client into binary wire level packets that
+ can be sent to the Broker or Service that the Transport connects to.
+
+
+
+
+ Sends a Command object on the Wire but does not wait for any response from the
+ receiver before returning.
+
+
+ A
+
+
+
+
+ Sends a Command object which requires a response from the Broker but does not
+ wait for the response, instead a FutureResponse object is returned that the
+ caller can use to wait on the Broker's response.
+
+
+ A
+
+
+ A
+
+
+
+
+ Sends a Command to the Broker and waits for a Response to that Command before
+ returning, this version waits indefinitely for a response.
+
+
+ A
+
+
+ A
+
+
+
+
+ Sends a Command to the Broker and waits for the given TimeSpan to expire for a
+ response before returning.
+
+
+ A
+
+
+ A
+
+
+ A
+
+
+
+
+ Allows a caller to find a specific type of Transport in the Chain of
+ Transports that is created. This allows a caller to find a specific
+ object in the Transport chain and set or get properties on that specific
+ instance. If the requested type isn't in the chain than Null is returned.
+
+
+ A
+
+
+ A
+
+
+
+
+ Updates the Uri's that this Transport is aware of and will use to
+ connect itself to. If the rebalance option is true this method will
+ terminate any current connection and reconnect to another available
+ Uri.
+
+
+ A
+
+
+ A
+
+
+
+
+ Timeout in milliseconds to wait for sending synchronous messages or commands.
+ Set to -1 for infinite timeout.
+
+
+
+
+ Timeout in milliseconds to wait for sending asynchronous messages or commands.
+ Set to -1 for infinite timeout.
+
+
+
+
+ Indicates if this Transport has already been disposed and can no longer
+ be used.
+
+
+
+
+ Indicates if this Transport is Fault Tolerant or not. A fault Tolerant
+ Transport handles low level connection errors internally allowing a client
+ to remain unaware of wire level disconnection and reconnection details.
+
+
+
+
+ Indiciates if the Transport is current Connected to is assigned URI.
+
+
+
+
+ The Remote Address that this transport is currently connected to.
+
+
+
+
+ Returns true if this Transport supports reconnections.
+
+
+
+
+ Returns true if this Transport can accept updated lists of connection Uri's.
+
+
+
+
+ Returns the IWireFormat object that this transport uses to marshal and
+ unmarshal Command objects.
+
+
+
+
+ Adds a new set of Uris to the list of Uris that this Transport can connect to.
+
+
+ A
+ Should the current connection be broken and a new one created.
+
+
+ A
+
+
+
+
+ Remove the given Uris from this Transports list of known Uris.
+
+
+ A
+ Should the current connection be broken and a new one created.
+
+
+ A
+
+
+
+
+ Gets or sets a value indicating whether to asynchronously connect to sockets
+
+ true if [async connect]; otherwise, false.
+
+
+
+ If doing an asynchronous connect, the milliseconds before timing out if no connection can be made
+
+ The async timeout.
+
+
+
+ This class is a helper for the asynchronous connect option
+
+
+
+
+ callback to properly set chosen transport
+
+
+
+
+ Uri to try connecting to
+
+
+
+
+ Failover transport issuing the connection attempt
+
+
+
+
+ Initializes a new instance of the class.
+
+ The set transport.
+ The URI.
+ The transport.
+
+
+
+ Does the connect.
+
+
+
+
+
+
+
+
+
+
+ Defines an Interface for a Command Response Builder used by the MockTransport
+ to answer Commands sent via the Request and AsnycRequest methods.
+
+
+
+
+ Given a Command, check if it requires a response and return the
+ appropriate Response that the Broker would send for this Command
+
+
+
+
+ When called the ResponseBuilder must construct all the Responses or
+ Asynchronous commands that would be sent to this client by the Broker
+ upon receipt of the passed command.
+
+
+
+
+ Transport used for testing, mimics the behaviour of a normal Transport and allows
+ messages to be sent and received
+
+
+
+
+ Injects a Command into the Transports inbound message queue, the Commands in the
+ inbound Queue are dispatched to the registered CommnadHandler instance for
+ processing, this simulates receiving a message from an external source, e.g.
+ receiving a new message from the Broker.
+
+
+ A
+
+
+
+
+ Timeout in milliseconds to wait for sending synchronous messages or commands.
+ Set to -1 for infinite timeout.
+
+
+
+
+ Timeout in milliseconds to wait for sending asynchronous messages or commands.
+ Set to -1 for infinite timeout.
+
+
+
+
+ Factory class to create the MockTransport when given on a URI as mock://XXX
+
+
+
+
+ Builds responses using the internal Cononical OpenWire Commands format.
+
+
+
+
+ An implementation of ITransport that uses sockets to communicate with the broker
+
+
+
+
+ Method Start
+
+
+
+
+ Property IsStarted
+
+
+
+
+ Timeout in milliseconds to wait for sending synchronous messages or commands.
+ Set to -1 for infinite timeout.
+
+
+
+
+ Timeout in milliseconds to wait for sending asynchronous messages or commands.
+ Set to -1 for infinite timeout.
+
+
+
+
+ Indicates the name of the Server's Certificate. By default the Host name
+ of the remote server is used, however if this doesn't match the name of the
+ Server's certificate then this option can be set to override the default.
+
+
+
+
+ Indicates the location of the Client Certificate to use when the Broker
+ is configured for Client Auth (not common). The SslTransport will supply
+ this certificate to the SslStream via the SelectLocalCertificate method.
+
+
+
+
+ Password for the Client Certificate specified via configuration.
+
+
+
+
+ Indicates if the SslTransport should ignore any errors in the supplied Broker
+ certificate and connect anyway, this is useful in testing with a default AMQ
+ broker certificate that is self signed.
+
+
+
+
+ Should the Inactivity Monitor be enabled on this Transport.
+
+
+
+
+ Size in bytes of the receive buffer.
+
+
+
+
+ Size in bytes of send buffer.
+
+
+
+
+ The time-out value, in milliseconds. The default value is 0, which indicates
+ an infinite time-out period. Specifying -1 also indicates an infinite time-out period.
+
+
+
+
+ The time-out value, in milliseconds. If you set the property with a value between 1 and 499,
+ the value will be changed to 500. The default value is 0, which indicates an infinite
+ time-out period. Specifying -1 also indicates an infinite time-out period.
+
+
+
+
+ Override in a subclass to create the specific type of transport that is
+ being implemented.
+
+
+
+
+ Attribute that decorates ITransportFactory implementations to allow
+ the TransportFactory to find all the available factories dynamically.
+
+
+
+
+ Handles asynchronous responses
+
+
+
+
+ This class make sure that the connection is still alive,
+ by monitoring the reception of commands from the peer of
+ the transport.
+
+
+
+
+ Used to implement a filter on the transport layer.
+
+
+
+
+ Method Oneway
+
+ A Command
+
+
+
+ Method AsyncRequest
+
+ A FutureResponse
+ A Command
+
+
+
+ Method Request
+
+ A Response
+ A Command
+
+
+
+ Method Request with time out for Response.
+
+ A Response
+ A Command
+ Timeout in milliseconds
+
+
+
+ Method Start
+
+
+
+
+ Method Dispose
+
+
+
+
+ Property IsStarted
+
+
+
+
+ Timeout in milliseconds to wait for sending synchronous messages or commands.
+ Set to -1 for infinite timeout.
+
+
+
+
+ Timeout in milliseconds to wait for sending asynchronous messages or commands.
+ Set to -1 for infinite timeout.
+
+
+
+
+ Constructor or the Inactivity Monitor
+
+
+
+
+
+ Check the write to the broker
+
+
+
+
+ Checks if we should allow the read check(if less than 90% of the read
+ check time elapsed then we dont do the readcheck
+
+
+
+
+
+
+ A Transport filter that is used to log the commands sent and received.
+
+
+
+
+ A Transport which guards access to the next transport using a mutex.
+
+
+
+
+ A Transport that correlates asynchronous send/receive messages into single request/response.
+
+
+
+
+ Creates a normal transport.
+
+
+ the transport
+
+
+
+ Create a transport factory for the scheme. If we do not support the transport protocol,
+ an NMSConnectionException will be thrown.
+
+
+
+
+
+
+ A Transport which negotiates the wire format
+
+
+
+
+ A FIFO based MessageDispatchChannel.
+
+
+
+
+ Defines an interface for a Message Channel used to dispatch incoming
+ Messages to a Session or MessageConsumer. The implementation controls
+ how the messages are dequeued from the channel, one option is for a
+ FIFO ordering while another might be to sort the Message's based on the
+ set Message Priority.
+
+
+
+ Construct an IdGenerator
+
+
+
+ Generate a Unique Id
+
+
+ A
+
+
+
+
+ Generate a unique ID - that is friendly for a URL or file system
+
+
+ A
+
+
+
+
+ From a generated id - return the seed (i.e. minus the count)
+
+
+ A
+
+
+ A
+
+
+
+
+ From a generated id - return the generator count
+
+
+ A
+
+
+ A
+
+
+
+
+ Does a proper compare on the ids
+
+
+ A
+
+
+ A
+
+
+ A
+
+
+
+
+ As we have to find the hostname as a side-affect of generating a unique
+ stub, we allow it's easy retrevial here
+
+
+
+
+ Utility class used to provide conveince methods that apply named property
+ settings to objects.
+
+
+
+
+ Sets the public properties of a target object using a string map.
+ This method uses .Net reflection to identify public properties of
+ the target object matching the keys from the passed map.
+
+ The object whose properties will be set.
+ Map of key/value pairs.
+
+
+
+ Sets the public properties of a target object using a string map.
+ This method uses .Net reflection to identify public properties of
+ the target object matching the keys from the passed map.
+
+ The object whose properties will be set.
+ Map of key/value pairs.
+ Key value prefix. This is prepended to the property name
+ before searching for a matching key value.
+
+
+
+ Utility class for Tracking Memory Usage with an imposed limit on the amount
+ available. Provides methods for objects to wait on more space to become
+ available if the memory limit is reached.
+
+
+
+
+ If no space is available then this method blocks until more becomes available.
+
+
+
+
+ If no space is available then this method blocks until more becomes available
+ or until the specified timeout expires.
+
+
+ A
+
+
+
+
+ Attempts to increase the amount of Memory Used, if non is available to fill
+ then this method blocks until more is freed.
+
+
+ A
+
+
+
+
+ Increase the level of Usage.
+
+
+ A
+
+
+
+
+ Decrease the level of Usage.
+
+
+ A
+
+
+
+
+ Checks if the Usage Windows has become full, is so returns true
+ otherwise returns false.
+
+
+ A
+
+
+
+
+ Consumes Advisory Messages for Temp Destination creation on deletion so that
+ the connection can track valid destinations for its sessions, and session resources.
+
+
+
+
+ Interface that provides for a Class to provide dispatching service for
+ an OpenWire MessageDispatch command.
+
+
+
+
+ Exception thrown when the broker returns an error
+
+
+
+
+ Initializes a new instance of the BrokerException class with serialized data.
+ Throws System.ArgumentNullException if the info parameter is null.
+ Throws System.Runtime.Serialization.SerializationException if the class name is null or System.Exception.HResult is zero (0).
+
+ The SerializationInfo that holds the serialized object data about the exception being thrown.
+ The StreamingContext that contains contextual information about the source or destination.
+
+
+
+ When overridden in a derived class, sets the SerializationInfo
+ with information about the exception.
+
+ The SerializationInfo that holds the serialized object data about the exception being thrown.
+ The StreamingContext that contains contextual information about the source or destination.
+
+
+
+ Generates a nice textual stack trace
+
+
+
+
+ Default Compression policy for NMS.ActiveMQ uses the built in GZipStream
+ to compress and decompress the message body. This is not compatible with
+ compression used by ActiveMQ so users should use this with caution.
+
+
+
+
+ Policy interface for Message Compression, the policy should return
+ a new Stream for compression or decompression upon request that wraps
+ the provided Stream instance.
+
+
+
+
+ Represents a connection with a message broker
+
+
+
+
+ Starts asynchronous message delivery of incoming messages for this connection.
+ Synchronous delivery is unaffected.
+
+
+
+
+ Temporarily stop asynchronous delivery of inbound messages for this connection.
+ The sending of outbound messages is unaffected.
+
+
+
+
+ Creates a new session to work on this connection
+
+
+
+
+ Creates a new session to work on this connection
+
+
+
+
+ Performs a synchronous request-response with the broker
+
+
+
+
+
+ Performs a synchronous request-response with the broker for requested timeout duration.
+
+
+
+
+
+
+
+ Check and ensure that the connection objcet is connected. If it is not
+ connected or is closed, a ConnectionClosedException is thrown.
+
+
+
+
+ Handle incoming commands
+
+ An ITransport
+ A Command
+
+
+
+ Creates a new local transaction ID
+
+
+
+
+ A delegate that can receive transport level exceptions.
+
+
+
+
+ An asynchronous listener that is notified when a Fault tolerant connection
+ has been interrupted.
+
+
+
+
+ An asynchronous listener that is notified when a Fault tolerant connection
+ has been resumed.
+
+
+
+
+ This property indicates what version of the Protocol we are using to
+ communicate with the Broker, if not set we return the lowest version
+ number to indicate we support only the basic command set.
+
+
+
+
+ This property indicates whether or not async send is enabled.
+
+
+
+
+ This property indicates whether or not async close is enabled.
+ When the connection is closed, it will either send a synchronous
+ DisposeOf command to the broker and wait for confirmation (if true),
+ or it will send the DisposeOf command asynchronously.
+
+
+
+
+ This property indicates whether or not async sends are used for
+ message acknowledgement messages. Sending Acks async can improve
+ performance but may decrease reliability.
+
+
+
+
+ This property sets the acknowledgment mode for the connection.
+ The URI parameter connection.ackmode can be set to a string value
+ that maps to the enumeration value.
+
+
+
+
+ This property is the maximum number of bytes in memory that a producer will transmit
+ to a broker before waiting for acknowledgement messages from the broker that it has
+ accepted the previously sent messages. In other words, this how you configure the
+ producer flow control window that is used for async sends where the client is responsible
+ for managing memory usage. The default value of 0 means no flow control at the client
+
+
+
+
+ This property forces all messages that are sent to be sent synchronously overriding
+ any usage of the AsyncSend flag. This can reduce performance in some cases since the
+ only messages we normally send synchronously are Persistent messages not sent in a
+ transaction. This options guarantees that no send will return until the broker has
+ acknowledge receipt of the message
+
+
+
+
+ This property indicates whether Message's should be copied before being sent via
+ one of the Connection's send methods. Copying the Message object allows the user
+ to resuse the Object over for another send. If the message isn't copied performance
+ can improve but the user must not reuse the Object as it may not have been sent
+ before they reset its payload.
+
+
+
+
+ Enable or Disable the use of Compression on Message bodies. When enabled all
+ messages have their body compressed using the Deflate compression algorithm.
+ The recipient of the message must support the use of message compression as well
+ otherwise the receiving client will receive a message whose body appears in the
+ compressed form.
+
+
+
+
+ Indicate whether or not the resources of this Connection should support the
+ Message Priority value of incoming messages and dispatch them accordingly.
+ When disabled Message are always dispatched to Consumers in FIFO order.
+
+
+
+
+ synchronously or asynchronously by the broker.
+
+
+
+
+ The Default Client Id used if the ClientId property is not set explicity.
+
+
+
+
+ Get/or set the redelivery policy for this connection.
+
+
+
+
+ This property determines if the asynchronous message delivery of incoming
+ messages has been started for this connection.
+
+
+
+
+ Exception thrown when a connection is used that it already closed
+
+
+
+
+ Initializes a new instance of the ConnectionClosedException class with serialized data.
+ Throws System.ArgumentNullException if the info parameter is null.
+ Throws System.Runtime.Serialization.SerializationException if the class name is null or System.Exception.HResult is zero (0).
+
+ The SerializationInfo that holds the serialized object data about the exception being thrown.
+ The StreamingContext that contains contextual information about the source or destination.
+
+
+
+ Represents a connection with a message broker
+
+
+
+
+ Get/or set the broker Uri.
+
+
+
+
+ A Delegate that is called each time a Message is dispatched to allow the client to do
+ any necessary transformations on the received message before it is delivered. The
+ ConnectionFactory sets the provided delegate instance on each Connection instance that
+ is created from this factory, each connection in turn passes the delegate along to each
+ Session it creates which then passes that along to the Consumers it creates.
+
+
+
+
+ A delegate that is called each time a Message is sent from this Producer which allows
+ the application to perform any needed transformations on the Message before it is sent.
+ The ConnectionFactory sets the provided delegate instance on each Connection instance that
+ is created from this factory, each connection in turn passes the delegate along to each
+ Session it creates which then passes that along to the Producers it creates.
+
+
+
+
+ Exception thrown when a connection is used that it has failed in some way.
+
+
+
+
+ Initializes a new instance of the ConnectionFailedException class with serialized data.
+ Throws System.ArgumentNullException if the info parameter is null.
+ Throws System.Runtime.Serialization.SerializationException if the class name is null or System.Exception.HResult is zero (0).
+
+ The SerializationInfo that holds the serialized object data about the exception being thrown.
+ The StreamingContext that contains contextual information about the source or destination.
+
+
+
+ Implements the Connection Meta-Data feature for Apache.NMS.ActiveMQ
+
+
+
+
+ Exception thrown when a consumer is used that it already closed
+
+
+
+
+ Initializes a new instance of the ConsumerClosedException class with serialized data.
+ Throws System.ArgumentNullException if the info parameter is null.
+ Throws System.Runtime.Serialization.SerializationException if the class name is null or System.Exception.HResult is zero (0).
+
+ The SerializationInfo that holds the serialized object data about the exception being thrown.
+ The StreamingContext that contains contextual information about the source or destination.
+
+
+
+ Summary description for DestinationFilter.
+
+
+
+
+ Exception thrown when an IO error occurs
+
+
+
+
+ Called before a commit or rollback is applied.
+
+
+
+
+ Called after a commit
+
+
+
+
+ Called after a transaction rollback
+
+
+
+
+ An object capable of receiving messages from some destination
+
+
+
+
+ Called from the parent Session of this Consumer to indicate that its
+ parent session is closing and this Consumer should close down but not
+ send any message to the Broker as the parent close will take care of
+ removing its child resources at the broker.
+
+
+
+
+ Used to get an enqueued message from the unconsumedMessages list. The
+ amount of time this method blocks is based on the timeout value. if
+ timeout == Timeout.Infinite then it blocks until a message is received.
+ if timeout == 0 then it it tries to not block at all, it returns a
+ message if it is available if timeout > 0 then it blocks up to timeout
+ amount of time. Expired messages will consumed by this method.
+
+
+ A
+
+
+ A
+
+
+
+
+ A Delegate that is called each time a Message is dispatched to allow the client to do
+ any necessary transformations on the received message before it is delivered.
+
+
+
+
+ An object capable of sending messages to some destination
+
+
+
+
+ Called from the Parent session to deactivate this Producer, when a parent
+ is closed all children are automatically removed from the broker so this
+ method circumvents the need to send a Remove command to the broker.
+
+
+
+
+ Extends the basic Connection class to provide a transacted Connection
+ instance that operates within the bounds of a .NET Scoped Transaction.
+
+ The default Session creation methods of Connection are overriden here
+ to always return a TX capable session instance.
+
+
+
+
+ Policy class used to configure the options associated with TX
+ recovery.
+
+
+
+
+ Default provider of ISession
+
+
+
+
+ Private object used for synchronization, instead of public "this"
+
+
+
+
+ Delete a destination (Queue, Topic, Temp Queue, Temp Topic).
+
+
+
+
+ Ensures that a transaction is started
+
+
+
+
+ Prevents message from throwing an exception if a client calls Acknoweldge on
+ a message that is part of a transaction either being produced or consumed. The
+ JMS Spec indicates that users should be able to call Acknowledge with no effect
+ if the message is in a transaction.
+
+
+ A
+
+
+
+
+ Sets the prefetch size, the maximum number of messages a broker will dispatch to consumers
+ until acknowledgements are received.
+
+
+
+
+ Sets the maximum number of messages to keep around per consumer
+ in addition to the prefetch window for non-durable topics until messages
+ will start to be evicted for slow consumers.
+ Must be > 0 to enable this feature
+
+
+
+
+ Enables or disables whether asynchronous dispatch should be used by the broker
+
+
+
+
+ Enables or disables exclusive consumers when using queues. An exclusive consumer means
+ only one instance of a consumer is allowed to process messages on a queue to preserve order
+
+
+
+
+ Enables or disables retroactive mode for consumers; i.e. do they go back in time or not?
+
+
+
+
+ Sets the default consumer priority for consumers
+
+
+
+
+ A Delegate that is called each time a Message is dispatched to allow the client to do
+ any necessary transformations on the received message before it is delivered.
+ The Session instance sets the delegate on each Consumer it creates.
+
+
+
+
+ A delegate that is called each time a Message is sent from this Producer which allows
+ the application to perform any needed transformations on the Message before it is sent.
+ The Session instance sets the delegate on each Producer it creates.
+
+
+
+
+ Manually Enlists in the given Transaction. This can be used to when the
+ client is using the Session in Asynchronous listener mode since the Session
+ cannot atuomatically join in this case as there is no Ambient transaction in
+ the Message Dispatch thread. This also allows for clients to use the explicit
+ exception model when necessary.
+
+
+
+
+ Reports Transacted whenever there is an Ambient Transaction or the internal
+ TransactionContext is still involed in a .NET Transaction beyond the lifetime
+ of an ambient transaction (can happen during a scoped transaction disposing
+ without Complete being called and a Rollback is in progress.)
+
+
+
+
+ Class used to define the various limits that should be used for the Prefetch
+ limit on destination based on the type of Destination in use.
+
+
+
+
+ Exception thrown when an Request times out.
+
+
+
+
+ Method AddSynchronization
+
+
+
+
+ Should be called from NetTxSession when created to check if any TX
+ data is stored for recovery and whether the Broker has matching info
+ stored. If an Transaction is found that belongs to this client and is
+ still alive on the Broker it will be recovered, otherwise the stored
+ data should be cleared.
+
+
+
+
diff --git a/lib/Net/3.5/Apache.NMS.dll b/lib/Net/3.5/Apache.NMS.dll
new file mode 100644
index 00000000..b9dc125a
Binary files /dev/null and b/lib/Net/3.5/Apache.NMS.dll differ
diff --git a/lib/Net/3.5/Apache.NMS.xml b/lib/Net/3.5/Apache.NMS.xml
new file mode 100644
index 00000000..385b480c
--- /dev/null
+++ b/lib/Net/3.5/Apache.NMS.xml
@@ -0,0 +1,2736 @@
+
+
+
+ Apache.NMS
+
+
+
+
+ A BinaryWriter that switches the endian orientation of the write operations so that they
+ are compatible across platforms.
+
+
+
+
+ Method Write
+
+ A long
+
+
+
+ Method Write
+
+ An ushort
+
+
+
+ Method Write
+
+ An int
+
+
+
+ Method Write
+
+ A char[]
+ An int
+ An int
+
+
+
+ Method Write
+
+ A char[]
+
+
+
+ Method Write
+
+ An uint
+
+
+
+ Method Write
+
+ A char
+
+
+
+ Method Write
+
+ An ulong
+
+
+
+ Method Write
+
+ A short
+
+
+
+ Method Write, writes a string to the output using the WriteString16
+ method.
+
+ A string
+
+
+
+ Method WriteString16, writes a string to the output using the Java
+ standard modified UTF-8 encoding with an unsigned short value written first to
+ indicate the length of the encoded data, the short is read as an unsigned
+ value so the max amount of data this method can write is 65535 encoded bytes.
+
+ Unlike the WriteString32 method this method does not encode the length
+ value to -1 if the string is null, this is to match the behaviour of
+ the Java DataOuputStream class's writeUTF method.
+
+ Because modified UTF-8 encding can result in a number of bytes greater that
+ the size of the String this method must first check that the encoding proces
+ will not result in a value that cannot be written becuase it is greater than
+ the max value of an unsigned short.
+
+ A string
+
+
+
+ Method WriteString32, writes a string to the output using the Openwire
+ standard modified UTF-8 encoding which an int value written first to
+ indicate the length of the encoded data, the int is read as an signed
+ value so the max amount of data this method can write is 2^31 encoded bytes.
+
+ In the case of a null value being passed this method writes a -1 to the
+ stream to indicate that the string is null.
+
+ Because modified UTF-8 encding can result in a number of bytes greater that
+ the size of the String this method must first check that the encoding proces
+ will not result in a value that cannot be written becuase it is greater than
+ the max value of an int.
+
+ A string
+
+
+
+ Method Write
+
+ A double
+
+
+
+ Method Write
+
+ A double
+
+
+
+ A BinaryWriter that switches the endian orientation of the read operations so that they
+ are compatible across platforms.
+
+
+
+
+ Method Read
+
+ An int
+ A char[]
+ An int
+ An int
+
+
+
+ Method ReadChars
+
+ A char[]
+ An int
+
+
+
+ Method ReadInt16
+
+ A short
+
+
+
+ Method ReadChar
+
+ A char
+
+
+
+ Method ReadInt64
+
+ A long
+
+
+
+ Method ReadUInt64
+
+ An ulong
+
+
+
+ Method ReadUInt32
+
+ An uint
+
+
+
+ Method ReadUInt16
+
+ An ushort
+
+
+
+ Method ReadInt32
+
+ An int
+
+
+
+ Method ReadString
+
+ A string
+
+
+
+ Method ReadString16, reads a String value encoded in the Java modified
+ UTF-8 format with a length index encoded as a 16bit unsigned short.
+
+ A string
+
+
+
+ Method ReadString32, reads a String value encoded in the Java modified
+ UTF-8 format with a length index encoded as a singed integer value.
+
+ A string
+
+
+
+ Decrement the count, releasing any waiting Threads when the count reaches Zero.
+
+
+
+
+ Causes the current Thread to wait for the count to reach zero, unless
+ the Thread is interrupted.
+
+
+
+
+ Causes the current thread to wait until the latch has counted down to zero, unless
+ the thread is interrupted, or the specified waiting time elapses.
+
+
+
+
+ Gets the current count for this Latch.
+
+
+
+
+ A StreamMessage object is used to send a stream of primitive types in the
+ .NET programming language. It is filled and read sequentially. It inherits
+ from the Message interface and adds a stream message body.
+
+ The primitive types can be read or written explicitly using methods for each
+ type. They may also be read or written generically as objects. For instance,
+ a call to IStreamMessage.WriteInt32(6) is equivalent to
+ StreamMessage.WriteObject( (Int32)6 ). Both forms are provided, because the
+ explicit form is convenient for static programming, and the object form is
+ needed when types are not known at compile time.
+
+ When the message is first created, and when ClearBody is called, the body of
+ the message is in write-only mode. After the first call to reset has been made,
+ the message body is in read-only mode. After a message has been sent, the
+ client that sent it can retain and modify it without affecting the message
+ that has been sent. The same message object can be sent multiple times. When a
+ message has been received, the provider has called reset so that the message
+ body is in read-only mode for the client.
+
+ If ClearBody is called on a message in read-only mode, the message body is
+ cleared and the message body is in write-only mode.
+
+ If a client attempts to read a message in write-only mode, a
+ MessageNotReadableException is thrown.
+
+ If a client attempts to write a message in read-only mode, a
+ MessageNotWriteableException is thrown.
+
+ IStreamMessage objects support the following conversion table. The marked cases
+ must be supported. The unmarked cases must throw a NMSException. The
+ String-to-primitive conversions may throw a runtime exception if the primitive's
+ valueOf() method does not accept it as a valid String representation of the
+ primitive.
+
+ A value written as the row type can be read as the column type.
+
+ | | boolean byte short char int long float double String byte[]
+ |----------------------------------------------------------------------
+ |boolean | X X
+ |byte | X X X X X
+ |short | X X X X
+ |char | X X
+ |int | X X X
+ |long | X X
+ |float | X X X
+ |double | X X
+ |String | X X X X X X X X
+ |byte[] | X
+ |----------------------------------------------------------------------
+
+
+
+
+
+ Represents a message either to be sent to a message broker or received from a message broker.
+
+
+
+
+ If using client acknowledgement mode on the session, then this method will acknowledge that the
+ message has been processed correctly.
+
+
+
+
+ Clears out the message body. Clearing a message's body does not clear its header
+ values or property entries.
+
+ If this message body was read-only, calling this method leaves the message body in
+ the same state as an empty body in a newly created message.
+
+
+
+
+ Clears a message's properties.
+
+ The message's header fields and body are not cleared.
+
+
+
+
+ Provides access to the message properties (headers).
+
+
+
+
+ The correlation ID used to correlate messages from conversations or long running business processes.
+
+
+
+
+ The destination of the message. This property is set by the IMessageProducer.
+
+
+
+
+ The amount of time for which this message is valid. Zero if this message does not expire.
+
+
+
+
+ The message ID which is set by the provider.
+
+
+
+
+ Whether or not this message is persistent.
+
+
+
+
+ The Priority of this message.
+
+
+
+
+ Returns true if this message has been redelivered to this or another consumer before being acknowledged successfully.
+
+
+
+
+ The destination that the consumer of this message should send replies to
+
+
+
+
+ The timestamp of when the message was pubished in UTC time. If the publisher disables setting
+ the timestamp on the message, the time will be set to the start of the UNIX epoc (1970-01-01 00:00:00).
+
+
+
+
+ The type name of this message.
+
+
+
+
+ Reads a boolean from the stream message.
+
+
+ A
+
+
+ if the NMS provider fails to read the message due to some internal error.
+
+
+ if unexpected end of message stream has been reached.
+
+
+ if this type conversion is invalid.
+
+
+ if the message is in write-only mode.
+
+
+
+
+ Reads a byte from the stream message.
+
+
+ A
+
+
+ if the NMS provider fails to read the message due to some internal error.
+
+
+ if unexpected end of message stream has been reached.
+
+
+ if this type conversion is invalid.
+
+
+ if the message is in write-only mode.
+
+
+
+
+ Reads a byte array field from the stream message into the specified byte[]
+ object (the read buffer).
+
+ To read the field value, ReadBytes should be successively called until it returns
+ a value less than the length of the read buffer. The value of the bytes in the
+ buffer following the last byte read is undefined.
+
+ If ReadBytes returns a value equal to the length of the buffer, a subsequent
+ ReadBytes call must be made. If there are no more bytes to be read, this call
+ returns -1.
+
+ If the byte array field value is null, ReadBytes returns -1.
+ If the byte array field value is empty, ReadBytes returns 0.
+
+ Once the first ReadBytes call on a byte[] field value has been made, the full
+ value of the field must be read before it is valid to read the next field.
+ An attempt to read the next field before that has been done will throw a
+ MessageFormatException.
+
+ To read the byte field value into a new byte[] object, use the ReadObject method.
+
+
+ A
+
+
+ A
+ the total number of bytes read into the buffer, or -1 if there is no more data
+ because the end of the byte field has been reached
+
+
+ if the NMS provider fails to read the message due to some internal error.
+
+
+ if unexpected end of message stream has been reached.
+
+
+ if this type conversion is invalid.
+
+
+ if the message is in write-only mode.
+
+
+
+
+
+ Reads a char from the stream message.
+
+
+ A
+
+
+ if the NMS provider fails to read the message due to some internal error.
+
+
+ if unexpected end of message stream has been reached.
+
+
+ if this type conversion is invalid.
+
+
+ if the message is in write-only mode.
+
+
+
+
+ Reads a short from the stream message.
+
+
+ A
+
+
+ if the NMS provider fails to read the message due to some internal error.
+
+
+ if unexpected end of message stream has been reached.
+
+
+ if this type conversion is invalid.
+
+
+ if the message is in write-only mode.
+
+
+
+
+ Reads a int from the stream message.
+
+
+ A
+
+
+ if the NMS provider fails to read the message due to some internal error.
+
+
+ if unexpected end of message stream has been reached.
+
+
+ if this type conversion is invalid.
+
+
+ if the message is in write-only mode.
+
+
+
+
+ Reads a long from the stream message.
+
+
+ A
+
+
+ if the NMS provider fails to read the message due to some internal error.
+
+
+ if unexpected end of message stream has been reached.
+
+
+ if this type conversion is invalid.
+
+
+ if the message is in write-only mode.
+
+
+
+
+ Reads a float from the stream message.
+
+
+ A
+
+
+ if the NMS provider fails to read the message due to some internal error.
+
+
+ if unexpected end of message stream has been reached.
+
+
+ if this type conversion is invalid.
+
+
+ if the message is in write-only mode.
+
+
+
+
+ Reads a double from the stream message.
+
+
+ A
+
+
+ if the NMS provider fails to read the message due to some internal error.
+
+
+ if unexpected end of message stream has been reached.
+
+
+ if this type conversion is invalid.
+
+
+ if the message is in write-only mode.
+
+
+
+
+ Reads a string from the stream message.
+
+
+ A
+
+
+ if the NMS provider fails to read the message due to some internal error.
+
+
+ if unexpected end of message stream has been reached.
+
+
+ if this type conversion is invalid.
+
+
+ if the message is in write-only mode.
+
+
+
+
+ Reads a Object from the stream message.
+
+
+ A
+
+
+ if the NMS provider fails to read the message due to some internal error.
+
+
+ if unexpected end of message stream has been reached.
+
+
+ if this type conversion is invalid.
+
+
+ if the message is in write-only mode.
+
+
+
+
+ Writes a boolean to the stream message.
+
+
+ A
+
+
+ if the NMS provider fails to write to the message due to some internal error.
+
+
+ if the message is in read-only mode.
+
+
+
+
+ Writes a byte to the stream message.
+
+
+ A
+
+
+ if the NMS provider fails to write to the message due to some internal error.
+
+
+ if the message is in read-only mode.
+
+
+
+
+ Writes a byte array field to the stream message.
+
+ The byte array value is written to the message as a byte array field.
+ Consecutively written byte array fields are treated as two distinct
+ fields when the fields are read.
+
+
+ A
+
+
+ if the NMS provider fails to write to the message due to some internal error.
+
+
+ if the message is in read-only mode.
+
+
+
+
+ Writes a portion of a byte array as a byte array field to the stream message.
+
+ The a portion of the byte array value is written to the message as a byte
+ array field. Consecutively written byte array fields are treated as two distinct
+ fields when the fields are read.
+
+
+ A
+
+
+ A value that indicates the point in the buffer to
+ begin writing to the stream message.
+
+
+ A value that indicates how many bytes in the buffer
+ to write to the stream message.
+
+
+ if the NMS provider fails to write to the message due to some internal error.
+
+
+ if the message is in read-only mode.
+
+
+
+
+ Writes a char to the stream message.
+
+
+ A
+
+
+ if the NMS provider fails to write to the message due to some internal error.
+
+
+ if the message is in read-only mode.
+
+
+
+
+ Writes a short to the stream message.
+
+
+ A
+
+
+ if the NMS provider fails to write to the message due to some internal error.
+
+
+ if the message is in read-only mode.
+
+
+
+
+ Writes a int to the stream message.
+
+
+ A
+
+
+ if the NMS provider fails to write to the message due to some internal error.
+
+
+ if the message is in read-only mode.
+
+
+
+
+ Writes a long to the stream message.
+
+
+ A
+
+
+ if the NMS provider fails to write to the message due to some internal error.
+
+
+ if the message is in read-only mode.
+
+
+
+
+ Writes a float to the stream message.
+
+
+ A
+
+
+ if the NMS provider fails to write to the message due to some internal error.
+
+
+ if the message is in read-only mode.
+
+
+
+
+ Writes a double to the stream message.
+
+
+ A
+
+
+ if the NMS provider fails to write to the message due to some internal error.
+
+
+ if the message is in read-only mode.
+
+
+
+
+ Writes a string to the stream message.
+
+
+ A
+
+
+ if the NMS provider fails to write to the message due to some internal error.
+
+
+ if the message is in read-only mode.
+
+
+
+
+ Writes a boolean to the stream message.
+
+
+ A
+
+
+ if the NMS provider fails to write to the message due to some internal error.
+
+
+ if the message is in read-only mode.
+
+
+
+
+ Puts the message body in read-only mode and repositions the stream to the beginning.
+
+
+ Thrown when the Message has an invalid format.
+
+
+ Thrown when there is an unhandled exception thrown from the provider.
+
+
+
+
+ A lifecycle for NMS objects to indicate they can be started
+
+
+
+
+ A delegate that can receive messages async.
+
+
+
+
+ A delegate that a client can register that will be called each time a consumer dispatches a message
+ to the client code to allow the client to Transform a received message from one type to another,
+ StreamMessage to TextMessage, ObjectMessage to TextMessage containing XML, etc. This allows a
+ client to create a consumer that will automatically transform a message to a type that the client is
+ capable of processing or adding additional information to a received message. For messages that do
+ not need to be processed the client should return null from this method, in this case the original
+ message will be dispatched to the client.
+
+
+
+
+ A consumer of messages
+
+
+
+
+ Waits until a message is available and returns it
+
+
+
+
+ If a message is available within the timeout duration it is returned otherwise this method returns null
+
+
+
+
+ Receives the next message if one is immediately available for delivery on the client side
+ otherwise this method returns null. It is never an error for this method to return null, the
+ time of Message availability varies so your client cannot rely on this method to receive a
+ message immediately after one has been sent.
+
+
+
+
+ Closes the message consumer.
+
+
+ Clients should close message consumers them when they are not needed.
+ This call blocks until a receive or message listener in progress has completed.
+ A blocked message consumer receive call returns null when this message consumer is closed.
+
+
+
+
+ An asynchronous listener which can be used to consume messages asynchronously
+
+
+
+
+ A Delegate that is called each time a Message is dispatched to allow the client to do
+ any necessary transformations on the received message before it is delivered.
+
+
+
+
+ A Factory of IConnection objects
+
+
+
+
+ Creates a new connection
+
+
+
+
+ Creates a new connection with the given user name and password
+
+
+
+
+ Get/or set the broker Uri.
+
+
+
+
+ Get/or set the redelivery policy that new IConnection objects are
+ assigned upon creation.
+
+
+
+
+ A Delegate that is called each time a Message is dispatched to allow the client to do
+ any necessary transformations on the received message before it is delivered. The
+ ConnectionFactory sets the provided delegate instance on each Connection instance that
+ is created from this factory, each connection in turn passes the delegate along to each
+ Session it creates which then passes that along to the Consumers it creates.
+
+
+
+
+ A delegate that is called each time a Message is sent from this Producer which allows
+ the application to perform any needed transformations on the Message before it is sent.
+ The ConnectionFactory sets the provided delegate instance on each Connection instance that
+ is created from this factory, each connection in turn passes the delegate along to each
+ Session it creates which then passes that along to the Producers it creates.
+
+
+
+
+ The start of the Windows epoch
+
+
+
+
+ The start of the Java epoch
+
+
+
+
+ The difference between the Windows epoch and the Java epoch
+ in milliseconds.
+
+
+
+
+ Represents a connection failure.
+
+
+
+
+ Represents an NMS exception
+
+
+
+
+ Initializes a new instance of the NMSException class with serialized data.
+ Throws System.ArgumentNullException if the info parameter is null.
+ Throws System.Runtime.Serialization.SerializationException if the class name is null or System.Exception.HResult is zero (0).
+
+ The SerializationInfo that holds the serialized object data about the exception being thrown.
+ The StreamingContext that contains contextual information about the source or destination.
+
+
+
+ When overridden in a derived class, sets the SerializationInfo with information about the exception.
+
+ The SerializationInfo that holds the serialized object data about the exception being thrown.
+ The StreamingContext that contains contextual information about the source or destination.
+
+
+
+ Returns the error code for the exception, if one has been provided.
+
+
+
+
+ Initializes a new instance of the NMSConnectionException class with serialized data.
+ Throws System.ArgumentNullException if the info parameter is null.
+ Throws System.Runtime.Serialization.SerializationException if the class name is null or System.Exception.HResult is zero (0).
+
+ The SerializationInfo that holds the serialized object data about the exception being thrown.
+ The StreamingContext that contains contextual information about the source or destination.
+
+
+
+ A lifecycle for NMS objects to indicate they can be stopped
+
+
+
+
+ The time in milliseconds to delay a redelivery
+
+ The redelivered counter.
+
+
+
+
+ Gets or sets the collision avoidance percent. This causes the redelivery delay
+ to be adjusted in order to avoid possible collision when messages are redelivered
+ to concurrent consumers.
+
+ The collision avoidance factor.
+
+
+
+ Gets or sets a value indicating whether to [use collision avoidance].
+
+
+ true if [use collision avoidance]; otherwise, false.
+
+
+
+
+ The time in milliseconds to initially delay a redelivery
+
+ The initial redelivery delay.
+
+
+
+ Gets or sets the maximum redeliveries. A value less than zero indicates
+ that there is no maximum and the NMS provider should retry forever.
+
+ The maximum redeliveries.
+
+
+
+ Gets or sets a value indicating whether [use exponential back off].
+
+
+ true if [use exponential back off]; otherwise, false.
+
+
+
+
+ Gets or sets the back off multiplier.
+
+ The back off multiplier.
+
+
+
+ Represents an Object message which contains a serializable .Net object.
+
+
+
+
+ Represents the type of the destination such as a queue or topic.
+
+
+
+
+ A base interface for destinations such as queues or topics
+
+
+
+
+ Support class that switches from one endian to the other.
+
+
+
+
+ Initializes a new instance of the ResourceAllocationException class with serialized data.
+ Throws System.ArgumentNullException if the info parameter is null.
+ Throws System.Runtime.Serialization.SerializationException if the class name is null or System.Exception.HResult is zero (0).
+
+ The SerializationInfo that holds the serialized object data about the exception being thrown.
+ The StreamingContext that contains contextual information about the source or destination.
+
+
+
+ Represents a text based message
+
+
+
+
+ The INetTxSession interface extends the capability of Session by adding access to a NMS
+ provider's support for the Distributed Transactions (optional). The transaction support
+ leverages the .NET Frameworks System.Transactions API.
+
+ The NMS Provider implements this interface by participating in the current ambient transaction
+ as defined by the System.Transactions.Transaction.Current static member. Whenever a new
+ Transaction is entered the NMS provider should enlist in that transaction. When there is no
+ ambient transaction then the NMS Prodiver should allow the INetTxSession instance to behave
+ as a session that is in Auto Acknowledge mode.
+
+ Calling the Commit or Rollback methods on a INetTxSession instance should throw an exception
+ as those operations are controlled by the Transaction Manager.
+
+ The INetTxSession interface is optional. NMS providers are not required to support this
+ interface. This interface is for use by NMS providers to support transactional environments.
+
+
+
+
+ Represents a single unit of work on an IConnection.
+ So the ISession can be used to perform transactional receive and sends
+
+
+
+
+ Creates a producer of messages
+
+
+
+
+ Creates a producer of messages on a given destination
+
+
+
+
+ Creates a consumer of messages on a given destination
+
+
+
+
+ Creates a consumer of messages on a given destination with a selector
+
+
+
+
+ Creates a consumer of messages on a given destination with a selector
+
+
+
+
+ Creates a named durable consumer of messages on a given destination with a selector
+
+
+
+
+ Deletes a durable consumer created with CreateDurableConsumer().
+
+ Name of the durable consumer
+
+
+
+ Creates a QueueBrowser object to peek at the messages on the specified queue.
+
+
+ A
+
+
+ A
+
+
+ If the Prodiver does not support creation of Queue Browsers.
+
+
+
+
+ Creates a QueueBrowser object to peek at the messages on the specified queue
+ using a message selector.
+
+
+ A
+
+
+ A
+
+
+ A
+
+
+ If the Prodiver does not support creation of Queue Browsers.
+
+
+
+
+ Returns the queue for the given name
+
+
+
+
+ Returns the topic for the given name
+
+
+
+
+ Creates a temporary queue
+
+
+
+
+ Creates a temporary topic
+
+
+
+
+ Delete a destination (Queue, Topic, Temp Queue, Temp Topic).
+
+
+
+
+ Creates a new message with an empty body
+
+
+
+
+ Creates a new text message with an empty body
+
+
+
+
+ Creates a new text message with the given body
+
+
+
+
+ Creates a new Map message which contains primitive key and value pairs
+
+
+
+
+ Creates a new Object message containing the given .NET object as the body
+
+
+
+
+ Creates a new binary message
+
+
+
+
+ Creates a new binary message with the given body
+
+
+
+
+ Creates a new stream message
+
+
+
+
+ Closes the session. There is no need to close the producers and consumers
+ of a closed session.
+
+
+
+
+ If this is a transactional session then commit all message
+ send and acknowledgements for producers and consumers in this session
+
+
+
+
+ If this is a transactional session then rollback all message
+ send and acknowledgements for producers and consumers in this session
+
+
+
+
+ A Delegate that is called each time a Message is dispatched to allow the client to do
+ any necessary transformations on the received message before it is delivered.
+ The Session instance sets the delegate on each Consumer it creates.
+
+
+
+
+ A delegate that is called each time a Message is sent from this Producer which allows
+ the application to perform any needed transformations on the Message before it is sent.
+ The Session instance sets the delegate on each Producer it creates.
+
+
+
+
+ Initializes a new instance of the IllegalStateException class with serialized data.
+ Throws System.ArgumentNullException if the info parameter is null.
+ Throws System.Runtime.Serialization.SerializationException if the class name is null or System.Exception.HResult is zero (0).
+
+ The SerializationInfo that holds the serialized object data about the exception being thrown.
+ The StreamingContext that contains contextual information about the source or destination.
+
+
+
+ A policy used to customize exactly how you want the redelivery to work.
+
+
+
+
+ Clone this object and return a new instance that the caller now owns.
+
+
+
+
+ Gets the random number generator.
+
+ The random number generator.
+
+
+
+ Gets the next boolean
+
+ true if [next bool]; otherwise, false.
+
+
+
+ Initializes a new instance of the InvalidSelectorException class with serialized data.
+ Throws System.ArgumentNullException if the info parameter is null.
+ Throws System.Runtime.Serialization.SerializationException if the class name is null or System.Exception.HResult is zero (0).
+
+ The SerializationInfo that holds the serialized object data about the exception being thrown.
+ The StreamingContext that contains contextual information about the source or destination.
+
+
+
+ Represents a topic in a message broker. A message sent to a topic
+ is delivered to all consumers on the topic who are interested in the message.
+
+
+
+
+ Represents a Map message which contains key and value pairs which are
+ of primitive types
+
+
+
+
+ Initializes a new instance of the MessageNotWriteableException class with serialized data.
+ Throws System.ArgumentNullException if the info parameter is null.
+ Throws System.Runtime.Serialization.SerializationException if the class name is null or System.Exception.HResult is zero (0).
+
+ The SerializationInfo that holds the serialized object data about the exception being thrown.
+ The StreamingContext that contains contextual information about the source or destination.
+
+
+
+ Represents a temporary topic which exists for the duration
+ of the IConnection which created it.
+
+
+
+
+ Deletes this Temporary Destination, If there are existing receivers
+ still using it, a NMSException will be thrown.
+
+
+ If NMS Provider fails to Delete the Temp Destination or the client does
+ not support this operation.
+
+
+
+
+ An attempt is made to access an invalid destination
+
+
+
+
+ Initializes a new instance of the InvalidDestinationException class with serialized data.
+ Throws System.ArgumentNullException if the info parameter is null.
+ Throws System.Runtime.Serialization.SerializationException if the class name is null or System.Exception.HResult is zero (0).
+
+ The SerializationInfo that holds the serialized object data about the exception being thrown.
+ The StreamingContext that contains contextual information about the source or destination.
+
+
+
+
+ A BytesMessage object is used to send a message containing a stream of uninterpreted
+ bytes. It inherits from the Message interface and adds a bytes message body. The
+ receiver of the message supplies the interpretation of the bytes.
+
+ This message type is for client encoding of existing message formats. If possible,
+ one of the other self-defining message types should be used instead.
+
+ Although the NMS API allows the use of message properties with byte messages, they
+ are typically not used, since the inclusion of properties may affect the format.
+
+ When the message is first created, and when ClearBody is called, the body of the
+ message is in write-only mode. After the first call to Reset has been made, the
+ message body is in read-only mode. After a message has been sent, the client that
+ sent it can retain and modify it without affecting the message that has been sent.
+ The same message object can be sent multiple times. When a message has been received,
+ the provider has called Reset so that the message body is in read-only mode for the
+ client.
+
+ If ClearBody is called on a message in read-only mode, the message body is cleared and
+ the message is in write-only mode.
+
+ If a client attempts to read a message in write-only mode, a MessageNotReadableException
+ is thrown.
+
+ If a client attempts to write a message in read-only mode, a MessageNotWriteableException
+ is thrown.
+
+
+
+
+ Reads a byte from the Message Stream.
+
+
+ A
+
+
+ Thrown when the Message is in write-only mode.
+
+
+ Thrown when an unexpected end of bytes has been reached.
+
+
+ Thrown when there is an unhandled exception thrown from the provider.
+
+
+
+
+ Writes a byte to the Message stream.
+
+
+ A
+
+
+ Thrown when the Message is in read-only mode.
+
+
+ Thrown when there is an unhandled exception thrown from the provider.
+
+
+
+
+ Reads a boolean from the Message Stream.
+
+
+ A
+
+
+ Thrown when the Message is in write-only mode.
+
+
+ Thrown when an unexpected end of bytes has been reached.
+
+
+ Thrown when there is an unhandled exception thrown from the provider.
+
+
+
+
+ Write a one byte value to the message stream representing the boolean
+ value passed.
+
+
+ A
+
+
+ Thrown when the Message is in read-only mode.
+
+
+ Thrown when there is an unhandled exception thrown from the provider.
+
+
+
+
+ Reads a char from the Message Stream.
+
+
+ A
+
+
+ Thrown when the Message is in write-only mode.
+
+
+ Thrown when an unexpected end of bytes has been reached.
+
+
+ Thrown when there is an unhandled exception thrown from the provider.
+
+
+
+
+ Write a two byte value to the message stream representing the character
+ value passed. High byte first.
+
+
+ A
+
+
+ Thrown when the Message is in read-only mode.
+
+
+ Thrown when there is an unhandled exception thrown from the provider.
+
+
+
+
+ Reads a Short from the Message Stream.
+
+
+ A
+
+
+ Thrown when the Message is in write-only mode.
+
+
+ Thrown when an unexpected end of bytes has been reached.
+
+
+ Thrown when there is an unhandled exception thrown from the provider.
+
+
+
+
+ Write a two byte value to the message stream representing the short
+ value passed. High byte first.
+
+
+ A
+
+
+ Thrown when the Message is in read-only mode.
+
+
+ Thrown when there is an unhandled exception thrown from the provider.
+
+
+
+
+ Reads an int from the Message Stream.
+
+
+ A
+
+
+ Thrown when the Message is in write-only mode.
+
+
+ Thrown when an unexpected end of bytes has been reached.
+
+
+ Thrown when there is an unhandled exception thrown from the provider.
+
+
+
+
+ Write a four byte value to the message stream representing the integer
+ value passed. High byte first.
+
+
+ A
+
+
+ Thrown when the Message is in read-only mode.
+
+
+ Thrown when there is an unhandled exception thrown from the provider.
+
+
+
+
+ Reads a long from the Message Stream.
+
+
+ A
+
+
+ Thrown when the Message is in write-only mode.
+
+
+ Thrown when an unexpected end of bytes has been reached.
+
+
+ Thrown when there is an unhandled exception thrown from the provider.
+
+
+
+
+ Write a eight byte value to the message stream representing the long
+ value passed. High byte first.
+
+
+ A
+
+
+ Thrown when the Message is in read-only mode.
+
+
+ Thrown when there is an unhandled exception thrown from the provider.
+
+
+
+
+ Reads a float from the Message Stream.
+
+
+ A
+
+
+ Thrown when the Message is in write-only mode.
+
+
+ Thrown when an unexpected end of bytes has been reached.
+
+
+ Thrown when there is an unhandled exception thrown from the provider.
+
+
+
+
+ Write a four byte value to the message stream representing the float
+ value passed. High byte first.
+
+
+ A
+
+
+ Thrown when the Message is in read-only mode.
+
+
+ Thrown when there is an unhandled exception thrown from the provider.
+
+
+
+
+ Reads an double from the Message Stream.
+
+
+ A
+
+
+ Thrown when the Message is in write-only mode.
+
+
+ Thrown when an unexpected end of bytes has been reached.
+
+
+ Thrown when there is an unhandled exception thrown from the provider.
+
+
+
+
+ Write a eight byte value to the message stream representing the double
+ value passed. High byte first.
+
+
+ A
+
+
+ Thrown when the Message is in read-only mode.
+
+
+ Thrown when there is an unhandled exception thrown from the provider.
+
+
+
+
+ Reads a byte array from the bytes message stream.
+
+ If the length of array value is less than the number of bytes remaining to
+ be read from the stream, the array should be filled. A subsequent call reads
+ the next increment, and so on.
+
+ If the number of bytes remaining in the stream is less than the length of array
+ value, the bytes should be read into the array. The return value of the total number
+ of bytes read will be less than the length of the array, indicating that there are
+ no more bytes left to be read from the stream. The next read of the stream returns -1.
+
+
+ The byte array that will be used as a buffer to read into.
+
+
+ A
+ The number of bytes read into the passed byte array, or -1 if there are no more
+ bytes left to be read from the stream.
+
+
+ Thrown when there is an unhandled exception thrown from the provider.
+
+
+ Thrown when the Message is in write-only mode.
+
+
+
+
+ Reads a portion of the bytes message stream.
+
+ If the length of array value is less than the number of bytes remaining to be
+ read from the stream, the array should be filled. A subsequent call reads the
+ next increment, and so on.
+
+ If the number of bytes remaining in the stream is less than the length of array
+ value, the bytes should be read into the array. The return value of the total
+ number of bytes read will be less than the length of the array, indicating that
+ there are no more bytes left to be read from the stream. The next read of the
+ stream returns -1.
+
+ If length is negative, or length is greater than the length of the array value,
+ then an Exception is thrown. No bytes will be read from the stream for this
+ exception case.
+
+
+ The byte array that will be used as a buffer to read into.
+
+
+ The amount of bytes to read into the buffer.
+
+
+ A
+ The number of bytes read into the passed byte array, or -1 if there are no more
+ bytes left to be read from the stream.
+
+
+ Thrown when the Message is in write-only mode.
+
+
+ Thrown when there is an unhandled exception thrown from the provider.
+
+
+
+
+ Writes a byte array to the bytes message stream.
+
+
+ A
+
+
+ Thrown when the Message is in read-only mode.
+
+
+ Thrown when there is an unhandled exception thrown from the provider.
+
+
+
+
+ Writes a portion of a byte array to the bytes message stream.
+
+
+ A
+
+
+ A
+
+
+ A
+
+
+ Thrown when the Message is in read-only mode.
+
+
+ Thrown when there is an unhandled exception thrown from the provider.
+
+
+
+
+ Reads a string that has been encoded using a modified UTF-8 format from the bytes
+ message stream.
+
+
+ A
+
+
+ Thrown when the Message is in write-only mode.
+
+
+ Thrown when an unexpected end of bytes has been reached.
+
+
+ Thrown when there is an unhandled exception thrown from the provider.
+
+
+
+
+ Writes a string to the bytes message stream using UTF-8 encoding in a
+ machine-independent manner.
+
+
+ A
+
+
+ Thrown when the Message is in read-only mode.
+
+
+ Thrown when there is an unhandled exception thrown from the provider.
+
+
+
+
+ Writes an object to the bytes message stream.
+
+ This method works only for the objectified primitive object types
+ (Int32, Double, Boolean ...), String objects, and byte arrays.
+
+
+ A
+ the object in the .NET programming language to be written; it must not be null
+
+
+ Thrown when the Message has an invalid format.
+
+
+ Thrown when the Message is in read-only mode.
+
+
+ Thrown when there is an unhandled exception thrown from the provider.
+
+
+
+
+ Puts the message body in read-only mode and repositions the stream of bytes to the beginning.
+
+
+ Thrown when the Message has an invalid format.
+
+
+ Thrown when there is an unhandled exception thrown from the provider.
+
+
+
+
+ Gets the number of bytes of the message body when the message is in read-only mode.
+ The value returned can be used to allocate a byte array. The value returned is the
+ entire length of the message body, regardless of where the pointer for reading the
+ message is currently located.
+
+
+ Thrown when the Message is in write-only mode.
+
+
+ Thrown when there is an unhandled exception thrown from the provider.
+
+
+
+
+ Utility class used to set NMS properties via introspection for IMessage derived
+ instances. This class allows IMessage classes to define Message specific properties
+ that can be accessed using the standard property get / set semantics.
+
+ This is especially useful for NMSX type properties which can vary by provider and
+ are obtianed via a call to IConnectionMetaData.NMSXPropertyNames. The client can
+ set the properties on an IMessage instance without a direct cast to the providers
+ specific Message types.
+
+ Properties accessed in this way are treated as NMS Message headers which are never
+ read-only therefore there is no exception thrown if the message itself is in the
+ read-only property mode.
+
+
+
+
+ This class provides a mechanism to intercept calls to a IPrimitiveMap
+ instance and perform validation, handle type conversion, or some other
+ function necessary to use the PrimitiveMap in a Message or other NMS
+ object.
+
+ Be default this class enforces the standard conversion policy for primitive
+ types in NMS shown in the table below:
+
+ | | boolean byte short char int long float double String byte[]
+ |----------------------------------------------------------------------
+ |boolean | X X
+ |byte | X X X X X
+ |short | X X X X
+ |char | X X
+ |int | X X X
+ |long | X X
+ |float | X X X
+ |double | X X
+ |String | X X X X X X X X
+ |byte[] | X
+ |----------------------------------------------------------------------
+
+
+
+
+
+ Represents a Map of primitive types where the keys are all string instances
+ and the values are strings or numbers.
+
+
+
+
+ Initializes a new instance of the MessageFormatException class with serialized data.
+ Throws System.ArgumentNullException if the info parameter is null.
+ Throws System.Runtime.Serialization.SerializationException if the class name is null or System.Exception.HResult is zero (0).
+
+ The SerializationInfo that holds the serialized object data about the exception being thrown.
+ The StreamingContext that contains contextual information about the source or destination.
+
+
+
+ Initializes a new instance of the InvalidClientIDException class with serialized data.
+ Throws System.ArgumentNullException if the info parameter is null.
+ Throws System.Runtime.Serialization.SerializationException if the class name is null or System.Exception.HResult is zero (0).
+
+ The SerializationInfo that holds the serialized object data about the exception being thrown.
+ The StreamingContext that contains contextual information about the source or destination.
+
+
+
+ Initializes a new instance of the MessageEOFException class with serialized data.
+ Throws System.ArgumentNullException if the info parameter is null.
+ Throws System.Runtime.Serialization.SerializationException if the class name is null or System.Exception.HResult is zero (0).
+
+ The SerializationInfo that holds the serialized object data about the exception being thrown.
+ The StreamingContext that contains contextual information about the source or destination.
+
+
+
+ A client uses a QueueBrowser object to look at messages on a queue without removing them.
+
+ The Enumeration method returns a java.util.Enumeration that is used to scan the queue's
+ messages. It may be an enumeration of the entire content of a queue, or it may contain
+ only the messages matching a message selector.
+
+ Messages may be arriving and expiring while the scan is done. The NMS API does not
+ require the content of an enumeration to be a static snapshot of queue content. Whether
+ these changes are visible or not depends on the NMS provider.
+
+
+
+
+ Closes the QueueBrowser.
+
+
+ If NMS Provider fails to close the Browser for some reason.
+
+
+
+
+ Gets this queue browser's message selector expression. If no Message
+ selector was specified than this method returns null.
+
+
+ If NMS Provider fails to get the Message Selector for some reason.
+
+
+
+
+ Gets the queue associated with this queue browser.
+
+
+ If NMS Provider fails to retrieve the IQueue associated with the Browser
+ doe to some internal error.
+
+
+
+
+ A default implementation of IPrimitiveMap
+
+
+
+
+ Method ToString
+
+ A string
+
+
+
+ Unmarshalls the map from the given data or if the data is null just
+ return an empty map
+
+
+
+
+ Unmarshals a PrimitiveMap directly from a Stream object. This
+ allows for clients to read PrimitiveMaps from Compressed or other
+ wise encoded streams without this class needing to know about it.
+
+
+ A
+
+
+ A
+
+
+
+
+ Marshals a PrimitiveMap directly to a Stream object. This
+ allows a client to write a PrimitiveMap in a compressed or
+ otherwise encoded form without this class needing to know
+ about it.
+
+
+ A
+
+
+
+
+ Marshals the primitive type map to a byte array
+
+
+
+
+ Unmarshals the primitive type map from the given byte array
+
+
+
+
+ Represents a security failure.
+
+
+
+
+ Initializes a new instance of the NMSSecurityException class with serialized data.
+ Throws System.ArgumentNullException if the info parameter is null.
+ Throws System.Runtime.Serialization.SerializationException if the class name is null or System.Exception.HResult is zero (0).
+
+ The SerializationInfo that holds the serialized object data about the exception being thrown.
+ The StreamingContext that contains contextual information about the source or destination.
+
+
+
+ Initializes a new instance of the MessageNotReadableException class with serialized data.
+ Throws System.ArgumentNullException if the info parameter is null.
+ Throws System.Runtime.Serialization.SerializationException if the class name is null or System.Exception.HResult is zero (0).
+
+ The SerializationInfo that holds the serialized object data about the exception being thrown.
+ The StreamingContext that contains contextual information about the source or destination.
+
+
+
+ The INetTxConnection extends the functionality of the IConnection interface by
+ adding the createNetTxSession method (optional).
+
+ The INetTxConnection interface is optional. NMS providers are not required to support this
+ interface. This interface is for use by NMS providers to support transactional environments.
+
+
+
+
+ Represents a connection with a message broker
+
+
+
+
+ Creates a new session to work on this connection
+
+
+
+
+ Creates a new session to work on this connection
+
+
+
+
+ Closes the connection.
+
+
+
+
+ An asynchronous listener which can be notified if an error occurs
+
+
+
+
+ An asynchronous listener that is notified when a Fault tolerant connection
+ has been interrupted.
+
+
+
+
+ An asynchronous listener that is notified when a Fault tolerant connection
+ has been resumed.
+
+
+
+
+ A Delegate that is called each time a Message is dispatched to allow the client to do
+ any necessary transformations on the received message before it is delivered. The
+ Connection sets the provided delegate instance on each Session it creates which then
+ passes that along to the Consumers it creates.
+
+
+
+
+ A delegate that is called each time a Message is sent from this Producer which allows
+ the application to perform any needed transformations on the Message before it is sent.
+ The Connection sets the provided delegate instance on each Session it creates which then
+ passes that along to the Producer it creates.
+
+
+
+
+ The default timeout for network requests.
+
+
+
+
+ The default acknowledgement mode
+
+
+
+
+ Sets the unique clienet ID for this connection before Start() or returns the
+ unique client ID after the connection has started
+
+
+
+
+ Get/or set the redelivery policy for this connection.
+
+
+
+
+ Gets the Meta Data for the NMS Connection instance.
+
+
+
+
+ Creates a INetTxSession object.
+
+
+
+
+ A delegate that a client can register that will be called each time a Producer's send method is
+ called to allow the client to Transform a sent message from one type to another, StreamMessage to
+ TextMessage, ObjectMessage to TextMessage containing XML, etc. This allows a client to create a
+ producer that will automatically transform a message to a type that some receiving client is
+ capable of processing or adding additional information to a sent message such as additional message
+ headers, etc. For messages that do not need to be processed the client should return null from
+ this method, in this case the original message will be sent.
+
+
+
+
+ An object capable of sending messages to some destination
+
+
+
+
+ Sends the message to the default destination for this producer
+
+
+
+
+ Sends the message to the default destination with the explicit QoS configuration
+
+
+
+
+ Sends the message to the given destination
+
+
+
+
+ Sends the message to the given destination with the explicit QoS configuration
+
+
+
+
+ Close the producer.
+
+
+
+
+ Creates a new message with an empty body
+
+
+
+
+ Creates a new text message with an empty body
+
+
+
+
+ Creates a new text message with the given body
+
+
+
+
+ Creates a new Map message which contains primitive key and value pairs
+
+
+
+
+ Creates a new Object message containing the given .NET object as the body
+
+
+
+
+ Creates a new binary message
+
+
+
+
+ Creates a new binary message with the given body
+
+
+
+
+ Creates a new stream message
+
+
+
+
+ A delegate that is called each time a Message is sent from this Producer which allows
+ the application to perform any needed transformations on the Message before it is sent.
+
+
+
+
+ The mode used to acknowledge messages after they are consumed
+
+
+
+
+ With this acknowledgment mode, the session will not
+ acknowledge receipt of a message since the broker assumes
+ successful receipt of a message after the onMessage handler
+ has returned without error.
+
+
+
+
+ With this acknowledgment mode, the session automatically
+ acknowledges a client's receipt of a message either when
+ the session has successfully returned from a call to receive
+ or when the message listener the session has called to
+ process the message successfully returns. Acknowlegements
+ may be delayed in this mode to increase performance at
+ the cost of the message being redelivered this client fails.
+
+
+
+
+ With this acknowledgment mode, the client acknowledges a
+ consumed message by calling the message's acknowledge method.
+ This acknowledgement acknowledges the given message and all
+ unacknowedged messages that have preceeded it for the session
+ in which the message was delivered.
+
+
+
+
+ Messages will be consumed when the transaction commits.
+
+
+
+
+ With this acknowledgment mode, the client acknowledges a
+ consumed message by calling the message's acknowledge method.
+ This acknowledgement mode allows the client to acknowledge a
+ single message. This mode is not required to be supported by
+ all NMS providers, however the provider should throw an appropriate
+ exception to indicate that the mode is unsupported.
+
+
+
+
+ A delegate that can receive transport level exceptions.
+
+
+
+
+ A delegate that is used by Fault tolerant NMS Implementation to notify their
+ clients that the Connection is not currently active to due some error.
+
+
+
+
+ A delegate that is used by Fault tolerant NMS Implementation to notify their
+ clients that the Connection that was interrupted has now been restored.
+
+
+
+
+ Class to provide support for working with Xml objects.
+
+
+
+
+ From xml spec valid chars:
+ #x9 | #xA | #xD | [#x20-#xD7FF] | [#xE000-#xFFFD] | [#x10000-#x10FFFF]
+ any Unicode character, excluding the surrogate blocks, FFFE, and FFFF.
+
+
+
+
+ Static class constructor.
+
+
+
+
+ Serialize the object to XML format. The XML encoding will be UTF-8. A Byte Order Mark (BOM)
+ will NOT be placed at the beginning of the string.
+
+
+
+
+
+
+ This removes characters that are invalid for xml encoding
+
+ Text to be encoded.
+ Text with invalid xml characters removed.
+
+
+
+ Convert the acknowledgment mode string into AcknowledgementMode enum.
+
+
+ Equivalent enum value. If unknown string is encounted, it will default to AutoAcknowledge.
+
+
+
+ Convert an object into a text message. The object must be serializable to XML.
+
+
+
+
+ Convert an object into a text message. The object must be serializable to XML.
+
+
+
+
+ Convert a text message into an object. The object must be serializable from XML.
+
+
+
+
+ Serialize the object as XML into the Text body of the message.
+ Set the NMSType to the full name of the object type.
+
+
+
+
+
+
+
+ Deserialize the object from the text message. The object must be serializable from XML.
+
+
+
+
+
+
+ Get the runtime type for the class name. This routine will search all loaded
+ assemblies in the current App Domain to find the type.
+
+ Full name of the type.
+ Type object if found, or null if not found.
+
+
+
+ Represents a queue in a message broker. A message sent to a queue is delivered
+ to at most one consumer on the queue.
+
+
+
+
+ Class to provide support for Uri query parameters which uses .Net reflection
+ to identify and set properties.
+
+
+
+
+ Given a string that could be a Composite Uri that uses syntax not compatible
+ with the .NET Uri class such as an ActiveMQ failover Uri formatted as
+ "failover://(tcp://localhost:61616)", the initial '://' must be changed
+ to ':(' so that the Uri class doesn't attempt to parse the '(tcp:' as
+ the Uri's Authority as that is not a valid host name.
+
+
+ A string that could be a Composite Uri that uses syntax not compatible
+ with the .NET Uri class
+
+
+
+
+ Parse a Uri query string of the form ?x=y&z=0
+ into a map of name/value pairs.
+
+ The query string to parse. This string should not contain
+ Uri escape characters.
+
+
+
+ Sets the public properties of a target object using a string map.
+ This method uses .Net reflection to identify public properties of
+ the target object matching the keys from the passed map.
+
+ The object whose properties will be set.
+ Map of key/value pairs.
+
+
+
+ Sets the public properties of a target object using a string map.
+ This method uses .Net reflection to identify public properties of
+ the target object matching the keys from the passed map.
+
+ The object whose properties will be set.
+ Map of key/value pairs.
+ Key value prefix. This is prepended to the property name
+ before searching for a matching key value.
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Represents a temporary queue which exists for the duration
+ of the IConnection which created it.
+
+
+
+
+ Deletes this Temporary Destination, If there are existing receivers
+ still using it, a NMSException will be thrown.
+
+
+ If NMS Provider fails to Delete the Temp Destination or the client does
+ not support this operation.
+
+
+
+
+ Initializes a new instance of the TransactionRolledBackException class with serialized data.
+ Throws System.ArgumentNullException if the info parameter is null.
+ Throws System.Runtime.Serialization.SerializationException if the class name is null or System.Exception.HResult is zero (0).
+
+ The SerializationInfo that holds the serialized object data about the exception being thrown.
+ The StreamingContext that contains contextual information about the source or destination.
+
+
+
+ Initializes a new instance of the TransactionInProgressException class with serialized data.
+ Throws System.ArgumentNullException if the info parameter is null.
+ Throws System.Runtime.Serialization.SerializationException if the class name is null or System.Exception.HResult is zero (0).
+
+ The SerializationInfo that holds the serialized object data about the exception being thrown.
+ The StreamingContext that contains contextual information about the source or destination.
+
+
+
+ Provider implementation mapping class.
+
+
+
+
+ Implementation of a factory for instances.
+
+
+
+
+ Static class constructor
+
+
+
+
+ The ConnectionFactory object must define a constructor that takes as a minimum a Uri object.
+ Any additional parameters are optional, but will typically include a Client ID string.
+
+ The URI for the ActiveMQ provider.
+ Optional parameters to use when creating the ConnectionFactory.
+
+
+
+ The ConnectionFactory object must define a constructor that takes as a minimum a Uri object.
+ Any additional parameters are optional, but will typically include a Client ID string.
+
+ The URI for the ActiveMQ provider.
+ Optional parameters to use when creating the ConnectionFactory.
+
+
+
+ Create a connection factory that can create connections for the given scheme in the URI.
+
+ The URI for the ActiveMQ provider.
+ Optional parameters to use when creating the ConnectionFactory.
+ A implementation that will be used.
+
+
+
+ Finds the associated with the given scheme.
+
+ The scheme (e.g. tcp, activemq or stomp).
+ The of the ConnectionFactory that will be used
+ to create the connection for the specified .
+
+
+
+ Lookup the connection factory assembly filename and class name.
+ Read an external configuration file that maps scheme to provider implementation.
+ Load XML config files named: nmsprovider-{scheme}.config
+ Following is a sample configuration file named nmsprovider-jms.config. Replace
+ the parenthesis with angle brackets for proper XML formatting.
+
+ (?xml version="1.0" encoding="utf-8" ?)
+ (configuration)
+ (provider assembly="MyCompany.NMS.JMSProvider.dll" classFactory="MyCompany.NMS.JMSProvider.ConnectionFactory"/)
+ (/configuration)
+
+ This configuration file would be loaded and parsed when a connection uri with a scheme of 'jms'
+ is used for the provider. In this example the connection string might look like:
+ jms://localhost:7222
+
+
+ Folder paths to look in.
+ The scheme.
+ Name of the assembly file.
+ Name of the factory class.
+ true if the configuration file for the specified could
+ be found; otherwise, false.
+
+
+
+ Get an array of search paths to look for config files.
+
+
+ A collection of search paths, including the current directory, the current AppDomain's
+ BaseDirectory and the current AppDomain's RelativeSearchPath.
+
+
+
+
+ Converts a params object[] collection into a plain object[]s, to pass to the constructor.
+
+ The first parameter in the collection.
+ The remaining parameters.
+ An array of instances.
+
+
+
+ Creates a new connection.
+
+ An created by the requested ConnectionFactory.
+
+
+
+ Creates a new connection with the given and credentials.
+
+ The username to use when establishing the connection.
+ The password to use when establishing the connection.
+ An created by the requested ConnectionFactory.
+
+
+
+ Get/or set the broker Uri.
+
+
+
+
+ The actual IConnectionFactory implementation that is being used. This implementation
+ depends on the scheme of the URI used when constructed.
+
+
+
+
+ Get/or Set the IRedeliveryPolicy instance using the IConnectionFactory implementation
+ that is being used.
+
+
+
+
+ Get/or Set the ConsumerTransformerDelegate using the IConnectionFactory implementation
+ that is currently being used.
+
+
+
+
+ Get/or Set the ProducerTransformerDelegate using the IConnectionFactory implementation
+ that is currently being used.
+
+
+
+
+ The ITrace interface is used internally by ActiveMQ to log messages.
+ The client aplication may provide an implementation of ITrace if it wishes to
+ route messages to a specific destination.
+
+
+
+ Use the class to register an instance of ITrace as the
+ active trace destination.
+
+
+
+
+
+ Provides information describing the NMS IConnection instance.
+
+
+
+
+ Get the Major version number of the NMS API this Provider supports.
+
+
+
+
+ Get the Minor version number of the NMS API this Provider supports.
+
+
+
+
+ Get the name of this NMS Provider.
+
+
+
+
+ Gets a formatted string detailing the NMS API version this Provider supports.
+
+
+
+
+ Gets a String array of all the NMSX property names this NMS Provider supports.
+
+
+
+
+ Gets the Providers Major version number.
+
+
+
+
+ Gets the Providers Minor version number.
+
+
+
+
+ Gets a formatted string detailing the version of this NMS Provider.
+
+
+
+
+ Class to provide support for working with Session objects.
+
+
+
+
+ Get the destination by parsing the embedded type prefix. Default is Queue if no prefix is
+ embedded in the destinationName.
+
+ Session object to use to get the destination.
+ Name of destination with embedded prefix. The embedded prefix can be one of the following:
+
+ queue://
+ topic://
+ temp-queue://
+ temp-topic://
+
+
+
+
+
+
+ Get the destination by parsing the embedded type prefix.
+
+ Session object to use to get the destination.
+ Name of destination with embedded prefix. The embedded prefix can be one of the following:
+
+ queue://
+ topic://
+ temp-queue://
+ temp-topic://
+
+
+ Default type if no embedded prefix is specified.
+
+
+
+
+ Delete the named destination by parsing the embedded type prefix. Default is Queue if no prefix is
+ embedded in the destinationName.
+
+ Session object to use to get the destination.
+ Name of destination with embedded prefix. The embedded prefix can be one of the following:
+
+ queue://
+ topic://
+ temp-queue://
+ temp-topic://
+
+
+
+
+
+
+ Delete the named destination by parsing the embedded type prefix.
+
+ Session object to use to get the destination.
+ Name of destination with embedded prefix. The embedded prefix can be one of the following:
+
+ queue://
+ topic://
+ temp-queue://
+ temp-topic://
+
+
+ Default type if no embedded prefix is specified.
+
+
+
+
+ Base Utility class for conversion between IMessage type objects for different
+ NMS providers.
+
+
+
+
+ Copies the standard NMS and user defined properties from the givem
+ message to the specified message, the class version transforms the
+ Destination instead of just doing a straight copy.
+
+
+
+
+ Copies the standard NMS and user defined properties from the givem
+ message to the specified message, this method makes no attempt to convert
+ the values in the Message to native provider implementations.
+
+
+
+
+ Define an enumerated array of message priorities.
+
+
+
+
+ Define an enumerated array of message delivery modes. Provider-specific
+ values can be used to extend this enumerated mode. TIBCO is known to
+ provide a third value of ReliableDelivery. At minimum, a provider must
+ support Persistent and NonPersistent.
+
+
+
+
+ Defines a number of constants
+
+
+
+
+ Some application servers provide support for use in a .NET transactions (optional).
+
+ To include NMS API transactions in a MSDTC transaction, an application server requires a
+ .NET Transaction aware NMS provider that is capable of mapping the MSDTC transaction model
+ into operations that are supported by the application server. An NMS provider exposes its
+ .NET Transaction support using an INetTxConnectionFactory object, which an application
+ server uses to create INetTxConnection objects.
+
+ The INetTxConnectionFactory interface is optional. NMS providers are not required to support this
+ interface. This interface is for use by NMS providers to support transactional environments.
+
+
+
+
+ Creates a new connection
+
+
+
+
+ Creates a new connection with the given user name and password
+
+
+
+
diff --git a/lib/Net/3.5/Common.Logging.dll b/lib/Net/3.5/Common.Logging.dll
new file mode 100644
index 00000000..5c1feac9
Binary files /dev/null and b/lib/Net/3.5/Common.Logging.dll differ
diff --git a/lib/Net/3.5/Ionic.Zlib.dll b/lib/Net/3.5/Ionic.Zlib.dll
new file mode 100644
index 00000000..7c29e8cc
Binary files /dev/null and b/lib/Net/3.5/Ionic.Zlib.dll differ
diff --git a/lib/Net/3.5/NUnitAsp.dll b/lib/Net/3.5/NUnitAsp.dll
new file mode 100644
index 00000000..9f45eff8
Binary files /dev/null and b/lib/Net/3.5/NUnitAsp.dll differ
diff --git a/lib/Net/3.5/NUnitAspEx.dll b/lib/Net/3.5/NUnitAspEx.dll
new file mode 100644
index 00000000..030f906e
Binary files /dev/null and b/lib/Net/3.5/NUnitAspEx.dll differ
diff --git a/lib/Net/3.5/NUnitAspEx.xml b/lib/Net/3.5/NUnitAspEx.xml
new file mode 100644
index 00000000..41bacde7
--- /dev/null
+++ b/lib/Net/3.5/NUnitAspEx.xml
@@ -0,0 +1,139 @@
+
+
+
+ NUnitAspEx
+
+
+
+
+ Encapsulates a request from within a testsuite using the "asptest://" pseudo-protocol.
+
+
+
+
+ Encapsulates the ugly details of deriving from HttpWebRequest.
+
+
+ Since various frameworks like NUnitAsp rely on the output of WebRequest.Create() being of type HttpWebRequest
+ but HttpWebRequest is not customizable the easy way, this class shields further derived classes from the ugly reflection details.
+
+
+
+
+ Creates a new instance for the given uri.
+
+ the to create this request for.
+
+
+
+
+
+
+
+
+
+
+ Override this method in your derived class and call to set the response object.
+
+
+
+
+ Create the stream to be used for uploading content.
+
+
+
+
+
+ Encapsulates a response from an .
+
+
+
+
+ Encapsulates the ugly details of deriving from HttpWebResponse.
+
+
+
+
+ Summary description for HttpReflectionUtils.
+
+
+
+
+ Summary description for HttpWebClient.
+
+
+
+
+ An AspFixtureHost lives inside it's own AppDomain with an initialized HttpRuntime.
+
+
+
+
+ Summary description for IAspFixtureHost.
+
+
+
+
+ Creates a new Host instance within a new AppDomain based on the passed in Properties.
+
+
+ You must not call this method from within an existing Host's AppDomain.
+
+
+
+
+ Unload the passed Host's AppDomain.
+
+
+
+
+ Return null to avoid timing out of remoting references
+
+
+
+
+
+ Initializes the newly created host instance.
+
+
+
+
+ Use this property to gain access to the Host from within the Host's AppDomain
+
+
+ This property is set only within the Host's AppDomain.
+ Outside the AppDomain it will always return null.
+
+
+
+
+ Use to synchronize access to this host instance
+
+
+
+
+ Returns a reference to the AppDomain, that created this Host instance
+
+
+
+
+ Returns the physical assembly reference location this AppDomain has been created from.
+
+
+
+
+ Summary description for AspTestClient.
+
+
+
+
+ Summary description for AspTestContext.
+
+
+
+
+ Summary description for AspTestExecutionModule.
+
+
+
+
diff --git a/lib/Net/3.5/NVelocity.dll b/lib/Net/3.5/NVelocity.dll
new file mode 100644
index 00000000..9b44dfeb
Binary files /dev/null and b/lib/Net/3.5/NVelocity.dll differ
diff --git a/lib/Net/3.5/Rhino.Mocks.dll b/lib/Net/3.5/Rhino.Mocks.dll
new file mode 100644
index 00000000..3fc4b2ae
Binary files /dev/null and b/lib/Net/3.5/Rhino.Mocks.dll differ
diff --git a/lib/Net/3.5/Rhino.Mocks.xml b/lib/Net/3.5/Rhino.Mocks.xml
new file mode 100644
index 00000000..b1f76384
--- /dev/null
+++ b/lib/Net/3.5/Rhino.Mocks.xml
@@ -0,0 +1,5624 @@
+
+
+
+ Rhino.Mocks
+
+
+
+
+ Defines constraints and return values for arguments of a mock.
+ Only use Arg inside a method call on a mock that is recording.
+ Example:
+ ExpectCall(
+ mock.foo(
+ Arg<int>.Is.GreaterThan(2),
+ Arg<string>.Is.Anything
+ ));
+ Use Arg.Text for string specific constraints
+ Use Arg<ListClass>.List for list specific constraints
+
+
+
+
+
+ Register the predicate as a constraint for the current call.
+
+ The predicate.
+ default(T)
+
+ Allow you to use code to create constraints
+
+ demo.AssertWasCalled(x => x.Bar(Arg{string}.Matches(a => a.StartsWith("b") && a.Contains("ba"))));
+
+
+
+
+
+ Define a complex constraint for this argument by passing several constraints
+ combined with operators. (Use Is in simple cases.)
+ Example: Arg<string>.Matches(Is.Equal("Hello") || Text.EndsWith("u"));
+
+ Constraints using Is, Text and List
+ Dummy to satisfy the compiler
+
+
+
+ Define a Ref argument.
+
+ Constraints for this argument
+ value returned by the mock
+
+
+
+
+ Define a out parameter. Use it together with the keyword out and use the
+ Dummy field available by the return value.
+ Example: mock.foo( out Arg<string>.Out("hello").Dummy );
+
+
+
+
+
+
+ Define a simple constraint for this argument. (Use Matches in simple cases.)
+ Example:
+ Arg<int>.Is.Anthing
+ Arg<string>.Is.Equal("hello")
+
+
+
+
+ Define Constraints on list arguments.
+
+
+
+
+ Use the Arg class (without generic) to define Text constraints
+
+
+
+
+ Evaluate an equal constraint for .
+
+ The object the parameter should equal to
+
+
+
+ Define constraints on text arguments.
+
+
+
+
+ Used to manage the static state of the Arg<T> class"/>
+
+
+
+
+ Resets the static state
+
+
+
+
+ Returns return values for the out and ref parameters
+ Note: the array returned has the size of the number of out and ref
+ argument definitions
+
+
+
+
+
+ Returns the constraints for all arguments.
+ Out arguments have an Is.Anything constraint and are also in the list.
+
+
+
+
+
+ What should BackToRecord clear
+
+
+
+
+ Retain all expectations and behaviors and return to mock
+
+
+
+
+ All expectations
+
+
+
+
+ Event subscribers for this instance
+
+
+
+
+ Methods that should be forwarded to the base class implementation
+
+
+
+
+ Properties that should behave like properties
+
+
+
+
+ Remove all the behavior of the object
+
+
+
+
+ Interface for constraints
+
+
+
+
+ Determines if the object pass the constraints
+
+
+
+
+ And operator for constraints
+
+
+
+
+ Not operator for constraints
+
+
+
+
+ Or operator for constraints
+
+
+
+
+ Allow overriding of || or &&
+
+
+
+
+
+
+ Allow overriding of || or &&
+
+
+
+
+
+
+ Gets the message for this constraint
+
+
+
+
+
+ Constrain that the public field has a specified value
+
+
+
+
+ Constrain that the public field matches another constraint.
+
+
+
+
+ Creates a new instance.
+
+ Name of the public field.
+ Constraint to place on the public field value.
+
+
+
+ Creates a new instance, specifying a disambiguating
+ for the public field.
+
+ The type that declares the public field, used to disambiguate between public fields.
+ Name of the public field.
+ Constraint to place on the public field value.
+
+
+
+ Determines if the object passes the constraint.
+
+
+
+
+ Gets the message for this constraint
+
+
+
+
+
+ Creates a new instance.
+
+ Name of the public field.
+ Expected value.
+
+
+
+ Creates a new instance, specifying a disambiguating
+ for the public field.
+
+ The type that declares the public field, used to disambiguate between public fields.
+ Name of the public field.
+ Expected value.
+
+
+
+ Constrain that the property has a specified value
+
+
+
+
+ Constrain that the property matches another constraint.
+
+
+
+
+ Creates a new instance.
+
+ Name of the property.
+ Constraint to place on the property value.
+
+
+
+ Creates a new instance, specifying a disambiguating
+ for the property.
+
+ The type that declares the property, used to disambiguate between properties.
+ Name of the property.
+ Constraint to place on the property value.
+
+
+
+ Determines if the object passes the constraint.
+
+
+
+
+ Gets the message for this constraint
+
+
+
+
+
+ Creates a new instance.
+
+ Name of the property.
+ Expected value.
+
+
+
+ Creates a new instance, specifying a disambiguating
+ for the property.
+
+ The type that declares the property, used to disambiguate between properties.
+ Name of the property.
+ Expected value.
+
+
+
+ Constrain that the parameter must be of the specified type
+
+
+
+
+ Creates a new instance.
+
+ Type.
+
+
+
+ Determines if the object pass the constraints
+
+
+
+
+ Gets the message for this constraint
+
+
+
+
+
+ Constraint that determines whether an object is the same object as another.
+
+
+
+
+ Creates a new instance.
+
+ Obj.
+
+
+
+ Determines if the object passes the constraints.
+
+
+
+
+ Gets the message for this constraint.
+
+
+
+
+ Evaluate a parameter using constraints
+
+
+
+
+ Create new instance
+
+
+
+
+
+ Determines if the object pass the constraints
+
+
+
+
+ Gets the message for this constraint
+
+
+
+
+
+ A constraint based on lambda expression, we are using Expression{T}
+ because we want to be able to get good error reporting on that.
+
+
+
+
+ Initializes a new instance of the class.
+
+ The expr.
+
+
+
+ Determines if the object pass the constraints
+
+
+
+
+
+
+ Gets the message for this constraint
+
+
+
+
+
+ Constrain that the list contains the same items as the parameter list
+
+
+
+
+ Creates a new instance.
+
+ In list.
+
+
+
+ Determines if the object pass the constraints
+
+
+
+
+ Gets the message for this constraint
+
+
+
+
+
+ Constrain that the parameter is one of the items in the list
+
+
+
+
+ Creates a new instance.
+
+ In list.
+
+
+
+ Determines if the object pass the constraints
+
+
+
+
+ Gets the message for this constraint
+
+
+
+
+
+ Constrain that the object is inside the parameter list
+
+
+
+
+ Creates a new instance.
+
+ In list.
+
+
+
+ Determines if the object pass the constraints
+
+
+
+
+ Gets the message for this constraint
+
+
+
+
+
+ Applies another AbstractConstraint to the collection count.
+
+
+
+
+ Creates a new instance.
+
+ The constraint that should be applied to the collection count.
+
+
+
+ Determines if the parameter conforms to this constraint.
+
+
+
+
+ Gets the message for this constraint.
+
+
+
+
+ Applies another AbstractConstraint to a specific list element.
+
+
+
+
+ Creates a new instance.
+
+ The zero-based index of the list element.
+ The constraint that should be applied to the list element.
+
+
+
+ Determines if the parameter conforms to this constraint.
+
+
+
+
+ Gets the message for this constraint
+
+
+
+
+
+ Applies another AbstractConstraint to a specific generic keyed list element.
+
+
+
+
+ Creates a new instance.
+
+ The key of the list element.
+ The constraint that should be applied to the list element.
+
+
+
+ Determines if the parameter conforms to this constraint.
+
+
+
+
+ Gets the message for this constraint
+
+
+
+
+
+ Constrains that all elements are in the parameter list
+
+
+
+
+ Initializes a new instance of the class.
+
+ The these.
+
+
+
+ Determines if the object pass the constraints
+
+
+
+
+
+
+ Gets the message for this constraint
+
+
+
+
+
+ Combines two constraints, constraint pass if either is fine.
+
+
+
+
+ Creates a new instance.
+
+ C1.
+ C2.
+
+
+
+ Determines if the object pass the constraints
+
+
+
+
+ Gets the message for this constraint
+
+
+
+
+
+ Negate a constraint
+
+
+
+
+ Creates a new instance.
+
+ C1.
+
+
+
+ Determines if the object pass the constraints
+
+
+
+
+ Gets the message for this constraint
+
+
+
+
+
+ Combines two constraints
+
+
+
+
+
+ Creates a new instance.
+
+ C1.
+ C2.
+
+
+
+ Determines if the object pass the constraints
+
+
+
+
+ Gets the message for this constraint
+
+
+
+
+
+ Constrain the argument to validate according to regex pattern
+
+
+
+
+ Creates a new instance.
+
+ Pattern.
+
+
+
+ Determines if the object pass the constraints
+
+
+
+
+ Gets the message for this constraint
+
+
+
+
+
+ Constraint that evaluate whatever an argument contains the specified string.
+
+
+
+
+ Creates a new instance.
+
+ Inner string.
+
+
+
+ Determines if the object pass the constraints
+
+
+
+
+ Gets the message for this constraint
+
+
+
+
+
+ Constraint that evaluate whatever an argument ends with the specified string
+
+
+
+
+ Creates a new instance.
+
+ End.
+
+
+
+ Determines if the object pass the constraints
+
+
+
+
+ Gets the message for this constraint
+
+
+
+
+
+ Constraint that evaluate whatever an argument start with the specified string
+
+
+
+
+ Creates a new instance.
+
+ Start.
+
+
+
+ Determines if the object pass the constraints
+
+
+
+
+ Gets the message for this constraint
+
+
+
+
+
+ Constraint that evaluate whatever an object equals another
+
+
+
+
+ Creates a new instance.
+
+ Obj.
+
+
+
+ Determines if the object pass the constraints
+
+
+
+
+ Gets the message for this constraint
+
+
+
+
+
+ Constraint that always returns true
+
+
+
+
+ Determines if the object pass the constraints
+
+
+
+
+ Gets the message for this constraint
+
+
+
+
+
+ Constraint that evaluate whatever a comparable is greater than another
+
+
+
+
+ Creates a new instance.
+
+
+
+
+ Determines if the object pass the constraints
+
+
+
+
+ Gets the message for this constraint
+
+
+
+
+
+ Initializes a new constraint object.
+
+ The expected object, The actual object is passed in as a parameter to the method
+
+
+
+ Evaluate this constraint.
+
+ The actual object that was passed in the method call to the mock.
+ True when the constraint is met, else false.
+
+
+
+ Checks if the properties of the object
+ are the same as the properies of the object.
+
+ The expected object
+ The actual object
+ True when both objects have the same values, else False.
+
+
+
+
+
+
+
+
+ This is the real heart of the beast.
+
+
+
+ Used by CheckReferenceType to check all properties of the reference type.
+
+ The expected object
+ The actual object
+ True when both objects have the same values, else False.
+
+
+
+ Used by CheckReferenceType to check all fields of the reference type.
+
+ The expected object
+ The actual object
+ True when both objects have the same values, else False.
+
+
+
+ Checks the items of both collections
+
+ The expected collection
+
+ True if both collections contain the same items in the same order.
+
+
+
+ Builds a propertyname from the Stack _properties like 'Order.Product.Price'
+ to be used in the error message.
+
+ A nested property name.
+
+
+
+ Rhino.Mocks uses this property to generate an error message.
+
+
+ A message telling the tester why the constraint failed.
+
+
+
+
+ Provides access to the constraintes defined in the class to be used in context
+ with the syntax.
+
+ The type of the argument
+
+
+
+ Evaluate a greater than constraint for .
+
+ The object the parameter should be greater than
+
+
+
+ Evaluate a less than constraint for .
+
+ The object the parameter should be less than
+
+
+
+ Evaluate a less than or equal constraint for .
+
+ The object the parameter should be less than or equal to
+
+
+
+ Evaluate a greater than or equal constraint for .
+
+ The object the parameter should be greater than or equal to
+
+
+
+ Evaluate an equal constraint for .
+
+ The object the parameter should equal to
+
+
+
+ Converts the object type to a better match if this is a primitive type.
+
+ The obj.
+
+
+
+
+ Converts the object type to match.
+
+
+ Because of implicit conversions and the way ArgConstraints this method is needed to check
+ object type and potentially change the object type for a better "match" so that obj1.Equals(obj2)
+ will return the proper "answer"
+
+ The obj.
+
+
+
+
+ Evaluate a not equal constraint for .
+
+ The object the parameter should not equal to
+
+
+
+ Evaluate a same as constraint.
+
+ The object the parameter should the same as.
+
+
+
+ Evaluate a not same as constraint.
+
+ The object the parameter should not be the same as.
+
+
+
+ Throws NotSupportedException. Don't use Equals to define constraints. Use Equal instead.
+
+
+
+
+
+
+ Serves as a hash function for a particular type.
+
+
+ A hash code for the current .
+
+
+
+
+ A constraints that accept anything
+
+
+
+
+
+ A constraint that accept only nulls
+
+
+
+
+
+ A constraint that accept only non null values
+
+
+
+
+
+ A constraint that accept only value of the specified type.
+ The check is performed on the type that has been defined
+ as the argument type.
+
+
+
+
+ Provides access to the constraints defined in the class to be used in context
+ with the syntax.
+
+
+
+
+ Determines whether the specified object is in the parameter.
+ The parameter must be IEnumerable.
+
+ Obj.
+
+
+
+
+ Determines whatever the parameter is in the collection.
+
+
+
+
+ Determines that the parameter collection is identical to the specified collection
+
+
+
+
+ Determines that the parameter collection has the specified number of elements.
+
+ The constraint that should be applied to the collection count.
+
+
+
+ Determines that an element of the parameter collections conforms to another AbstractConstraint.
+
+ The zero-based index of the list element.
+ The constraint which should be applied to the list element.
+
+
+
+ Determines that all elements of the specified collection are in the the parameter collection
+
+ The collection to compare against
+ The constraint which should be applied to the list parameter.
+
+
+
+ Throws NotSupportedException. Don't use Equals to define constraints. Use Equal instead.
+
+
+
+
+
+
+ Serves as a hash function for a particular type.
+
+
+ A hash code for the current .
+
+
+
+
+ Provides a dummy field to pass as out or ref argument.
+
+
+
+
+
+ Dummy field to satisfy the compiler. Used for out and ref arguments.
+
+
+
+
+ Central location for constraints for object's public fields
+
+
+
+
+ Constrains the parameter to have a public field with the specified value
+
+ Name of the public field.
+ Expected value.
+
+
+
+
+ Constrains the parameter to have a public field with the specified value.
+
+ The type that declares the public field, used to disambiguate between public fields.
+ Name of the public field.
+ Expected value.
+
+
+
+
+ Constrains the parameter to have a public field satisfying a specified constraint.
+
+ Name of the public field.
+ Constraint for the public field.
+
+
+
+ Constrains the parameter to have a public field satisfying a specified constraint.
+
+ The type that declares the public field, used to disambiguate between public fields.
+ Name of the public field.
+ Constraint for the public field.
+
+
+
+ Determines whether the parameter has the specified public field and that it is null.
+
+ Name of the public field.
+
+
+
+
+ Determines whether the parameter has the specified public field and that it is null.
+
+ The type that declares the public field, used to disambiguate between public fields.
+ Name of the public field.
+
+
+
+
+ Determines whether the parameter has the specified public field and that it is not null.
+
+ Name of the public field.
+
+
+
+
+ Determines whether the parameter has the specified public field and that it is not null.
+
+ The type that declares the public field, used to disambiguate between public fields.
+ Name of the public field.
+
+
+
+
+ Central location for constraints
+
+
+
+
+ Evaluate a greater than constraint for .
+
+ The object the parameter should be greater than
+
+
+
+ Evaluate a less than constraint for .
+
+ The object the parameter should be less than
+
+
+
+ Evaluate a less than or equal constraint for .
+
+ The object the parameter should be less than or equal to
+
+
+
+ Evaluate a greater than or equal constraint for .
+
+ The object the parameter should be greater than or equal to
+
+
+
+ Evaluate an equal constraint for .
+
+ The object the parameter should equal to
+
+
+
+ Evaluate a not equal constraint for .
+
+ The object the parameter should not equal to
+
+
+
+ Evaluate a same as constraint.
+
+ The object the parameter should the same as.
+
+
+
+ Evaluate a not same as constraint.
+
+ The object the parameter should not be the same as.
+
+
+
+ A constraints that accept anything
+
+
+
+
+
+ A constraint that accept only nulls
+
+
+
+
+
+ A constraint that accept only non null values
+
+
+
+
+
+ A constraint that accept only value of the specified type
+
+
+
+
+ A constraint that accept only value of the specified type
+
+
+
+
+ Evaluate a parameter using a predicate
+
+ The predicate to use
+
+
+
+ Central location for constraints about lists and collections
+
+
+
+
+ Determines whether the specified obj is in the parameter.
+ The parameter must be IEnumerable.
+
+ Obj.
+
+
+
+
+ Determines whatever the parameter is in the collection.
+
+
+
+
+ Determines that the parameter collection is identical to the specified collection
+
+
+
+
+ Determines that the parameter collection has the specified number of elements.
+
+ The constraint that should be applied to the collection count.
+
+
+
+ Determines that an element of the parameter collections conforms to another AbstractConstraint.
+
+ The zero-based index of the list element.
+ The constraint which should be applied to the list element.
+
+
+
+ Determines that an element of the parameter collections conforms to another AbstractConstraint.
+
+ The key of the element.
+ The constraint which should be applied to the element.
+
+
+
+ Determines that all elements of the specified collection are in the the parameter collection
+
+ The collection to compare against
+ The constraint which should be applied to the list parameter.
+
+
+
+ Central location for constraints for object's properties
+
+
+
+
+ Constrains the parameter to have property with the specified value
+
+ Name of the property.
+ Expected value.
+
+
+
+
+ Constrains the parameter to have property with the specified value.
+
+ The type that declares the property, used to disambiguate between properties.
+ Name of the property.
+ Expected value.
+
+
+
+
+ Constrains the parameter to have a property satisfying a specified constraint.
+
+ Name of the property.
+ Constraint for the property.
+
+
+
+ Constrains the parameter to have a property satisfying a specified constraint.
+
+ The type that declares the property, used to disambiguate between properties.
+ Name of the property.
+ Constraint for the property.
+
+
+
+ Determines whether the parameter has the specified property and that it is null.
+
+ Name of the property.
+
+
+
+
+ Determines whether the parameter has the specified property and that it is null.
+
+ The type that declares the property, used to disambiguate between properties.
+ Name of the property.
+
+
+
+
+ Determines whether the parameter has the specified property and that it is not null.
+
+ Name of the property.
+
+
+
+
+ Determines whether the parameter has the specified property and that it is not null.
+
+ The type that declares the property, used to disambiguate between properties.
+ Name of the property.
+
+
+
+
+ constraints the parameter to have the exact same property values as the expected object.
+
+ An object, of the same type as the parameter, whose properties are set with the expected values.
+ An instance of the constraint that will do the actual check.
+
+ The parameter's public property values and public field values will be matched against the expected object's
+ public property values and public field values. The first mismatch will be reported and no further matching is done.
+ The matching is recursive for any property or field that has properties or fields of it's own.
+ Collections are supported through IEnumerable, which means the constraint will check if the actual and expected
+ collection contain the same values in the same order, where the values contained by the collection can have properties
+ and fields of their own that will be checked as well because of the recursive nature of this constraint.
+
+
+
+
+ Central location for all text related constraints
+
+
+
+
+ Constrain the argument to starts with the specified string
+
+
+
+
+ Constrain the argument to end with the specified string
+
+
+
+
+ Constrain the argument to contain the specified string
+
+
+
+
+ Constrain the argument to validate according to regex pattern
+
+
+
+
+ Provides access to the constraintes defined in the class to be used in context
+ with the syntax.
+
+
+
+
+ Constrain the argument to starts with the specified string
+
+
+
+
+
+ Constrain the argument to end with the specified string
+
+
+
+
+ Constrain the argument to contain the specified string
+
+
+
+
+ Constrain the argument to validate according to regex pattern
+
+
+
+
+ Throws NotSupportedException. Don't use Equals to define constraints. Use Equal instead.
+
+
+
+
+
+
+ Serves as a hash function for a particular type.
+
+
+ A hash code for the current .
+
+
+
+
+ This class defines a lot of method signatures, which we will use
+ to allow compatability on net-2.0
+
+
+
+
+ dummy
+
+
+
+
+ dummy
+
+
+
+
+ dummy
+
+
+
+
+ dummy
+
+
+
+
+ dummy
+
+
+
+
+ dummy
+
+
+
+
+ dummy
+
+
+
+
+ dummy
+
+
+
+
+ dummy
+
+
+
+
+ dummy
+
+
+
+
+ dummy
+
+
+
+
+ dummy
+
+
+ dummy
+
+
+
+
+ dummy
+
+
+
+
+ dummy
+
+
+
+
+ dummy
+
+
+
+
+ dummy
+
+
+
+
+ dummy
+
+
+
+
+ dummy
+
+
+
+
+ dummy
+
+
+
+
+ dummy
+
+
+
+
+ dummy
+
+
+
+
+ Allows expectations to be set on methods that should never be called.
+ For methods with void return value, you need to use LastCall or
+ DoNotExpect.Call() with a delegate.
+
+
+
+
+ Sets LastCall.Repeat.Never() on /any/ proxy on /any/ repository on the current thread.
+ This method if not safe for multi threading scenarios.
+
+
+
+
+ Accepts a delegate that will execute inside the method which
+ LastCall.Repeat.Never() will be applied to.
+ It is expected to be used with anonymous delegates / lambda expressions and only one
+ method should be called.
+
+
+ IService mockSrv = mocks.CreateMock(typeof(IService)) as IService;
+ DoNotExpect.Call(delegate{ mockSrv.Stop(); });
+ ...
+
+
+
+
+ An expectaton violation was detected.
+
+
+
+
+ Creates a new instance.
+
+ Message.
+
+
+
+ Serialization constructor
+
+
+
+
+ Signals that an object was call on a mock repository which doesn't
+ belong to this mock repository or not a mock
+
+
+
+
+ Creates a new instance.
+
+ Message.
+
+
+
+ Serialization constructor
+
+
+
+
+ Allows to set expectation on methods that has return values.
+ For methods with void return value, you need to use LastCall
+
+
+
+
+ The method options for the last call on /any/ proxy on /any/ repository on the current thread.
+ This method if not safe for multi threading scenarios, use .
+
+
+
+
+ Accepts a delegate that will execute inside the method, and then return the resulting
+ instance.
+ It is expected to be used with anonymous delegates / lambda expressions and only one
+ method should be called.
+
+
+ IService mockSrv = mocks.CreateMock(typeof(IService)) as IService;
+ Expect.Call(delegate{ mockSrv.Start(); }).Throw(new NetworkException());
+ ...
+
+
+
+
+ Get the method options for the last method call on the mockInstance.
+
+
+
+
+ A delegate that can be used to get better syntax on Expect.Call(delegate { foo.DoSomething(); });
+
+
+
+
+ Abstract class that holds common information for
+ expectations.
+
+
+
+
+ Interface to validate that a method call is correct.
+
+
+
+
+ Validate the arguments for the method.
+ This method can be called numerous times, so be careful about side effects
+
+ The arguments with which the method was called
+
+
+
+ Add an actual method call to this expectation
+
+
+
+
+ Returns the return value or throw the exception and setup any output / ref parameters
+ that has been set.
+
+
+
+
+ Builds the verification failure message.
+
+
+
+
+
+ Gets the error message.
+
+
+
+
+
+ Range of expected calls
+
+
+
+
+ Number of call actually made for this method
+
+
+
+
+ If this expectation is still waiting for calls.
+
+
+
+
+ The return value for a method matching this expectation
+
+
+
+
+ Gets or sets the exception to throw on a method matching this expectation.
+
+
+
+
+ Gets a value indicating whether this instance's action is staisfied.
+ A staisfied instance means that there are no more requirements from
+ this method. A method with non void return value must register either
+ a return value or an exception to throw.
+
+
+
+
+ Gets the method this expectation is for.
+
+
+
+
+ Gets or sets what special condtions there are for this method
+ repeating.
+
+
+
+
+ Gets a value indicating whether this expectation was satisfied
+
+
+
+
+ Specify whatever this expectation has a return value set
+ You can't check ReturnValue for this because a valid return value include null.
+
+
+
+
+ An action to execute when the method is matched.
+
+
+
+
+ Set the out / ref parameters for the method call.
+ The indexing is zero based and ignores any non out/ref parameter.
+ It is possible not to pass all the parameters. This method can be called only once.
+
+
+
+
+ Documentation Message
+
+
+
+
+ Gets the invocation for this expectation
+
+ The invocation.
+
+
+
+ Occurs when the exceptation is match on a method call
+
+
+
+
+ Allow to set the return value in the future, if it was already set.
+
+
+
+
+ Number of actuall calls made that passed this expectation
+
+
+
+
+ Range of expected calls that should pass this expectation.
+
+
+
+
+ The return value for a method matching this expectation
+
+
+
+
+ The exception to throw on a method matching this expectation.
+
+
+
+
+ The method this expectation is for.
+
+
+
+
+ The return value for this method was set
+
+
+
+
+ Whether this method will repeat
+ unlimited number of times.
+
+
+
+
+ A delegate that will be run when the
+ expectation is matched.
+
+
+
+
+ The arguments that matched this expectation.
+
+
+
+
+ Documentation message
+
+
+
+
+ The method originalInvocation
+
+
+
+
+ Get the hash code
+
+
+
+
+ Add an actual actualMethodCall call to this expectation
+
+
+
+
+ Builds the verification failure message.
+
+
+
+
+
+ Returns the return value or throw the exception and setup output / ref parameters
+
+
+
+
+ Validate the arguments for the method on the child methods
+
+ The arguments with which the method was called
+
+
+
+ Creates a new instance.
+
+ The originalInvocation for this method, required because it contains the generic type infromation
+ Number of method calls for this expectations
+
+
+
+ Creates a new instance.
+
+ Expectation.
+
+
+
+ Validate the arguments for the method on the child methods
+
+ The arguments with which the method was called
+
+
+
+ Determines if this object equal to obj
+
+
+
+
+ The error message for these arguments
+
+
+
+
+ Asserts that the delegate has the same parameters as the expectation's method call
+
+
+
+
+ Setter for the outpur / ref parameters for this expecataion.
+ Can only be set once.
+
+
+
+
+ Specify whether this expectation has a return value set
+ You can't check ReturnValue for this because a valid return value include null.
+
+
+
+
+ Gets the method this expectation is for.
+
+
+
+
+ Gets the originalInvocation for this expectation
+
+ The originalInvocation.
+
+
+
+ Gets or sets what special condtions there are for this method
+
+
+
+
+ Range of expected calls
+
+
+
+
+ Number of call actually made for this method
+
+
+
+
+ If this expectation is still waiting for calls.
+
+
+
+
+ Gets a value indicating whether this expectation was satisfied
+
+
+
+
+ The return value for a method matching this expectation
+
+
+
+
+ An action to execute when the method is matched.
+
+
+
+
+ Gets or sets the exception to throw on a method matching this expectation.
+
+
+
+
+ Gets a value indicating whether this instance's action is staisfied.
+ A staisfied instance means that there are no more requirements from
+ this method. A method with non void return value must register either
+ a return value or an exception to throw or an action to execute.
+
+
+
+
+ Documentation message
+
+
+
+
+ Occurs when the exceptation is match on a method call
+
+
+
+
+ Allow to set the return value in the future, if it was already set.
+
+
+
+
+ Gets the error message.
+
+
+
+
+
+ Expectation that matches any arguments for the method.
+
+
+
+
+ Creates a new instance.
+
+ Invocation for this expectation
+ Number of method calls for this expectations
+
+
+
+ Creates a new instance.
+
+ Expectation.
+
+
+
+ Validate the arguments for the method.
+
+ The arguments with which the method was called
+
+
+
+ Determines if the object equal to expectation
+
+
+
+
+ Get the hash code
+
+
+
+
+ Gets the error message.
+
+
+
+
+
+ Summary description for ArgsEqualExpectation.
+
+
+
+
+ Creates a new instance.
+
+ Expected args.
+ The invocation for this expectation
+ Number of method calls for this expectations
+
+
+
+ Validate the arguments for the method.
+
+ The arguments with which the method was called
+
+
+
+ Determines if the object equal to expectation
+
+
+
+
+ Get the hash code
+
+
+
+
+ Gets the error message.
+
+
+
+
+
+ Get the expected args.
+
+
+
+
+ Call a specified callback to verify the expectation
+
+
+
+
+ Creates a new instance.
+
+ Expectation.
+ Callback.
+
+
+
+ Creates a new instance.
+
+ Invocation for this expectation
+ Callback.
+ Number of method calls for this expectations
+
+
+
+ Validate the arguments for the method on the child methods
+
+ The arguments with which the method was called
+
+
+
+ Determines if the object equal to expectation
+
+
+
+
+ Get the hash code
+
+
+
+
+ Gets the error message.
+
+
+
+
+
+ Expect the method's arguments to match the contraints
+
+
+
+
+ Creates a new instance.
+
+ Invocation for this expectation
+ Constraints.
+ Number of method calls for this expectations
+
+
+
+ Creates a new instance.
+
+ Expectation.
+ Constraints.
+
+
+
+ Validate the arguments for the method.
+
+ The arguments with which the method was called
+
+
+
+ Determines if the object equal to expectation
+
+
+
+
+ Get the hash code
+
+
+
+
+ Gets the error message.
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Summary for AndSpecification
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Summary description for FollowsEventNamingStandard
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Summary descritpion for NamedEventExistsOnDeclaringType
+
+
+
+
+
+
+
+
+ Doesn't log anything, just makes happy noises
+
+
+
+
+ Log expectations - allows to see what is going on inside Rhino Mocks
+
+
+
+
+ Logs the expectation as is was recorded
+
+ The invocation.
+ The expectation.
+
+
+
+ Logs the expectation as it was recorded
+
+ The invocation.
+ The expectation.
+
+
+
+ Logs the unexpected method call.
+
+ The invocation.
+ The message.
+
+
+
+ Logs the expectation as is was recorded
+
+ The invocation.
+ The expectation.
+
+
+
+ Logs the expectation as it was recorded
+
+ The invocation.
+ The expectation.
+
+
+
+ Logs the unexpected method call.
+
+ The invocation.
+ The message.
+
+
+
+ Operation on a remoting proxy
+
+
+ It is not possible to directly communicate to a real proxy via transparent proxy.
+ Transparent proxy impersonates a user type and only methods of that user type are callable.
+ The only methods that are guaranteed to exist on any transparent proxy are methods defined
+ in Object: namely ToString(), GetHashCode(), and Equals()).
+
+ These three methods are the only way to tell the real proxy to do something.
+ Equals() is the most suitable of all, since it accepts an arbitrary object parameter.
+ The RemotingProxy code is built so that if it is compared to an IRemotingProxyOperation,
+ transparentProxy.Equals(operation) will call operation.Process(realProxy).
+ This way we can retrieve a real proxy from transparent proxy and perform
+ arbitrary operation on it.
+
+
+
+
+ Generates remoting proxies and provides utility functions
+
+
+
+
+ Create the proxy using remoting
+
+
+
+
+ Check whether an object is a transparent proxy with a RemotingProxy behind it
+
+ Object to check
+ true if the object is a transparent proxy with a RemotingProxy instance behind it, false otherwise
+ We use Equals() method to communicate with the real proxy behind the object.
+ See IRemotingProxyOperation for more details
+
+
+
+ Retrieve a mocked object from a transparent proxy
+
+ Transparent proxy with a RemotingProxy instance behind it
+ Mocked object associated with the proxy
+ We use Equals() method to communicate with the real proxy behind the object.
+ See IRemotingProxyOperation for more details
+
+
+
+ Implementation of IInvocation based on remoting proxy
+
+ Some methods are marked NotSupported since they either don't make sense
+ for remoting proxies, or they are never called by Rhino Mocks
+
+
+
+ Rudimetry implementation that simply logs methods calls as text.
+
+
+
+
+ Initializes a new instance of the class.
+
+ The writer.
+
+
+
+ Logs the expectation as it was recorded
+
+ The invocation.
+ The expectation.
+
+
+
+ Logs the expectation as it was recorded
+
+ The invocation.
+ The expectation.
+
+
+
+ Logs the unexpected method call.
+
+ The invocation.
+ The message.
+
+
+
+ Behave like a stub, all properties and events acts normally, methods calls
+ return default values by default (but can use expectations to set them up), etc.
+
+
+
+
+ Records all the expectations for a mock
+
+
+
+
+ Different actions on this mock
+
+
+
+
+ Add a method call for this state' mock.
+
+ The invocation for this method
+ The method that was called
+ The arguments this method was called with
+
+
+
+ Verify that this mock expectations have passed.
+
+
+
+
+ Verify that we can move to replay state and move
+ to the reply state.
+
+
+
+
+ Gets a mock state that match the original mock state of the object.
+
+
+
+
+ Get the options for the last method call
+
+
+
+
+ Set the exception to throw when Verify is called.
+ This is used to report exception that may have happened but where caught in the code.
+ This way, they are reported anyway when Verify() is called.
+
+
+
+
+ This method is called to indicate that a property behavior call.
+ This is done so we generate good error message in the common case of people using
+ Stubbed properties with Return().
+
+
+
+
+ Gets the matching verify state for this state
+
+
+
+
+ Get the options for the last method call
+
+
+
+
+ Get the options for the last method call
+
+
+
+
+ Set the exception to throw when Verify is called.
+ This is used to report exception that may have happened but where caught in the code.
+ This way, they are reported anyway when Verify() is called.
+
+
+
+
+ This method is called to indicate that a property behavior call.
+ This is done so we generate good error message in the common case of people using
+ Stubbed properties with Return().
+
+
+
+
+ Creates a new instance.
+
+ Repository.
+ The proxy that generates the method calls
+
+
+
+ Add a method call for this state' mock.
+
+ The invocation for this method
+ The method that was called
+ The arguments this method was called with
+
+
+
+ Verify that we can move to replay state and move
+ to the reply state.
+
+
+
+
+ Verify that we can move to replay state and move
+ to the reply state.
+
+
+
+
+ Verify that this mock expectations have passed.
+
+
+
+
+ Gets a mock state that match the original mock state of the object.
+
+
+
+
+ Asserts the previous method is closed (had an expectation set on it so we can replay it correctly)
+
+
+
+
+ Get the default call count range expectation
+
+
+
+
+
+ Gets the last expectation.
+
+
+
+
+ Gets the total method calls count.
+
+
+
+
+ Get the options for the last method call
+
+
+
+
+ Gets the matching verify state for this state
+
+
+
+
+ Initializes a new instance of the class.
+
+ The proxy that generates the method calls
+ Repository.
+
+
+
+ We don't care much about expectations here, so we will remove the expectation if
+ it is not closed.
+
+
+
+
+ Verify that we can move to replay state and move
+ to the reply state.
+
+
+
+
+
+ Get the default call count range expectation
+
+
+
+
+
+ Validate expectations on recorded methods, but in general completely ignoring them.
+ Similar to except that it would return a
+ when BackToRecord is called.
+
+
+
+
+ Validate all expectations on a mock
+
+
+
+
+ The repository for this state
+
+
+
+
+ The proxy object for this state
+
+
+
+
+ Get the options for the last method call
+
+
+
+
+ Creates a new instance.
+
+ The previous state for this method
+
+
+
+ Add a method call for this state' mock.
+
+ The invocation for this method
+ The method that was called
+ The arguments this method was called with
+
+
+
+ Add a method call for this state' mock.
+ This allows derived method to cleanly get a the setupresult behavior while adding
+ their own.
+
+ The invocation for this method
+ The method that was called
+ The arguments this method was called with
+
+
+
+ Set the exception to throw when Verify is called.
+ This is used to report exception that may have happened but where caught in the code.
+ This way, they are reported anyway when Verify() is called.
+
+
+
+
+ not relevant
+
+
+
+
+ Verify that this mock expectations have passed.
+
+
+
+
+ Verify that we can move to replay state and move
+ to the reply state.
+
+
+
+
+ Gets a mock state that match the original mock state of the object.
+
+
+
+
+ Get the options for the last method call
+
+
+
+
+ Gets the matching verify state for this state
+
+
+
+
+ Initializes a new instance of the class.
+
+ The previous state for this method
+
+
+
+ Add a method call for this state' mock.
+
+ The invocation for this method
+ The method that was called
+ The arguments this method was called with
+
+
+
+ Gets a mock state that matches the original mock state of the object.
+
+
+
+
+ Write rhino mocks log info to the trace
+
+
+
+
+ Initializes a new instance of the class.
+
+
+
+
+ Initializes a new instance of the class.
+
+ if set to true [log recorded].
+ if set to true [log replayed].
+ if set to true [log unexpected].
+
+
+
+ Logs the expectation as is was recorded
+
+ The invocation.
+ The expectation.
+
+
+
+ Logs the expectation as it was recorded
+
+ The invocation.
+ The expectation.
+
+
+
+ Logs the unexpected method call.
+
+ The invocation.
+ The message.
+
+
+
+ Writes log information as stack traces about rhino mocks activity
+
+
+
+
+ Allows to redirect output to a different location.
+
+
+
+
+ Logs the expectation as is was recorded
+
+ The invocation.
+ The expectation.
+
+
+
+ Logs the expectation as it was recorded
+
+ The invocation.
+ The expectation.
+
+
+
+ Logs the unexpected method call.
+
+ The invocation.
+ The message.
+
+
+
+ Marker interface used to indicate that this is a partial mock.
+
+
+
+
+ Options for CallOriginalMethod
+
+
+
+
+ No expectation is created, the method will be called directly
+
+
+
+
+ Normal expectation is created, but when the method is later called, it will also call the original method
+
+
+
+
+ This is a data structure that is used by
+ to pass
+ the current method to the relevant delegate
+
+
+
+
+ Initializes a new instance of the class.
+
+ The invocation.
+
+
+
+ Gets the args for this method invocation
+
+
+
+
+ Get the method that was caused this invocation
+
+
+
+
+ Gets or sets the return value for this method invocation
+
+ The return value.
+
+
+
+ Adds optional new usage:
+ using(mockRepository.Record()) {
+ Expect.Call(mock.Method()).Return(retVal);
+ }
+ using(mockRepository.Playback()) {
+ // Execute code
+ }
+ N.B. mockRepository.ReplayAll() and mockRepository.VerifyAll()
+ calls are taken care of by Record/Playback
+
+
+ Creates proxied instances of types.
+
+
+
+ Generates a stub without needing a
+ Arguments for 's constructor
+ The of stub to create.
+ The stub
+
+
+
+ Generates a stub without needing a
+ The of stub.
+ Arguments for the 's constructor.
+ The stub
+
+
+
+ Generate a mock object without needing a
+ type of mock object to create.
+ Arguments for 's constructor
+ the mock object
+
+
+
+ Generate a multi-mock object without needing a
+ The typeof object to generate a mock for.
+ A second interface to generate a multi-mock for.
+ Arguments for 's constructor
+ the multi-mock object
+
+
+
+ Generate a multi-mock object without without needing a
+ The typeof object to generate a mock for.
+ An interface to generate a multi-mock for.
+ A second interface to generate a multi-mock for.
+ Arguments for 's constructor
+ the multi-mock object
+
+
+
+ Creates a multi-mock without without needing a
+ The type of mock to create, this can be a class
+ Any extra interfaces to add to the multi-mock, these can only be interfaces.
+ Arguments for 's constructor
+ the multi-mock object
+
+
+
+ Creates a strict mock without without needing a
+ Any arguments required for the 's constructor
+ The type of mock object to create.
+ The mock object with strict replay semantics
+
+
+
+ Creates a strict multi-mock without needing a
+ Any arguments required for the 's constructor
+ The type of mock object to create, this can be a class.
+ An interface to generate a multi-mock for, this must be an interface!
+ The multi-mock object with strict replay semantics
+
+
+
+ Creates a strict multi-mock without needing a
+ Any arguments required for the 's constructor
+ The type of mock object to create, this can be a class.
+ An interface to generate a multi-mock for, this must be an interface!
+ A second interface to generate a multi-mock for, this must be an interface!
+ The multi-mock object with strict replay semantics
+
+
+
+ Creates a strict multi-mock without needing a
+ The type of mock object to create, this can be a class
+ Any extra interfaces to generate a multi-mock for, these must be interaces!
+ Any arguments for the 's constructor
+ The strict multi-mock object
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Generate a mock object with dynamic replay semantics and remoting without needing the mock repository
+
+
+
+
+ Generate a mock object with strict replay semantics and remoting without needing the mock repository
+
+
+
+ Helper method to create a mock object without a repository instance and put the object back into replay mode.
+ The type of mock object to create
+ A delegate that uses a mock repository instance to create the underlying mock
+ The mock object in the replay mode.
+
+
+
+
+
+
+
+
+
+
+
+
+
+ This is a map of types to ProxyGenerators.
+
+
+
+
+ This is used to record the last repository that has a method called on it.
+
+
+
+
+ this is used to get to the last proxy on this repository.
+
+
+
+
+ For mock delegates, maps the proxy instance from intercepted invocations
+ back to the delegate that was originally returned to client code, if any.
+
+
+
+
+ All the proxies in the mock repositories
+
+
+
+
+ This is here because we can't put it in any of the recorders, since repeatable methods
+ have no orderring, and if we try to handle them using the usual manner, we would get into
+ wierd situations where repeatable method that was defined in an orderring block doesn't
+ exists until we enter this block.
+
+
+
+
+ Creates a new instance.
+
+
+
+
+ Move the repository to ordered mode
+
+
+
+
+ Move the repository to un-ordered mode
+
+
+
+
+ Creates a mock for the specified type.
+
+ Type.
+ Arguments for the class' constructor, if mocking a concrete class
+
+
+
+ Creates a strict mock for the specified type.
+
+ Type.
+ Arguments for the class' constructor, if mocking a concrete class
+
+
+
+ Creates a remoting mock for the specified type.
+
+ Type.
+ Arguments for the class' constructor, if mocking a concrete class
+
+
+
+ Creates a strict remoting mock for the specified type.
+
+ Type.
+ Arguments for the class' constructor, if mocking a concrete class
+
+
+
+ Creates a remoting mock for the specified type.
+
+
+ Arguments for the class' constructor, if mocking a concrete class
+
+
+
+
+ Creates a strict remoting mock for the specified type.
+
+
+ Arguments for the class' constructor, if mocking a concrete class
+
+
+
+
+ Creates a mock from several types, with strict semantics.
+ Only may be a class.
+
+
+
+
+ Creates a strict mock from several types, with strict semantics.
+ Only may be a class.
+
+
+
+
+ Creates a mock from several types, with strict semantics.
+ Only may be a class.
+
+ The main type to mock.
+ Extra interface types to mock.
+ Arguments for the class' constructor, if mocking a concrete class.
+
+
+
+ Creates a strict mock from several types, with strict semantics.
+ Only may be a class.
+
+ The main type to mock.
+ Extra interface types to mock.
+ Arguments for the class' constructor, if mocking a concrete class.
+
+
+
+ Creates a mock from several types, with dynamic semantics.
+ Only may be a class.
+
+ The main type to mock.
+ Extra interface types to mock.
+
+
+
+ Creates a mock from several types, with dynamic semantics.
+ Only may be a class.
+
+ The main type to mock.
+ Extra interface types to mock.
+ Arguments for the class' constructor, if mocking a concrete class.
+
+
+ Creates a dynamic mock for the specified type.
+ Type.
+ Arguments for the class' constructor, if mocking a concrete class
+
+
+ Creates a dynamic mock for the specified type.
+ Type.
+ Arguments for the class' constructor, if mocking a concrete class
+
+
+ Creates a dynamic mock for the specified type.
+
+ Arguments for the class' constructor, if mocking a concrete class
+
+
+
+ Creates a mock object that defaults to calling the class methods if no expectation is set on the method.
+ Type.
+ Arguments for the class' constructor.
+
+
+ Creates a mock object that defaults to calling the class methods.
+ Type.
+ Extra interface types to mock.
+
+
+ Creates a mock object that defaults to calling the class methods.
+ Type.
+ Extra interface types to mock.
+ Arguments for the class' constructor.
+
+
+ Creates a mock object using remoting proxies
+ Type to mock - must be MarshalByRefObject
+ Mock object
+ Proxy mock can mock non-virtual methods, but not static methods
+ Creates the mock state for this proxy
+
+
+
+ Cause the mock state to change to replay, any further call is compared to the
+ ones that were called in the record state.
+
+ This method *cannot* be called from inside an ordering.
+ the object to move to replay state
+
+
+
+ Cause the mock state to change to replay, any further call is compared to the
+ ones that were called in the record state.
+
+ the object to move to replay state
+
+
+
+ Move the mocked object back to record state.You can (and it's recommended) to run {Verify()} before you use this method.
+ Will delete all current expectations!
+
+
+
+ Move the mocked object back to record state.
+ Optionally, can delete all current expectations, but allows more granularity about how
+ it would behave with regard to the object state.
+
+
+
+
+ Verify that all the expectations for this object were fulfilled.
+
+ the object to verify the expectations for
+
+
+
+ Get the method options for the last call on
+ mockedInstance.
+
+ The mock object
+ Method options for the last call
+
+
+
+ Maps an invocation proxy back to the mock object instance that was originally
+ returned to client code which might have been a delegate to this proxy.
+
+ The mock object proxy from the intercepted invocation
+ The mock object
+
+
+ This is provided to allow advance extention functionality, where Rhino Mocks standard functionality is not enough.
+ The type to mock
+ Delegate that create the first state of the mocked object (usualy the record state).
+ Additional types to be implemented, this can be only interfaces
+ optional arguments for the constructor
+
+
+
+
+ Method: GetMockedObject
+ Get an IProxy from a mocked object instance, or throws if the
+ object is not a mock object.
+
+
+
+
+ Method: GetMockedObjectOrNull
+ Get an IProxy from a mocked object instance, or null if the
+ object is not a mock object.
+
+
+
+ Pops the recorder.
+
+
+ Pushes the recorder.
+ New recorder.
+
+
+
+ All the mock objects in this repository will be moved
+ to record state.
+
+
+
+
+ All the mock objects in this repository will be moved
+ to record state.
+
+
+
+
+ Replay all the mocks from this repository
+
+
+
+
+ Verify all the mocks from this repository
+
+
+
+
+ Gets the proxy generator for a specific type. Having a single ProxyGenerator
+ with multiple types linearly degrades the performance so this implementation
+ keeps one ProxyGenerator per type.
+
+
+
+ Set the exception to be thrown when verified is called.
+
+
+
+ Creates a mock for the spesified type with strict mocking semantics.
+ Strict semantics means that any call that wasn't explicitly recorded is considered an error and would cause an exception to be thrown.
+
+ Arguments for the class' constructor, if mocking a concrete class
+
+
+
+ Creates a mock for the spesified type with strict mocking semantics.
+ Strict semantics means that any call that wasn't explicitly recorded is considered an error and would cause an exception to be thrown.
+
+ Arguments for the class' constructor, if mocking a concrete class
+
+
+
+ Creates a dynamic mock for the specified type.
+
+ Arguments for the class' constructor, if mocking a concrete class
+
+
+
+ Creates a mock object from several types.
+
+
+
+
+ Creates a strict mock object from several types.
+
+
+
+
+ Create a mock object from several types with dynamic semantics.
+
+
+
+
+ Create a mock object from several types with partial semantics.
+
+
+
+
+ Create a mock object from several types with strict semantics.
+
+ Extra interface types to mock.
+ Arguments for the class' constructor, if mocking a concrete class
+
+
+
+ Create a strict mock object from several types with strict semantics.
+
+ Extra interface types to mock.
+ Arguments for the class' constructor, if mocking a concrete class
+
+
+
+ Create a mock object from several types with dynamic semantics.
+
+ Extra interface types to mock.
+ Arguments for the class' constructor, if mocking a concrete class
+
+
+
+ Create a mock object from several types with partial semantics.
+
+ Extra interface types to mock.
+ Arguments for the class' constructor, if mocking a concrete class
+
+
+
+ Create a mock object with from a class that defaults to calling the class methods
+
+ Arguments for the class' constructor, if mocking a concrete class
+
+
+
+ Create a stub object, one that has properties and events ready for use, and
+ can have methods called on it. It requires an explicit step in order to create
+ an expectation for a stub.
+
+ The arguments for constructor.
+
+
+
+ Create a stub object, one that has properties and events ready for use, and
+ can have methods called on it. It requires an explicit step in order to create
+ an expectation for a stub.
+
+ The type.
+ The arguments for constructor.
+ The stub
+
+
+
+ Returns true if the passed mock is currently in replay mode.
+
+ The mock to test.
+ True if the mock is in replay mode, false otherwise.
+
+
+
+ Determines whether the specified proxy is a stub.
+
+ The proxy.
+
+
+
+ Register a call on a prperty behavior
+
+
+
+
+
+ Gets the recorder.
+
+
+
+
+
+ Gets the replayer for this repository.
+
+
+
+
+
+ Gets the last proxy which had a method call.
+
+
+
+
+ Delegate: CreateMockState
+ This is used internally to cleanly handle the creation of different
+ RecordMockStates.
+
+
+
+
+ A set of extension methods that adds Arrange Act Assert mode to Rhino Mocks
+
+
+
+
+ Create an expectation on this mock for this action to occur
+
+
+ The mock.
+ The action.
+
+
+
+
+ Reset all expectations on this mock object
+
+
+ The mock.
+
+
+
+ Reset the selected expectation on this mock object
+
+
+ The mock.
+ The options to reset the expectations on this mock.
+
+
+
+ Cause the mock state to change to replay, any further call is compared to the
+ ones that were called in the record state.
+
+ the mocked object to move to replay state
+
+
+
+ Gets the mock repository for this specificied mock object
+
+
+ The mock.
+
+
+
+
+ Create an expectation on this mock for this action to occur
+
+
+
+ The mock.
+ The action.
+
+
+
+
+ Tell the mock object to perform a certain action when a matching
+ method is called.
+ Does not create an expectation for this method.
+
+
+ The mock.
+ The action.
+
+
+
+
+ Tell the mock object to perform a certain action when a matching
+ method is called.
+ Does not create an expectation for this method.
+
+
+
+ The mock.
+ The action.
+
+
+
+
+ Gets the arguments for calls made on this mock object and the method that was called
+ in the action.
+
+
+ The mock.
+ The action.
+
+
+ Here we will get all the arguments for all the calls made to DoSomething(int)
+
+ var argsForCalls = foo54.GetArgumentsForCallsMadeOn(x => x.DoSomething(0))
+
+
+
+
+
+ Gets the arguments for calls made on this mock object and the method that was called
+ in the action and matches the given constraints
+
+
+ The mock.
+ The action.
+ The setup constraints.
+
+
+ Here we will get all the arguments for all the calls made to DoSomething(int)
+
+ var argsForCalls = foo54.GetArgumentsForCallsMadeOn(x => x.DoSomething(0))
+
+
+
+
+
+ Asserts that a particular method was called on this mock object
+
+
+ The mock.
+ The action.
+
+
+
+ Asserts that a particular method was called on this mock object that match
+ a particular constraint set.
+
+
+ The mock.
+ The action.
+ The setup constraints.
+
+
+
+ Asserts that a particular method was called on this mock object that match
+ a particular constraint set.
+
+
+ The mock.
+ The action.
+
+
+
+ Asserts that a particular method was called on this mock object that match
+ a particular constraint set.
+
+
+ The mock.
+ The action.
+ The setup constraints.
+
+
+
+ Asserts that a particular method was NOT called on this mock object
+
+
+ The mock.
+ The action.
+
+
+
+ Asserts that a particular method was NOT called on this mock object that match
+ a particular constraint set.
+
+
+ The mock.
+ The action.
+ The setup constraints.
+
+
+
+ Asserts that a particular method was NOT called on this mock object
+
+
+ The mock.
+ The action.
+
+
+
+ Asserts that a particular method was NOT called on this mock object
+
+
+ The mock.
+ The action.
+ The setup constraints.
+
+
+
+ Finds the approprite implementation type of this item.
+ This is the class or an interface outside of the rhino mocks.
+
+ The mocked obj.
+
+
+
+
+ Verifies all expectations on this mock object
+
+ The mock object.
+
+
+
+ Gets the event raiser for the event that was called in the action passed
+
+ The type of the event source.
+ The mock object.
+ The event subscription.
+
+
+
+
+ Raise the specified event using the passed arguments.
+ The even is extracted from the passed labmda
+
+ The type of the event source.
+ The mock object.
+ The event subscription.
+ The sender.
+ The instance containing the event data.
+
+
+
+ Raise the specified event using the passed arguments.
+ The even is extracted from the passed labmda
+
+ The type of the event source.
+ The mock object.
+ The event subscription.
+ The args.
+
+
+ TODO: Make this better! It currently breaks down when mocking classes or
+ ABC's that call other virtual methods which are getting intercepted too. I wish
+ we could just walk Expression{Action{Action{T}} to assert only a single
+ method is being made.
+
+ The workaround is to not call foo.AssertWasCalled .. rather foo.VerifyAllExpectations()
+ The type of mock object
+ The mock repository
+ The actual mock object to assert expectations on.
+
+
+
+ Fake type that disallow creating it.
+ Should have been System.Type, but we can't use it.
+
+
+
+
+ Utility class for dealing with messing generics scenarios.
+
+
+
+
+ There are issues with trying to get this to work correctly with open generic types, since this is an edge case,
+ I am letting the runtime handle it.
+
+
+
+
+ Gets the real type, including de-constructing and constructing the type of generic
+ methods parameters.
+
+ The type.
+ The invocation.
+
+
+
+
+ Because we need to support complex types here (simple generics were handled above) we
+ need to be aware of the following scenarios:
+ List[T] and List[Foo[T]]
+
+
+
+
+ ExpectationsList
+
+
+
+
+ Dictionary
+
+
+
+
+ Dictionary class
+
+
+
+
+ Create a new instance of ProxyStateDictionary
+
+
+
+
+ Allows to call a method and immediately get it's options.
+
+
+
+
+ Interface to allow calling a method and immediately get it's options.
+
+
+
+
+ Get the method options for the call
+
+ The method call should go here, the return value is ignored
+
+
+
+ Creates a new instance.
+
+
+
+
+ Get the method options for the call
+
+ The method call should go here, the return value is ignored
+
+
+
+ Allows to call a method and immediately get it's options.
+ Set the expected number for the call to Any()
+
+
+
+
+ Creates a new instance.
+
+ Proxy.
+ Mocked instance.
+
+
+
+ Get the method options for the call
+
+ The method call should go here, the return value is ignored
+
+
+
+ This class is reponsible for taking a delegate and creating a wrapper
+ interface around it, so it can be mocked.
+
+
+
+
+ The scope for all the delegate interfaces create by this mock repository.
+
+
+
+
+ Gets a type with an "Invoke" method suitable for use as a target of the
+ specified delegate type.
+
+
+
+
+
+
+ Raise events for all subscribers for an event
+
+
+
+
+ Raise events for all subscribers for an event
+
+
+
+
+ Raise the event
+
+
+
+
+ The most common form for the event handler signature
+
+
+
+
+ Create an event raiser for the specified event on this instance.
+
+
+
+
+ Creates a new instance of EventRaiser
+
+
+
+
+ Raise the event
+
+
+
+
+ The most common signature for events
+ Here to allow intellisense to make better guesses about how
+ it should suggest parameters.
+
+
+
+
+ Allows to define what would happen when a method
+ is called.
+
+
+
+
+ Allows to define what would happen when a method
+ is called.
+
+
+
+
+ Set the return value for the method.
+
+ The object the method will return
+ IRepeat that defines how many times the method will return this value
+
+
+
+ Allow to override this return value in the future
+
+ IRepeat that defines how many times the method will return this value
+
+
+
+ Throws the specified exception when the method is called.
+
+ Exception to throw
+
+
+
+ Ignores the arguments for this method. Any argument will be matched
+ againt this method.
+
+
+
+
+ Add constraints for the method's arguments.
+
+
+
+
+ Set a callback method for the last call
+
+
+
+
+ Set a delegate to be called when the expectation is matched.
+ The delegate return value will be returned from the expectation.
+
+
+
+
+ Set a delegate to be called when the expectation is matched.
+ The delegate return value will be returned from the expectation.
+
+
+
+
+ Set a delegate to be called when the expectation is matched.
+ The delegate return value will be returned from the expectation.
+
+
+
+
+ Set a delegate to be called when the expectation is matched.
+ The delegate return value will be returned from the expectation.
+
+
+
+
+ Set a delegate to be called when the expectation is matched.
+ The delegate return value will be returned from the expectation.
+
+
+
+
+ Set a delegate to be called when the expectation is matched.
+ The delegate return value will be returned from the expectation.
+
+
+
+
+ Set a delegate to be called when the expectation is matched.
+ The delegate return value will be returned from the expectation.
+
+
+
+
+ Set a delegate to be called when the expectation is matched.
+ The delegate return value will be returned from the expectation.
+
+
+
+
+ Set a delegate to be called when the expectation is matched.
+ The delegate return value will be returned from the expectation.
+
+
+
+
+ Set a delegate to be called when the expectation is matched.
+ The delegate return value will be returned from the expectation.
+
+
+
+
+ Set a delegate to be called when the expectation is matched.
+ The delegate return value will be returned from the expectation.
+
+
+
+
+ Set a delegate to be called when the expectation is matched.
+ The delegate return value will be returned from the expectation.
+
+
+
+
+ Set a delegate to be called when the expectation is matched
+ and allow to optionally modify the invocation as needed
+
+
+
+
+ Call the original method on the class, bypassing the mocking layers.
+
+
+
+
+
+ Call the original method on the class, optionally bypassing the mocking layers.
+
+
+
+
+
+ Use the property as a simple property, getting/setting the values without
+ causing mock expectations.
+
+
+
+
+ Expect last (property) call as property setting, ignore the argument given
+
+
+
+
+
+ Expect last (property) call as property setting with a given argument.
+
+
+
+
+
+
+ Get an event raiser for the last subscribed event.
+
+
+
+
+ Set the parameter values for out and ref parameters.
+ This is done using zero based indexing, and _ignoring_ any non out/ref parameter.
+
+
+
+
+ Documentation message for the expectation
+
+ Message
+
+
+
+ Better syntax to define repeats.
+
+
+
+
+ Allows to specify the number of time for method calls
+
+
+
+
+ Repeat the method twice.
+
+
+
+
+ Repeat the method once.
+
+
+
+
+ Repeat the method at least once, then repeat as many time as it would like.
+
+
+
+
+ Repeat the method any number of times.
+ This has special affects in that this method would now ignore orderring.
+
+
+
+
+ Set the range to repeat an action.
+
+ Min.
+ Max.
+
+
+
+ Set the amount of times to repeat an action.
+
+
+
+
+ This method must not appear in the replay state.
+ This has special affects in that this method would now ignore orderring.
+
+
+
+
+ Creates a new instance.
+
+ the repository for this expectation
+ the recorder for this proxy
+ the proxy for this expectation
+ Expectation.
+
+
+
+ Add constraints for the method's arguments.
+
+
+
+
+ Set a callback method for the last call
+
+
+
+
+ Set a callback method for the last call
+
+
+
+
+ Set a callback method for the last call
+
+
+
+
+ Set a callback method for the last call
+
+
+
+
+ Set a callback method for the last call
+
+
+
+
+ Set a callback method for the last call
+
+
+
+
+ Set a callback method for the last call
+
+
+
+
+ Set a callback method for the last call
+
+
+
+
+ Set a callback method for the last call
+
+
+
+
+ Set a callback method for the last call
+
+
+
+
+ Set a callback method for the last call
+
+
+
+
+ Set a callback method for the last call
+
+
+
+
+ Set a delegate to be called when the expectation is matched.
+ The delegate return value will be returned from the expectation.
+
+
+
+
+ Set a delegate to be called when the expectation is matched.
+ The delegate return value will be returned from the expectation.
+
+
+
+
+ Set the return value for the method.
+
+ The object the method will return
+ IRepeat that defines how many times the method will return this value
+
+
+
+ Set the return value for the method, but allow to override this return value in the future
+
+ IRepeat that defines how many times the method will return this value
+
+
+
+ Throws the specified exception when the method is called.
+
+ Exception to throw
+
+
+
+ Ignores the arguments for this method. Any argument will be matched
+ againt this method.
+
+
+
+
+ Call the original method on the class, bypassing the mocking layers.
+
+
+
+
+
+ Call the original method on the class, optionally bypassing the mocking layers
+
+
+
+
+
+ Use the property as a simple property, getting/setting the values without
+ causing mock expectations.
+
+
+
+
+ Expect last (property) call as property setting, ignore the argument given
+
+
+
+
+
+ Expect last (property) call as property setting with a given argument.
+
+
+
+
+
+
+ Gets the event raiser for the last event
+
+
+
+
+ Set the parameter values for out and ref parameters.
+ This is done using zero based indexing, and _ignoring_ any non out/ref parameter.
+
+
+
+
+ Repeat the method twice.
+
+
+
+
+ Repeat the method once.
+
+
+
+
+ Repeat the method at least once, then repeat as many time as it would like.
+
+
+
+
+ This method must not appear in the replay state.
+
+
+
+
+ Documentation message for the expectation
+
+ Message
+
+
+
+ Repeat the method any number of times.
+
+
+
+
+ Set the range to repeat an action.
+
+ Min.
+ Max.
+
+
+
+ Set the amount of times to repeat an action.
+
+
+
+
+ Better syntax to define repeats.
+
+
+
+
+ This class will provide hash code for hashtables without needing
+ to call the GetHashCode() on the object, which may very well be mocked.
+ This class has no state so it is a singelton to avoid creating a lot of objects
+ that does the exact same thing. See flyweight patterns.
+
+
+
+
+ Get the hash code for a proxy object without calling GetHashCode()
+ on the object.
+
+
+
+
+ Compares two instances of mocked objects
+
+
+
+
+ Compare two mocked objects
+
+
+
+
+ The next hash code value for a mock object.
+ This is safe for multi threading.
+
+
+
+
+ The sole instance of
+
+
+
+
+ This is a dummy type that is used merely to give DynamicProxy the proxy instance that
+ it needs to create IProxy's types.
+
+
+
+
+ Interface to find the repository of a mocked object
+
+
+
+
+ Return true if it should call the original method on the object
+ instead of pass it to the message chain.
+
+ The method to call
+
+
+
+ Register a method to be called on the object directly
+
+
+
+
+ Register a property on the object that will behave as a simple property
+
+
+
+
+ Check if the method was registered as a property method.
+
+
+
+
+ Do get/set on the property, according to need.
+
+
+
+
+ Do add/remove on the event
+
+
+
+
+ Get the subscribers of a spesific event
+
+
+
+
+ Gets the declaring type of the method, taking into acccount the possible generic
+ parameters that it was created with.
+
+
+
+
+ Clears the state of the object, remove original calls, property behavior, subscribed events, etc.
+
+
+
+
+ Get all the method calls arguments that were made against this object with the specificed
+ method.
+
+
+ Only method calls in replay mode are counted
+
+
+
+
+ Records the method call
+
+
+
+
+ Mocks that are tied to this mock lifestyle
+
+
+
+
+ The unique hash code of this mock, which is not related
+ to the value of the GetHashCode() call on the object.
+
+
+
+
+ Gets the repository.
+
+
+
+
+ Gets the implemented types by this mocked object
+
+ The implemented.
+
+
+
+ Gets or sets the constructor arguments.
+
+ The constructor arguments.
+
+
+
+ The mocked instance that this is representing
+
+
+
+
+ Create a new instance of
+
+
+
+
+ Return true if it should call the original method on the object
+ instead of pass it to the message chain.
+
+ The method to call
+
+
+
+ Register a method to be called on the object directly
+
+
+
+
+ Register a property on the object that will behave as a simple property
+ Return true if there is already a value for the property
+
+
+
+
+ Check if the method was registered as a property method.
+
+
+
+
+ Do get/set on the property, according to need.
+
+
+
+
+ Do add/remove on the event
+
+
+
+
+ Get the subscribers of a spesific event
+
+
+
+
+ Gets the declaring type of the method, taking into acccount the possible generic
+ parameters that it was created with.
+
+
+
+
+ Get all the method calls arguments that were made against this object with the specificed
+ method.
+
+
+
+
+ Only method calls in replay mode are counted
+
+
+
+
+ Records the method call
+
+
+
+
+
+
+ Clears the state of the object, remove original calls, property behavior, subscribed events, etc.
+
+
+
+
+ Mocks that are tied to this mock lifestyle
+
+
+
+
+ The unique hash code of this proxy, which is not related
+ to the value of the GetHashCode() call on the object.
+
+
+
+
+ Gets the repository.
+
+
+
+
+ Gets or sets the constructor arguments.
+
+ The constructor arguments.
+
+
+
+ The mocked instance that this is representing
+
+
+
+
+ Gets the implemented types by this mocked object
+
+ The implemented.
+
+
+
+ Range for expected method calls
+
+
+
+
+ Creates a new instance.
+
+ Min.
+ Max.
+
+
+
+ Return the string representation of this range.
+
+
+
+
+ Gets or sets the min.
+
+
+
+
+
+ Gets or sets the max.
+
+
+
+
+
+ Records all the expectations for a mock and
+ return a ReplayDynamicMockState when Replay()
+ is called.
+
+
+
+
+ Creates a new instance.
+
+ Repository.
+ The proxy that generates the method calls
+
+
+
+ Verify that we can move to replay state and move
+ to the reply state.
+
+
+
+
+ Get the default call count range expectation
+
+
+
+
+
+ Gets a mock state that match the original mock state of the object.
+
+
+
+
+ Records all the expectations for a mock and
+ return a ReplayPartialMockState when Replay()
+ is called.
+
+
+
+
+ Creates a new instance.
+
+ Repository.
+ The proxy that generates the method calls
+
+
+
+ Verify that we can move to replay state and move
+ to the reply state.
+
+
+
+
+ Gets a mock state that matches the original mock state of the object.
+
+
+
+
+ Options for special repeat option
+
+
+
+
+ This method can be called only as many times as the IMethodOptions.Expect allows.
+
+
+
+
+ This method should never be called
+
+
+
+
+ This method can be call any number of times
+
+
+
+
+ This method will call the original method
+
+
+
+
+ This method will call the original method, bypassing the mocking layer
+
+
+
+
+ This method will simulate simple property behavior
+
+
+
+
+ Validate all expectations on a mock and ignores calls to
+ any method that was not setup properly.
+
+
+
+
+ Creates a new instance.
+
+ The previous state for this method
+
+
+
+ Add a method call for this state' mock.
+
+ The invocation for this method
+ The method that was called
+ The arguments this method was called with
+
+
+
+ Gets a mock state that match the original mock state of the object.
+
+
+
+
+ Validate all expectations on a mock and ignores calls to
+ any method that was not setup properly.
+
+
+
+
+ Creates a new instance.
+
+ The previous state for this method
+
+
+
+ Add a method call for this state' mock.
+
+ The invocation for this method
+ The method that was called
+ The arguments this method was called with
+
+
+
+ Gets a mock state that match the original mock state of the object.
+
+
+
+
+ Summary description for RhinoInterceptor.
+
+
+
+
+ Creates a new instance.
+
+
+
+
+ Intercept a method call and direct it to the repository.
+
+
+
+
+ Validate arguments for methods
+
+
+
+
+ Validate that the passed argument is not null.
+
+ The object to validate
+ The name of the argument
+
+ If the obj is null, an ArgumentNullException with the passed name
+ is thrown.
+
+
+
+
+ Validate that the arguments are equal.
+
+ Expected args.
+ Actual Args.
+
+
+
+ Validate that the two arguments are equals, including validation for
+ when the arguments are collections, in which case it will validate their values.
+
+
+
+
+ This method is safe for use even if any of the objects is a mocked object
+ that override equals.
+
+
+
+
+ Throw an object already verified when accessed
+
+
+
+
+ Create a new instance of VerifiedMockState
+
+ The previous mock state, used to get the initial record state
+
+
+
+ Add a method call for this state' mock.
+
+ The invocation for this method
+ The method that was called
+ The arguments this method was called with
+
+
+
+ Verify that this mock expectations have passed.
+
+
+
+
+ Verify that we can move to replay state and move
+ to the reply state.
+
+
+
+
+ Gets a mock state that match the original mock state of the object.
+
+
+
+
+ Get the options for the last method call
+
+
+
+
+ Set the exception to throw when Verify is called.
+ This is used to report exception that may have happened but where caught in the code.
+ This way, they are reported anyway when Verify() is called.
+
+
+
+
+ not relevant
+
+
+
+
+ Gets the matching verify state for this state
+
+
+
+
+ Get the options for the last method call
+
+
+
+
+ Records the actions on all the mocks created by a repository.
+
+
+
+
+ Records the specified call with the specified args on the mocked object.
+
+
+
+
+ Get the expectation for this method on this object with this arguments
+
+
+
+
+ This check the methods that were setup using the SetupResult.For()
+ or LastCall.Repeat.Any() and that bypass the whole expectation model.
+
+
+
+
+ Gets the all expectations for a mocked object and method combination,
+ regardless of the expected arguments / callbacks / contraints.
+
+ Mocked object.
+ Method.
+ List of all relevant expectation
+
+
+
+ Gets the all expectations for proxy.
+
+ Mocked object.
+ List of all relevant expectation
+
+
+
+ Removes all the repeatable expectations for proxy.
+
+ Mocked object.
+
+
+
+ Replaces the old expectation with the new expectation for the specified proxy/method pair.
+ This replace ALL expectations that equal to old expectations.
+
+ Proxy.
+ Method.
+ Old expectation.
+ New expectation.
+
+
+
+ Adds the recorder and turn it into the active recorder.
+
+ Recorder.
+
+
+
+ Moves to previous recorder.
+
+
+
+
+ Gets the recorded expectation or null.
+
+
+
+
+ Gets the next expected calls string.
+
+
+
+
+ Moves to parent recorder.
+
+
+
+
+ Set the expectation so it can repeat any number of times.
+
+
+
+
+ Removes the expectation from the recorder
+
+
+
+
+ Clear the replayer to call (and all its chain of replayers)
+ This also removes it from the list of expectations, so it will never be considered again
+
+
+
+
+ Get the expectation for this method on this object with this arguments
+
+
+
+
+ Gets a value indicating whether this instance has expectations that weren't satisfied yet.
+
+
+ true if this instance has expectations; otherwise, false.
+
+
+
+
+ Allows to set various options for the last method call on
+ a specified object.
+ If the method has a return value, it's recommended to use Expect
+
+
+
+
+ Allows to get an interface to work on the last call.
+
+ The mocked object
+ Interface that allows to set options for the last method call on this object
+
+
+
+ Set the return value for the method.
+
+ The object the method will return
+ IRepeat that defines how many times the method will return this value
+
+
+
+ Set the return value for the method. This overload is needed for LastCall.Return(null)
+
+ The object the method will return
+ IRepeat that defines how many times the method will return this value
+
+
+
+ Throws the specified exception when the method is called.
+
+ Exception to throw
+
+
+
+ Ignores the arguments for this method. Any argument will be matched
+ againt this method.
+
+
+
+
+ Add constraints for the method's arguments.
+
+
+
+
+ Set a callback method for the last call
+
+
+
+
+ Set a callback method for the last call
+
+
+
+
+ Set a callback method for the last call
+
+
+
+
+ Set a callback method for the last call
+
+
+
+
+ Set a callback method for the last call
+
+
+
+
+ Set a callback method for the last call
+
+
+
+
+ Set a callback method for the last call
+
+
+
+
+ Set a callback method for the last call
+
+
+
+
+ Set a callback method for the last call
+
+
+
+
+ Set a callback method for the last call
+
+
+
+
+ Set a callback method for the last call
+
+
+
+
+ Set a callback method for the last call
+
+
+
+
+ Call the original method on the class, bypassing the mocking layers, for the last call.
+
+
+
+
+ Call the original method on the class, optionally bypassing the mocking layers, for the last call.
+
+
+
+
+ Set a delegate to be called when the expectation is matched.
+ The delegate return value will be returned from the expectation.
+
+
+
+
+ Gets an interface that will raise the last event when called.
+
+
+
+
+ Set the parameter values for out and ref parameters.
+ This is done using zero based indexing, and _ignoring_ any non out/ref parameter.
+
+
+
+
+ Documentation message for the expectation
+
+ Message
+
+
+
+ Use the property as a simple property, getting/setting the values without
+ causing mock expectations.
+
+
+
+
+ Better syntax to define repeats.
+
+
+
+
+ Base class for method recorders, handle delegating to inner recorder if needed.
+
+
+
+
+ List of the expected actions on for this recorder
+ The legal values are:
+ * Expectations
+ * Method Recorders
+
+
+
+
+ The current recorder.
+
+
+
+
+ The current replayer;
+
+
+
+
+ The parent recorder of this one, may be null.
+
+
+
+
+ This contains a list of all the replayers that should be ignored
+ for a spesific method call. A replayer gets into this list by calling
+ ClearReplayerToCall() on its parent. This list is Clear()ed on each new invocation.
+
+
+
+
+ All the repeatable methods calls.
+
+
+
+
+ Counts the recursion depth of the current expectation search stack
+
+
+
+
+ Creates a new instance.
+
+
+
+
+ Creates a new instance.
+
+ Parent recorder.
+ Repeatable methods
+
+
+
+ Records the specified call with the specified args on the mocked object.
+
+
+
+
+ Get the expectation for this method on this object with this arguments
+
+
+
+
+ Gets the all expectations for a mocked object and method combination,
+ regardless of the expected arguments / callbacks / contraints.
+
+ Mocked object.
+ Method.
+ List of all relevant expectation
+
+
+
+ Gets the all expectations for proxy.
+
+ Mocked object.
+ List of all relevant expectation
+
+
+
+ Replaces the old expectation with the new expectation for the specified proxy/method pair.
+ This replace ALL expectations that equal to old expectations.
+
+ Proxy.
+ Method.
+ Old expectation.
+ New expectation.
+
+
+
+ Remove the all repeatable expectations for proxy.
+
+ Mocked object.
+
+
+
+ Set the expectation so it can repeat any number of times.
+
+
+
+
+ Removes the expectation from the recorder
+
+
+
+
+ Adds the recorder and turn it into the active recorder.
+
+ Recorder.
+
+
+
+ Moves to previous recorder.
+
+
+
+
+ Moves to parent recorder.
+
+
+
+
+ Gets the recorded expectation or null.
+
+
+
+
+ Clear the replayer to call (and all its chain of replayers).
+ This also removes it from the list of expectations, so it will never be considered again
+
+
+
+
+ Get the expectation for this method on this object with this arguments
+
+
+
+
+ Gets the next expected calls string.
+
+
+
+
+ Handles the real getting of the recorded expectation or null.
+
+
+
+
+ Handle the real execution of this method for the derived class
+
+
+
+
+ Handle the real execution of this method for the derived class
+
+
+
+
+ Handle the real execution of this method for the derived class
+
+
+
+
+ Handle the real execution of this method for the derived class
+
+
+
+
+ Handle the real execution of this method for the derived class
+
+
+
+
+ Handle the real execution of this method for the derived class
+
+
+
+
+ Should this replayer be considered valid for this call?
+
+
+
+
+ This check the methods that were setup using the SetupResult.For()
+ or LastCall.Repeat.Any() and that bypass the whole expectation model.
+
+
+
+
+ Gets a value indicating whether this instance has expectations that weren't satisfied yet.
+
+
+ true if this instance has expectations; otherwise, false.
+
+
+
+
+ Handle the real execution of this method for the derived class
+
+
+
+
+ Ordered collection of methods, methods must arrive in specified order
+ in order to pass.
+
+
+
+
+ Unordered collection of method records, any expectation that exist
+ will be matched.
+
+
+
+
+ The parent recorder we have redirected to.
+ Useful for certain edge cases in orderring.
+ See: FieldProblem_Entropy for the details.
+
+
+
+
+ Creates a new instance.
+
+ Parent recorder.
+ Repeatable methods
+
+
+
+ Creates a new instance.
+
+
+
+
+ Records the specified call with the specified args on the mocked object.
+
+ Mocked object.
+ Method.
+ Expectation.
+
+
+
+ Get the expectation for this method on this object with this arguments
+
+ Invocation for this method
+ Mocked object.
+ Method.
+ Args.
+ True is the call was recorded, false otherwise
+
+
+
+ Gets the all expectations for a mocked object and method combination,
+ regardless of the expected arguments / callbacks / contraints.
+
+ Mocked object.
+ Method.
+ List of all relevant expectation
+
+
+
+ Gets the all expectations for proxy.
+
+ Mocked object.
+ List of all relevant expectation
+
+
+
+ Replaces the old expectation with the new expectation for the specified proxy/method pair.
+ This replace ALL expectations that equal to old expectations.
+
+ Proxy.
+ Method.
+ Old expectation.
+ New expectation.
+
+
+
+ Handle the real execution of this method for the derived class
+
+
+
+
+ Handles the real getting of the recorded expectation or null.
+
+
+
+
+ Handle the real execution of this method for the derived class
+
+
+
+
+ Gets the next expected calls string.
+
+
+
+
+ Create an exception for an unexpected method call.
+
+
+
+
+ Gets a value indicating whether this instance has expectations that weren't satisfied yet.
+
+
+ true if this instance has expectations; otherwise, false.
+
+
+
+
+ Creates a new instance.
+
+ Parent recorder.
+ Repetable methods
+
+
+
+ Creates a new instance.
+
+
+
+
+ Handles the real getting of the recorded expectation or null.
+
+
+
+
+ Get the expectation for this method on this object with this arguments
+
+
+
+
+ Gets the next expected calls string.
+
+
+
+
+ Hold an expectation for a method call on an object
+
+
+
+
+ Creates a new instance.
+
+ Proxy.
+ Method.
+ Expectation.
+
+
+
+ Determines if the object equal to this instance
+
+ Obj.
+
+
+
+
+ Gets the hash code.
+
+
+
+
+
+ Gets the proxy.
+
+
+
+
+
+ Gets the method.
+
+
+
+
+
+ Gets the expectation.
+
+
+
+
+
+ Holds a pair of mocked object and a method
+ and allows to compare them against each other.
+ This allows us to have a distinction between mockOne.MyMethod() and
+ mockTwo.MyMethod()...
+
+
+
+
+ Creates a new instance.
+
+ Proxy.
+ Method.
+
+
+
+ Determines whatever obj equals to this instance.
+ ProxyMethodPairs are equal when they point to the same /instance/ of
+ an object, and to the same method.
+
+ Obj.
+
+
+
+
+ Gets the hash code.
+
+
+
+
+
+ Gets the proxy.
+
+
+
+
+
+ Gets the method.
+
+
+
+
+
+ Change the recorder from ordered to unordered and vice versa
+
+
+
+
+ Creates a new instance.
+
+
+
+
+ Disposes this instance.
+
+
+
+
+ Accessor for the current mocker
+
+
+
+
+ The current mocker
+
+
+
+
+ Used for [assembly: InternalsVisibleTo(RhinoMocks.StrongName)]
+ Used for [assembly: InternalsVisibleTo(RhinoMocks.NormalName)]
+
+
+
+
+ Strong name for the Dynamic Proxy assemblies. Used for InternalsVisibleTo specification.
+
+
+
+
+ Normal name for dynamic proxy assemblies. Used for InternalsVisibleTo specification.
+
+
+
+
+ Logs all method calls for methods
+
+
+
+
+ Setup method calls to repeat any number of times.
+
+
+
+
+ Get the method options and set the last method call to repeat
+ any number of times.
+ This also means that the method would transcend ordering
+
+
+
+
+ Get the method options for the last method call on the mockInstance and set it
+ to repeat any number of times.
+ This also means that the method would transcend ordering
+
+
+
+
+ Utility class for working with method calls.
+
+
+
+
+ Return the string representation of a method call and its arguments.
+
+ The method
+ The method arguments
+ Invocation of the method, used to get the generics arguments
+ Delegate to format the parameter
+ The string representation of this method call
+
+
+
+ Return the string representation of a method call and its arguments.
+
+ The invocation of the method, used to get the generic parameters
+ The method
+ The method arguments
+ The string representation of this method call
+
+
+
+ Delegate to format the argument for the string representation of
+ the method call.
+
+
+
+
+ Utility to get the default value for a type
+
+
+
+
+ The default value for a type.
+ Null for reference types and void
+ 0 for value types.
+ First element for enums
+ Note that we need to get the value even for opened generic types, such as those from
+ generic methods.
+
+ Type.
+ The invocation.
+ the default value
+
+
+
+ Allows easier access to MockRepository, works closely with Mocker.Current to
+ allow access to a context where the mock repository is automatially verified at
+ the end of the code block.
+
+
+
+
+ Initialize a code block where Mocker.Current is initialized.
+ At the end of the code block, all the expectation will be verified.
+ This overload will create a new MockRepository.
+
+ The code that will be executed under the mock context
+
+
+
+ Initialize a code block where Mocker.Current is initialized.
+ At the end of the code block, all the expectation will be verified.
+ This overload will create a new MockRepository.
+
+ The mock repository to use, at the end of the code block, VerifyAll() will be called on the repository.
+ The code that will be executed under the mock context
+
+
+
+ Create a FluentMocker
+
+ The mock repository to use.
+
+
+
+ A method with no arguments and no return value that will be called under the mock context.
+
+
+
+
+ FluentMocker implements some kind of fluent interface attempt
+ for saying "With the Mocks [mocks], Expecting (in same order) [things] verify [that]."
+
+
+
+
+ Interface to verify previously defined expectations
+
+
+
+
+ Verifies if a piece of code
+
+
+
+
+ Defines unordered expectations
+
+ A delegate describing the expectations
+ an IMockVerifier
+
+
+
+ Defines ordered expectations
+
+ A delegate describing the expectations
+ an IMockVerifier
+
+
+
+ Verifies previously defined expectations
+
+
+
+
+ This delegate is compatible with the System.Func{T,R} signature
+ We have to define our own to get compatability with 2.0
+
+
+
+
+ This attribute is here so we can get better Pex integration
+ Using this means that Pex will not try to inspect the work of
+ the actual proxies being generated by Rhino Mocks
+
+
+
+
diff --git a/lib/Net/3.5/log4net.dll b/lib/Net/3.5/log4net.dll
new file mode 100644
index 00000000..995816f2
Binary files /dev/null and b/lib/Net/3.5/log4net.dll differ
diff --git a/lib/Net/3.5/nunit.core.dll b/lib/Net/3.5/nunit.core.dll
new file mode 100644
index 00000000..dd3b2e00
Binary files /dev/null and b/lib/Net/3.5/nunit.core.dll differ
diff --git a/lib/Net/3.5/nunit.core.interfaces.dll b/lib/Net/3.5/nunit.core.interfaces.dll
new file mode 100644
index 00000000..39a11273
Binary files /dev/null and b/lib/Net/3.5/nunit.core.interfaces.dll differ
diff --git a/lib/Net/3.5/nunit.framework.dll b/lib/Net/3.5/nunit.framework.dll
new file mode 100644
index 00000000..639dbb0d
Binary files /dev/null and b/lib/Net/3.5/nunit.framework.dll differ
diff --git a/lib/Net/3.5/nunit.framework.xml b/lib/Net/3.5/nunit.framework.xml
new file mode 100644
index 00000000..e67b2cdc
--- /dev/null
+++ b/lib/Net/3.5/nunit.framework.xml
@@ -0,0 +1,10228 @@
+
+
+
+ nunit.framework
+
+
+
+
+ BinaryConstraint is the abstract base of all constraints
+ that combine two other constraints in some fashion.
+
+
+
+
+ The Constraint class is the base of all built-in constraints
+ within NUnit. It provides the operator overloads used to combine
+ constraints.
+
+
+
+
+ The IConstraintExpression interface is implemented by all
+ complete and resolvable constraints and expressions.
+
+
+
+
+ Return the top-level constraint for this expression
+
+
+
+
+
+ Static UnsetObject used to detect derived constraints
+ failing to set the actual value.
+
+
+
+
+ The actual value being tested against a constraint
+
+
+
+
+ The display name of this Constraint for use by ToString()
+
+
+
+
+ Argument fields used by ToString();
+
+
+
+
+ The builder holding this constraint
+
+
+
+
+ Construct a constraint with no arguments
+
+
+
+
+ Construct a constraint with one argument
+
+
+
+
+ Construct a constraint with two arguments
+
+
+
+
+ Sets the ConstraintBuilder holding this constraint
+
+
+
+
+ Write the failure message to the MessageWriter provided
+ as an argument. The default implementation simply passes
+ the constraint and the actual value to the writer, which
+ then displays the constraint description and the value.
+
+ Constraints that need to provide additional details,
+ such as where the error occured can override this.
+
+ The MessageWriter on which to display the message
+
+
+
+ Test whether the constraint is satisfied by a given value
+
+ The value to be tested
+ True for success, false for failure
+
+
+
+ Test whether the constraint is satisfied by an
+ ActualValueDelegate that returns the value to be tested.
+ The default implementation simply evaluates the delegate
+ but derived classes may override it to provide for delayed
+ processing.
+
+ An ActualValueDelegate
+ True for success, false for failure
+
+
+
+ Test whether the constraint is satisfied by a given reference.
+ The default implementation simply dereferences the value but
+ derived classes may override it to provide for delayed processing.
+
+ A reference to the value to be tested
+ True for success, false for failure
+
+
+
+ Write the constraint description to a MessageWriter
+
+ The writer on which the description is displayed
+
+
+
+ Write the actual value for a failing constraint test to a
+ MessageWriter. The default implementation simply writes
+ the raw value of actual, leaving it to the writer to
+ perform any formatting.
+
+ The writer on which the actual value is displayed
+
+
+
+ Default override of ToString returns the constraint DisplayName
+ followed by any arguments within angle brackets.
+
+
+
+
+
+ Returns the string representation of this constraint
+
+
+
+
+ This operator creates a constraint that is satisfied only if both
+ argument constraints are satisfied.
+
+
+
+
+ This operator creates a constraint that is satisfied if either
+ of the argument constraints is satisfied.
+
+
+
+
+ This operator creates a constraint that is satisfied if the
+ argument constraint is not satisfied.
+
+
+
+
+ Returns a DelayedConstraint with the specified delay time.
+
+ The delay in milliseconds.
+
+
+
+
+ Returns a DelayedConstraint with the specified delay time
+ and polling interval.
+
+ The delay in milliseconds.
+ The interval at which to test the constraint.
+
+
+
+
+ The display name of this Constraint for use by ToString().
+ The default value is the name of the constraint with
+ trailing "Constraint" removed. Derived classes may set
+ this to another name in their constructors.
+
+
+
+
+ Returns a ConstraintExpression by appending And
+ to the current constraint.
+
+
+
+
+ Returns a ConstraintExpression by appending And
+ to the current constraint.
+
+
+
+
+ Returns a ConstraintExpression by appending Or
+ to the current constraint.
+
+
+
+
+ Class used to detect any derived constraints
+ that fail to set the actual value in their
+ Matches override.
+
+
+
+
+ The first constraint being combined
+
+
+
+
+ The second constraint being combined
+
+
+
+
+ Construct a BinaryConstraint from two other constraints
+
+ The first constraint
+ The second constraint
+
+
+
+ AndConstraint succeeds only if both members succeed.
+
+
+
+
+ Create an AndConstraint from two other constraints
+
+ The first constraint
+ The second constraint
+
+
+
+ Apply both member constraints to an actual value, succeeding
+ succeeding only if both of them succeed.
+
+ The actual value
+ True if the constraints both succeeded
+
+
+
+ Write a description for this contraint to a MessageWriter
+
+ The MessageWriter to receive the description
+
+
+
+ Write the actual value for a failing constraint test to a
+ MessageWriter. The default implementation simply writes
+ the raw value of actual, leaving it to the writer to
+ perform any formatting.
+
+ The writer on which the actual value is displayed
+
+
+
+ OrConstraint succeeds if either member succeeds
+
+
+
+
+ Create an OrConstraint from two other constraints
+
+ The first constraint
+ The second constraint
+
+
+
+ Apply the member constraints to an actual value, succeeding
+ succeeding as soon as one of them succeeds.
+
+ The actual value
+ True if either constraint succeeded
+
+
+
+ Write a description for this contraint to a MessageWriter
+
+ The MessageWriter to receive the description
+
+
+
+ CollectionConstraint is the abstract base class for
+ constraints that operate on collections.
+
+
+
+
+ Construct an empty CollectionConstraint
+
+
+
+
+ Construct a CollectionConstraint
+
+
+
+
+
+ Determines whether the specified enumerable is empty.
+
+ The enumerable.
+
+ true if the specified enumerable is empty; otherwise, false.
+
+
+
+
+ Test whether the constraint is satisfied by a given value
+
+ The value to be tested
+ True for success, false for failure
+
+
+
+ Protected method to be implemented by derived classes
+
+
+
+
+
+
+ CollectionItemsEqualConstraint is the abstract base class for all
+ collection constraints that apply some notion of item equality
+ as a part of their operation.
+
+
+
+
+ Construct an empty CollectionConstraint
+
+
+
+
+ Construct a CollectionConstraint
+
+
+
+
+
+ Flag the constraint to use the supplied IComparer object.
+
+ The IComparer object to use.
+ Self.
+
+
+
+ Flag the constraint to use the supplied IComparer object.
+
+ The IComparer object to use.
+ Self.
+
+
+
+ Flag the constraint to use the supplied Comparison object.
+
+ The IComparer object to use.
+ Self.
+
+
+
+ Flag the constraint to use the supplied IEqualityComparer object.
+
+ The IComparer object to use.
+ Self.
+
+
+
+ Flag the constraint to use the supplied IEqualityComparer object.
+
+ The IComparer object to use.
+ Self.
+
+
+
+ Compares two collection members for equality
+
+
+
+
+ Return a new CollectionTally for use in making tests
+
+ The collection to be included in the tally
+
+
+
+ Flag the constraint to ignore case and return self.
+
+
+
+
+ EmptyCollectionConstraint tests whether a collection is empty.
+
+
+
+
+ Check that the collection is empty
+
+
+
+
+
+
+ Write the constraint description to a MessageWriter
+
+
+
+
+
+ UniqueItemsConstraint tests whether all the items in a
+ collection are unique.
+
+
+
+
+ Check that all items are unique.
+
+
+
+
+
+
+ Write a description of this constraint to a MessageWriter
+
+
+
+
+
+ CollectionContainsConstraint is used to test whether a collection
+ contains an expected object as a member.
+
+
+
+
+ Construct a CollectionContainsConstraint
+
+
+
+
+
+ Test whether the expected item is contained in the collection
+
+
+
+
+
+
+ Write a descripton of the constraint to a MessageWriter
+
+
+
+
+
+ CollectionEquivalentCOnstraint is used to determine whether two
+ collections are equivalent.
+
+
+
+
+ Construct a CollectionEquivalentConstraint
+
+
+
+
+
+ Test whether two collections are equivalent
+
+
+
+
+
+
+ Write a description of this constraint to a MessageWriter
+
+
+
+
+
+ CollectionSubsetConstraint is used to determine whether
+ one collection is a subset of another
+
+
+
+
+ Construct a CollectionSubsetConstraint
+
+ The collection that the actual value is expected to be a subset of
+
+
+
+ Test whether the actual collection is a subset of
+ the expected collection provided.
+
+
+
+
+
+
+ Write a description of this constraint to a MessageWriter
+
+
+
+
+
+ CollectionOrderedConstraint is used to test whether a collection is ordered.
+
+
+
+
+ Construct a CollectionOrderedConstraint
+
+
+
+
+ Modifies the constraint to use an IComparer and returns self.
+
+
+
+
+ Modifies the constraint to use an IComparer<T> and returns self.
+
+
+
+
+ Modifies the constraint to use a Comparison<T> and returns self.
+
+
+
+
+ Modifies the constraint to test ordering by the value of
+ a specified property and returns self.
+
+
+
+
+ Test whether the collection is ordered
+
+
+
+
+
+
+ Write a description of the constraint to a MessageWriter
+
+
+
+
+
+ Returns the string representation of the constraint.
+
+
+
+
+
+ If used performs a reverse comparison
+
+
+
+
+ Abstract base class for constraints that compare values to
+ determine if one is greater than, equal to or less than
+ the other.
+
+
+
+
+ The value against which a comparison is to be made
+
+
+
+
+ If true, less than returns success
+
+
+
+
+ if true, equal returns success
+
+
+
+
+ if true, greater than returns success
+
+
+
+
+ The predicate used as a part of the description
+
+
+
+
+ ComparisonAdapter to be used in making the comparison
+
+
+
+
+ Initializes a new instance of the class.
+
+ The value against which to make a comparison.
+ if set to true less succeeds.
+ if set to true equal succeeds.
+ if set to true greater succeeds.
+ String used in describing the constraint.
+
+
+
+ Test whether the constraint is satisfied by a given value
+
+ The value to be tested
+ True for success, false for failure
+
+
+
+ Write the constraint description to a MessageWriter
+
+ The writer on which the description is displayed
+
+
+
+ Modifies the constraint to use an IComparer and returns self
+
+
+
+
+ Modifies the constraint to use an IComparer<T> and returns self
+
+
+
+
+ Modifies the constraint to use a Comparison<T> and returns self
+
+
+
+
+ Tests whether a value is greater than the value supplied to its constructor
+
+
+
+
+ Initializes a new instance of the class.
+
+ The expected value.
+
+
+
+ Tests whether a value is greater than or equal to the value supplied to its constructor
+
+
+
+
+ Initializes a new instance of the class.
+
+ The expected value.
+
+
+
+ Tests whether a value is less than the value supplied to its constructor
+
+
+
+
+ Initializes a new instance of the class.
+
+ The expected value.
+
+
+
+ Tests whether a value is less than or equal to the value supplied to its constructor
+
+
+
+
+ Initializes a new instance of the class.
+
+ The expected value.
+
+
+
+ Delegate used to delay evaluation of the actual value
+ to be used in evaluating a constraint
+
+
+
+
+ ConstraintBuilder maintains the stacks that are used in
+ processing a ConstraintExpression. An OperatorStack
+ is used to hold operators that are waiting for their
+ operands to be reognized. a ConstraintStack holds
+ input constraints as well as the results of each
+ operator applied.
+
+
+
+
+ Initializes a new instance of the class.
+
+
+
+
+ Appends the specified operator to the expression by first
+ reducing the operator stack and then pushing the new
+ operator on the stack.
+
+ The operator to push.
+
+
+
+ Appends the specified constraint to the expresson by pushing
+ it on the constraint stack.
+
+ The constraint to push.
+
+
+
+ Sets the top operator right context.
+
+ The right context.
+
+
+
+ Reduces the operator stack until the topmost item
+ precedence is greater than or equal to the target precedence.
+
+ The target precedence.
+
+
+
+ Resolves this instance, returning a Constraint. If the builder
+ is not currently in a resolvable state, an exception is thrown.
+
+ The resolved constraint
+
+
+
+ Gets a value indicating whether this instance is resolvable.
+
+
+ true if this instance is resolvable; otherwise, false.
+
+
+
+
+ OperatorStack is a type-safe stack for holding ConstraintOperators
+
+
+
+
+ Initializes a new instance of the class.
+
+ The builder.
+
+
+
+ Pushes the specified operator onto the stack.
+
+ The op.
+
+
+
+ Pops the topmost operator from the stack.
+
+
+
+
+
+ Gets a value indicating whether this is empty.
+
+ true if empty; otherwise, false.
+
+
+
+ Gets the topmost operator without modifying the stack.
+
+ The top.
+
+
+
+ ConstraintStack is a type-safe stack for holding Constraints
+
+
+
+
+ Initializes a new instance of the class.
+
+ The builder.
+
+
+
+ Pushes the specified constraint. As a side effect,
+ the constraint's builder field is set to the
+ ConstraintBuilder owning this stack.
+
+ The constraint.
+
+
+
+ Pops this topmost constrait from the stack.
+ As a side effect, the constraint's builder
+ field is set to null.
+
+
+
+
+
+ Gets a value indicating whether this is empty.
+
+ true if empty; otherwise, false.
+
+
+
+ Gets the topmost constraint without modifying the stack.
+
+ The topmost constraint
+
+
+
+ EmptyConstraint tests a whether a string or collection is empty,
+ postponing the decision about which test is applied until the
+ type of the actual argument is known.
+
+
+
+
+ Test whether the constraint is satisfied by a given value
+
+ The value to be tested
+ True for success, false for failure
+
+
+
+ Write the constraint description to a MessageWriter
+
+ The writer on which the description is displayed
+
+
+
+ EqualConstraint is able to compare an actual value with the
+ expected value provided in its constructor. Two objects are
+ considered equal if both are null, or if both have the same
+ value. NUnit has special semantics for some object types.
+
+
+
+
+ If true, strings in error messages will be clipped
+
+
+
+
+ NUnitEqualityComparer used to test equality.
+
+
+
+
+ Initializes a new instance of the class.
+
+ The expected value.
+
+
+
+ Flag the constraint to use a tolerance when determining equality.
+
+ Tolerance value to be used
+ Self.
+
+
+
+ Flag the constraint to use the supplied IComparer object.
+
+ The IComparer object to use.
+ Self.
+
+
+
+ Flag the constraint to use the supplied IComparer object.
+
+ The IComparer object to use.
+ Self.
+
+
+
+ Flag the constraint to use the supplied IComparer object.
+
+ The IComparer object to use.
+ Self.
+
+
+
+ Flag the constraint to use the supplied Comparison object.
+
+ The IComparer object to use.
+ Self.
+
+
+
+ Flag the constraint to use the supplied IEqualityComparer object.
+
+ The IComparer object to use.
+ Self.
+
+
+
+ Flag the constraint to use the supplied IEqualityComparer object.
+
+ The IComparer object to use.
+ Self.
+
+
+
+ Test whether the constraint is satisfied by a given value
+
+ The value to be tested
+ True for success, false for failure
+
+
+
+ Write a failure message. Overridden to provide custom
+ failure messages for EqualConstraint.
+
+ The MessageWriter to write to
+
+
+
+ Write description of this constraint
+
+ The MessageWriter to write to
+
+
+
+ Display the failure information for two collections that did not match.
+
+ The MessageWriter on which to display
+ The expected collection.
+ The actual collection
+ The depth of this failure in a set of nested collections
+
+
+
+ Displays a single line showing the types and sizes of the expected
+ and actual collections or arrays. If both are identical, the value is
+ only shown once.
+
+ The MessageWriter on which to display
+ The expected collection or array
+ The actual collection or array
+ The indentation level for the message line
+
+
+
+ Displays a single line showing the point in the expected and actual
+ arrays at which the comparison failed. If the arrays have different
+ structures or dimensions, both values are shown.
+
+ The MessageWriter on which to display
+ The expected array
+ The actual array
+ Index of the failure point in the underlying collections
+ The indentation level for the message line
+
+
+
+ Flag the constraint to ignore case and return self.
+
+
+
+
+ Flag the constraint to suppress string clipping
+ and return self.
+
+
+
+
+ Flag the constraint to compare arrays as collections
+ and return self.
+
+
+
+
+ Switches the .Within() modifier to interpret its tolerance as
+ a distance in representable values (see remarks).
+
+ Self.
+
+ Ulp stands for "unit in the last place" and describes the minimum
+ amount a given value can change. For any integers, an ulp is 1 whole
+ digit. For floating point values, the accuracy of which is better
+ for smaller numbers and worse for larger numbers, an ulp depends
+ on the size of the number. Using ulps for comparison of floating
+ point results instead of fixed tolerances is safer because it will
+ automatically compensate for the added inaccuracy of larger numbers.
+
+
+
+
+ Switches the .Within() modifier to interpret its tolerance as
+ a percentage that the actual values is allowed to deviate from
+ the expected value.
+
+ Self
+
+
+
+ Causes the tolerance to be interpreted as a TimeSpan in days.
+
+ Self
+
+
+
+ Causes the tolerance to be interpreted as a TimeSpan in hours.
+
+ Self
+
+
+
+ Causes the tolerance to be interpreted as a TimeSpan in minutes.
+
+ Self
+
+
+
+ Causes the tolerance to be interpreted as a TimeSpan in seconds.
+
+ Self
+
+
+
+ Causes the tolerance to be interpreted as a TimeSpan in milliseconds.
+
+ Self
+
+
+
+ Causes the tolerance to be interpreted as a TimeSpan in clock ticks.
+
+ Self
+
+
+
+ SameAsConstraint tests whether an object is identical to
+ the object passed to its constructor
+
+
+
+
+ Initializes a new instance of the class.
+
+ The expected object.
+
+
+
+ Test whether the constraint is satisfied by a given value
+
+ The value to be tested
+ True for success, false for failure
+
+
+
+ Write the constraint description to a MessageWriter
+
+ The writer on which the description is displayed
+
+
+
+ StringConstraint is the abstract base for constraints
+ that operate on strings. It supports the IgnoreCase
+ modifier for string operations.
+
+
+
+
+ The expected value
+
+
+
+
+ Indicates whether tests should be case-insensitive
+
+
+
+
+ Constructs a StringConstraint given an expected value
+
+ The expected value
+
+
+
+ Modify the constraint to ignore case in matching.
+
+
+
+
+ EmptyStringConstraint tests whether a string is empty.
+
+
+
+
+ Test whether the constraint is satisfied by a given value
+
+ The value to be tested
+ True for success, false for failure
+
+
+
+ Write the constraint description to a MessageWriter
+
+ The writer on which the description is displayed
+
+
+
+ NullEmptyStringConstraint tests whether a string is either null or empty.
+
+
+
+
+ Constructs a new NullOrEmptyStringConstraint
+
+
+
+
+ Test whether the constraint is satisfied by a given value
+
+ The value to be tested
+ True for success, false for failure
+
+
+
+ Write the constraint description to a MessageWriter
+
+ The writer on which the description is displayed
+
+
+
+ SubstringConstraint can test whether a string contains
+ the expected substring.
+
+
+
+
+ Initializes a new instance of the class.
+
+ The expected.
+
+
+
+ Test whether the constraint is satisfied by a given value
+
+ The value to be tested
+ True for success, false for failure
+
+
+
+ Write the constraint description to a MessageWriter
+
+ The writer on which the description is displayed
+
+
+
+ StartsWithConstraint can test whether a string starts
+ with an expected substring.
+
+
+
+
+ Initializes a new instance of the class.
+
+ The expected string
+
+
+
+ Test whether the constraint is matched by the actual value.
+ This is a template method, which calls the IsMatch method
+ of the derived class.
+
+
+
+
+
+
+ Write the constraint description to a MessageWriter
+
+ The writer on which the description is displayed
+
+
+
+ EndsWithConstraint can test whether a string ends
+ with an expected substring.
+
+
+
+
+ Initializes a new instance of the class.
+
+ The expected string
+
+
+
+ Test whether the constraint is matched by the actual value.
+ This is a template method, which calls the IsMatch method
+ of the derived class.
+
+
+
+
+
+
+ Write the constraint description to a MessageWriter
+
+ The writer on which the description is displayed
+
+
+
+ RegexConstraint can test whether a string matches
+ the pattern provided.
+
+
+
+
+ Initializes a new instance of the class.
+
+ The pattern.
+
+
+
+ Test whether the constraint is satisfied by a given value
+
+ The value to be tested
+ True for success, false for failure
+
+
+
+ Write the constraint description to a MessageWriter
+
+ The writer on which the description is displayed
+
+
+
+ TypeConstraint is the abstract base for constraints
+ that take a Type as their expected value.
+
+
+
+
+ The expected Type used by the constraint
+
+
+
+
+ Construct a TypeConstraint for a given Type
+
+
+
+
+
+ Write the actual value for a failing constraint test to a
+ MessageWriter. TypeConstraints override this method to write
+ the name of the type.
+
+ The writer on which the actual value is displayed
+
+
+
+ ExactTypeConstraint is used to test that an object
+ is of the exact type provided in the constructor
+
+
+
+
+ Construct an ExactTypeConstraint for a given Type
+
+ The expected Type.
+
+
+
+ Test that an object is of the exact type specified
+
+ The actual value.
+ True if the tested object is of the exact type provided, otherwise false.
+
+
+
+ Write the description of this constraint to a MessageWriter
+
+ The MessageWriter to use
+
+
+
+ InstanceOfTypeConstraint is used to test that an object
+ is of the same type provided or derived from it.
+
+
+
+
+ Construct an InstanceOfTypeConstraint for the type provided
+
+ The expected Type
+
+
+
+ Test whether an object is of the specified type or a derived type
+
+ The object to be tested
+ True if the object is of the provided type or derives from it, otherwise false.
+
+
+
+ Write a description of this constraint to a MessageWriter
+
+ The MessageWriter to use
+
+
+
+ AssignableFromConstraint is used to test that an object
+ can be assigned from a given Type.
+
+
+
+
+ Construct an AssignableFromConstraint for the type provided
+
+
+
+
+
+ Test whether an object can be assigned from the specified type
+
+ The object to be tested
+ True if the object can be assigned a value of the expected Type, otherwise false.
+
+
+
+ Write a description of this constraint to a MessageWriter
+
+ The MessageWriter to use
+
+
+
+ AssignableToConstraint is used to test that an object
+ can be assigned to a given Type.
+
+
+
+
+ Construct an AssignableToConstraint for the type provided
+
+
+
+
+
+ Test whether an object can be assigned to the specified type
+
+ The object to be tested
+ True if the object can be assigned a value of the expected Type, otherwise false.
+
+
+
+ Write a description of this constraint to a MessageWriter
+
+ The MessageWriter to use
+
+
+
+ ContainsConstraint tests a whether a string contains a substring
+ or a collection contains an object. It postpones the decision of
+ which test to use until the type of the actual argument is known.
+ This allows testing whether a string is contained in a collection
+ or as a substring of another string using the same syntax.
+
+
+
+
+ Initializes a new instance of the class.
+
+ The expected.
+
+
+
+ Test whether the constraint is satisfied by a given value
+
+ The value to be tested
+ True for success, false for failure
+
+
+
+ Write the constraint description to a MessageWriter
+
+ The writer on which the description is displayed
+
+
+
+ Flag the constraint to ignore case and return self.
+
+
+
+
+ PropertyExistsConstraint tests that a named property
+ exists on the object provided through Match.
+
+ Originally, PropertyConstraint provided this feature
+ in addition to making optional tests on the vaue
+ of the property. The two constraints are now separate.
+
+
+
+
+ Initializes a new instance of the class.
+
+ The name of the property.
+
+
+
+ Test whether the property exists for a given object
+
+ The object to be tested
+ True for success, false for failure
+
+
+
+ Write the constraint description to a MessageWriter
+
+ The writer on which the description is displayed
+
+
+
+ Write the actual value for a failing constraint test to a
+ MessageWriter.
+
+ The writer on which the actual value is displayed
+
+
+
+ Returns the string representation of the constraint.
+
+
+
+
+
+ PropertyConstraint extracts a named property and uses
+ its value as the actual value for a chained constraint.
+
+
+
+
+ Abstract base class used for prefixes
+
+
+
+
+ The base constraint
+
+
+
+
+ Construct given a base constraint
+
+
+
+
+
+ Initializes a new instance of the class.
+
+ The name.
+ The constraint to apply to the property.
+
+
+
+ Test whether the constraint is satisfied by a given value
+
+ The value to be tested
+ True for success, false for failure
+
+
+
+ Write the constraint description to a MessageWriter
+
+ The writer on which the description is displayed
+
+
+
+ Write the actual value for a failing constraint test to a
+ MessageWriter. The default implementation simply writes
+ the raw value of actual, leaving it to the writer to
+ perform any formatting.
+
+ The writer on which the actual value is displayed
+
+
+
+ Returns the string representation of the constraint.
+
+
+
+
+
+ NotConstraint negates the effect of some other constraint
+
+
+
+
+ Initializes a new instance of the class.
+
+ The base constraint to be negated.
+
+
+
+ Test whether the constraint is satisfied by a given value
+
+ The value to be tested
+ True for if the base constraint fails, false if it succeeds
+
+
+
+ Write the constraint description to a MessageWriter
+
+ The writer on which the description is displayed
+
+
+
+ Write the actual value for a failing constraint test to a MessageWriter.
+
+ The writer on which the actual value is displayed
+
+
+
+ AllItemsConstraint applies another constraint to each
+ item in a collection, succeeding if they all succeed.
+
+
+
+
+ Construct an AllItemsConstraint on top of an existing constraint
+
+
+
+
+
+ Apply the item constraint to each item in the collection,
+ failing if any item fails.
+
+
+
+
+
+
+ Write a description of this constraint to a MessageWriter
+
+
+
+
+
+ SomeItemsConstraint applies another constraint to each
+ item in a collection, succeeding if any of them succeeds.
+
+
+
+
+ Construct a SomeItemsConstraint on top of an existing constraint
+
+
+
+
+
+ Apply the item constraint to each item in the collection,
+ succeeding if any item succeeds.
+
+
+
+
+
+
+ Write a description of this constraint to a MessageWriter
+
+
+
+
+
+ NoItemConstraint applies another constraint to each
+ item in a collection, failing if any of them succeeds.
+
+
+
+
+ Construct a SomeItemsConstraint on top of an existing constraint
+
+
+
+
+
+ Apply the item constraint to each item in the collection,
+ failing if any item fails.
+
+
+
+
+
+
+ Write a description of this constraint to a MessageWriter
+
+
+
+
+
+ The Numerics class contains common operations on numeric values.
+
+
+
+
+ Checks the type of the object, returning true if
+ the object is a numeric type.
+
+ The object to check
+ true if the object is a numeric type
+
+
+
+ Checks the type of the object, returning true if
+ the object is a floating point numeric type.
+
+ The object to check
+ true if the object is a floating point numeric type
+
+
+
+ Checks the type of the object, returning true if
+ the object is a fixed point numeric type.
+
+ The object to check
+ true if the object is a fixed point numeric type
+
+
+
+ Test two numeric values for equality, performing the usual numeric
+ conversions and using a provided or default tolerance. If the tolerance
+ provided is Empty, this method may set it to a default tolerance.
+
+ The expected value
+ The actual value
+ A reference to the tolerance in effect
+ True if the values are equal
+
+
+
+ Compare two numeric values, performing the usual numeric conversions.
+
+ The expected value
+ The actual value
+ The relationship of the values to each other
+
+
+
+ MessageWriter is the abstract base for classes that write
+ constraint descriptions and messages in some form. The
+ class has separate methods for writing various components
+ of a message, allowing implementations to tailor the
+ presentation as needed.
+
+
+
+
+ Construct a MessageWriter given a culture
+
+
+
+
+ Method to write single line message with optional args, usually
+ written to precede the general failure message.
+
+ The message to be written
+ Any arguments used in formatting the message
+
+
+
+ Method to write single line message with optional args, usually
+ written to precede the general failure message, at a givel
+ indentation level.
+
+ The indentation level of the message
+ The message to be written
+ Any arguments used in formatting the message
+
+
+
+ Display Expected and Actual lines for a constraint. This
+ is called by MessageWriter's default implementation of
+ WriteMessageTo and provides the generic two-line display.
+
+ The constraint that failed
+
+
+
+ Display Expected and Actual lines for given values. This
+ method may be called by constraints that need more control over
+ the display of actual and expected values than is provided
+ by the default implementation.
+
+ The expected value
+ The actual value causing the failure
+
+
+
+ Display Expected and Actual lines for given values, including
+ a tolerance value on the Expected line.
+
+ The expected value
+ The actual value causing the failure
+ The tolerance within which the test was made
+
+
+
+ Display the expected and actual string values on separate lines.
+ If the mismatch parameter is >=0, an additional line is displayed
+ line containing a caret that points to the mismatch point.
+
+ The expected string value
+ The actual string value
+ The point at which the strings don't match or -1
+ If true, case is ignored in locating the point where the strings differ
+ If true, the strings should be clipped to fit the line
+
+
+
+ Writes the text for a connector.
+
+ The connector.
+
+
+
+ Writes the text for a predicate.
+
+ The predicate.
+
+
+
+ Writes the text for an expected value.
+
+ The expected value.
+
+
+
+ Writes the text for a modifier
+
+ The modifier.
+
+
+
+ Writes the text for an actual value.
+
+ The actual value.
+
+
+
+ Writes the text for a generalized value.
+
+ The value.
+
+
+
+ Writes the text for a collection value,
+ starting at a particular point, to a max length
+
+ The collection containing elements to write.
+ The starting point of the elements to write
+ The maximum number of elements to write
+
+
+
+ Abstract method to get the max line length
+
+
+
+
+ Static methods used in creating messages
+
+
+
+
+ Static string used when strings are clipped
+
+
+
+
+ Returns the representation of a type as used in NUnitLite.
+ This is the same as Type.ToString() except for arrays,
+ which are displayed with their declared sizes.
+
+
+
+
+
+
+ Converts any control characters in a string
+ to their escaped representation.
+
+ The string to be converted
+ The converted string
+
+
+
+ Return the a string representation for a set of indices into an array
+
+ Array of indices for which a string is needed
+
+
+
+ Get an array of indices representing the point in a collection or
+ array corresponding to a single int index into the collection.
+
+ The collection to which the indices apply
+ Index in the collection
+ Array of indices
+
+
+
+ Clip a string to a given length, starting at a particular offset, returning the clipped
+ string with ellipses representing the removed parts
+
+ The string to be clipped
+ The maximum permitted length of the result string
+ The point at which to start clipping
+ The clipped string
+
+
+
+ Clip the expected and actual strings in a coordinated fashion,
+ so that they may be displayed together.
+
+
+
+
+
+
+
+
+ Shows the position two strings start to differ. Comparison
+ starts at the start index.
+
+ The expected string
+ The actual string
+ The index in the strings at which comparison should start
+ Boolean indicating whether case should be ignored
+ -1 if no mismatch found, or the index where mismatch found
+
+
+
+ PathConstraint serves as the abstract base of constraints
+ that operate on paths and provides several helper methods.
+
+
+
+
+ The expected path used in the constraint
+
+
+
+
+ Flag indicating whether a caseInsensitive comparison should be made
+
+
+
+
+ Construct a PathConstraint for a give expected path
+
+ The expected path
+
+
+
+ Returns the string representation of this constraint
+
+
+
+
+ Canonicalize the provided path
+
+
+ The path in standardized form
+
+
+
+ Test whether two paths are the same
+
+ The first path
+ The second path
+
+
+
+
+ Test whether one path is the same as or under another path
+
+ The first path - supposed to be the parent path
+ The second path - supposed to be the child path
+
+
+
+
+ Modifies the current instance to be case-insensitve
+ and returns it.
+
+
+
+
+ Modifies the current instance to be case-sensitve
+ and returns it.
+
+
+
+
+ Summary description for SamePathConstraint.
+
+
+
+
+ Initializes a new instance of the class.
+
+ The expected path
+
+
+
+ Test whether the constraint is satisfied by a given value
+
+ The value to be tested
+ True for success, false for failure
+
+
+
+ Write the constraint description to a MessageWriter
+
+ The writer on which the description is displayed
+
+
+
+ SamePathOrUnderConstraint tests that one path is under another
+
+
+
+
+ Initializes a new instance of the class.
+
+ The expected path
+
+
+
+ Test whether the constraint is satisfied by a given value
+
+ The value to be tested
+ True for success, false for failure
+
+
+
+ Write the constraint description to a MessageWriter
+
+ The writer on which the description is displayed
+
+
+
+ EmptyDirectoryConstraint is used to test that a directory is empty
+
+
+
+
+ Test whether the constraint is satisfied by a given value
+
+ The value to be tested
+ True for success, false for failure
+
+
+
+ Write the constraint description to a MessageWriter
+
+ The writer on which the description is displayed
+
+
+
+ Write the actual value for a failing constraint test to a
+ MessageWriter. The default implementation simply writes
+ the raw value of actual, leaving it to the writer to
+ perform any formatting.
+
+ The writer on which the actual value is displayed
+
+
+
+ SubDirectoryConstraint is used to test that one directory is a subdirectory of another.
+
+
+
+
+ Initializes a new instance of the class.
+
+ The dir info.
+
+
+
+ Test whether the constraint is satisfied by a given value
+
+ The value to be tested
+ True for success, false for failure
+
+
+
+ Write the constraint description to a MessageWriter
+
+ The writer on which the description is displayed
+
+
+
+ Builds a list of DirectoryInfo objects, recursing where necessary
+
+ directory to recurse
+ list of DirectoryInfo objects from the top level
+
+
+
+ private method to determine whether a directory is within the path
+
+ top-level directory to search
+ directory to search for
+ true if found, false if not
+
+
+
+ Method to compare two DirectoryInfo objects
+
+ first directory to compare
+ second directory to compare
+ true if equivalent, false if not
+
+
+
+ ThrowsConstraint is used to test the exception thrown by
+ a delegate by applying a constraint to it.
+
+
+
+
+ Initializes a new instance of the class,
+ using a constraint to be applied to the exception.
+
+ A constraint to apply to the caught exception.
+
+
+
+ Executes the code of the delegate and captures any exception.
+ If a non-null base constraint was provided, it applies that
+ constraint to the exception.
+
+ A delegate representing the code to be tested
+ True if an exception is thrown and the constraint succeeds, otherwise false
+
+
+
+ Converts an ActualValueDelegate to a TestDelegate
+ before calling the primary overload.
+
+
+
+
+
+
+ Write the constraint description to a MessageWriter
+
+ The writer on which the description is displayed
+
+
+
+ Write the actual value for a failing constraint test to a
+ MessageWriter. The default implementation simply writes
+ the raw value of actual, leaving it to the writer to
+ perform any formatting.
+
+ The writer on which the actual value is displayed
+
+
+
+ Returns the string representation of this constraint
+
+
+
+
+ Get the actual exception thrown - used by Assert.Throws.
+
+
+
+
+ ThrowsNothingConstraint tests that a delegate does not
+ throw an exception.
+
+
+
+
+ Test whether the constraint is satisfied by a given value
+
+ The value to be tested
+ True if no exception is thrown, otherwise false
+
+
+
+ Write the constraint description to a MessageWriter
+
+ The writer on which the description is displayed
+
+
+
+ Write the actual value for a failing constraint test to a
+ MessageWriter. The default implementation simply writes
+ the raw value of actual, leaving it to the writer to
+ perform any formatting.
+
+ The writer on which the actual value is displayed
+
+
+
+ RangeConstraint tests whethe two values are within a
+ specified range.
+
+
+
+
+ Initializes a new instance of the class.
+
+ From.
+ To.
+
+
+
+ Test whether the constraint is satisfied by a given value
+
+ The value to be tested
+ True for success, false for failure
+
+
+
+ Write the constraint description to a MessageWriter
+
+ The writer on which the description is displayed
+
+
+
+ Modifies the constraint to use an IComparer and returns self.
+
+
+
+
+ Modifies the constraint to use an IComparer<T> and returns self.
+
+
+
+
+ Modifies the constraint to use a Comparison<T> and returns self.
+
+
+
+
+ Helper class with properties and methods that supply
+ a number of constraints used in Asserts.
+
+
+
+
+ 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.
+
+
+
+
+ Returns a new AttributeConstraint checking for the
+ presence of a particular attribute on an object.
+
+
+
+
+ Returns a new AttributeConstraint checking for the
+ presence of a particular attribute on an object.
+
+
+
+
+ Returns a constraint that tests two items for equality
+
+
+
+
+ Returns a constraint that tests that two references are the same object
+
+
+
+
+ Returns a constraint that tests whether the
+ actual value is greater than the suppled argument
+
+
+
+
+ Returns a constraint that tests whether the
+ actual value is greater than or equal to the suppled argument
+
+
+
+
+ Returns a constraint that tests whether the
+ actual value is greater than or equal to the suppled argument
+
+
+
+
+ Returns a constraint that tests whether the
+ actual value is less than the suppled argument
+
+
+
+
+ Returns a constraint that tests whether the
+ actual value is less than or equal to the suppled argument
+
+
+
+
+ Returns a constraint that tests whether the
+ actual value is less than or equal to the suppled argument
+
+
+
+
+ Returns a constraint that tests whether the actual
+ value is of the exact type supplied as an argument.
+
+
+
+
+ Returns a constraint that tests whether the actual
+ value is of the exact type supplied as an argument.
+
+
+
+
+ Returns a constraint that tests whether the actual value
+ is of the type supplied as an argument or a derived type.
+
+
+
+
+ Returns a constraint that tests whether the actual value
+ is of the type supplied as an argument or a derived type.
+
+
+
+
+ Returns a constraint that tests whether the actual value
+ is of the type supplied as an argument or a derived type.
+
+
+
+
+ Returns a constraint that tests whether the actual value
+ is of the type supplied as an argument or a derived type.
+
+
+
+
+ Returns a constraint that tests whether the actual value
+ is assignable from the type supplied as an argument.
+
+
+
+
+ Returns a constraint that tests whether the actual value
+ is assignable from the type supplied as an argument.
+
+
+
+
+ Returns a constraint that tests whether the actual value
+ is assignable from the type supplied as an argument.
+
+
+
+
+ Returns a constraint that tests whether the actual value
+ is assignable from the type supplied as an argument.
+
+
+
+
+ Returns a constraint that tests whether the actual value
+ is a collection containing the same elements as the
+ collection supplied as an argument.
+
+
+
+
+ Returns a constraint that tests whether the actual value
+ is a subset of the collection supplied as an argument.
+
+
+
+
+ Returns a new CollectionContainsConstraint checking for the
+ presence of a particular object in the collection.
+
+
+
+
+ Returns a new CollectionContainsConstraint checking for the
+ presence of a particular object in the collection.
+
+
+
+
+ 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.
+
+
+
+
+ Returns a constraint that succeeds if the actual
+ value contains the substring supplied as an argument.
+
+
+
+
+ Returns a constraint that succeeds if the actual
+ value contains the substring supplied as an argument.
+
+
+
+
+ Returns a constraint that fails if the actual
+ value contains the substring supplied as an argument.
+
+
+
+
+ Returns a constraint that succeeds if the actual
+ value starts with the substring supplied as an argument.
+
+
+
+
+ Returns a constraint that succeeds if the actual
+ value starts with the substring supplied as an argument.
+
+
+
+
+ Returns a constraint that fails if the actual
+ value starts with the substring supplied as an argument.
+
+
+
+
+ Returns a constraint that succeeds if the actual
+ value ends with the substring supplied as an argument.
+
+
+
+
+ Returns a constraint that succeeds if the actual
+ value ends with the substring supplied as an argument.
+
+
+
+
+ Returns a constraint that fails if the actual
+ value ends with the substring supplied as an argument.
+
+
+
+
+ Returns a constraint that succeeds if the actual
+ value matches the Regex pattern supplied as an argument.
+
+
+
+
+ Returns a constraint that succeeds if the actual
+ value matches the Regex pattern supplied as an argument.
+
+
+
+
+ Returns a constraint that fails if the actual
+ value matches the pattern supplied as an argument.
+
+
+
+
+ Returns a constraint that tests whether the path provided
+ is the same as an expected path after canonicalization.
+
+
+
+
+ Returns a constraint that tests whether the path provided
+ is the same path or under an expected path after canonicalization.
+
+
+
+
+ Returns a constraint that tests whether the actual value falls
+ within a specified range.
+
+
+
+
+ Returns a ConstraintExpression that negates any
+ following constraint.
+
+
+
+
+ Returns a ConstraintExpression that negates any
+ following constraint.
+
+
+
+
+ Returns a ConstraintExpression, which will apply
+ the following constraint to all members of a collection,
+ succeeding if all of them succeed.
+
+
+
+
+ Returns a ConstraintExpression, which will apply
+ the following constraint to all members of a collection,
+ succeeding if at least one of them succeeds.
+
+
+
+
+ Returns a ConstraintExpression, which will apply
+ the following constraint to all members of a collection,
+ succeeding if all of them fail.
+
+
+
+
+ Returns a new ConstraintExpression, which will apply the following
+ constraint to the Length property of the object being tested.
+
+
+
+
+ Returns a new ConstraintExpression, which will apply the following
+ constraint to the Count property of the object being tested.
+
+
+
+
+ Returns a new ConstraintExpression, which will apply the following
+ constraint to the Message property of the object being tested.
+
+
+
+
+ Returns a new ConstraintExpression, which will apply the following
+ constraint to the InnerException property of the object being tested.
+
+
+
+
+ Returns a constraint that tests for null
+
+
+
+
+ Returns a constraint that tests for True
+
+
+
+
+ Returns a constraint that tests for False
+
+
+
+
+ Returns a constraint that tests for NaN
+
+
+
+
+ Returns a constraint that tests for empty
+
+
+
+
+ Returns a constraint that tests whether a collection
+ contains all unique items.
+
+
+
+
+ Returns a constraint that tests whether an object graph is serializable in binary format.
+
+
+
+
+ Returns a constraint that tests whether an object graph is serializable in xml format.
+
+
+
+
+ Returns a constraint that tests whether a collection is ordered
+
+
+
+
+ The ConstraintOperator class is used internally by a
+ ConstraintBuilder to represent an operator that
+ modifies or combines constraints.
+
+ Constraint operators use left and right precedence
+ values to determine whether the top operator on the
+ stack should be reduced before pushing a new operator.
+
+
+
+
+ The precedence value used when the operator
+ is about to be pushed to the stack.
+
+
+
+
+ The precedence value used when the operator
+ is on the top of the stack.
+
+
+
+
+ Reduce produces a constraint from the operator and
+ any arguments. It takes the arguments from the constraint
+ stack and pushes the resulting constraint on it.
+
+
+
+
+
+ The syntax element preceding this operator
+
+
+
+
+ The syntax element folowing this operator
+
+
+
+
+ The precedence value used when the operator
+ is about to be pushed to the stack.
+
+
+
+
+ The precedence value used when the operator
+ is on the top of the stack.
+
+
+
+
+ PrefixOperator takes a single constraint and modifies
+ it's action in some way.
+
+
+
+
+ Reduce produces a constraint from the operator and
+ any arguments. It takes the arguments from the constraint
+ stack and pushes the resulting constraint on it.
+
+
+
+
+
+ Returns the constraint created by applying this
+ prefix to another constraint.
+
+
+
+
+
+
+ Negates the test of the constraint it wraps.
+
+
+
+
+ Constructs a new NotOperator
+
+
+
+
+ Returns a NotConstraint applied to its argument.
+
+
+
+
+ Abstract base for operators that indicate how to
+ apply a constraint to items in a collection.
+
+
+
+
+ Constructs a CollectionOperator
+
+
+
+
+ Represents a constraint that succeeds if all the
+ members of a collection match a base constraint.
+
+
+
+
+ Returns a constraint that will apply the argument
+ to the members of a collection, succeeding if
+ they all succeed.
+
+
+
+
+ Represents a constraint that succeeds if any of the
+ members of a collection match a base constraint.
+
+
+
+
+ Returns a constraint that will apply the argument
+ to the members of a collection, succeeding if
+ any of them succeed.
+
+
+
+
+ Represents a constraint that succeeds if none of the
+ members of a collection match a base constraint.
+
+
+
+
+ Returns a constraint that will apply the argument
+ to the members of a collection, succeeding if
+ none of them succeed.
+
+
+
+
+ Represents a constraint that simply wraps the
+ constraint provided as an argument, without any
+ further functionality, but which modifes the
+ order of evaluation because of its precedence.
+
+
+
+
+ Constructor for the WithOperator
+
+
+
+
+ Returns a constraint that wraps its argument
+
+
+
+
+ Abstract base class for operators that are able to reduce to a
+ constraint whether or not another syntactic element follows.
+
+
+
+
+ Operator used to test for the presence of a named Property
+ on an object and optionally apply further tests to the
+ value of that property.
+
+
+
+
+ Constructs a PropOperator for a particular named property
+
+
+
+
+ Reduce produces a constraint from the operator and
+ any arguments. It takes the arguments from the constraint
+ stack and pushes the resulting constraint on it.
+
+
+
+
+
+ Gets the name of the property to which the operator applies
+
+
+
+
+ Operator that tests for the presence of a particular attribute
+ on a type and optionally applies further tests to the attribute.
+
+
+
+
+ Construct an AttributeOperator for a particular Type
+
+ The Type of attribute tested
+
+
+
+ Reduce produces a constraint from the operator and
+ any arguments. It takes the arguments from the constraint
+ stack and pushes the resulting constraint on it.
+
+
+
+
+ Operator that tests that an exception is thrown and
+ optionally applies further tests to the exception.
+
+
+
+
+ Construct a ThrowsOperator
+
+
+
+
+ Reduce produces a constraint from the operator and
+ any arguments. It takes the arguments from the constraint
+ stack and pushes the resulting constraint on it.
+
+
+
+
+ Abstract base class for all binary operators
+
+
+
+
+ Reduce produces a constraint from the operator and
+ any arguments. It takes the arguments from the constraint
+ stack and pushes the resulting constraint on it.
+
+
+
+
+
+ Abstract method that produces a constraint by applying
+ the operator to its left and right constraint arguments.
+
+
+
+
+ Gets the left precedence of the operator
+
+
+
+
+ Gets the right precedence of the operator
+
+
+
+
+ Operator that requires both it's arguments to succeed
+
+
+
+
+ Construct an AndOperator
+
+
+
+
+ Apply the operator to produce an AndConstraint
+
+
+
+
+ Operator that requires at least one of it's arguments to succeed
+
+
+
+
+ Construct an OrOperator
+
+
+
+
+ Apply the operator to produce an OrConstraint
+
+
+
+
+ ConstraintExpression represents a compound constraint in the
+ process of being constructed from a series of syntactic elements.
+
+ Individual elements are appended to the expression as they are
+ reognized. Once an actual Constraint is appended, the expression
+ returns a resolvable Constraint.
+
+
+
+
+ ConstraintExpressionBase is the abstract base class for the
+ generated ConstraintExpression class, which represents a
+ compound constraint in the process of being constructed
+ from a series of syntactic elements.
+
+ NOTE: ConstraintExpressionBase is aware of some of its
+ derived classes, which is an apparent violation of
+ encapsulation. Ideally, these classes would be a
+ single class, but they must be separated in order to
+ allow parts to be generated under .NET 1.x and to
+ provide proper user feedback in syntactically
+ aware IDEs.
+
+
+
+
+ The ConstraintBuilder holding the elements recognized so far
+
+
+
+
+ Initializes a new instance of the class.
+
+
+
+
+ Initializes a new instance of the
+ class passing in a ConstraintBuilder, which may be pre-populated.
+
+ The builder.
+
+
+
+ Returns a string representation of the expression as it
+ currently stands. This should only be used for testing,
+ since it has the side-effect of resolving the expression.
+
+
+
+
+
+ Appends an operator to the expression and returns the
+ resulting expression itself.
+
+
+
+
+ Appends a self-resolving operator to the expression and
+ returns a new ResolvableConstraintExpression.
+
+
+
+
+ Appends a constraint to the expression and returns that
+ constraint, which is associated with the current state
+ of the expression being built.
+
+
+
+
+ Initializes a new instance of the class.
+
+
+
+
+ Initializes a new instance of the
+ class passing in a ConstraintBuilder, which may be pre-populated.
+
+ The builder.
+
+
+
+ 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.
+
+
+
+
+ Returns a new AttributeConstraint checking for the
+ presence of a particular attribute on an object.
+
+
+
+
+ Returns a new AttributeConstraint checking for the
+ presence of a particular attribute on an object.
+
+
+
+
+ Returns the constraint provided as an argument - used to allow custom
+ custom constraints to easily participate in the syntax.
+
+
+
+
+ Returns the constraint provided as an argument - used to allow custom
+ custom constraints to easily participate in the syntax.
+
+
+
+
+ Returns a constraint that tests two items for equality
+
+
+
+
+ Returns a constraint that tests that two references are the same object
+
+
+
+
+ Returns a constraint that tests whether the
+ actual value is greater than the suppled argument
+
+
+
+
+ Returns a constraint that tests whether the
+ actual value is greater than or equal to the suppled argument
+
+
+
+
+ Returns a constraint that tests whether the
+ actual value is greater than or equal to the suppled argument
+
+
+
+
+ Returns a constraint that tests whether the
+ actual value is less than the suppled argument
+
+
+
+
+ Returns a constraint that tests whether the
+ actual value is less than or equal to the suppled argument
+
+
+
+
+ Returns a constraint that tests whether the
+ actual value is less than or equal to the suppled argument
+
+
+
+
+ Returns a constraint that tests whether the actual
+ value is of the exact type supplied as an argument.
+
+
+
+
+ Returns a constraint that tests whether the actual
+ value is of the exact type supplied as an argument.
+
+
+
+
+ Returns a constraint that tests whether the actual value
+ is of the type supplied as an argument or a derived type.
+
+
+
+
+ Returns a constraint that tests whether the actual value
+ is of the type supplied as an argument or a derived type.
+
+
+
+
+ Returns a constraint that tests whether the actual value
+ is of the type supplied as an argument or a derived type.
+
+
+
+
+ Returns a constraint that tests whether the actual value
+ is of the type supplied as an argument or a derived type.
+
+
+
+
+ Returns a constraint that tests whether the actual value
+ is assignable from the type supplied as an argument.
+
+
+
+
+ Returns a constraint that tests whether the actual value
+ is assignable from the type supplied as an argument.
+
+
+
+
+ Returns a constraint that tests whether the actual value
+ is assignable from the type supplied as an argument.
+
+
+
+
+ Returns a constraint that tests whether the actual value
+ is assignable from the type supplied as an argument.
+
+
+
+
+ Returns a constraint that tests whether the actual value
+ is a collection containing the same elements as the
+ collection supplied as an argument.
+
+
+
+
+ Returns a constraint that tests whether the actual value
+ is a subset of the collection supplied as an argument.
+
+
+
+
+ Returns a new CollectionContainsConstraint checking for the
+ presence of a particular object in the collection.
+
+
+
+
+ Returns a new CollectionContainsConstraint checking for the
+ presence of a particular object in the collection.
+
+
+
+
+ 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.
+
+
+
+
+ Returns a constraint that succeeds if the actual
+ value contains the substring supplied as an argument.
+
+
+
+
+ Returns a constraint that succeeds if the actual
+ value contains the substring supplied as an argument.
+
+
+
+
+ Returns a constraint that succeeds if the actual
+ value starts with the substring supplied as an argument.
+
+
+
+
+ Returns a constraint that succeeds if the actual
+ value starts with the substring supplied as an argument.
+
+
+
+
+ Returns a constraint that succeeds if the actual
+ value ends with the substring supplied as an argument.
+
+
+
+
+ Returns a constraint that succeeds if the actual
+ value ends with the substring supplied as an argument.
+
+
+
+
+ Returns a constraint that succeeds if the actual
+ value matches the Regex pattern supplied as an argument.
+
+
+
+
+ Returns a constraint that succeeds if the actual
+ value matches the Regex pattern supplied as an argument.
+
+
+
+
+ Returns a constraint that tests whether the path provided
+ is the same as an expected path after canonicalization.
+
+
+
+
+ Returns a constraint that tests whether the path provided
+ is the same path or under an expected path after canonicalization.
+
+
+
+
+ Returns a constraint that tests whether the actual value falls
+ within a specified range.
+
+
+
+
+ Returns a ConstraintExpression that negates any
+ following constraint.
+
+
+
+
+ Returns a ConstraintExpression that negates any
+ following constraint.
+
+
+
+
+ Returns a ConstraintExpression, which will apply
+ the following constraint to all members of a collection,
+ succeeding if all of them succeed.
+
+
+
+
+ Returns a ConstraintExpression, which will apply
+ the following constraint to all members of a collection,
+ succeeding if at least one of them succeeds.
+
+
+
+
+ Returns a ConstraintExpression, which will apply
+ the following constraint to all members of a collection,
+ succeeding if all of them fail.
+
+
+
+
+ Returns a new ConstraintExpression, which will apply the following
+ constraint to the Length property of the object being tested.
+
+
+
+
+ Returns a new ConstraintExpression, which will apply the following
+ constraint to the Count property of the object being tested.
+
+
+
+
+ Returns a new ConstraintExpression, which will apply the following
+ constraint to the Message property of the object being tested.
+
+
+
+
+ Returns a new ConstraintExpression, which will apply the following
+ constraint to the InnerException property of the object being tested.
+
+
+
+
+ With is currently a NOP - reserved for future use.
+
+
+
+
+ Returns a constraint that tests for null
+
+
+
+
+ Returns a constraint that tests for True
+
+
+
+
+ Returns a constraint that tests for False
+
+
+
+
+ Returns a constraint that tests for NaN
+
+
+
+
+ Returns a constraint that tests for empty
+
+
+
+
+ Returns a constraint that tests whether a collection
+ contains all unique items.
+
+
+
+
+ Returns a constraint that tests whether an object graph is serializable in binary format.
+
+
+
+
+ Returns a constraint that tests whether an object graph is serializable in xml format.
+
+
+
+
+ Returns a constraint that tests whether a collection is ordered
+
+
+
+
+ BinarySerializableConstraint tests whether
+ an object is serializable in binary format.
+
+
+
+
+ Test whether the constraint is satisfied by a given value
+
+ The value to be tested
+ True for success, false for failure
+
+
+
+ Write the constraint description to a MessageWriter
+
+ The writer on which the description is displayed
+
+
+
+ Write the actual value for a failing constraint test to a
+ MessageWriter. The default implementation simply writes
+ the raw value of actual, leaving it to the writer to
+ perform any formatting.
+
+ The writer on which the actual value is displayed
+
+
+
+ Returns the string representation
+
+
+
+
+ BinarySerializableConstraint tests whether
+ an object is serializable in binary format.
+
+
+
+
+ Test whether the constraint is satisfied by a given value
+
+ The value to be tested
+ True for success, false for failure
+
+
+
+ Write the constraint description to a MessageWriter
+
+ The writer on which the description is displayed
+
+
+
+ Write the actual value for a failing constraint test to a
+ MessageWriter. The default implementation simply writes
+ the raw value of actual, leaving it to the writer to
+ perform any formatting.
+
+ The writer on which the actual value is displayed
+
+
+
+ Returns the string representation of this constraint
+
+
+
+
+ BasicConstraint is the abstract base for constraints that
+ perform a simple comparison to a constant value.
+
+
+
+
+ Initializes a new instance of the class.
+
+ The expected.
+ The description.
+
+
+
+ Test whether the constraint is satisfied by a given value
+
+ The value to be tested
+ True for success, false for failure
+
+
+
+ Write the constraint description to a MessageWriter
+
+ The writer on which the description is displayed
+
+
+
+ NullConstraint tests that the actual value is null
+
+
+
+
+ Initializes a new instance of the class.
+
+
+
+
+ TrueConstraint tests that the actual value is true
+
+
+
+
+ Initializes a new instance of the class.
+
+
+
+
+ FalseConstraint tests that the actual value is false
+
+
+
+
+ Initializes a new instance of the class.
+
+
+
+
+ NaNConstraint tests that the actual value is a double or float NaN
+
+
+
+
+ Test that the actual value is an NaN
+
+
+
+
+
+
+ Write the constraint description to a specified writer
+
+
+
+
+
+ AttributeExistsConstraint tests for the presence of a
+ specified attribute on a Type.
+
+
+
+
+ Constructs an AttributeExistsConstraint for a specific attribute Type
+
+
+
+
+
+ Tests whether the object provides the expected attribute.
+
+ A Type, MethodInfo, or other ICustomAttributeProvider
+ True if the expected attribute is present, otherwise false
+
+
+
+ Writes the description of the constraint to the specified writer
+
+
+
+
+ AttributeConstraint tests that a specified attribute is present
+ on a Type or other provider and that the value of the attribute
+ satisfies some other constraint.
+
+
+
+
+ Constructs an AttributeConstraint for a specified attriute
+ Type and base constraint.
+
+
+
+
+
+
+ Determines whether the Type or other provider has the
+ expected attribute and if its value matches the
+ additional constraint specified.
+
+
+
+
+ Writes a description of the attribute to the specified writer.
+
+
+
+
+ Writes the actual value supplied to the specified writer.
+
+
+
+
+ Returns a string representation of the constraint.
+
+
+
+
+ ResolvableConstraintExpression is used to represent a compound
+ constraint being constructed at a point where the last operator
+ may either terminate the expression or may have additional
+ qualifying constraints added to it.
+
+ It is used, for example, for a Property element or for
+ an Exception element, either of which may be optionally
+ followed by constraints that apply to the property or
+ exception.
+
+
+
+
+ Create a new instance of ResolvableConstraintExpression
+
+
+
+
+ Create a new instance of ResolvableConstraintExpression,
+ passing in a pre-populated ConstraintBuilder.
+
+
+
+
+ Resolve the current expression to a Constraint
+
+
+
+
+ Appends an And Operator to the expression
+
+
+
+
+ Appends an Or operator to the expression.
+
+
+
+
+ Applies a delay to the match so that a match can be evaluated in the future.
+
+
+
+
+ Creates a new DelayedConstraint
+
+ The inner constraint two decorate
+ The time interval after which the match is performed
+ If the value of is less than 0
+
+
+
+ Creates a new DelayedConstraint
+
+ The inner constraint two decorate
+ The time interval after which the match is performed
+ The time interval used for polling
+ If the value of is less than 0
+
+
+
+ Test whether the constraint is satisfied by a given value
+
+ The value to be tested
+ True for if the base constraint fails, false if it succeeds
+
+
+
+ Test whether the constraint is satisfied by a delegate
+
+ The delegate whose value is to be tested
+ True for if the base constraint fails, false if it succeeds
+
+
+
+ Test whether the constraint is satisfied by a given reference.
+ Overridden to wait for the specified delay period before
+ calling the base constraint with the dereferenced value.
+
+ A reference to the value to be tested
+ True for success, false for failure
+
+
+
+ Write the constraint description to a MessageWriter
+
+ The writer on which the description is displayed
+
+
+
+ Write the actual value for a failing constraint test to a MessageWriter.
+
+ The writer on which the actual value is displayed
+
+
+
+ Returns the string representation of the constraint.
+
+
+
+ Helper routines for working with floating point numbers
+
+
+ The floating point comparison code is based on this excellent article:
+ http://www.cygnus-software.com/papers/comparingfloats/comparingfloats.htm
+
+
+ "ULP" means Unit in the Last Place and in the context of this library refers to
+ the distance between two adjacent floating point numbers. IEEE floating point
+ numbers can only represent a finite subset of natural numbers, with greater
+ accuracy for smaller numbers and lower accuracy for very large numbers.
+
+
+ If a comparison is allowed "2 ulps" of deviation, that means the values are
+ allowed to deviate by up to 2 adjacent floating point values, which might be
+ as low as 0.0000001 for small numbers or as high as 10.0 for large numbers.
+
+
+
+
+ Compares two floating point values for equality
+ First floating point value to be compared
+ Second floating point value t be compared
+
+ Maximum number of representable floating point values that are allowed to
+ be between the left and the right floating point values
+
+ True if both numbers are equal or close to being equal
+
+
+ Floating point values can only represent a finite subset of natural numbers.
+ For example, the values 2.00000000 and 2.00000024 can be stored in a float,
+ but nothing inbetween them.
+
+
+ This comparison will count how many possible floating point values are between
+ the left and the right number. If the number of possible values between both
+ numbers is less than or equal to maxUlps, then the numbers are considered as
+ being equal.
+
+
+ Implementation partially follows the code outlined here:
+ http://www.anttirt.net/2007/08/19/proper-floating-point-comparisons/
+
+
+
+
+ Compares two double precision floating point values for equality
+ First double precision floating point value to be compared
+ Second double precision floating point value t be compared
+
+ Maximum number of representable double precision floating point values that are
+ allowed to be between the left and the right double precision floating point values
+
+ True if both numbers are equal or close to being equal
+
+
+ Double precision floating point values can only represent a limited series of
+ natural numbers. For example, the values 2.0000000000000000 and 2.0000000000000004
+ can be stored in a double, but nothing inbetween them.
+
+
+ This comparison will count how many possible double precision floating point
+ values are between the left and the right number. If the number of possible
+ values between both numbers is less than or equal to maxUlps, then the numbers
+ are considered as being equal.
+
+
+ Implementation partially follows the code outlined here:
+ http://www.anttirt.net/2007/08/19/proper-floating-point-comparisons/
+
+
+
+
+
+ Reinterprets the memory contents of a floating point value as an integer value
+
+
+ Floating point value whose memory contents to reinterpret
+
+
+ The memory contents of the floating point value interpreted as an integer
+
+
+
+
+ Reinterprets the memory contents of a double precision floating point
+ value as an integer value
+
+
+ Double precision floating point value whose memory contents to reinterpret
+
+
+ The memory contents of the double precision floating point value
+ interpreted as an integer
+
+
+
+
+ Reinterprets the memory contents of an integer as a floating point value
+
+ Integer value whose memory contents to reinterpret
+
+ The memory contents of the integer value interpreted as a floating point value
+
+
+
+
+ Reinterprets the memory contents of an integer value as a double precision
+ floating point value
+
+ Integer whose memory contents to reinterpret
+
+ The memory contents of the integer interpreted as a double precision
+ floating point value
+
+
+
+ Union of a floating point variable and an integer
+
+
+ The union's value as a floating point variable
+
+
+ The union's value as an integer
+
+
+ The union's value as an unsigned integer
+
+
+ Union of a double precision floating point variable and a long
+
+
+ The union's value as a double precision floating point variable
+
+
+ The union's value as a long
+
+
+ The union's value as an unsigned long
+
+
+
+ Modes in which the tolerance value for a comparison can
+ be interpreted.
+
+
+
+
+ The tolerance was created with a value, without specifying
+ how the value would be used. This is used to prevent setting
+ the mode more than once and is generally changed to Linear
+ upon execution of the test.
+
+
+
+
+ The tolerance is used as a numeric range within which
+ two compared values are considered to be equal.
+
+
+
+
+ Interprets the tolerance as the percentage by which
+ the two compared values my deviate from each other.
+
+
+
+
+ Compares two values based in their distance in
+ representable numbers.
+
+
+
+
+ The Tolerance class generalizes the notion of a tolerance
+ within which an equality test succeeds. Normally, it is
+ used with numeric types, but it can be used with any
+ type that supports taking a difference between two
+ objects and comparing that difference to a value.
+
+
+
+
+ Constructs a linear tolerance of a specdified amount
+
+
+
+
+ Constructs a tolerance given an amount and ToleranceMode
+
+
+
+
+ Tests that the current Tolerance is linear with a
+ numeric value, throwing an exception if it is not.
+
+
+
+
+ Returns an empty Tolerance object, equivalent to
+ specifying an exact match.
+
+
+
+
+ Gets the ToleranceMode for the current Tolerance
+
+
+
+
+ Gets the value of the current Tolerance instance.
+
+
+
+
+ Returns a new tolerance, using the current amount as a percentage.
+
+
+
+
+ Returns a new tolerance, using the current amount in Ulps.
+
+
+
+
+ Returns a new tolerance with a TimeSpan as the amount, using
+ the current amount as a number of days.
+
+
+
+
+ Returns a new tolerance with a TimeSpan as the amount, using
+ the current amount as a number of hours.
+
+
+
+
+ Returns a new tolerance with a TimeSpan as the amount, using
+ the current amount as a number of minutes.
+
+
+
+
+ Returns a new tolerance with a TimeSpan as the amount, using
+ the current amount as a number of seconds.
+
+
+
+
+ Returns a new tolerance with a TimeSpan as the amount, using
+ the current amount as a number of milliseconds.
+
+
+
+
+ Returns a new tolerance with a TimeSpan as the amount, using
+ the current amount as a number of clock ticks.
+
+
+
+
+ Returns true if the current tolerance is empty.
+
+
+
+
+ ComparisonAdapter class centralizes all comparisons of
+ values in NUnit, adapting to the use of any provided
+ IComparer, IComparer<T> or Comparison<T>
+
+
+
+
+ Returns a ComparisonAdapter that wraps an IComparer
+
+
+
+
+ Returns a ComparisonAdapter that wraps an IComparer<T>
+
+
+
+
+ Returns a ComparisonAdapter that wraps a Comparison<T>
+
+
+
+
+ Compares two objects
+
+
+
+
+ Gets the default ComparisonAdapter, which wraps an
+ NUnitComparer object.
+
+
+
+
+ Construct a ComparisonAdapter for an IComparer
+
+
+
+
+ Compares two objects
+
+
+
+
+
+
+
+ Construct a default ComparisonAdapter
+
+
+
+
+ ComparisonAdapter<T> extends ComparisonAdapter and
+ allows use of an IComparer<T> or Comparison<T>
+ to actually perform the comparison.
+
+
+
+
+ Construct a ComparisonAdapter for an IComparer<T>
+
+
+
+
+ Compare a Type T to an object
+
+
+
+
+ Construct a ComparisonAdapter for a Comparison<T>
+
+
+
+
+ Compare a Type T to an object
+
+
+
+
+ EqualityAdapter class handles all equality comparisons
+ that use an IEqualityComparer, IEqualityComparer<T>
+ or a ComparisonAdapter.
+
+
+
+
+ Compares two objects, returning true if they are equal
+
+
+
+
+ Returns an EqualityAdapter that wraps an IComparer.
+
+
+
+
+ Returns an EqualityAdapter that wraps an IEqualityComparer.
+
+
+
+
+ Returns an EqualityAdapter that wraps an IEqualityComparer<T>.
+
+
+
+
+ Returns an EqualityAdapter that wraps an IComparer<T>.
+
+
+
+
+ Returns an EqualityAdapter that wraps a Comparison<T>.
+
+
+
+
+ NUnitComparer encapsulates NUnit's default behavior
+ in comparing two objects.
+
+
+
+
+ Compares two objects
+
+
+
+
+
+
+
+ Returns the default NUnitComparer.
+
+
+
+
+ NUnitEqualityComparer encapsulates NUnit's handling of
+ equality tests between objects.
+
+
+
+
+ If true, all string comparisons will ignore case
+
+
+
+
+ If true, arrays will be treated as collections, allowing
+ those of different dimensions to be compared
+
+
+
+
+ If non-zero, equality comparisons within the specified
+ tolerance will succeed.
+
+
+
+
+ Comparison object used in comparisons for some constraints.
+
+
+
+
+ Compares two objects for equality.
+
+
+
+
+ Helper method to compare two arrays
+
+
+
+
+ Method to compare two DirectoryInfo objects
+
+ first directory to compare
+ second directory to compare
+ true if equivalent, false if not
+
+
+
+ Returns the default NUnitEqualityComparer
+
+
+
+
+ Gets and sets a flag indicating whether case should
+ be ignored in determining equality.
+
+
+
+
+ Gets and sets a flag indicating that arrays should be
+ compared as collections, without regard to their shape.
+
+
+
+
+ Gets and sets an external comparer to be used to
+ test for equality. It is applied to members of
+ collections, in place of NUnit's own logic.
+
+
+
+
+ Gets and sets a tolerance used to compare objects of
+ certin types.
+
+
+
+
+ Gets the list of failure points for the last Match performed.
+
+
+
+
+ Predicate constraint wraps a Predicate in a constraint,
+ returning success if the predicate is true.
+
+
+
+
+ Construct a PredicateConstraint from a predicate
+
+
+
+
+ Determines whether the predicate succeeds when applied
+ to the actual value.
+
+
+
+
+ Writes the description to a MessageWriter
+
+
+
+
+ CollectionTally counts (tallies) the number of
+ occurences of each object in one or more enumerations.
+
+
+
+
+ Construct a CollectionTally object from a comparer and a collection
+
+
+
+
+ Try to remove an object from the tally
+
+ The object to remove
+ True if successful, false if the object was not found
+
+
+
+ Try to remove a set of objects from the tally
+
+ The objects to remove
+ True if successful, false if any object was not found
+
+
+
+ The number of objects remaining in the tally
+
+
+
+
+ SetUpFixtureAttribute is used to identify a SetUpFixture
+
+
+
+
+ Basic Asserts on strings.
+
+
+
+
+ The Equals method throws an AssertionException. This is done
+ to make sure there is no mistake by calling this function.
+
+
+
+
+
+
+ override the default ReferenceEquals to throw an AssertionException. This
+ implementation makes sure there is no mistake in calling this function
+ as part of Assert.
+
+
+
+
+
+
+ Asserts that a string is found within another string.
+
+ The expected string
+ The string to be examined
+ The message to display in case of failure
+ Arguments used in formatting the message
+
+
+
+ Asserts that a string is found within another string.
+
+ The expected string
+ The string to be examined
+ The message to display in case of failure
+
+
+
+ Asserts that a string is found within another string.
+
+ The expected string
+ The string to be examined
+
+
+
+ Asserts that a string is not found within another string.
+
+ The expected string
+ The string to be examined
+ The message to display in case of failure
+ Arguments used in formatting the message
+
+
+
+ Asserts that a string is found within another string.
+
+ The expected string
+ The string to be examined
+ The message to display in case of failure
+
+
+
+ Asserts that a string is found within another string.
+
+ The expected string
+ The string to be examined
+
+
+
+ Asserts that a string starts with another string.
+
+ The expected string
+ The string to be examined
+ The message to display in case of failure
+ Arguments used in formatting the message
+
+
+
+ Asserts that a string starts with another string.
+
+ The expected string
+ The string to be examined
+ The message to display in case of failure
+
+
+
+ Asserts that a string starts with another string.
+
+ The expected string
+ The string to be examined
+
+
+
+ Asserts that a string does not start with another string.
+
+ The expected string
+ The string to be examined
+ The message to display in case of failure
+ Arguments used in formatting the message
+
+
+
+ Asserts that a string does not start with another string.
+
+ The expected string
+ The string to be examined
+ The message to display in case of failure
+
+
+
+ Asserts that a string does not start with another string.
+
+ The expected string
+ The string to be examined
+
+
+
+ Asserts that a string ends with another string.
+
+ The expected string
+ The string to be examined
+ The message to display in case of failure
+ Arguments used in formatting the message
+
+
+
+ Asserts that a string ends with another string.
+
+ The expected string
+ The string to be examined
+ The message to display in case of failure
+
+
+
+ Asserts that a string ends with another string.
+
+ The expected string
+ The string to be examined
+
+
+
+ Asserts that a string does not end with another string.
+
+ The expected string
+ The string to be examined
+ The message to display in case of failure
+ Arguments used in formatting the message
+
+
+
+ Asserts that a string does not end with another string.
+
+ The expected string
+ The string to be examined
+ The message to display in case of failure
+
+
+
+ Asserts that a string does not end with another string.
+
+ The expected string
+ The string to be examined
+
+
+
+ Asserts that two strings are equal, without regard to case.
+
+ The expected string
+ The actual string
+ The message to display in case of failure
+ Arguments used in formatting the message
+
+
+
+ Asserts that two strings are equal, without regard to case.
+
+ The expected string
+ The actual string
+ The message to display in case of failure
+
+
+
+ Asserts that two strings are equal, without regard to case.
+
+ The expected string
+ The actual string
+
+
+
+ Asserts that two strings are not equal, without regard to case.
+
+ The expected string
+ The actual string
+ The message to display in case of failure
+ Arguments used in formatting the message
+
+
+
+ Asserts that two strings are Notequal, without regard to case.
+
+ The expected string
+ The actual string
+ The message to display in case of failure
+
+
+
+ Asserts that two strings are not equal, without regard to case.
+
+ The expected string
+ The actual string
+
+
+
+ Asserts that a string matches an expected regular expression pattern.
+
+ The regex pattern to be matched
+ The actual string
+ The message to display in case of failure
+ Arguments used in formatting the message
+
+
+
+ Asserts that a string matches an expected regular expression pattern.
+
+ The regex pattern to be matched
+ The actual string
+ The message to display in case of failure
+
+
+
+ Asserts that a string matches an expected regular expression pattern.
+
+ The regex pattern to be matched
+ The actual string
+
+
+
+ Asserts that a string does not match an expected regular expression pattern.
+
+ The regex pattern to be used
+ The actual string
+ The message to display in case of failure
+ Arguments used in formatting the message
+
+
+
+ Asserts that a string does not match an expected regular expression pattern.
+
+ The regex pattern to be used
+ The actual string
+ The message to display in case of failure
+
+
+
+ Asserts that a string does not match an expected regular expression pattern.
+
+ The regex pattern to be used
+ The actual string
+
+
+
+ PropertyAttribute is used to attach information to a test as a name/value pair..
+
+
+
+
+ Construct a PropertyAttribute with a name and string value
+
+ The name of the property
+ The property value
+
+
+
+ Construct a PropertyAttribute with a name and int value
+
+ The name of the property
+ The property value
+
+
+
+ Construct a PropertyAttribute with a name and double value
+
+ The name of the property
+ The property value
+
+
+
+ Constructor for derived classes that set the
+ property dictionary directly.
+
+
+
+
+ Constructor for use by derived classes that use the
+ name of the type as the property name. Derived classes
+ must ensure that the Type of the property value is
+ a standard type supported by the BCL. Any custom
+ types will cause a serialization Exception when
+ in the client.
+
+
+
+
+ Gets the property dictionary for this attribute
+
+
+
+
+ A set of Assert methods operationg on one or more collections
+
+
+
+
+ The Equals method throws an AssertionException. This is done
+ to make sure there is no mistake by calling this function.
+
+
+
+
+
+
+ override the default ReferenceEquals to throw an AssertionException. This
+ implementation makes sure there is no mistake in calling this function
+ as part of Assert.
+
+
+
+
+
+
+ Asserts that all items contained in collection are of the type specified by expectedType.
+
+ IEnumerable containing objects to be considered
+ System.Type that all objects in collection must be instances of
+
+
+
+ Asserts that all items contained in collection are of the type specified by expectedType.
+
+ IEnumerable containing objects to be considered
+ System.Type that all objects in collection must be instances of
+ The message that will be displayed on failure
+
+
+
+ Asserts that all items contained in collection are of the type specified by expectedType.
+
+ IEnumerable containing objects to be considered
+ System.Type that all objects in collection must be instances of
+ The message that will be displayed on failure
+ Arguments to be used in formatting the message
+
+
+
+ Asserts that all items contained in collection are not equal to null.
+
+ IEnumerable containing objects to be considered
+
+
+
+ Asserts that all items contained in collection are not equal to null.
+
+ IEnumerable containing objects to be considered
+ The message that will be displayed on failure
+
+
+
+ Asserts that all items contained in collection are not equal to null.
+
+ IEnumerable of objects to be considered
+ The message that will be displayed on failure
+ Arguments to be used in formatting the message
+
+
+
+ Ensures that every object contained in collection exists within the collection
+ once and only once.
+
+ IEnumerable of objects to be considered
+
+
+
+ Ensures that every object contained in collection exists within the collection
+ once and only once.
+
+ IEnumerable of objects to be considered
+ The message that will be displayed on failure
+
+
+
+ Ensures that every object contained in collection exists within the collection
+ once and only once.
+
+ IEnumerable of objects to be considered
+ The message that will be displayed on failure
+ Arguments to be used in formatting the message
+
+
+
+ Asserts that expected and actual are exactly equal. The collections must have the same count,
+ and contain the exact same objects in the same order.
+
+ The first IEnumerable of objects to be considered
+ The second IEnumerable of objects to be considered
+
+
+
+ Asserts that expected and actual are exactly equal. The collections must have the same count,
+ and contain the exact same objects in the same order.
+ If comparer is not null then it will be used to compare the objects.
+
+ The first IEnumerable of objects to be considered
+ The second IEnumerable of objects to be considered
+ The IComparer to use in comparing objects from each IEnumerable
+
+
+
+ Asserts that expected and actual are exactly equal. The collections must have the same count,
+ and contain the exact same objects in the same order.
+
+ The first IEnumerable of objects to be considered
+ The second IEnumerable of objects to be considered
+ The message that will be displayed on failure
+
+
+
+ Asserts that expected and actual are exactly equal. The collections must have the same count,
+ and contain the exact same objects in the same order.
+ If comparer is not null then it will be used to compare the objects.
+
+ The first IEnumerable of objects to be considered
+ The second IEnumerable of objects to be considered
+ The IComparer to use in comparing objects from each IEnumerable
+ The message that will be displayed on failure
+
+
+
+ Asserts that expected and actual are exactly equal. The collections must have the same count,
+ and contain the exact same objects in the same order.
+
+ The first IEnumerable of objects to be considered
+ The second IEnumerable of objects to be considered
+ The message that will be displayed on failure
+ Arguments to be used in formatting the message
+
+
+
+ Asserts that expected and actual are exactly equal. The collections must have the same count,
+ and contain the exact same objects in the same order.
+ If comparer is not null then it will be used to compare the objects.
+
+ The first IEnumerable of objects to be considered
+ The second IEnumerable of objects to be considered
+ The IComparer to use in comparing objects from each IEnumerable
+ The message that will be displayed on failure
+ Arguments to be used in formatting the message
+
+
+
+ Asserts that expected and actual are equivalent, containing the same objects but the match may be in any order.
+
+ The first IEnumerable of objects to be considered
+ The second IEnumerable of objects to be considered
+
+
+
+ Asserts that expected and actual are equivalent, containing the same objects but the match may be in any order.
+
+ The first IEnumerable of objects to be considered
+ The second IEnumerable of objects to be considered
+ The message that will be displayed on failure
+
+
+
+ Asserts that expected and actual are equivalent, containing the same objects but the match may be in any order.
+
+ The first IEnumerable of objects to be considered
+ The second IEnumerable of objects to be considered
+ The message that will be displayed on failure
+ Arguments to be used in formatting the message
+
+
+
+ Asserts that expected and actual are not exactly equal.
+
+ The first IEnumerable of objects to be considered
+ The second IEnumerable of objects to be considered
+
+
+
+ Asserts that expected and actual are not exactly equal.
+ If comparer is not null then it will be used to compare the objects.
+
+ The first IEnumerable of objects to be considered
+ The second IEnumerable of objects to be considered
+ The IComparer to use in comparing objects from each IEnumerable
+
+
+
+ Asserts that expected and actual are not exactly equal.
+
+ The first IEnumerable of objects to be considered
+ The second IEnumerable of objects to be considered
+ The message that will be displayed on failure
+
+
+
+ Asserts that expected and actual are not exactly equal.
+ If comparer is not null then it will be used to compare the objects.
+
+ The first IEnumerable of objects to be considered
+ The second IEnumerable of objects to be considered
+ The IComparer to use in comparing objects from each IEnumerable
+ The message that will be displayed on failure
+
+
+
+ Asserts that expected and actual are not exactly equal.
+
+ The first IEnumerable of objects to be considered
+ The second IEnumerable of objects to be considered
+ The message that will be displayed on failure
+ Arguments to be used in formatting the message
+
+
+
+ Asserts that expected and actual are not exactly equal.
+ If comparer is not null then it will be used to compare the objects.
+
+ The first IEnumerable of objects to be considered
+ The second IEnumerable of objects to be considered
+ The IComparer to use in comparing objects from each IEnumerable
+ The message that will be displayed on failure
+ Arguments to be used in formatting the message
+
+
+
+ Asserts that expected and actual are not equivalent.
+
+ The first IEnumerable of objects to be considered
+ The second IEnumerable of objects to be considered
+
+
+
+ Asserts that expected and actual are not equivalent.
+
+ The first IEnumerable of objects to be considered
+ The second IEnumerable of objects to be considered
+ The message that will be displayed on failure
+
+
+
+ Asserts that expected and actual are not equivalent.
+
+ The first IEnumerable of objects to be considered
+ The second IEnumerable of objects to be considered
+ The message that will be displayed on failure
+ Arguments to be used in formatting the message
+
+
+
+ Asserts that collection contains actual as an item.
+
+ IEnumerable of objects to be considered
+ Object to be found within collection
+
+
+
+ Asserts that collection contains actual as an item.
+
+ IEnumerable of objects to be considered
+ Object to be found within collection
+ The message that will be displayed on failure
+
+
+
+ Asserts that collection contains actual as an item.
+
+ IEnumerable of objects to be considered
+ Object to be found within collection
+ The message that will be displayed on failure
+ Arguments to be used in formatting the message
+
+
+
+ Asserts that collection does not contain actual as an item.
+
+ IEnumerable of objects to be considered
+ Object that cannot exist within collection
+
+
+
+ Asserts that collection does not contain actual as an item.
+
+ IEnumerable of objects to be considered
+ Object that cannot exist within collection
+ The message that will be displayed on failure
+
+
+
+ Asserts that collection does not contain actual as an item.
+
+ IEnumerable of objects to be considered
+ Object that cannot exist within collection
+ The message that will be displayed on failure
+ Arguments to be used in formatting the message
+
+
+
+ Asserts that superset is not a subject of subset.
+
+ The IEnumerable superset to be considered
+ The IEnumerable subset to be considered
+
+
+
+ Asserts that superset is not a subject of subset.
+
+ The IEnumerable superset to be considered
+ The IEnumerable subset to be considered
+ The message that will be displayed on failure
+
+
+
+ Asserts that superset is not a subject of subset.
+
+ The IEnumerable superset to be considered
+ The IEnumerable subset to be considered
+ The message that will be displayed on failure
+ Arguments to be used in formatting the message
+
+
+
+ Asserts that superset is a subset of subset.
+
+ The IEnumerable superset to be considered
+ The IEnumerable subset to be considered
+
+
+
+ Asserts that superset is a subset of subset.
+
+ The IEnumerable superset to be considered
+ The IEnumerable subset to be considered
+ The message that will be displayed on failure
+
+
+
+ Asserts that superset is a subset of subset.
+
+ The IEnumerable superset to be considered
+ The IEnumerable subset to be considered
+ The message that will be displayed on failure
+ Arguments to be used in formatting the message
+
+
+
+ Assert that an array, list or other collection is empty
+
+ An array, list or other collection implementing IEnumerable
+ The message to be displayed on failure
+ Arguments to be used in formatting the message
+
+
+
+ Assert that an array, list or other collection is empty
+
+ An array, list or other collection implementing IEnumerable
+ The message to be displayed on failure
+
+
+
+ Assert that an array,list or other collection is empty
+
+ An array, list or other collection implementing IEnumerable
+
+
+
+ Assert that an array, list or other collection is empty
+
+ An array, list or other collection implementing IEnumerable
+ The message to be displayed on failure
+ Arguments to be used in formatting the message
+
+
+
+ Assert that an array, list or other collection is empty
+
+ An array, list or other collection implementing IEnumerable
+ The message to be displayed on failure
+
+
+
+ Assert that an array,list or other collection is empty
+
+ An array, list or other collection implementing IEnumerable
+
+
+
+ Assert that an array, list or other collection is ordered
+
+ An array, list or other collection implementing IEnumerable
+ The message to be displayed on failure
+ Arguments to be used in formatting the message
+
+
+
+ Assert that an array, list or other collection is ordered
+
+ An array, list or other collection implementing IEnumerable
+ The message to be displayed on failure
+
+
+
+ Assert that an array, list or other collection is ordered
+
+ An array, list or other collection implementing IEnumerable
+
+
+
+ Assert that an array, list or other collection is ordered
+
+ An array, list or other collection implementing IEnumerable
+ A custom comparer to perform the comparisons
+ The message to be displayed on failure
+ Arguments to be used in formatting the message
+
+
+
+ Assert that an array, list or other collection is ordered
+
+ An array, list or other collection implementing IEnumerable
+ A custom comparer to perform the comparisons
+ The message to be displayed on failure
+
+
+
+ Assert that an array, list or other collection is ordered
+
+ An array, list or other collection implementing IEnumerable
+ A custom comparer to perform the comparisons
+
+
+
+ Summary description for FileAssert.
+
+
+
+
+ The Equals method throws an AssertionException. This is done
+ to make sure there is no mistake by calling this function.
+
+
+
+
+
+
+ override the default ReferenceEquals to throw an AssertionException. This
+ implementation makes sure there is no mistake in calling this function
+ as part of Assert.
+
+
+
+
+
+
+ We don't actually want any instances of this object, but some people
+ like to inherit from it to add other static methods. Hence, the
+ protected constructor disallows any instances of this object.
+
+
+
+
+ Verifies that two Streams are equal. Two Streams are considered
+ equal if both are null, or if both have the same value byte for byte.
+ If they are not equal an is thrown.
+
+ The expected Stream
+ The actual Stream
+ The message to display if Streams are not equal
+ Arguments to be used in formatting the message
+
+
+
+ Verifies that two Streams are equal. Two Streams are considered
+ equal if both are null, or if both have the same value byte for byte.
+ If they are not equal an is thrown.
+
+ The expected Stream
+ The actual Stream
+ The message to display if objects are not equal
+
+
+
+ Verifies that two Streams are equal. Two Streams are considered
+ equal if both are null, or if both have the same value byte for byte.
+ If they are not equal an is thrown.
+
+ The expected Stream
+ The actual Stream
+
+
+
+ Verifies that two files are equal. Two files are considered
+ equal if both are null, or if both have the same value byte for byte.
+ If they are not equal an is thrown.
+
+ A file containing the value that is expected
+ A file containing the actual value
+ The message to display if Streams are not equal
+ Arguments to be used in formatting the message
+
+
+
+ Verifies that two files are equal. Two files are considered
+ equal if both are null, or if both have the same value byte for byte.
+ If they are not equal an is thrown.
+
+ A file containing the value that is expected
+ A file containing the actual value
+ The message to display if objects are not equal
+
+
+
+ Verifies that two files are equal. Two files are considered
+ equal if both are null, or if both have the same value byte for byte.
+ If they are not equal an is thrown.
+
+ A file containing the value that is expected
+ A file containing the actual value
+
+
+
+ Verifies that two files are equal. Two files are considered
+ equal if both are null, or if both have the same value byte for byte.
+ If they are not equal an is thrown.
+
+ The path to a file containing the value that is expected
+ The path to a file containing the actual value
+ The message to display if Streams are not equal
+ Arguments to be used in formatting the message
+
+
+
+ Verifies that two files are equal. Two files are considered
+ equal if both are null, or if both have the same value byte for byte.
+ If they are not equal an is thrown.
+
+ The path to a file containing the value that is expected
+ The path to a file containing the actual value
+ The message to display if objects are not equal
+
+
+
+ Verifies that two files are equal. Two files are considered
+ equal if both are null, or if both have the same value byte for byte.
+ If they are not equal an is thrown.
+
+ The path to a file containing the value that is expected
+ The path to a file containing the actual value
+
+
+
+ Asserts that two Streams are not equal. If they are equal
+ an is thrown.
+
+ The expected Stream
+ The actual Stream
+ The message to be displayed when the two Stream are the same.
+ Arguments to be used in formatting the message
+
+
+
+ Asserts that two Streams are not equal. If they are equal
+ an is thrown.
+
+ The expected Stream
+ The actual Stream
+ The message to be displayed when the Streams are the same.
+
+
+
+ Asserts that two Streams are not equal. If they are equal
+ an is thrown.
+
+ The expected Stream
+ The actual Stream
+
+
+
+ Asserts that two files are not equal. If they are equal
+ an is thrown.
+
+ A file containing the value that is expected
+ A file containing the actual value
+ The message to display if Streams are not equal
+ Arguments to be used in formatting the message
+
+
+
+ Asserts that two files are not equal. If they are equal
+ an is thrown.
+
+ A file containing the value that is expected
+ A file containing the actual value
+ The message to display if objects are not equal
+
+
+
+ Asserts that two files are not equal. If they are equal
+ an is thrown.
+
+ A file containing the value that is expected
+ A file containing the actual value
+
+
+
+ Asserts that two files are not equal. If they are equal
+ an is thrown.
+
+ The path to a file containing the value that is expected
+ The path to a file containing the actual value
+ The message to display if Streams are not equal
+ Arguments to be used in formatting the message
+
+
+
+ Asserts that two files are not equal. If they are equal
+ an is thrown.
+
+ The path to a file containing the value that is expected
+ The path to a file containing the actual value
+ The message to display if objects are not equal
+
+
+
+ Asserts that two files are not equal. If they are equal
+ an is thrown.
+
+ The path to a file containing the value that is expected
+ The path to a file containing the actual value
+
+
+
+ Attribute used to provide descriptive text about a
+ test case or fixture.
+
+
+
+
+ Construct the attribute
+
+ Text describing the test
+
+
+
+ Gets the test description
+
+
+
+
+ Interface implemented by a user fixture in order to
+ validate any expected exceptions. It is only called
+ for test methods marked with the ExpectedException
+ attribute.
+
+
+
+
+ Method to handle an expected exception
+
+ The exception to be handled
+
+
+
+ TextMessageWriter writes constraint descriptions and messages
+ in displayable form as a text stream. It tailors the display
+ of individual message components to form the standard message
+ format of NUnit assertion failure messages.
+
+
+
+
+ Prefix used for the expected value line of a message
+
+
+
+
+ Prefix used for the actual value line of a message
+
+
+
+
+ Length of a message prefix
+
+
+
+
+ Construct a TextMessageWriter
+
+
+
+
+ Construct a TextMessageWriter, specifying a user message
+ and optional formatting arguments.
+
+
+
+
+
+
+ Method to write single line message with optional args, usually
+ written to precede the general failure message, at a givel
+ indentation level.
+
+ The indentation level of the message
+ The message to be written
+ Any arguments used in formatting the message
+
+
+
+ Display Expected and Actual lines for a constraint. This
+ is called by MessageWriter's default implementation of
+ WriteMessageTo and provides the generic two-line display.
+
+ The constraint that failed
+
+
+
+ Display Expected and Actual lines for given values. This
+ method may be called by constraints that need more control over
+ the display of actual and expected values than is provided
+ by the default implementation.
+
+ The expected value
+ The actual value causing the failure
+
+
+
+ Display Expected and Actual lines for given values, including
+ a tolerance value on the expected line.
+
+ The expected value
+ The actual value causing the failure
+ The tolerance within which the test was made
+
+
+
+ Display the expected and actual string values on separate lines.
+ If the mismatch parameter is >=0, an additional line is displayed
+ line containing a caret that points to the mismatch point.
+
+ The expected string value
+ The actual string value
+ The point at which the strings don't match or -1
+ If true, case is ignored in string comparisons
+ If true, clip the strings to fit the max line length
+
+
+
+ Writes the text for a connector.
+
+ The connector.
+
+
+
+ Writes the text for a predicate.
+
+ The predicate.
+
+
+
+ Write the text for a modifier.
+
+ The modifier.
+
+
+
+ Writes the text for an expected value.
+
+ The expected value.
+
+
+
+ Writes the text for an actual value.
+
+ The actual value.
+
+
+
+ Writes the text for a generalized value.
+
+ The value.
+
+
+
+ Writes the text for a collection value,
+ starting at a particular point, to a max length
+
+ The collection containing elements to write.
+ The starting point of the elements to write
+ The maximum number of elements to write
+
+
+
+ Write the generic 'Expected' line for a constraint
+
+ The constraint that failed
+
+
+
+ Write the generic 'Expected' line for a given value
+
+ The expected value
+
+
+
+ Write the generic 'Expected' line for a given value
+ and tolerance.
+
+ The expected value
+ The tolerance within which the test was made
+
+
+
+ Write the generic 'Actual' line for a constraint
+
+ The constraint for which the actual value is to be written
+
+
+
+ Write the generic 'Actual' line for a given value
+
+ The actual value causing a failure
+
+
+
+ Gets or sets the maximum line length for this writer
+
+
+
+
+ AssertionHelper is an optional base class for user tests,
+ allowing the use of shorter names for constraints and
+ asserts and avoiding conflict with the definition of
+ , from which it inherits much of its
+ behavior, in certain mock object frameworks.
+
+
+
+
+ Apply a constraint to an actual value, succeeding if the constraint
+ is satisfied and throwing an assertion exception on failure. Works
+ identically to
+
+ A Constraint to be applied
+ The actual value to test
+
+
+
+ Apply a constraint to an actual value, succeeding if the constraint
+ is satisfied and throwing an assertion exception on failure. Works
+ identically to
+
+ A Constraint to be applied
+ The actual value to test
+ The message that will be displayed on failure
+
+
+
+ Apply a constraint to an actual value, succeeding if the constraint
+ is satisfied and throwing an assertion exception on failure. Works
+ identically to
+
+ A Constraint to be applied
+ The actual value to test
+ The message that will be displayed on failure
+ Arguments to be used in formatting the message
+
+
+
+ Apply a constraint to an actual value, succeeding if the constraint
+ is satisfied and throwing an assertion exception on failure.
+
+ A Constraint expression to be applied
+ An ActualValueDelegate returning the value to be tested
+
+
+
+ Apply a constraint to an actual value, succeeding if the constraint
+ is satisfied and throwing an assertion exception on failure.
+
+ A Constraint expression to be applied
+ An ActualValueDelegate returning the value to be tested
+ The message that will be displayed on failure
+
+
+
+ Apply a constraint to an actual value, succeeding if the constraint
+ is satisfied and throwing an assertion exception on failure.
+
+ An ActualValueDelegate returning the value to be tested
+ A Constraint expression to be applied
+ The message that will be displayed on failure
+ Arguments to be used in formatting the message
+
+
+
+ Apply a constraint to a referenced value, succeeding if the constraint
+ is satisfied and throwing an assertion exception on failure.
+
+ A Constraint to be applied
+ The actual value to test
+
+
+
+ Apply a constraint to a referenced value, succeeding if the constraint
+ is satisfied and throwing an assertion exception on failure.
+
+ A Constraint to be applied
+ The actual value to test
+ The message that will be displayed on failure
+
+
+
+ Apply a constraint to a referenced value, succeeding if the constraint
+ is satisfied and throwing an assertion exception on failure.
+
+ A Constraint to be applied
+ The actual value to test
+ The message that will be displayed on failure
+ Arguments to be used in formatting the message
+
+
+
+ Asserts that a condition is true. If the condition is false the method throws
+ an . Works Identically to
+ .
+
+ The evaluated condition
+ The message to display if the condition is false
+ Arguments to be used in formatting the message
+
+
+
+ Asserts that a condition is true. If the condition is false the method throws
+ an . Works Identically to
+ .
+
+ The evaluated condition
+ The message to display if the condition is false
+
+
+
+ Asserts that a condition is true. If the condition is false the method throws
+ an . Works Identically to .
+
+ The evaluated condition
+
+
+
+ Asserts that the code represented by a delegate throws an exception
+ that satisfies the constraint provided.
+
+ A TestDelegate to be executed
+ A ThrowsConstraint used in the test
+
+
+
+ Returns a ListMapper based on a collection.
+
+ The original collection
+
+
+
+
+ Abstract base for Attributes that are used to include tests
+ in the test run based on environmental settings.
+
+
+
+
+ Constructor with no included items specified, for use
+ with named property syntax.
+
+
+
+
+ Constructor taking one or more included items
+
+ Comma-delimited list of included items
+
+
+
+ Name of the item that is needed in order for
+ a test to run. Multiple itemss may be given,
+ separated by a comma.
+
+
+
+
+ Name of the item to be excluded. Multiple items
+ may be given, separated by a comma.
+
+
+
+
+ The reason for including or excluding the test
+
+
+
+
+ PlatformAttribute is used to mark a test fixture or an
+ individual method as applying to a particular platform only.
+
+
+
+
+ Constructor with no platforms specified, for use
+ with named property syntax.
+
+
+
+
+ Constructor taking one or more platforms
+
+ Comma-deliminted list of platforms
+
+
+
+ CultureAttribute is used to mark a test fixture or an
+ individual method as applying to a particular Culture only.
+
+
+
+
+ Constructor with no cultures specified, for use
+ with named property syntax.
+
+
+
+
+ Constructor taking one or more cultures
+
+ Comma-deliminted list of cultures
+
+
+
+ Summary description for SetCultureAttribute.
+
+
+
+
+ Construct given the name of a culture
+
+
+
+
+
+ GlobalSettings is a place for setting default values used
+ by the framework in performing asserts.
+
+
+
+
+ Default tolerance for floating point equality
+
+
+
+
+ Summary description for DirectoryAssert
+
+
+
+
+ The Equals method throws an AssertionException. This is done
+ to make sure there is no mistake by calling this function.
+
+
+
+
+
+
+ override the default ReferenceEquals to throw an AssertionException. This
+ implementation makes sure there is no mistake in calling this function
+ as part of Assert.
+
+
+
+
+
+
+ We don't actually want any instances of this object, but some people
+ like to inherit from it to add other static methods. Hence, the
+ protected constructor disallows any instances of this object.
+
+
+
+
+ Verifies that two directories are equal. Two directories are considered
+ equal if both are null, or if both have the same value byte for byte.
+ If they are not equal an is thrown.
+
+ A directory containing the value that is expected
+ A directory containing the actual value
+ The message to display if directories are not equal
+ Arguments to be used in formatting the message
+
+
+
+ Verifies that two directories are equal. Two directories are considered
+ equal if both are null, or if both have the same value byte for byte.
+ If they are not equal an is thrown.
+
+ A directory containing the value that is expected
+ A directory containing the actual value
+ The message to display if directories are not equal
+
+
+
+ Verifies that two directories are equal. Two directories are considered
+ equal if both are null, or if both have the same value byte for byte.
+ If they are not equal an is thrown.
+
+ A directory containing the value that is expected
+ A directory containing the actual value
+
+
+
+ Verifies that two directories are equal. Two directories are considered
+ equal if both are null, or if both have the same value byte for byte.
+ If they are not equal an is thrown.
+
+ A directory path string containing the value that is expected
+ A directory path string containing the actual value
+ The message to display if directories are not equal
+ Arguments to be used in formatting the message
+
+
+
+ Verifies that two directories are equal. Two directories are considered
+ equal if both are null, or if both have the same value byte for byte.
+ If they are not equal an is thrown.
+
+ A directory path string containing the value that is expected
+ A directory path string containing the actual value
+ The message to display if directories are not equal
+
+
+
+ Verifies that two directories are equal. Two directories are considered
+ equal if both are null, or if both have the same value byte for byte.
+ If they are not equal an is thrown.
+
+ A directory path string containing the value that is expected
+ A directory path string containing the actual value
+
+
+
+ Asserts that two directories are not equal. If they are equal
+ an is thrown.
+
+ A directory containing the value that is expected
+ A directory containing the actual value
+ The message to display if directories are not equal
+ Arguments to be used in formatting the message
+
+
+
+ Asserts that two directories are not equal. If they are equal
+ an is thrown.
+
+ A directory containing the value that is expected
+ A directory containing the actual value
+ The message to display if directories are not equal
+
+
+
+ Asserts that two directories are not equal. If they are equal
+ an is thrown.
+
+ A directory containing the value that is expected
+ A directory containing the actual value
+
+
+
+ Asserts that two directories are not equal. If they are equal
+ an is thrown.
+
+ A directory path string containing the value that is expected
+ A directory path string containing the actual value
+ The message to display if directories are equal
+ Arguments to be used in formatting the message
+
+
+
+ Asserts that two directories are not equal. If they are equal
+ an is thrown.
+
+ A directory path string containing the value that is expected
+ A directory path string containing the actual value
+ The message to display if directories are equal
+
+
+
+ Asserts that two directories are not equal. If they are equal
+ an is thrown.
+
+ A directory path string containing the value that is expected
+ A directory path string containing the actual value
+
+
+
+ Asserts that the directory is empty. If it is not empty
+ an is thrown.
+
+ A directory to search
+ The message to display if directories are not equal
+ Arguments to be used in formatting the message
+
+
+
+ Asserts that the directory is empty. If it is not empty
+ an is thrown.
+
+ A directory to search
+ The message to display if directories are not equal
+
+
+
+ Asserts that the directory is empty. If it is not empty
+ an is thrown.
+
+ A directory to search
+
+
+
+ Asserts that the directory is empty. If it is not empty
+ an is thrown.
+
+ A directory to search
+ The message to display if directories are not equal
+ Arguments to be used in formatting the message
+
+
+
+ Asserts that the directory is empty. If it is not empty
+ an is thrown.
+
+ A directory to search
+ The message to display if directories are not equal
+
+
+
+ Asserts that the directory is empty. If it is not empty
+ an is thrown.
+
+ A directory to search
+
+
+
+ Asserts that the directory is not empty. If it is empty
+ an is thrown.
+
+ A directory to search
+ The message to display if directories are not equal
+ Arguments to be used in formatting the message
+
+
+
+ Asserts that the directory is not empty. If it is empty
+ an is thrown.
+
+ A directory to search
+ The message to display if directories are not equal
+
+
+
+ Asserts that the directory is not empty. If it is empty
+ an is thrown.
+
+ A directory to search
+
+
+
+ Asserts that the directory is not empty. If it is empty
+ an is thrown.
+
+ A directory to search
+ The message to display if directories are not equal
+ Arguments to be used in formatting the message
+
+
+
+ Asserts that the directory is not empty. If it is empty
+ an is thrown.
+
+ A directory to search
+ The message to display if directories are not equal
+
+
+
+ Asserts that the directory is not empty. If it is empty
+ an is thrown.
+
+ A directory to search
+
+
+
+ Asserts that path contains actual as a subdirectory or
+ an is thrown.
+
+ A directory to search
+ sub-directory asserted to exist under directory
+ The message to display if directory is not within the path
+ Arguments to be used in formatting the message
+
+
+
+ Asserts that path contains actual as a subdirectory or
+ an is thrown.
+
+ A directory to search
+ sub-directory asserted to exist under directory
+ The message to display if directory is not within the path
+
+
+
+ Asserts that path contains actual as a subdirectory or
+ an is thrown.
+
+ A directory to search
+ sub-directory asserted to exist under directory
+
+
+
+ Asserts that path contains actual as a subdirectory or
+ an is thrown.
+
+ A directory to search
+ sub-directory asserted to exist under directory
+ The message to display if directory is not within the path
+ Arguments to be used in formatting the message
+
+
+
+ Asserts that path contains actual as a subdirectory or
+ an is thrown.
+
+ A directory to search
+ sub-directory asserted to exist under directory
+ The message to display if directory is not within the path
+
+
+
+ Asserts that path contains actual as a subdirectory or
+ an is thrown.
+
+ A directory to search
+ sub-directory asserted to exist under directory
+
+
+
+ Asserts that path does not contain actual as a subdirectory or
+ an is thrown.
+
+ A directory to search
+ sub-directory asserted to exist under directory
+ The message to display if directory is not within the path
+ Arguments to be used in formatting the message
+
+
+
+ Asserts that path does not contain actual as a subdirectory or
+ an is thrown.
+
+ A directory to search
+ sub-directory asserted to exist under directory
+ The message to display if directory is not within the path
+
+
+
+ Asserts that path does not contain actual as a subdirectory or
+ an is thrown.
+
+ A directory to search
+ sub-directory asserted to exist under directory
+
+
+
+ Asserts that path does not contain actual as a subdirectory or
+ an is thrown.
+
+ A directory to search
+ sub-directory asserted to exist under directory
+ The message to display if directory is not within the path
+ Arguments to be used in formatting the message
+
+
+
+ Asserts that path does not contain actual as a subdirectory or
+ an is thrown.
+
+ A directory to search
+ sub-directory asserted to exist under directory
+ The message to display if directory is not within the path
+
+
+
+ Asserts that path does not contain actual as a subdirectory or
+ an is thrown.
+
+ A directory to search
+ sub-directory asserted to exist under directory
+
+
+
+ TestCaseAttribute is used to mark parameterized test cases
+ and provide them with their arguments.
+
+
+
+
+ The ITestCaseData interface is implemented by a class
+ that is able to return complete testcases for use by
+ a parameterized test method.
+
+ NOTE: This interface is used in both the framework
+ and the core, even though that results in two different
+ types. However, sharing the source code guarantees that
+ the various implementations will be compatible and that
+ the core is able to reflect successfully over the
+ framework implementations of ITestCaseData.
+
+
+
+
+ Gets the argument list to be provided to the test
+
+
+
+
+ Gets the expected result
+
+
+
+
+ Gets the expected exception Type
+
+
+
+
+ Gets the FullName of the expected exception
+
+
+
+
+ Gets the name to be used for the test
+
+
+
+
+ Gets the description of the test
+
+
+
+
+ Gets a value indicating whether this is ignored.
+
+ true if ignored; otherwise, false.
+
+
+
+ Gets the ignore reason.
+
+ The ignore reason.
+
+
+
+ Construct a TestCaseAttribute with a list of arguments.
+ This constructor is not CLS-Compliant
+
+
+
+
+
+ Construct a TestCaseAttribute with a single argument
+
+
+
+
+
+ Construct a TestCaseAttribute with a two arguments
+
+
+
+
+
+
+ Construct a TestCaseAttribute with a three arguments
+
+
+
+
+
+
+
+ Gets the list of arguments to a test case
+
+
+
+
+ Gets or sets the expected result.
+
+ The result.
+
+
+
+ Gets or sets the expected exception.
+
+ The expected exception.
+
+
+
+ Gets or sets the name the expected exception.
+
+ The expected name of the exception.
+
+
+
+ Gets or sets the expected message of the expected exception
+
+ The expected message of the exception.
+
+
+
+ Gets or sets the type of match to be performed on the expected message
+
+
+
+
+ Gets or sets the description.
+
+ The description.
+
+
+
+ Gets or sets the name of the test.
+
+ The name of the test.
+
+
+
+ Gets or sets the ignored status of the test
+
+
+
+
+ Gets or sets the ignored status of the test
+
+
+
+
+ Gets the ignore reason.
+
+ The ignore reason.
+
+
+
+ The TestCaseData class represents a set of arguments
+ and other parameter info to be used for a parameterized
+ test case. It provides a number of instance modifiers
+ for use in initializing the test case.
+
+ Note: Instance modifiers are getters that return
+ the same instance after modifying it's state.
+
+
+
+
+ The argument list to be provided to the test
+
+
+
+
+ The expected result to be returned
+
+
+
+
+ The expected exception Type
+
+
+
+
+ The FullName of the expected exception
+
+
+
+
+ The name to be used for the test
+
+
+
+
+ The description of the test
+
+
+
+
+ A dictionary of properties, used to add information
+ to tests without requiring the class to change.
+
+
+
+
+ If true, indicates that the test case is to be ignored
+
+
+
+
+ The reason for ignoring a test case
+
+
+
+
+ Initializes a new instance of the class.
+
+ The arguments.
+
+
+
+ Initializes a new instance of the class.
+
+ The argument.
+
+
+
+ Initializes a new instance of the class.
+
+ The first argument.
+ The second argument.
+
+
+
+ Initializes a new instance of the class.
+
+ The first argument.
+ The second argument.
+ The third argument.
+
+
+
+ Sets the expected result for the test
+
+ The expected result
+ A modified TestCaseData
+
+
+
+ Sets the expected exception type for the test
+
+ Type of the expected exception.
+ The modified TestCaseData instance
+
+
+
+ Sets the expected exception type for the test
+
+ FullName of the expected exception.
+ The modified TestCaseData instance
+
+
+
+ Sets the name of the test case
+
+ The modified TestCaseData instance
+
+
+
+ Sets the description for the test case
+ being constructed.
+
+ The description.
+ The modified TestCaseData instance.
+
+
+
+ Applies a category to the test
+
+
+
+
+
+
+ Applies a named property to the test
+
+
+
+
+
+
+
+ Applies a named property to the test
+
+
+
+
+
+
+
+ Applies a named property to the test
+
+
+
+
+
+
+
+ Ignores this TestCase.
+
+
+
+
+
+ Ignores this TestCase, specifying the reason.
+
+ The reason.
+
+
+
+
+ Gets the argument list to be provided to the test
+
+
+
+
+ Gets the expected result
+
+
+
+
+ Gets the expected exception Type
+
+
+
+
+ Gets the FullName of the expected exception
+
+
+
+
+ Gets the name to be used for the test
+
+
+
+
+ Gets the description of the test
+
+
+
+
+ Gets a value indicating whether this is ignored.
+
+ true if ignored; otherwise, false.
+
+
+
+ Gets the ignore reason.
+
+ The ignore reason.
+
+
+
+ Gets a list of categories associated with this test.
+
+
+
+
+ Gets the property dictionary for this test
+
+
+
+
+ Thrown when an assertion failed.
+
+
+
+
+
+
+ The error message that explains
+ the reason for the exception
+ The exception that caused the
+ current exception
+
+
+
+ Serialization Constructor
+
+
+
+
+ Thrown when a test executes inconclusively.
+
+
+
+
+ The error message that explains
+ the reason for the exception
+
+
+ The error message that explains
+ the reason for the exception
+ The exception that caused the
+ current exception
+
+
+
+ Serialization Constructor
+
+
+
+
+ Attribute used to identify a method that is
+ called before any tests in a fixture are run.
+
+
+
+
+ Attribute used to identify a method that is called after
+ all the tests in a fixture have run. The method is
+ guaranteed to be called, even if an exception is thrown.
+
+
+
+
+ ExplicitAttribute marks a test or test fixture so that it will
+ only be run if explicitly executed from the gui or command line
+ or if it is included by use of a filter. The test will not be
+ run simply because an enclosing suite is run.
+
+
+
+
+ Default constructor
+
+
+
+
+ Constructor with a reason
+
+ The reason test is marked explicit
+
+
+
+ The reason test is marked explicit
+
+
+
+
+ Thrown when an assertion failed.
+
+
+
+
+ The error message that explains
+ the reason for the exception
+
+
+ The error message that explains
+ the reason for the exception
+ The exception that caused the
+ current exception
+
+
+
+ Serialization Constructor
+
+
+
+
+ Thrown when an assertion failed.
+
+
+
+
+
+
+ The error message that explains
+ the reason for the exception
+ The exception that caused the
+ current exception
+
+
+
+ Serialization Constructor
+
+
+
+
+ Enumeration indicating how the expected message parameter is to be used
+
+
+
+ Expect an exact match
+
+
+ Expect a message containing the parameter string
+
+
+ Match the regular expression provided as a parameter
+
+
+ Expect a message that starts with the parameter string
+
+
+
+ ExpectedExceptionAttribute
+
+
+
+
+
+ Constructor for a non-specific exception
+
+
+
+
+ Constructor for a given type of exception
+
+ The type of the expected exception
+
+
+
+ Constructor for a given exception name
+
+ The full name of the expected exception
+
+
+
+ Gets or sets the expected exception type
+
+
+
+
+ Gets or sets the full Type name of the expected exception
+
+
+
+
+ Gets or sets the expected message text
+
+
+
+
+ Gets or sets the user message displayed in case of failure
+
+
+
+
+ Gets or sets the type of match to be performed on the expected message
+
+
+
+
+ Gets the name of a method to be used as an exception handler
+
+
+
+
+ Attribute used to mark a test that is to be ignored.
+ Ignored tests result in a warning message when the
+ tests are run.
+
+
+
+
+ Constructs the attribute without giving a reason
+ for ignoring the test.
+
+
+
+
+ Constructs the attribute giving a reason for ignoring the test
+
+ The reason for ignoring the test
+
+
+
+ The reason for ignoring a test
+
+
+
+
+ Attribute used to mark a class that contains one-time SetUp
+ and/or TearDown methods that apply to all the tests in a
+ namespace or an assembly.
+
+
+
+
+ Attribute used to mark a static (shared in VB) property
+ that returns a list of tests.
+
+
+
+
+ Attribute used to identify a method that is called
+ immediately after each test is run. The method is
+ guaranteed to be called, even if an exception is thrown.
+
+
+
+
+ Adding this attribute to a method within a
+ class makes the method callable from the NUnit test runner. There is a property
+ called Description which is optional which you can provide a more detailed test
+ description. This class cannot be inherited.
+
+
+
+ [TestFixture]
+ public class Fixture
+ {
+ [Test]
+ public void MethodToTest()
+ {}
+
+ [Test(Description = "more detailed description")]
+ publc void TestDescriptionMethod()
+ {}
+ }
+
+
+
+
+
+ Descriptive text for this test
+
+
+
+
+ [TestFixture]
+ public class ExampleClass
+ {}
+
+
+
+
+ Default constructor
+
+
+
+
+ Construct with a object[] representing a set of arguments.
+ In .NET 2.0, the arguments may later be separated into
+ type arguments and constructor arguments.
+
+
+
+
+
+ Descriptive text for this fixture
+
+
+
+
+ The arguments originally provided to the attribute
+
+
+
+
+ Gets or sets a value indicating whether this should be ignored.
+
+ true if ignore; otherwise, false.
+
+
+
+ Gets or sets the ignore reason. May set Ignored as a side effect.
+
+ The ignore reason.
+
+
+
+ Get or set the type arguments. If not set
+ explicitly, any leading arguments that are
+ Types are taken as type arguments.
+
+
+
+
+ RequiredAddinAttribute may be used to indicate the names of any addins
+ that must be present in order to run some or all of the tests in an
+ assembly. If the addin is not loaded, the entire assembly is marked
+ as NotRunnable.
+
+
+
+
+ Initializes a new instance of the class.
+
+ The required addin.
+
+
+
+ Gets the name of required addin.
+
+ The required addin name.
+
+
+
+ Marks a test to use a combinatorial join of any argument data
+ provided. NUnit will create a test case for every combination of
+ the arguments provided. This can result in a large number of test
+ cases and so should be used judiciously. This is the default join
+ type, so the attribute need not be used except as documentation.
+
+
+
+
+ Default constructor
+
+
+
+
+ Marks a test to use pairwise join of any argument data provided.
+ NUnit will attempt too excercise every pair of argument values at
+ least once, using as small a number of test cases as it can. With
+ only two arguments, this is the same as a combinatorial join.
+
+
+
+
+ Default constructor
+
+
+
+
+ Marks a test to use a sequential join of any argument data
+ provided. NUnit will use arguements for each parameter in
+ sequence, generating test cases up to the largest number
+ of argument values provided and using null for any arguments
+ for which it runs out of values. Normally, this should be
+ used with the same number of arguments for each parameter.
+
+
+
+
+ Default constructor
+
+
+
+
+ Abstract base class for attributes that apply to parameters
+ and supply data for the parameter.
+
+
+
+
+ Gets the data to be provided to the specified parameter
+
+
+
+
+ ValuesAttribute is used to provide literal arguments for
+ an individual parameter of a test.
+
+
+
+
+ The collection of data to be returned. Must
+ be set by any derived attribute classes.
+ We use an object[] so that the individual
+ elements may have their type changed in GetData
+ if necessary.
+
+
+
+
+ Construct with one argument
+
+
+
+
+
+ Construct with two arguments
+
+
+
+
+
+
+ Construct with three arguments
+
+
+
+
+
+
+
+ Construct with an array of arguments
+
+
+
+
+
+ Get the collection of values to be used as arguments
+
+
+
+
+ RandomAttribute is used to supply a set of random values
+ to a single parameter of a parameterized test.
+
+
+
+
+ Construct a set of doubles from 0.0 to 1.0,
+ specifying only the count.
+
+
+
+
+
+ Construct a set of doubles from min to max
+
+
+
+
+
+
+
+ Construct a set of ints from min to max
+
+
+
+
+
+
+
+ Get the collection of values to be used as arguments
+
+
+
+
+ RangeAttribute is used to supply a range of values to an
+ individual parameter of a parameterized test.
+
+
+
+
+ Construct a range of ints using default step of 1
+
+
+
+
+
+
+ Construct a range of ints specifying the step size
+
+
+
+
+
+
+
+ Construct a range of longs
+
+
+
+
+
+
+
+ Construct a range of doubles
+
+
+
+
+
+
+
+ Construct a range of floats
+
+
+
+
+
+
+
+ Helper class with properties and methods that supply
+ a number of constraints used in Asserts.
+
+
+
+
+ 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.
+
+
+
+
+ Returns a new AttributeConstraint checking for the
+ presence of a particular attribute on an object.
+
+
+
+
+ Returns a new AttributeConstraint checking for the
+ presence of a particular attribute on an object.
+
+
+
+
+ Returns a new CollectionContainsConstraint checking for the
+ presence of a particular object in the collection.
+
+
+
+
+ Returns a ConstraintExpression that negates any
+ following constraint.
+
+
+
+
+ Returns a ConstraintExpression, which will apply
+ the following constraint to all members of a collection,
+ succeeding if all of them succeed.
+
+
+
+
+ Returns a ConstraintExpression, which will apply
+ the following constraint to all members of a collection,
+ succeeding if at least one of them succeeds.
+
+
+
+
+ Returns a ConstraintExpression, which will apply
+ the following constraint to all members of a collection,
+ succeeding if all of them fail.
+
+
+
+
+ Returns a new ConstraintExpression, which will apply the following
+ constraint to the Length property of the object being tested.
+
+
+
+
+ Returns a new ConstraintExpression, which will apply the following
+ constraint to the Count property of the object being tested.
+
+
+
+
+ Returns a new ConstraintExpression, which will apply the following
+ constraint to the Message property of the object being tested.
+
+
+
+
+ Returns a new ConstraintExpression, which will apply the following
+ constraint to the InnerException property of the object being tested.
+
+
+
+
+ Helper class with properties and methods that supply
+ a number of constraints used in Asserts.
+
+
+
+
+ Returns a constraint that tests two items for equality
+
+
+
+
+ Returns a constraint that tests that two references are the same object
+
+
+
+
+ Returns a constraint that tests whether the
+ actual value is greater than the suppled argument
+
+
+
+
+ Returns a constraint that tests whether the
+ actual value is greater than or equal to the suppled argument
+
+
+
+
+ Returns a constraint that tests whether the
+ actual value is greater than or equal to the suppled argument
+
+
+
+
+ Returns a constraint that tests whether the
+ actual value is less than the suppled argument
+
+
+
+
+ Returns a constraint that tests whether the
+ actual value is less than or equal to the suppled argument
+
+
+
+
+ Returns a constraint that tests whether the
+ actual value is less than or equal to the suppled argument
+
+
+
+
+ Returns a constraint that tests whether the actual
+ value is of the exact type supplied as an argument.
+
+
+
+
+ Returns a constraint that tests whether the actual
+ value is of the exact type supplied as an argument.
+
+
+
+
+ Returns a constraint that tests whether the actual value
+ is of the type supplied as an argument or a derived type.
+
+
+
+
+ Returns a constraint that tests whether the actual value
+ is of the type supplied as an argument or a derived type.
+
+
+
+
+ Returns a constraint that tests whether the actual value
+ is of the type supplied as an argument or a derived type.
+
+
+
+
+ Returns a constraint that tests whether the actual value
+ is of the type supplied as an argument or a derived type.
+
+
+
+
+ Returns a constraint that tests whether the actual value
+ is assignable from the type supplied as an argument.
+
+
+
+
+ Returns a constraint that tests whether the actual value
+ is assignable from the type supplied as an argument.
+
+
+
+
+ Returns a constraint that tests whether the actual value
+ is assignable from the type supplied as an argument.
+
+
+
+
+ Returns a constraint that tests whether the actual value
+ is assignable from the type supplied as an argument.
+
+
+
+
+ Returns a constraint that tests whether the actual value
+ is a collection containing the same elements as the
+ collection supplied as an argument.
+
+
+
+
+ Returns a constraint that tests whether the actual value
+ is a subset of the collection supplied as an argument.
+
+
+
+
+ Returns a constraint that succeeds if the actual
+ value contains the substring supplied as an argument.
+
+
+
+
+ Returns a constraint that succeeds if the actual
+ value starts with the substring supplied as an argument.
+
+
+
+
+ Returns a constraint that succeeds if the actual
+ value ends with the substring supplied as an argument.
+
+
+
+
+ Returns a constraint that succeeds if the actual
+ value matches the Regex pattern supplied as an argument.
+
+
+
+
+ Returns a constraint that tests whether the path provided
+ is the same as an expected path after canonicalization.
+
+
+
+
+ Returns a constraint that tests whether the path provided
+ is the same path or under an expected path after canonicalization.
+
+
+
+
+ Returns a constraint that tests whether the actual value falls
+ within a specified range.
+
+
+
+
+ Returns a ConstraintExpression that negates any
+ following constraint.
+
+
+
+
+ Returns a ConstraintExpression, which will apply
+ the following constraint to all members of a collection,
+ succeeding if all of them succeed.
+
+
+
+
+ Returns a constraint that tests for null
+
+
+
+
+ Returns a constraint that tests for True
+
+
+
+
+ Returns a constraint that tests for False
+
+
+
+
+ Returns a constraint that tests for NaN
+
+
+
+
+ Returns a constraint that tests for empty
+
+
+
+
+ Returns a constraint that tests whether a collection
+ contains all unique items.
+
+
+
+
+ Returns a constraint that tests whether an object graph is serializable in binary format.
+
+
+
+
+ Returns a constraint that tests whether an object graph is serializable in xml format.
+
+
+
+
+ Returns a constraint that tests whether a collection is ordered
+
+
+
+
+ The List class is a helper class with properties and methods
+ that supply a number of constraints used with lists and collections.
+
+
+
+
+ List.Map returns a ListMapper, which can be used to map
+ the original collection to another collection.
+
+
+
+
+
+
+ ListMapper is used to transform a collection used as an actual argument
+ producing another collection to be used in the assertion.
+
+
+
+
+ Construct a ListMapper based on a collection
+
+ The collection to be transformed
+
+
+
+ Produces a collection containing all the values of a property
+
+ The collection of property values
+
+
+
+
+ Helper class with static methods used to supply constraints
+ that operate on strings.
+
+
+
+
+ Returns a constraint that succeeds if the actual
+ value contains the substring supplied as an argument.
+
+
+
+
+ Returns a constraint that fails if the actual
+ value contains the substring supplied as an argument.
+
+
+
+
+ Returns a constraint that succeeds if the actual
+ value starts with the substring supplied as an argument.
+
+
+
+
+ Returns a constraint that fails if the actual
+ value starts with the substring supplied as an argument.
+
+
+
+
+ Returns a constraint that succeeds if the actual
+ value ends with the substring supplied as an argument.
+
+
+
+
+ Returns a constraint that fails if the actual
+ value ends with the substring supplied as an argument.
+
+
+
+
+ Returns a constraint that succeeds if the actual
+ value matches the Regex pattern supplied as an argument.
+
+
+
+
+ Returns a constraint that fails if the actual
+ value matches the pattern supplied as an argument.
+
+
+
+
+ Returns a ConstraintExpression, which will apply
+ the following constraint to all members of a collection,
+ succeeding if all of them succeed.
+
+
+
+
+ Helper class with properties and methods that supply
+ constraints that operate on exceptions.
+
+
+
+
+ Creates a constraint specifying the exact type of exception expected
+
+
+
+
+ Creates a constraint specifying the exact type of exception expected
+
+
+
+
+ Creates a constraint specifying the type of exception expected
+
+
+
+
+ Creates a constraint specifying the type of exception expected
+
+
+
+
+ Creates a constraint specifying an expected exception
+
+
+
+
+ Creates a constraint specifying an exception with a given InnerException
+
+
+
+
+ Creates a constraint specifying an expected TargetInvocationException
+
+
+
+
+ Creates a constraint specifying an expected TargetInvocationException
+
+
+
+
+ Creates a constraint specifying an expected TargetInvocationException
+
+
+
+
+ Creates a constraint specifying that no exception is thrown
+
+
+
+
+ FactoryAttribute indicates the source to be used to
+ provide test cases for a test method.
+
+
+
+
+ Construct with the name of the factory - for use with languages
+ that don't support params arrays.
+
+ An array of the names of the factories that will provide data
+
+
+
+ Construct with a Type and name - for use with languages
+ that don't support params arrays.
+
+ The Type that will provide data
+ The name of the method, property or field that will provide data
+
+
+
+ The name of a the method, property or fiend to be used as a source
+
+
+
+
+ A Type to be used as a source
+
+
+
+
+ ValueSourceAttribute indicates the source to be used to
+ provide data for one parameter of a test method.
+
+
+
+
+ Construct with the name of the factory - for use with languages
+ that don't support params arrays.
+
+ The name of the data source to be used
+
+
+
+ Construct with a Type and name - for use with languages
+ that don't support params arrays.
+
+ The Type that will provide data
+ The name of the method, property or field that will provide data
+
+
+
+ The name of a the method, property or fiend to be used as a source
+
+
+
+
+ A Type to be used as a source
+
+
+
+
+ The Iz class is a synonym for Is intended for use in VB,
+ which regards Is as a keyword.
+
+
+
+
+ WUsed on a method, marks the test with a timeout value in milliseconds.
+ The test will be run in a separate thread and is cancelled if the timeout
+ is exceeded. Used on a method or assembly, sets the default timeout
+ for all contained test methods.
+
+
+
+
+ Construct a TimeoutAttribute given a time in milliseconds
+
+ The timeout value in milliseconds
+
+
+
+ Marks a test that must run in the STA, causing it
+ to run in a separate thread if necessary.
+
+ On methods, you may also use STAThreadAttribute
+ to serve the same purpose.
+
+
+
+
+ Construct a RequiresSTAAttribute
+
+
+
+
+ Marks a test that must run in the MTA, causing it
+ to run in a separate thread if necessary.
+
+ On methods, you may also use MTAThreadAttribute
+ to serve the same purpose.
+
+
+
+
+ Construct a RequiresMTAAttribute
+
+
+
+
+ Marks a test that must run on a separate thread.
+
+
+
+
+ Construct a RequiresThreadAttribute
+
+
+
+
+ Construct a RequiresThreadAttribute, specifying the apartment
+
+
+
+
+ Summary description for MaxTimeAttribute.
+
+
+
+
+ Construct a MaxTimeAttribute, given a time in milliseconds.
+
+ The maximum elapsed time in milliseconds
+
+
+
+ RepeatAttribute may be applied to test case in order
+ to run it multiple times.
+
+
+
+
+ Construct a RepeatAttribute
+
+ The number of times to run the test
+
+
+
+ Provides static methods to express the assumptions
+ that must be met for a test to give a meaningful
+ result. If an assumption is not met, the test
+ should produce an inconclusive result.
+
+
+
+
+ The Equals method throws an AssertionException. This is done
+ to make sure there is no mistake by calling this function.
+
+
+
+
+
+
+ override the default ReferenceEquals to throw an AssertionException. This
+ implementation makes sure there is no mistake in calling this function
+ as part of Assert.
+
+
+
+
+
+
+ Apply a constraint to an actual value, succeeding if the constraint
+ is satisfied and throwing an InconclusiveException on failure.
+
+ A Constraint expression to be applied
+ The actual value to test
+
+
+
+ Apply a constraint to an actual value, succeeding if the constraint
+ is satisfied and throwing an InconclusiveException on failure.
+
+ A Constraint expression to be applied
+ The actual value to test
+ The message that will be displayed on failure
+
+
+
+ Apply a constraint to an actual value, succeeding if the constraint
+ is satisfied and throwing an InconclusiveException on failure.
+
+ A Constraint expression to be applied
+ The actual value to test
+ The message that will be displayed on failure
+ Arguments to be used in formatting the message
+
+
+
+ Apply a constraint to an actual value, succeeding if the constraint
+ is satisfied and throwing an InconclusiveException on failure.
+
+ A Constraint expression to be applied
+ An ActualValueDelegate returning the value to be tested
+
+
+
+ Apply a constraint to an actual value, succeeding if the constraint
+ is satisfied and throwing an InconclusiveException on failure.
+
+ A Constraint expression to be applied
+ An ActualValueDelegate returning the value to be tested
+ The message that will be displayed on failure
+
+
+
+ Apply a constraint to an actual value, succeeding if the constraint
+ is satisfied and throwing an InconclusiveException on failure.
+
+ An ActualValueDelegate returning the value to be tested
+ A Constraint expression to be applied
+ The message that will be displayed on failure
+ Arguments to be used in formatting the message
+
+
+
+ Apply a constraint to a referenced value, succeeding if the constraint
+ is satisfied and throwing an InconclusiveException on failure.
+
+ A Constraint expression to be applied
+ The actual value to test
+
+
+
+ Apply a constraint to a referenced value, succeeding if the constraint
+ is satisfied and throwing an InconclusiveException on failure.
+
+ A Constraint expression to be applied
+ The actual value to test
+ The message that will be displayed on failure
+
+
+
+ Apply a constraint to a referenced value, succeeding if the constraint
+ is satisfied and throwing an InconclusiveException on failure.
+
+ A Constraint expression to be applied
+ The actual value to test
+ The message that will be displayed on failure
+ Arguments to be used in formatting the message
+
+
+
+ Asserts that a condition is true. If the condition is false the method throws
+ an .
+
+ The evaluated condition
+ The message to display if the condition is false
+ Arguments to be used in formatting the message
+
+
+
+ Asserts that a condition is true. If the condition is false the method throws
+ an .
+
+ The evaluated condition
+ The message to display if the condition is false
+
+
+
+ Asserts that a condition is true. If the condition is false the
+ method throws an .
+
+ The evaluated condition
+
+
+
+ Asserts that the code represented by a delegate throws an exception
+ that satisfies the constraint provided.
+
+ A TestDelegate to be executed
+ A ThrowsConstraint used in the test
+
+
+
+ Randomizer returns a set of random values in a repeatable
+ way, to allow re-running of tests if necessary.
+
+
+
+
+ Get a randomizer for a particular member, returning
+ one that has already been created if it exists.
+ This ensures that the same values are generated
+ each time the tests are reloaded.
+
+
+
+
+ Get a randomizer for a particular parameter, returning
+ one that has already been created if it exists.
+ This ensures that the same values are generated
+ each time the tests are reloaded.
+
+
+
+
+ Construct a randomizer using a random seed
+
+
+
+
+ Construct a randomizer using a specified seed
+
+
+
+
+ Return an array of random doubles between 0.0 and 1.0.
+
+
+
+
+
+
+ Return an array of random doubles with values in a specified range.
+
+
+
+
+ Return an array of random ints with values in a specified range.
+
+
+
+
+ Get a random seed for use in creating a randomizer.
+
+
+
+
+ Adding this attribute to a method within a
+ class makes the method callable from the NUnit test runner. There is a property
+ called Description which is optional which you can provide a more detailed test
+ description. This class cannot be inherited.
+
+
+
+ [TestFixture]
+ public class Fixture
+ {
+ [Test]
+ public void MethodToTest()
+ {}
+
+ [Test(Description = "more detailed description")]
+ publc void TestDescriptionMethod()
+ {}
+ }
+
+
+
+
+
+ Used to mark a field for use as a datapoint when executing a theory
+ within the same fixture that requires an argument of the field's Type.
+
+
+
+
+ Used to mark an array as containing a set of datapoints to be used
+ executing a theory within the same fixture that requires an argument
+ of the Type of the array elements.
+
+
+
+
+ The SpecialValue enum is used to represent TestCase arguments
+ that cannot be used as arguments to an Attribute.
+
+
+
+
+ Null represents a null value, which cannot be used as an
+ argument to an attriute under .NET 1.x
+
+
+
+
+ Summary description for SetUICultureAttribute.
+
+
+
+
+ Construct given the name of a culture
+
+
+
+
+
+ Delegate used by tests that execute code and
+ capture any thrown exception.
+
+
+
+
+ The Assert class contains a collection of static methods that
+ implement the most common assertions used in NUnit.
+
+
+
+
+ We don't actually want any instances of this object, but some people
+ like to inherit from it to add other static methods. Hence, the
+ protected constructor disallows any instances of this object.
+
+
+
+
+ The Equals method throws an AssertionException. This is done
+ to make sure there is no mistake by calling this function.
+
+
+
+
+
+
+ override the default ReferenceEquals to throw an AssertionException. This
+ implementation makes sure there is no mistake in calling this function
+ as part of Assert.
+
+
+
+
+
+
+ Helper for Assert.AreEqual(double expected, double actual, ...)
+ allowing code generation to work consistently.
+
+ The expected value
+ The actual value
+ The maximum acceptable difference between the
+ the expected and the actual
+ The message to display in case of failure
+ Array of objects to be used in formatting the message
+
+
+
+ Throws a with the message and arguments
+ that are passed in. This allows a test to be cut short, with a result
+ of success returned to NUnit.
+
+ The message to initialize the with.
+ Arguments to be used in formatting the message
+
+
+
+ Throws a with the message and arguments
+ that are passed in. This allows a test to be cut short, with a result
+ of success returned to NUnit.
+
+ The message to initialize the with.
+
+
+
+ Throws a with the message and arguments
+ that are passed in. This allows a test to be cut short, with a result
+ of success returned to NUnit.
+
+
+
+
+ Throws an with the message and arguments
+ that are passed in. This is used by the other Assert functions.
+
+ The message to initialize the with.
+ Arguments to be used in formatting the message
+
+
+
+ Throws an with the message that is
+ passed in. This is used by the other Assert functions.
+
+ The message to initialize the with.
+
+
+
+ Throws an .
+ This is used by the other Assert functions.
+
+
+
+
+ Throws an with the message and arguments
+ that are passed in. This causes the test to be reported as ignored.
+
+ The message to initialize the with.
+ Arguments to be used in formatting the message
+
+
+
+ Throws an with the message that is
+ passed in. This causes the test to be reported as ignored.
+
+ The message to initialize the with.
+
+
+
+ Throws an .
+ This causes the test to be reported as ignored.
+
+
+
+
+ Throws an with the message and arguments
+ that are passed in. This causes the test to be reported as inconclusive.
+
+ The message to initialize the with.
+ Arguments to be used in formatting the message
+
+
+
+ Throws an with the message that is
+ passed in. This causes the test to be reported as inconclusive.
+
+ The message to initialize the with.
+
+
+
+ Throws an .
+ This causes the test to be reported as Inconclusive.
+
+
+
+
+ Apply a constraint to an actual value, succeeding if the constraint
+ is satisfied and throwing an assertion exception on failure.
+
+ A Constraint to be applied
+ The actual value to test
+
+
+
+ Apply a constraint to an actual value, succeeding if the constraint
+ is satisfied and throwing an assertion exception on failure.
+
+ A Constraint to be applied
+ The actual value to test
+ The message that will be displayed on failure
+
+
+
+ Apply a constraint to an actual value, succeeding if the constraint
+ is satisfied and throwing an assertion exception on failure.
+
+ A Constraint expression to be applied
+ The actual value to test
+ The message that will be displayed on failure
+ Arguments to be used in formatting the message
+
+
+
+ Apply a constraint to an actual value, succeeding if the constraint
+ is satisfied and throwing an assertion exception on failure.
+
+ A Constraint expression to be applied
+ An ActualValueDelegate returning the value to be tested
+
+
+
+ Apply a constraint to an actual value, succeeding if the constraint
+ is satisfied and throwing an assertion exception on failure.
+
+ A Constraint expression to be applied
+ An ActualValueDelegate returning the value to be tested
+ The message that will be displayed on failure
+
+
+
+ Apply a constraint to an actual value, succeeding if the constraint
+ is satisfied and throwing an assertion exception on failure.
+
+ An ActualValueDelegate returning the value to be tested
+ A Constraint expression to be applied
+ The message that will be displayed on failure
+ Arguments to be used in formatting the message
+
+
+
+ Apply a constraint to a referenced value, succeeding if the constraint
+ is satisfied and throwing an assertion exception on failure.
+
+ A Constraint to be applied
+ The actual value to test
+
+
+
+ Apply a constraint to a referenced value, succeeding if the constraint
+ is satisfied and throwing an assertion exception on failure.
+
+ A Constraint to be applied
+ The actual value to test
+ The message that will be displayed on failure
+
+
+
+ Apply a constraint to a referenced value, succeeding if the constraint
+ is satisfied and throwing an assertion exception on failure.
+
+ A Constraint to be applied
+ The actual value to test
+ The message that will be displayed on failure
+ Arguments to be used in formatting the message
+
+
+
+ Asserts that a condition is true. If the condition is false the method throws
+ an .
+
+ The evaluated condition
+ The message to display if the condition is false
+ Arguments to be used in formatting the message
+
+
+
+ Asserts that a condition is true. If the condition is false the method throws
+ an .
+
+ The evaluated condition
+ The message to display if the condition is false
+
+
+
+ Asserts that a condition is true. If the condition is false the method throws
+ an .
+
+ The evaluated condition
+
+
+
+ Asserts that the code represented by a delegate throws an exception
+ that satisfies the constraint provided.
+
+ A TestDelegate to be executed
+ A ThrowsConstraint used in the test
+
+
+
+ Verifies that a delegate throws a particular exception when called.
+
+ A constraint to be satisfied by the exception
+ A TestSnippet delegate
+ The message that will be displayed on failure
+ Arguments to be used in formatting the message
+
+
+
+ Verifies that a delegate throws a particular exception when called.
+
+ A constraint to be satisfied by the exception
+ A TestSnippet delegate
+ The message that will be displayed on failure
+
+
+
+ Verifies that a delegate throws a particular exception when called.
+
+ A constraint to be satisfied by the exception
+ A TestSnippet delegate
+
+
+
+ Verifies that a delegate throws a particular exception when called.
+
+ The exception Type expected
+ A TestSnippet delegate
+ The message that will be displayed on failure
+ Arguments to be used in formatting the message
+
+
+
+ Verifies that a delegate throws a particular exception when called.
+
+ The exception Type expected
+ A TestSnippet delegate
+ The message that will be displayed on failure
+
+
+
+ Verifies that a delegate throws a particular exception when called.
+
+ The exception Type expected
+ A TestSnippet delegate
+
+
+
+ Verifies that a delegate throws a particular exception when called.
+
+ Type of the expected exception
+ A TestSnippet delegate
+ The message that will be displayed on failure
+ Arguments to be used in formatting the message
+
+
+
+ Verifies that a delegate throws a particular exception when called.
+
+ Type of the expected exception
+ A TestSnippet delegate
+ The message that will be displayed on failure
+
+
+
+ Verifies that a delegate throws a particular exception when called.
+
+ Type of the expected exception
+ A TestSnippet delegate
+
+
+
+ Verifies that a delegate throws an exception when called
+ and returns it.
+
+ A TestDelegate
+ The message that will be displayed on failure
+ Arguments to be used in formatting the message
+
+
+
+ Verifies that a delegate throws an exception when called
+ and returns it.
+
+ A TestDelegate
+ The message that will be displayed on failure
+
+
+
+ Verifies that a delegate throws an exception when called
+ and returns it.
+
+ A TestDelegate
+
+
+
+ Verifies that a delegate throws an exception of a certain Type
+ or one derived from it when called and returns it.
+
+ The expected Exception Type
+ A TestDelegate
+ The message that will be displayed on failure
+ Arguments to be used in formatting the message
+
+
+
+ Verifies that a delegate throws an exception of a certain Type
+ or one derived from it when called and returns it.
+
+ The expected Exception Type
+ A TestDelegate
+ The message that will be displayed on failure
+
+
+
+ Verifies that a delegate throws an exception of a certain Type
+ or one derived from it when called and returns it.
+
+ The expected Exception Type
+ A TestDelegate
+
+
+
+ Verifies that a delegate throws an exception of a certain Type
+ or one derived from it when called and returns it.
+
+ The expected Exception Type
+ A TestDelegate
+ The message that will be displayed on failure
+ Arguments to be used in formatting the message
+
+
+
+ Verifies that a delegate throws an exception of a certain Type
+ or one derived from it when called and returns it.
+
+ The expected Exception Type
+ A TestDelegate
+ The message that will be displayed on failure
+
+
+
+ Verifies that a delegate throws an exception of a certain Type
+ or one derived from it when called and returns it.
+
+ The expected Exception Type
+ A TestDelegate
+
+
+
+ Verifies that a delegate does not throw an exception
+
+ A TestSnippet delegate
+ The message that will be displayed on failure
+ Arguments to be used in formatting the message
+
+
+
+ Verifies that a delegate does not throw an exception.
+
+ A TestSnippet delegate
+ The message that will be displayed on failure
+
+
+
+ Verifies that a delegate does not throw an exception.
+
+ A TestSnippet delegate
+
+
+
+ Asserts that a condition is true. If the condition is false the method throws
+ an .
+
+ The evaluated condition
+ The message to display in case of failure
+ Array of objects to be used in formatting the message
+
+
+
+ Asserts that a condition is true. If the condition is false the method throws
+ an .
+
+ The evaluated condition
+ The message to display in case of failure
+
+
+
+ Asserts that a condition is true. If the condition is false the method throws
+ an .
+
+ The evaluated condition
+
+
+
+ Asserts that a condition is true. If the condition is false the method throws
+ an .
+
+ The evaluated condition
+ The message to display in case of failure
+ Array of objects to be used in formatting the message
+
+
+
+ Asserts that a condition is true. If the condition is false the method throws
+ an .
+
+ The evaluated condition
+ The message to display in case of failure
+
+
+
+ Asserts that a condition is true. If the condition is false the method throws
+ an .
+
+ The evaluated condition
+
+
+
+ Asserts that a condition is false. If the condition is true the method throws
+ an .
+
+ The evaluated condition
+ The message to display in case of failure
+ Array of objects to be used in formatting the message
+
+
+
+ Asserts that a condition is false. If the condition is true the method throws
+ an .
+
+ The evaluated condition
+ The message to display in case of failure
+
+
+
+ Asserts that a condition is false. If the condition is true the method throws
+ an .
+
+ The evaluated condition
+
+
+
+ Asserts that a condition is false. If the condition is true the method throws
+ an .
+
+ The evaluated condition
+ The message to display in case of failure
+ Array of objects to be used in formatting the message
+
+
+
+ Asserts that a condition is false. If the condition is true the method throws
+ an .
+
+ The evaluated condition
+ The message to display in case of failure
+
+
+
+ Asserts that a condition is false. If the condition is true the method throws
+ an .
+
+ The evaluated condition
+
+
+
+ Verifies that the object that is passed in is not equal to null
+ If the object is null then an
+ is thrown.
+
+ The object that is to be tested
+ The message to display in case of failure
+ Array of objects to be used in formatting the message
+
+
+
+ Verifies that the object that is passed in is not equal to null
+ If the object is null then an
+ is thrown.
+
+ The object that is to be tested
+ The message to display in case of failure
+
+
+
+ Verifies that the object that is passed in is not equal to null
+ If the object is null then an
+ is thrown.
+
+ The object that is to be tested
+
+
+
+ Verifies that the object that is passed in is not equal to null
+ If the object is null then an
+ is thrown.
+
+ The object that is to be tested
+ The message to display in case of failure
+ Array of objects to be used in formatting the message
+
+
+
+ Verifies that the object that is passed in is not equal to null
+ If the object is null then an
+ is thrown.
+
+ The object that is to be tested
+ The message to display in case of failure
+
+
+
+ Verifies that the object that is passed in is not equal to null
+ If the object is null then an
+ is thrown.
+
+ The object that is to be tested
+
+
+
+ Verifies that the object that is passed in is equal to null
+ If the object is not null then an
+ is thrown.
+
+ The object that is to be tested
+ The message to display in case of failure
+ Array of objects to be used in formatting the message
+
+
+
+ Verifies that the object that is passed in is equal to null
+ If the object is not null then an
+ is thrown.
+
+ The object that is to be tested
+ The message to display in case of failure
+
+
+
+ Verifies that the object that is passed in is equal to null
+ If the object is not null then an
+ is thrown.
+
+ The object that is to be tested
+
+
+
+ Verifies that the object that is passed in is equal to null
+ If the object is not null then an
+ is thrown.
+
+ The object that is to be tested
+ The message to display in case of failure
+ Array of objects to be used in formatting the message
+
+
+
+ Verifies that the object that is passed in is equal to null
+ If the object is not null then an
+ is thrown.
+
+ The object that is to be tested
+ The message to display in case of failure
+
+
+
+ Verifies that the object that is passed in is equal to null
+ If the object is not null then an
+ is thrown.
+
+ The object that is to be tested
+
+
+
+ Verifies that the double that is passed in is an NaN value.
+ If the object is not NaN then an
+ is thrown.
+
+ The value that is to be tested
+ The message to display in case of failure
+ Array of objects to be used in formatting the message
+
+
+
+ Verifies that the double that is passed in is an NaN value.
+ If the object is not NaN then an
+ is thrown.
+
+ The value that is to be tested
+ The message to display in case of failure
+
+
+
+ Verifies that the double that is passed in is an NaN value.
+ If the object is not NaN then an
+ is thrown.
+
+ The value that is to be tested
+
+
+
+ Verifies that the double that is passed in is an NaN value.
+ If the object is not NaN then an
+ is thrown.
+
+ The value that is to be tested
+ The message to display in case of failure
+ Array of objects to be used in formatting the message
+
+
+
+ Verifies that the double that is passed in is an NaN value.
+ If the object is not NaN then an
+ is thrown.
+
+ The value that is to be tested
+ The message to display in case of failure
+
+
+
+ Verifies that the double that is passed in is an NaN value.
+ If the object is not NaN then an
+ is thrown.
+
+ The value that is to be tested
+
+
+
+ Assert that a string is empty - that is equal to string.Empty
+
+ The string to be tested
+ The message to display in case of failure
+ Array of objects to be used in formatting the message
+
+
+
+ Assert that a string is empty - that is equal to string.Empty
+
+ The string to be tested
+ The message to display in case of failure
+
+
+
+ Assert that a string is empty - that is equal to string.Empty
+
+ The string to be tested
+
+
+
+ Assert that an array, list or other collection is empty
+
+ An array, list or other collection implementing ICollection
+ The message to display in case of failure
+ Array of objects to be used in formatting the message
+
+
+
+ Assert that an array, list or other collection is empty
+
+ An array, list or other collection implementing ICollection
+ The message to display in case of failure
+
+
+
+ Assert that an array, list or other collection is empty
+
+ An array, list or other collection implementing ICollection
+
+
+
+ Assert that a string is not empty - that is not equal to string.Empty
+
+ The string to be tested
+ The message to display in case of failure
+ Array of objects to be used in formatting the message
+
+
+
+ Assert that a string is not empty - that is not equal to string.Empty
+
+ The string to be tested
+ The message to display in case of failure
+
+
+
+ Assert that a string is not empty - that is not equal to string.Empty
+
+ The string to be tested
+
+
+
+ Assert that an array, list or other collection is not empty
+
+ An array, list or other collection implementing ICollection
+ The message to display in case of failure
+ Array of objects to be used in formatting the message
+
+
+
+ Assert that an array, list or other collection is not empty
+
+ An array, list or other collection implementing ICollection
+ The message to display in case of failure
+
+
+
+ Assert that an array, list or other collection is not empty
+
+ An array, list or other collection implementing ICollection
+
+
+
+ Assert that a string is either null or equal to string.Empty
+
+ The string to be tested
+ The message to display in case of failure
+ Array of objects to be used in formatting the message
+
+
+
+ Assert that a string is either null or equal to string.Empty
+
+ The string to be tested
+ The message to display in case of failure
+
+
+
+ Assert that a string is either null or equal to string.Empty
+
+ The string to be tested
+
+
+
+ Assert that a string is not null or empty
+
+ The string to be tested
+ The message to display in case of failure
+ Array of objects to be used in formatting the message
+
+
+
+ Assert that a string is not null or empty
+
+ The string to be tested
+ The message to display in case of failure
+
+
+
+ Assert that a string is not null or empty
+
+ The string to be tested
+
+
+
+ Asserts that an object may be assigned a value of a given Type.
+
+ The expected Type.
+ The object under examination
+ The message to display in case of failure
+ Array of objects to be used in formatting the message
+
+
+
+ Asserts that an object may be assigned a value of a given Type.
+
+ The expected Type.
+ The object under examination
+ The message to display in case of failure
+
+
+
+ Asserts that an object may be assigned a value of a given Type.
+
+ The expected Type.
+ The object under examination
+
+
+
+ Asserts that an object may be assigned a value of a given Type.
+
+ The expected Type.
+ The object under examination
+ The message to display in case of failure
+ Array of objects to be used in formatting the message
+
+
+
+ Asserts that an object may be assigned a value of a given Type.
+
+ The expected Type.
+ The object under examination
+ The message to display in case of failure
+
+
+
+ Asserts that an object may be assigned a value of a given Type.
+
+ The expected Type.
+ The object under examination
+
+
+
+ Asserts that an object may not be assigned a value of a given Type.
+
+ The expected Type.
+ The object under examination
+ The message to display in case of failure
+ Array of objects to be used in formatting the message
+
+
+
+ Asserts that an object may not be assigned a value of a given Type.
+
+ The expected Type.
+ The object under examination
+ The message to display in case of failure
+
+
+
+ Asserts that an object may not be assigned a value of a given Type.
+
+ The expected Type.
+ The object under examination
+
+
+
+ Asserts that an object may not be assigned a value of a given Type.
+
+ The expected Type.
+ The object under examination
+ The message to display in case of failure
+ Array of objects to be used in formatting the message
+
+
+
+ Asserts that an object may not be assigned a value of a given Type.
+
+ The expected Type.
+ The object under examination
+ The message to display in case of failure
+
+
+
+ Asserts that an object may not be assigned a value of a given Type.
+
+ The expected Type.
+ The object under examination
+
+
+
+ Asserts that an object is an instance of a given type.
+
+ The expected Type
+ The object being examined
+ The message to display in case of failure
+ Array of objects to be used in formatting the message
+
+
+
+ Asserts that an object is an instance of a given type.
+
+ The expected Type
+ The object being examined
+ The message to display in case of failure
+
+
+
+ Asserts that an object is an instance of a given type.
+
+ The expected Type
+ The object being examined
+
+
+
+ Asserts that an object is an instance of a given type.
+
+ The expected Type
+ The object being examined
+ The message to display in case of failure
+ Array of objects to be used in formatting the message
+
+
+
+ Asserts that an object is an instance of a given type.
+
+ The expected Type
+ The object being examined
+ The message to display in case of failure
+
+
+
+ Asserts that an object is an instance of a given type.
+
+ The expected Type
+ The object being examined
+
+
+
+ Asserts that an object is an instance of a given type.
+
+ The expected Type
+ The object being examined
+ The message to display in case of failure
+ Array of objects to be used in formatting the message
+
+
+
+ Asserts that an object is an instance of a given type.
+
+ The expected Type
+ The object being examined
+ The message to display in case of failure
+
+
+
+ Asserts that an object is an instance of a given type.
+
+ The expected Type
+ The object being examined
+
+
+
+ Asserts that an object is not an instance of a given type.
+
+ The expected Type
+ The object being examined
+ The message to display in case of failure
+ Array of objects to be used in formatting the message
+
+
+
+ Asserts that an object is not an instance of a given type.
+
+ The expected Type
+ The object being examined
+ The message to display in case of failure
+
+
+
+ Asserts that an object is not an instance of a given type.
+
+ The expected Type
+ The object being examined
+
+
+
+ Asserts that an object is not an instance of a given type.
+
+ The expected Type
+ The object being examined
+ The message to display in case of failure
+ Array of objects to be used in formatting the message
+
+
+
+ Asserts that an object is not an instance of a given type.
+
+ The expected Type
+ The object being examined
+ The message to display in case of failure
+
+
+
+ Asserts that an object is not an instance of a given type.
+
+ The expected Type
+ The object being examined
+
+
+
+ Asserts that an object is not an instance of a given type.
+
+ The expected Type
+ The object being examined
+ The message to display in case of failure
+ Array of objects to be used in formatting the message
+
+
+
+ Asserts that an object is not an instance of a given type.
+
+ The expected Type
+ The object being examined
+ The message to display in case of failure
+
+
+
+ Asserts that an object is not an instance of a given type.
+
+ The expected Type
+ The object being examined
+
+
+
+ Verifies that two values are equal. If they are not, then an
+ is thrown.
+
+ The expected value
+ The actual value
+ The message to display in case of failure
+ Array of objects to be used in formatting the message
+
+
+
+ Verifies that two values are equal. If they are not, then an
+ is thrown.
+
+ The expected value
+ The actual value
+ The message to display in case of failure
+
+
+
+ Verifies that two values are equal. If they are not, then an
+ is thrown.
+
+ The expected value
+ The actual value
+
+
+
+ Verifies that two values are equal. If they are not, then an
+ is thrown.
+
+ The expected value
+ The actual value
+ The message to display in case of failure
+ Array of objects to be used in formatting the message
+
+
+
+ Verifies that two values are equal. If they are not, then an
+ is thrown.
+
+ The expected value
+ The actual value
+ The message to display in case of failure
+
+
+
+ Verifies that two values are equal. If they are not, then an
+ is thrown.
+
+ The expected value
+ The actual value
+
+
+
+ Verifies that two values are equal. If they are not, then an
+ is thrown.
+
+ The expected value
+ The actual value
+ The message to display in case of failure
+ Array of objects to be used in formatting the message
+
+
+
+ Verifies that two values are equal. If they are not, then an
+ is thrown.
+
+ The expected value
+ The actual value
+ The message to display in case of failure
+
+
+
+ Verifies that two values are equal. If they are not, then an
+ is thrown.
+
+ The expected value
+ The actual value
+
+
+
+ Verifies that two values are equal. If they are not, then an
+ is thrown.
+
+ The expected value
+ The actual value
+ The message to display in case of failure
+ Array of objects to be used in formatting the message
+
+
+
+ Verifies that two values are equal. If they are not, then an
+ is thrown.
+
+ The expected value
+ The actual value
+ The message to display in case of failure
+
+
+
+ Verifies that two values are equal. If they are not, then an
+ is thrown.
+
+ The expected value
+ The actual value
+
+
+
+ Verifies that two values are equal. If they are not, then an
+ is thrown.
+
+ The expected value
+ The actual value
+ The message to display in case of failure
+ Array of objects to be used in formatting the message
+
+
+
+ Verifies that two values are equal. If they are not, then an
+ is thrown.
+
+ The expected value
+ The actual value
+ The message to display in case of failure
+
+
+
+ Verifies that two values are equal. If they are not, then an
+ is thrown.
+
+ The expected value
+ The actual value
+
+
+
+ Verifies that two doubles are equal considering a delta. If the
+ expected value is infinity then the delta value is ignored. If
+ they are not equal then an is
+ thrown.
+
+ The expected value
+ The actual value
+ The maximum acceptable difference between the
+ the expected and the actual
+ The message to display in case of failure
+ Array of objects to be used in formatting the message
+
+
+
+ Verifies that two doubles are equal considering a delta. If the
+ expected value is infinity then the delta value is ignored. If
+ they are not equal then an is
+ thrown.
+
+ The expected value
+ The actual value
+ The maximum acceptable difference between the
+ the expected and the actual
+ The message to display in case of failure
+
+
+
+ Verifies that two doubles are equal considering a delta. If the
+ expected value is infinity then the delta value is ignored. If
+ they are not equal then an is
+ thrown.
+
+ The expected value
+ The actual value
+ The maximum acceptable difference between the
+ the expected and the actual
+
+
+
+ Verifies that two doubles are equal considering a delta. If the
+ expected value is infinity then the delta value is ignored. If
+ they are not equal then an is
+ thrown.
+
+ The expected value
+ The actual value
+ The maximum acceptable difference between the
+ the expected and the actual
+ The message to display in case of failure
+ Array of objects to be used in formatting the message
+
+
+
+ Verifies that two doubles are equal considering a delta. If the
+ expected value is infinity then the delta value is ignored. If
+ they are not equal then an is
+ thrown.
+
+ The expected value
+ The actual value
+ The maximum acceptable difference between the
+ the expected and the actual
+ The message to display in case of failure
+
+
+
+ Verifies that two doubles are equal considering a delta. If the
+ expected value is infinity then the delta value is ignored. If
+ they are not equal then an is
+ thrown.
+
+ The expected value
+ The actual value
+ The maximum acceptable difference between the
+ the expected and the actual
+
+
+
+ Verifies that two objects are equal. Two objects are considered
+ equal if both are null, or if both have the same value. NUnit
+ has special semantics for some object types.
+ If they are not equal an is thrown.
+
+ The value that is expected
+ The actual value
+ The message to display in case of failure
+ Array of objects to be used in formatting the message
+
+
+
+ Verifies that two objects are equal. Two objects are considered
+ equal if both are null, or if both have the same value. NUnit
+ has special semantics for some object types.
+ If they are not equal an is thrown.
+
+ The value that is expected
+ The actual value
+ The message to display in case of failure
+
+
+
+ Verifies that two objects are equal. Two objects are considered
+ equal if both are null, or if both have the same value. NUnit
+ has special semantics for some object types.
+ If they are not equal an is thrown.
+
+ The value that is expected
+ The actual value
+
+
+
+ Verifies that two values are not equal. If they are equal, then an
+ is thrown.
+
+ The expected value
+ The actual value
+ The message to display in case of failure
+ Array of objects to be used in formatting the message
+
+
+
+ Verifies that two values are not equal. If they are equal, then an
+ is thrown.
+
+ The expected value
+ The actual value
+ The message to display in case of failure
+
+
+
+ Verifies that two values are not equal. If they are equal, then an
+ is thrown.
+
+ The expected value
+ The actual value
+
+
+
+ Verifies that two values are not equal. If they are equal, then an
+ is thrown.
+
+ The expected value
+ The actual value
+ The message to display in case of failure
+ Array of objects to be used in formatting the message
+
+
+
+ Verifies that two values are not equal. If they are equal, then an
+ is thrown.
+
+ The expected value
+ The actual value
+ The message to display in case of failure
+
+
+
+ Verifies that two values are not equal. If they are equal, then an
+ is thrown.
+
+ The expected value
+ The actual value
+
+
+
+ Verifies that two values are not equal. If they are equal, then an
+ is thrown.
+
+ The expected value
+ The actual value
+ The message to display in case of failure
+ Array of objects to be used in formatting the message
+
+
+
+ Verifies that two values are not equal. If they are equal, then an
+ is thrown.
+
+ The expected value
+ The actual value
+ The message to display in case of failure
+
+
+
+ Verifies that two values are not equal. If they are equal, then an
+ is thrown.
+
+ The expected value
+ The actual value
+
+
+
+ Verifies that two values are not equal. If they are equal, then an
+ is thrown.
+
+ The expected value
+ The actual value
+ The message to display in case of failure
+ Array of objects to be used in formatting the message
+
+
+
+ Verifies that two values are not equal. If they are equal, then an
+ is thrown.
+
+ The expected value
+ The actual value
+ The message to display in case of failure
+
+
+
+ Verifies that two values are not equal. If they are equal, then an
+ is thrown.
+
+ The expected value
+ The actual value
+
+
+
+ Verifies that two values are not equal. If they are equal, then an
+ is thrown.
+
+ The expected value
+ The actual value
+ The message to display in case of failure
+ Array of objects to be used in formatting the message
+
+
+
+ Verifies that two values are not equal. If they are equal, then an
+ is thrown.
+
+ The expected value
+ The actual value
+ The message to display in case of failure
+
+
+
+ Verifies that two values are not equal. If they are equal, then an
+ is thrown.
+
+ The expected value
+ The actual value
+
+
+
+ Verifies that two values are not equal. If they are equal, then an
+ is thrown.
+
+ The expected value
+ The actual value
+ The message to display in case of failure
+ Array of objects to be used in formatting the message
+
+
+
+ Verifies that two values are not equal. If they are equal, then an
+ is thrown.
+
+ The expected value
+ The actual value
+ The message to display in case of failure
+
+
+
+ Verifies that two values are not equal. If they are equal, then an
+ is thrown.
+
+ The expected value
+ The actual value
+
+
+
+ Verifies that two values are not equal. If they are equal, then an
+ is thrown.
+
+ The expected value
+ The actual value
+ The message to display in case of failure
+ Array of objects to be used in formatting the message
+
+
+
+ Verifies that two values are not equal. If they are equal, then an
+ is thrown.
+
+ The expected value
+ The actual value
+ The message to display in case of failure
+
+
+
+ Verifies that two values are not equal. If they are equal, then an
+ is thrown.
+
+ The expected value
+ The actual value
+
+
+
+ Verifies that two objects are not equal. Two objects are considered
+ equal if both are null, or if both have the same value. NUnit
+ has special semantics for some object types.
+ If they are equal an is thrown.
+
+ The value that is expected
+ The actual value
+ The message to display in case of failure
+ Array of objects to be used in formatting the message
+
+
+
+ Verifies that two objects are not equal. Two objects are considered
+ equal if both are null, or if both have the same value. NUnit
+ has special semantics for some object types.
+ If they are equal an is thrown.
+
+ The value that is expected
+ The actual value
+ The message to display in case of failure
+
+
+
+ Verifies that two objects are not equal. Two objects are considered
+ equal if both are null, or if both have the same value. NUnit
+ has special semantics for some object types.
+ If they are equal an is thrown.
+
+ The value that is expected
+ The actual value
+
+
+
+ Asserts that two objects refer to the same object. If they
+ are not the same an is thrown.
+
+ The expected object
+ The actual object
+ The message to display in case of failure
+ Array of objects to be used in formatting the message
+
+
+
+ Asserts that two objects refer to the same object. If they
+ are not the same an is thrown.
+
+ The expected object
+ The actual object
+ The message to display in case of failure
+
+
+
+ Asserts that two objects refer to the same object. If they
+ are not the same an is thrown.
+
+ The expected object
+ The actual object
+
+
+
+ Asserts that two objects do not refer to the same object. If they
+ are the same an is thrown.
+
+ The expected object
+ The actual object
+ The message to display in case of failure
+ Array of objects to be used in formatting the message
+
+
+
+ Asserts that two objects do not refer to the same object. If they
+ are the same an is thrown.
+
+ The expected object
+ The actual object
+ The message to display in case of failure
+
+
+
+ Asserts that two objects do not refer to the same object. If they
+ are the same an is thrown.
+
+ The expected object
+ The actual object
+
+
+
+ Verifies that the first value is greater than the second
+ value. If it is not, then an
+ is thrown.
+
+ The first value, expected to be greater
+ The second value, expected to be less
+ The message to display in case of failure
+ Array of objects to be used in formatting the message
+
+
+
+ Verifies that the first value is greater than the second
+ value. If it is not, then an
+ is thrown.
+
+ The first value, expected to be greater
+ The second value, expected to be less
+ The message to display in case of failure
+
+
+
+ Verifies that the first value is greater than the second
+ value. If it is not, then an
+ is thrown.
+
+ The first value, expected to be greater
+ The second value, expected to be less
+
+
+
+ Verifies that the first value is greater than the second
+ value. If it is not, then an
+ is thrown.
+
+ The first value, expected to be greater
+ The second value, expected to be less
+ The message to display in case of failure
+ Array of objects to be used in formatting the message
+
+
+
+ Verifies that the first value is greater than the second
+ value. If it is not, then an
+ is thrown.
+
+ The first value, expected to be greater
+ The second value, expected to be less
+ The message to display in case of failure
+
+
+
+ Verifies that the first value is greater than the second
+ value. If it is not, then an
+ is thrown.
+
+ The first value, expected to be greater
+ The second value, expected to be less
+
+
+
+ Verifies that the first value is greater than the second
+ value. If it is not, then an
+ is thrown.
+
+ The first value, expected to be greater
+ The second value, expected to be less
+ The message to display in case of failure
+ Array of objects to be used in formatting the message
+
+
+
+ Verifies that the first value is greater than the second
+ value. If it is not, then an
+ is thrown.
+
+ The first value, expected to be greater
+ The second value, expected to be less
+ The message to display in case of failure
+
+
+
+ Verifies that the first value is greater than the second
+ value. If it is not, then an
+ is thrown.
+
+ The first value, expected to be greater
+ The second value, expected to be less
+
+
+
+ Verifies that the first value is greater than the second
+ value. If it is not, then an
+ is thrown.
+
+ The first value, expected to be greater
+ The second value, expected to be less
+ The message to display in case of failure
+ Array of objects to be used in formatting the message
+
+
+
+ Verifies that the first value is greater than the second
+ value. If it is not, then an
+ is thrown.
+
+ The first value, expected to be greater
+ The second value, expected to be less
+ The message to display in case of failure
+
+
+
+ Verifies that the first value is greater than the second
+ value. If it is not, then an
+ is thrown.
+
+ The first value, expected to be greater
+ The second value, expected to be less
+
+
+
+ Verifies that the first value is greater than the second
+ value. If it is not, then an
+ is thrown.
+
+ The first value, expected to be greater
+ The second value, expected to be less
+ The message to display in case of failure
+ Array of objects to be used in formatting the message
+
+
+
+ Verifies that the first value is greater than the second
+ value. If it is not, then an
+ is thrown.
+
+ The first value, expected to be greater
+ The second value, expected to be less
+ The message to display in case of failure
+
+
+
+ Verifies that the first value is greater than the second
+ value. If it is not, then an
+ is thrown.
+
+ The first value, expected to be greater
+ The second value, expected to be less
+
+
+
+ Verifies that the first value is greater than the second
+ value. If it is not, then an
+ is thrown.
+
+ The first value, expected to be greater
+ The second value, expected to be less
+ The message to display in case of failure
+ Array of objects to be used in formatting the message
+
+
+
+ Verifies that the first value is greater than the second
+ value. If it is not, then an
+ is thrown.
+
+ The first value, expected to be greater
+ The second value, expected to be less
+ The message to display in case of failure
+
+
+
+ Verifies that the first value is greater than the second
+ value. If it is not, then an
+ is thrown.
+
+ The first value, expected to be greater
+ The second value, expected to be less
+
+
+
+ Verifies that the first value is greater than the second
+ value. If it is not, then an
+ is thrown.
+
+ The first value, expected to be greater
+ The second value, expected to be less
+ The message to display in case of failure
+ Array of objects to be used in formatting the message
+
+
+
+ Verifies that the first value is greater than the second
+ value. If it is not, then an
+ is thrown.
+
+ The first value, expected to be greater
+ The second value, expected to be less
+ The message to display in case of failure
+
+
+
+ Verifies that the first value is greater than the second
+ value. If it is not, then an
+ is thrown.
+
+ The first value, expected to be greater
+ The second value, expected to be less
+
+
+
+ Verifies that the first value is greater than the second
+ value. If it is not, then an
+ is thrown.
+
+ The first value, expected to be greater
+ The second value, expected to be less
+ The message to display in case of failure
+ Array of objects to be used in formatting the message
+
+
+
+ Verifies that the first value is greater than the second
+ value. If it is not, then an
+ is thrown.
+
+ The first value, expected to be greater
+ The second value, expected to be less
+ The message to display in case of failure
+
+
+
+ Verifies that the first value is greater than the second
+ value. If it is not, then an
+ is thrown.
+
+ The first value, expected to be greater
+ The second value, expected to be less
+
+
+
+ Verifies that the first value is less than the second
+ value. If it is not, then an
+ is thrown.
+
+ The first value, expected to be less
+ The second value, expected to be greater
+ The message to display in case of failure
+ Array of objects to be used in formatting the message
+
+
+
+ Verifies that the first value is less than the second
+ value. If it is not, then an
+ is thrown.
+
+ The first value, expected to be less
+ The second value, expected to be greater
+ The message to display in case of failure
+
+
+
+ Verifies that the first value is less than the second
+ value. If it is not, then an
+ is thrown.
+
+ The first value, expected to be less
+ The second value, expected to be greater
+
+
+
+ Verifies that the first value is less than the second
+ value. If it is not, then an
+ is thrown.
+
+ The first value, expected to be less
+ The second value, expected to be greater
+ The message to display in case of failure
+ Array of objects to be used in formatting the message
+
+
+
+ Verifies that the first value is less than the second
+ value. If it is not, then an
+ is thrown.
+
+ The first value, expected to be less
+ The second value, expected to be greater
+ The message to display in case of failure
+
+
+
+ Verifies that the first value is less than the second
+ value. If it is not, then an
+ is thrown.
+
+ The first value, expected to be less
+ The second value, expected to be greater
+
+
+
+ Verifies that the first value is less than the second
+ value. If it is not, then an
+ is thrown.
+
+ The first value, expected to be less
+ The second value, expected to be greater
+ The message to display in case of failure
+ Array of objects to be used in formatting the message
+
+
+
+ Verifies that the first value is less than the second
+ value. If it is not, then an
+ is thrown.
+
+ The first value, expected to be less
+ The second value, expected to be greater
+ The message to display in case of failure
+
+
+
+ Verifies that the first value is less than the second
+ value. If it is not, then an
+ is thrown.
+
+ The first value, expected to be less
+ The second value, expected to be greater
+
+
+
+ Verifies that the first value is less than the second
+ value. If it is not, then an
+ is thrown.
+
+ The first value, expected to be less
+ The second value, expected to be greater
+ The message to display in case of failure
+ Array of objects to be used in formatting the message
+
+
+
+ Verifies that the first value is less than the second
+ value. If it is not, then an
+ is thrown.
+
+ The first value, expected to be less
+ The second value, expected to be greater
+ The message to display in case of failure
+
+
+
+ Verifies that the first value is less than the second
+ value. If it is not, then an
+ is thrown.
+
+ The first value, expected to be less
+ The second value, expected to be greater
+
+
+
+ Verifies that the first value is less than the second
+ value. If it is not, then an
+ is thrown.
+
+ The first value, expected to be less
+ The second value, expected to be greater
+ The message to display in case of failure
+ Array of objects to be used in formatting the message
+
+
+
+ Verifies that the first value is less than the second
+ value. If it is not, then an
+ is thrown.
+
+ The first value, expected to be less
+ The second value, expected to be greater
+ The message to display in case of failure
+
+
+
+ Verifies that the first value is less than the second
+ value. If it is not, then an
+ is thrown.
+
+ The first value, expected to be less
+ The second value, expected to be greater
+
+
+
+ Verifies that the first value is less than the second
+ value. If it is not, then an
+ is thrown.
+
+ The first value, expected to be less
+ The second value, expected to be greater
+ The message to display in case of failure
+ Array of objects to be used in formatting the message
+
+
+
+ Verifies that the first value is less than the second
+ value. If it is not, then an
+ is thrown.
+
+ The first value, expected to be less
+ The second value, expected to be greater
+ The message to display in case of failure
+
+
+
+ Verifies that the first value is less than the second
+ value. If it is not, then an
+ is thrown.
+
+ The first value, expected to be less
+ The second value, expected to be greater
+
+
+
+ Verifies that the first value is less than the second
+ value. If it is not, then an
+ is thrown.
+
+ The first value, expected to be less
+ The second value, expected to be greater
+ The message to display in case of failure
+ Array of objects to be used in formatting the message
+
+
+
+ Verifies that the first value is less than the second
+ value. If it is not, then an
+ is thrown.
+
+ The first value, expected to be less
+ The second value, expected to be greater
+ The message to display in case of failure
+
+
+
+ Verifies that the first value is less than the second
+ value. If it is not, then an
+ is thrown.
+
+ The first value, expected to be less
+ The second value, expected to be greater
+
+
+
+ Verifies that the first value is less than the second
+ value. If it is not, then an
+ is thrown.
+
+ The first value, expected to be less
+ The second value, expected to be greater
+ The message to display in case of failure
+ Array of objects to be used in formatting the message
+
+
+
+ Verifies that the first value is less than the second
+ value. If it is not, then an
+ is thrown.
+
+ The first value, expected to be less
+ The second value, expected to be greater
+ The message to display in case of failure
+
+
+
+ Verifies that the first value is less than the second
+ value. If it is not, then an
+ is thrown.
+
+ The first value, expected to be less
+ The second value, expected to be greater
+
+
+
+ Verifies that the first value is greater than or equal tothe second
+ value. If it is not, then an
+ is thrown.
+
+ The first value, expected to be greater
+ The second value, expected to be less
+ The message to display in case of failure
+ Array of objects to be used in formatting the message
+
+
+
+ Verifies that the first value is greater than or equal tothe second
+ value. If it is not, then an
+ is thrown.
+
+ The first value, expected to be greater
+ The second value, expected to be less
+ The message to display in case of failure
+
+
+
+ Verifies that the first value is greater than or equal tothe second
+ value. If it is not, then an
+ is thrown.
+
+ The first value, expected to be greater
+ The second value, expected to be less
+
+
+
+ Verifies that the first value is greater than or equal tothe second
+ value. If it is not, then an
+ is thrown.
+
+ The first value, expected to be greater
+ The second value, expected to be less
+ The message to display in case of failure
+ Array of objects to be used in formatting the message
+
+
+
+ Verifies that the first value is greater than or equal tothe second
+ value. If it is not, then an
+ is thrown.
+
+ The first value, expected to be greater
+ The second value, expected to be less
+ The message to display in case of failure
+
+
+
+ Verifies that the first value is greater than or equal tothe second
+ value. If it is not, then an
+ is thrown.
+
+ The first value, expected to be greater
+ The second value, expected to be less
+
+
+
+ Verifies that the first value is greater than or equal tothe second
+ value. If it is not, then an
+ is thrown.
+
+ The first value, expected to be greater
+ The second value, expected to be less
+ The message to display in case of failure
+ Array of objects to be used in formatting the message
+
+
+
+ Verifies that the first value is greater than or equal tothe second
+ value. If it is not, then an
+ is thrown.
+
+ The first value, expected to be greater
+ The second value, expected to be less
+ The message to display in case of failure
+
+
+
+ Verifies that the first value is greater than or equal tothe second
+ value. If it is not, then an
+ is thrown.
+
+ The first value, expected to be greater
+ The second value, expected to be less
+
+
+
+ Verifies that the first value is greater than or equal tothe second
+ value. If it is not, then an
+ is thrown.
+
+ The first value, expected to be greater
+ The second value, expected to be less
+ The message to display in case of failure
+ Array of objects to be used in formatting the message
+
+
+
+ Verifies that the first value is greater than or equal tothe second
+ value. If it is not, then an
+ is thrown.
+
+ The first value, expected to be greater
+ The second value, expected to be less
+ The message to display in case of failure
+
+
+
+ Verifies that the first value is greater than or equal tothe second
+ value. If it is not, then an
+ is thrown.
+
+ The first value, expected to be greater
+ The second value, expected to be less
+
+
+
+ Verifies that the first value is greater than or equal tothe second
+ value. If it is not, then an
+ is thrown.
+
+ The first value, expected to be greater
+ The second value, expected to be less
+ The message to display in case of failure
+ Array of objects to be used in formatting the message
+
+
+
+ Verifies that the first value is greater than or equal tothe second
+ value. If it is not, then an
+ is thrown.
+
+ The first value, expected to be greater
+ The second value, expected to be less
+ The message to display in case of failure
+
+
+
+ Verifies that the first value is greater than or equal tothe second
+ value. If it is not, then an
+ is thrown.
+
+ The first value, expected to be greater
+ The second value, expected to be less
+
+
+
+ Verifies that the first value is greater than or equal tothe second
+ value. If it is not, then an
+ is thrown.
+
+ The first value, expected to be greater
+ The second value, expected to be less
+ The message to display in case of failure
+ Array of objects to be used in formatting the message
+
+
+
+ Verifies that the first value is greater than or equal tothe second
+ value. If it is not, then an
+ is thrown.
+
+ The first value, expected to be greater
+ The second value, expected to be less
+ The message to display in case of failure
+
+
+
+ Verifies that the first value is greater than or equal tothe second
+ value. If it is not, then an
+ is thrown.
+
+ The first value, expected to be greater
+ The second value, expected to be less
+
+
+
+ Verifies that the first value is greater than or equal tothe second
+ value. If it is not, then an
+ is thrown.
+
+ The first value, expected to be greater
+ The second value, expected to be less
+ The message to display in case of failure
+ Array of objects to be used in formatting the message
+
+
+
+ Verifies that the first value is greater than or equal tothe second
+ value. If it is not, then an
+ is thrown.
+
+ The first value, expected to be greater
+ The second value, expected to be less
+ The message to display in case of failure
+
+
+
+ Verifies that the first value is greater than or equal tothe second
+ value. If it is not, then an
+ is thrown.
+
+ The first value, expected to be greater
+ The second value, expected to be less
+
+
+
+ Verifies that the first value is greater than or equal tothe second
+ value. If it is not, then an
+ is thrown.
+
+ The first value, expected to be greater
+ The second value, expected to be less
+ The message to display in case of failure
+ Array of objects to be used in formatting the message
+
+
+
+ Verifies that the first value is greater than or equal tothe second
+ value. If it is not, then an
+ is thrown.
+
+ The first value, expected to be greater
+ The second value, expected to be less
+ The message to display in case of failure
+
+
+
+ Verifies that the first value is greater than or equal tothe second
+ value. If it is not, then an
+ is thrown.
+
+ The first value, expected to be greater
+ The second value, expected to be less
+
+
+
+ Verifies that the first value is less than or equal to the second
+ value. If it is not, then an
+ is thrown.
+
+ The first value, expected to be less
+ The second value, expected to be greater
+ The message to display in case of failure
+ Array of objects to be used in formatting the message
+
+
+
+ Verifies that the first value is less than or equal to the second
+ value. If it is not, then an
+ is thrown.
+
+ The first value, expected to be less
+ The second value, expected to be greater
+ The message to display in case of failure
+
+
+
+ Verifies that the first value is less than or equal to the second
+ value. If it is not, then an
+ is thrown.
+
+ The first value, expected to be less
+ The second value, expected to be greater
+
+
+
+ Verifies that the first value is less than or equal to the second
+ value. If it is not, then an
+ is thrown.
+
+ The first value, expected to be less
+ The second value, expected to be greater
+ The message to display in case of failure
+ Array of objects to be used in formatting the message
+
+
+
+ Verifies that the first value is less than or equal to the second
+ value. If it is not, then an
+ is thrown.
+
+ The first value, expected to be less
+ The second value, expected to be greater
+ The message to display in case of failure
+
+
+
+ Verifies that the first value is less than or equal to the second
+ value. If it is not, then an
+ is thrown.
+
+ The first value, expected to be less
+ The second value, expected to be greater
+
+
+
+ Verifies that the first value is less than or equal to the second
+ value. If it is not, then an
+ is thrown.
+
+ The first value, expected to be less
+ The second value, expected to be greater
+ The message to display in case of failure
+ Array of objects to be used in formatting the message
+
+
+
+ Verifies that the first value is less than or equal to the second
+ value. If it is not, then an
+ is thrown.
+
+ The first value, expected to be less
+ The second value, expected to be greater
+ The message to display in case of failure
+
+
+
+ Verifies that the first value is less than or equal to the second
+ value. If it is not, then an
+ is thrown.
+
+ The first value, expected to be less
+ The second value, expected to be greater
+
+
+
+ Verifies that the first value is less than or equal to the second
+ value. If it is not, then an
+ is thrown.
+
+ The first value, expected to be less
+ The second value, expected to be greater
+ The message to display in case of failure
+ Array of objects to be used in formatting the message
+
+
+
+ Verifies that the first value is less than or equal to the second
+ value. If it is not, then an
+ is thrown.
+
+ The first value, expected to be less
+ The second value, expected to be greater
+ The message to display in case of failure
+
+
+
+ Verifies that the first value is less than or equal to the second
+ value. If it is not, then an
+ is thrown.
+
+ The first value, expected to be less
+ The second value, expected to be greater
+
+
+
+ Verifies that the first value is less than or equal to the second
+ value. If it is not, then an
+ is thrown.
+
+ The first value, expected to be less
+ The second value, expected to be greater
+ The message to display in case of failure
+ Array of objects to be used in formatting the message
+
+
+
+ Verifies that the first value is less than or equal to the second
+ value. If it is not, then an
+ is thrown.
+
+ The first value, expected to be less
+ The second value, expected to be greater
+ The message to display in case of failure
+
+
+
+ Verifies that the first value is less than or equal to the second
+ value. If it is not, then an
+ is thrown.
+
+ The first value, expected to be less
+ The second value, expected to be greater
+
+
+
+ Verifies that the first value is less than or equal to the second
+ value. If it is not, then an
+ is thrown.
+
+ The first value, expected to be less
+ The second value, expected to be greater
+ The message to display in case of failure
+ Array of objects to be used in formatting the message
+
+
+
+ Verifies that the first value is less than or equal to the second
+ value. If it is not, then an
+ is thrown.
+
+ The first value, expected to be less
+ The second value, expected to be greater
+ The message to display in case of failure
+
+
+
+ Verifies that the first value is less than or equal to the second
+ value. If it is not, then an
+ is thrown.
+
+ The first value, expected to be less
+ The second value, expected to be greater
+
+
+
+ Verifies that the first value is less than or equal to the second
+ value. If it is not, then an
+ is thrown.
+
+ The first value, expected to be less
+ The second value, expected to be greater
+ The message to display in case of failure
+ Array of objects to be used in formatting the message
+
+
+
+ Verifies that the first value is less than or equal to the second
+ value. If it is not, then an
+ is thrown.
+
+ The first value, expected to be less
+ The second value, expected to be greater
+ The message to display in case of failure
+
+
+
+ Verifies that the first value is less than or equal to the second
+ value. If it is not, then an
+ is thrown.
+
+ The first value, expected to be less
+ The second value, expected to be greater
+
+
+
+ Verifies that the first value is less than or equal to the second
+ value. If it is not, then an
+ is thrown.
+
+ The first value, expected to be less
+ The second value, expected to be greater
+ The message to display in case of failure
+ Array of objects to be used in formatting the message
+
+
+
+ Verifies that the first value is less than or equal to the second
+ value. If it is not, then an
+ is thrown.
+
+ The first value, expected to be less
+ The second value, expected to be greater
+ The message to display in case of failure
+
+
+
+ Verifies that the first value is less than or equal to the second
+ value. If it is not, then an
+ is thrown.
+
+ The first value, expected to be less
+ The second value, expected to be greater
+
+
+
+ Asserts that an object is contained in a list.
+
+ The expected object
+ The list to be examined
+ The message to display in case of failure
+ Array of objects to be used in formatting the message
+
+
+
+ Asserts that an object is contained in a list.
+
+ The expected object
+ The list to be examined
+ The message to display in case of failure
+
+
+
+ Asserts that an object is contained in a list.
+
+ The expected object
+ The list to be examined
+
+
+
+ Gets the number of assertions executed so far and
+ resets the counter to zero.
+
+
+
+
+ Static helper class used in the constraint-based syntax
+
+
+
+
+ Creates a new SubstringConstraint
+
+ The value of the substring
+ A SubstringConstraint
+
+
+
+ Creates a new CollectionContainsConstraint.
+
+ The item that should be found.
+ A new CollectionContainsConstraint
+
+
+
+ Attribute used to apply a category to a test
+
+
+
+
+ The name of the category
+
+
+
+
+ Construct attribute for a given category based on
+ a name. The name may not contain the characters ',',
+ '+', '-' or '!'. However, this is not checked in the
+ constructor since it would cause an error to arise at
+ as the test was loaded without giving a clear indication
+ of where the problem is located. The error is handled
+ in NUnitFramework.cs by marking the test as not
+ runnable.
+
+ The name of the category
+
+
+
+ Protected constructor uses the Type name as the name
+ of the category.
+
+
+
+
+ The name of the category
+
+
+
+
+ The TestStatus enum indicates the result of running a test
+
+
+
+
+ The test was inconclusive
+
+
+
+
+ The test has skipped
+
+
+
+
+ The test succeeded
+
+
+
+
+ The test failed
+
+
+
+
+ Provide the context information of the current test
+
+
+
+
+ The TestState of current test. This maps to the ResultState
+ used in nunit.core and is subject to change in the future.
+
+
+
+
+ The TestStatus of current test. This enum will be used
+ in future versions of NUnit and so is to be preferred
+ to the TestState value.
+
+
+
+
+ The name of the currently executing test. If no
+ test is running, the name of the last test run.
+
+
+
+
+ The properties of the currently executing test
+ or, if no test is running, of the last test run.
+
+
+
+
+ The ResultState enum indicates the result of running a test
+
+
+
+
+ The result is inconclusive
+
+
+
+
+ The test was not runnable.
+
+
+
+
+ The test has been skipped.
+
+
+
+
+ The test has been ignored.
+
+
+
+
+ The test succeeded
+
+
+
+
+ The test failed
+
+
+
+
+ The test encountered an unexpected exception
+
+
+
+
+ The test was cancelled by the user
+
+
+
+
diff --git a/lib/Net/4.0/Apache.NMS.ActiveMQ.dll b/lib/Net/4.0/Apache.NMS.ActiveMQ.dll
new file mode 100644
index 00000000..fd910b6d
Binary files /dev/null and b/lib/Net/4.0/Apache.NMS.ActiveMQ.dll differ
diff --git a/lib/Net/4.0/Apache.NMS.ActiveMQ.xml b/lib/Net/4.0/Apache.NMS.ActiveMQ.xml
new file mode 100644
index 00000000..49360cc1
--- /dev/null
+++ b/lib/Net/4.0/Apache.NMS.ActiveMQ.xml
@@ -0,0 +1,8199 @@
+
+
+
+ Apache.NMS.ActiveMQ
+
+
+
+
+ Base class for all DataStructure implementations
+
+
+
+
+ An OpenWire command
+
+
+
+
+ An OpenWire command
+
+
+
+
+ Represents a marshallable entity
+
+
+
+
+
+ Get the unique identifier that this object and its own
+ Marshaler share.
+
+
+
+
+
+
+ Clone this object and return a new instance that the caller now owns.
+
+
+
+
+
+
+ Returns a string containing the information for this DataStructure
+ such as its type and value of its elements.
+
+
+
+
+
+
+ Allows a Visitor to visit this command and return a response to the
+ command based on the command type being visited. The command will call
+ the proper processXXX method in the visitor.
+
+
+
+
+
+
+ Return an answer of true to the isMessage() query.
+
+
+
+
+
+ The correlation ID used to correlate messages with conversations or long running business processes
+
+
+
+
+ The destination of the message
+
+
+
+
+ The time in milliseconds that this message should expire in
+
+
+
+
+ The message ID which is set by the provider
+
+
+
+
+ Whether or not this message is persistent
+
+
+
+
+ The Priority on this message
+
+
+
+
+ Returns true if this message has been redelivered to this or another consumer before being acknowledged successfully.
+
+
+
+
+ The destination that the consumer of this message should send replies to
+
+
+
+
+ The timestamp the broker added to the message
+
+
+
+
+ The type name of this message
+
+
+
+
+ Returns the number of times this message has been redelivered to other consumers without being acknowledged successfully.
+
+
+
+
+ The Message Group ID used to group messages together to the same consumer for the same group ID value
+
+
+
+
+ The Message Group Sequence counter to indicate the position in a group
+
+
+
+
+ Returns the ID of the producers transaction
+
+
+
+
+ Used when the message compression is enabled to track how many bytes
+ the EndianBinaryWriter actually writes to the stream before compression
+ so that the receiving client can read off the real bodylength from the
+ Message before the data is actually read.
+
+
+
+
+ Summary description for ActiveMQDestination.
+
+
+
+
+ Topic Destination object
+
+
+
+
+ Temporary Topic Destination object
+
+
+
+
+ Queue Destination object
+
+
+
+
+ Temporary Queue Destination object
+
+
+
+
+ prefix for Advisory message destinations
+
+
+
+
+ prefix for consumer advisory destinations
+
+
+
+
+ prefix for producer advisory destinations
+
+
+
+
+ prefix for connection advisory destinations
+
+
+
+
+ The default target for ordered destinations
+
+
+
+
+ The Default Constructor
+
+
+
+
+ Construct the Destination with a defined physical name;
+
+
+
+
+
+
+ Returns the advisory.
+
+
+
+
+ The advisory to set.
+
+
+
+
+ true if this is a destination for Consumer advisories
+
+
+
+
+ true if this is a destination for Producer advisories
+
+
+
+
+ true if this is a destination for Connection advisories
+
+
+
+
+ Returns the exclusive.
+
+
+
+
+ The exclusive to set.
+
+
+
+
+ Returns the ordered.
+
+
+
+
+ The ordered to set.
+
+
+
+
+ Returns the orderedTarget.
+
+
+
+
+ The orderedTarget to set.
+
+
+
+ A helper method to return a descriptive string for the topic or queue
+
+
+ a descriptive string for this queue or topic
+
+
+
+
+
+
+
+
+
+ Create a Destination
+
+
+
+
+
+
+
+ Create a temporary name from the clientId
+
+
+
+
+
+
+ From a temporary destination find the clientId of the Connection that created it
+
+
+ the clientId or null if not a temporary destination
+
+
+
+
+ object to compare
+ 1 if this is less than o else 0 if they are equal or -1 if this is less than o
+
+
+
+ Lets sort by name first then lets sort topics greater than queues
+
+ another destination to compare against
+ 1 if this is less than o else 0 if they are equal or -1 if this is less than o
+
+
+
+
+ Returns the Destination type
+
+
+
+ Gets the Destination Type of this Destination as a String value which is one
+ of {Queue,Topic,TempQueue,TempTopic}.
+
+
+ The Destination Type as a String.
+
+
+
+
+
+ string representation of this instance
+
+
+
+
+ hashCode for this instance
+
+
+
+ if the object passed in is equivalent, return true
+
+ the object to compare
+ true if this instance and obj are equivalent
+
+
+
+
+ true if the destination matches multiple possible destinations
+
+
+
+ Factory method to create a child destination if this destination is a composite
+
+
+ the created Destination
+
+
+
+ Dictionary of name/value pairs representing option values specified
+ in the URI used to create this Destination. A null value is returned
+ if no options were specified.
+
+
+
+
+ Returns true if this destination represents a collection of
+ destinations; allowing a set of destinations to be published to or subscribed
+ from in one NMS operation.
+
+ If this destination is a composite then you can call {@link #getChildDestinations()}
+ to return the list of child destinations.
+
+
+
+
+ Summary description for ActiveMQQueue.
+
+
+
+
+ Method GetDestinationType
+
+ An int
+
+
+
+ Method CreateDestination
+
+ An ActiveMQDestination
+ A String
+
+
+
+ A Temporary Queue
+
+
+
+
+ A Temporary Topic
+
+
+
+
+ Summary description for ActiveMQTopic.
+
+
+
+
+ Represents an exception on the broker
+
+
+
+
+
+ Get the unique identifier that this object and its own
+ Marshaler share.
+
+
+
+
+
+
+ Returns a string containing the information for this DataStructure
+ such as its type and value of its elements.
+
+
+
+
+
+
+ Get the unique identifier that this object and its own
+ Marshaler share.
+
+
+
+
+
+
+ Returns a string containing the information for this DataStructure
+ such as its type and value of its elements.
+
+
+
+
+
+
+ Allows a Visitor to visit this command and return a response to the
+ command based on the command type being visited. The command will call
+ the proper processXXX method in the visitor.
+
+
+
+
+
+
+ Return an answer of true to the isBrokerInfo() query.
+
+
+
+
+
+
+ Get the unique identifier that this object and its own
+ Marshaler share.
+
+
+
+
+
+
+ Returns a string containing the information for this DataStructure
+ such as its type and value of its elements.
+
+
+
+
+
+
+ Allows a Visitor to visit this command and return a response to the
+ command based on the command type being visited. The command will call
+ the proper processXXX method in the visitor.
+
+
+
+
+
+
+ Return an answer of true to the isConnectionControl() query.
+
+
+
+
+
+
+ Get the unique identifier that this object and its own
+ Marshaler share.
+
+
+
+
+
+
+ Returns a string containing the information for this DataStructure
+ such as its type and value of its elements.
+
+
+
+
+
+
+ Allows a Visitor to visit this command and return a response to the
+ command based on the command type being visited. The command will call
+ the proper processXXX method in the visitor.
+
+
+
+
+
+
+ Return an answer of true to the isConnectionError() query.
+
+
+
+
+
+
+ Get the unique identifier that this object and its own
+ Marshaler share.
+
+
+
+
+
+
+ Returns a string containing the information for this DataStructure
+ such as its type and value of its elements.
+
+
+
+
+
+
+ Get the unique identifier that this object and its own
+ Marshaler share.
+
+
+
+
+
+
+ Returns a string containing the information for this DataStructure
+ such as its type and value of its elements.
+
+
+
+
+
+
+ Allows a Visitor to visit this command and return a response to the
+ command based on the command type being visited. The command will call
+ the proper processXXX method in the visitor.
+
+
+
+
+
+
+ Return an answer of true to the isConnectionInfo() query.
+
+
+
+
+
+
+ Get the unique identifier that this object and its own
+ Marshaler share.
+
+
+
+
+
+
+ Returns a string containing the information for this DataStructure
+ such as its type and value of its elements.
+
+
+
+
+
+
+ Allows a Visitor to visit this command and return a response to the
+ command based on the command type being visited. The command will call
+ the proper processXXX method in the visitor.
+
+
+
+
+
+
+ Return an answer of true to the isConsumerControl() query.
+
+
+
+
+
+
+ Get the unique identifier that this object and its own
+ Marshaler share.
+
+
+
+
+
+
+ Returns a string containing the information for this DataStructure
+ such as its type and value of its elements.
+
+
+
+
+
+
+ Get the unique identifier that this object and its own
+ Marshaler share.
+
+
+
+
+
+
+ Returns a string containing the information for this DataStructure
+ such as its type and value of its elements.
+
+
+
+
+
+
+ Allows a Visitor to visit this command and return a response to the
+ command based on the command type being visited. The command will call
+ the proper processXXX method in the visitor.
+
+
+
+
+
+
+ Return an answer of true to the isConsumerInfo() query.
+
+
+
+
+
+
+ Get the unique identifier that this object and its own
+ Marshaler share.
+
+
+
+
+
+
+ Returns a string containing the information for this DataStructure
+ such as its type and value of its elements.
+
+
+
+
+
+
+ Allows a Visitor to visit this command and return a response to the
+ command based on the command type being visited. The command will call
+ the proper processXXX method in the visitor.
+
+
+
+
+
+
+ Return an answer of true to the isControlCommand() query.
+
+
+
+
+
+
+ Get the unique identifier that this object and its own
+ Marshaler share.
+
+
+
+
+
+
+ Returns a string containing the information for this DataStructure
+ such as its type and value of its elements.
+
+
+
+
+
+
+ Allows a Visitor to visit this command and return a response to the
+ command based on the command type being visited. The command will call
+ the proper processXXX method in the visitor.
+
+
+
+
+
+
+ Return an answer of true to the isResponse() query.
+
+
+
+
+
+
+ Get the unique identifier that this object and its own
+ Marshaler share.
+
+
+
+
+
+
+ Returns a string containing the information for this DataStructure
+ such as its type and value of its elements.
+
+
+
+
+
+
+ Get the unique identifier that this object and its own
+ Marshaler share.
+
+
+
+
+
+
+ Returns a string containing the information for this DataStructure
+ such as its type and value of its elements.
+
+
+
+
+
+ Summary description for DataStructureSupport.
+
+
+
+
+
+ Get the unique identifier that this object and its own
+ Marshaler share.
+
+
+
+
+
+
+ Returns a string containing the information for this DataStructure
+ such as its type and value of its elements.
+
+
+
+
+
+
+ Allows a Visitor to visit this command and return a response to the
+ command based on the command type being visited. The command will call
+ the proper processXXX method in the visitor.
+
+
+
+
+
+
+ Return an answer of true to the isDestinationInfo() query.
+
+
+
+
+
+
+ Get the unique identifier that this object and its own
+ Marshaler share.
+
+
+
+
+
+
+ Returns a string containing the information for this DataStructure
+ such as its type and value of its elements.
+
+
+
+
+
+
+ Get the unique identifier that this object and its own
+ Marshaler share.
+
+
+
+
+
+
+ Returns a string containing the information for this DataStructure
+ such as its type and value of its elements.
+
+
+
+
+
+
+ Get the unique identifier that this object and its own
+ Marshaler share.
+
+
+
+
+
+
+ Returns a string containing the information for this DataStructure
+ such as its type and value of its elements.
+
+
+
+
+
+
+ Allows a Visitor to visit this command and return a response to the
+ command based on the command type being visited. The command will call
+ the proper processXXX method in the visitor.
+
+
+
+
+
+
+ Return an answer of true to the isFlushCommand() query.
+
+
+
+
+
+
+ Get the unique identifier that this object and its own
+ Marshaler share.
+
+
+
+
+
+
+ Returns a string containing the information for this DataStructure
+ such as its type and value of its elements.
+
+
+
+
+
+
+ Get the unique identifier that this object and its own
+ Marshaler share.
+
+
+
+
+
+
+ Returns a string containing the information for this DataStructure
+ such as its type and value of its elements.
+
+
+
+
+
+
+ Get the unique identifier that this object and its own
+ Marshaler share.
+
+
+
+
+
+
+ Returns a string containing the information for this DataStructure
+ such as its type and value of its elements.
+
+
+
+
+
+
+ Get the unique identifier that this object and its own
+ Marshaler share.
+
+
+
+
+
+
+ Returns a string containing the information for this DataStructure
+ such as its type and value of its elements.
+
+
+
+
+
+
+ Get the unique identifier that this object and its own
+ Marshaler share.
+
+
+
+
+
+
+ Returns a string containing the information for this DataStructure
+ such as its type and value of its elements.
+
+
+
+
+
+
+ Get the unique identifier that this object and its own
+ Marshaler share.
+
+
+
+
+
+
+ Returns a string containing the information for this DataStructure
+ such as its type and value of its elements.
+
+
+
+
+
+
+ Allows a Visitor to visit this command and return a response to the
+ command based on the command type being visited. The command will call
+ the proper processXXX method in the visitor.
+
+
+
+
+
+
+ Return an answer of true to the isKeepAliveInfo() query.
+
+
+
+
+
+
+ Get the unique identifier that this object and its own
+ Marshaler share.
+
+
+
+
+
+
+ Returns a string containing the information for this DataStructure
+ such as its type and value of its elements.
+
+
+
+
+
+
+ Get the unique identifier that this object and its own
+ Marshaler share.
+
+
+
+
+
+
+ Returns a string containing the information for this DataStructure
+ such as its type and value of its elements.
+
+
+
+
+
+
+ Get the unique identifier that this object and its own
+ Marshaler share.
+
+
+
+
+
+
+ Returns a string containing the information for this DataStructure
+ such as its type and value of its elements.
+
+
+
+
+
+
+ Get the unique identifier that this object and its own
+ Marshaler share.
+
+
+
+
+
+
+ Returns a string containing the information for this DataStructure
+ such as its type and value of its elements.
+
+
+
+
+
+
+ Get the unique identifier that this object and its own
+ Marshaler share.
+
+
+
+
+
+
+ Returns a string containing the information for this DataStructure
+ such as its type and value of its elements.
+
+
+
+
+
+
+ Allows a Visitor to visit this command and return a response to the
+ command based on the command type being visited. The command will call
+ the proper processXXX method in the visitor.
+
+
+
+
+
+
+ Return an answer of true to the isMessageAck() query.
+
+
+
+
+
+
+ Get the unique identifier that this object and its own
+ Marshaler share.
+
+
+
+
+
+
+ Returns a string containing the information for this DataStructure
+ such as its type and value of its elements.
+
+
+
+
+
+
+ Allows a Visitor to visit this command and return a response to the
+ command based on the command type being visited. The command will call
+ the proper processXXX method in the visitor.
+
+
+
+
+
+
+ Return an answer of true to the isMessageDispatch() query.
+
+
+
+
+
+
+ Get the unique identifier that this object and its own
+ Marshaler share.
+
+
+
+
+
+
+ Returns a string containing the information for this DataStructure
+ such as its type and value of its elements.
+
+
+
+
+
+
+ Allows a Visitor to visit this command and return a response to the
+ command based on the command type being visited. The command will call
+ the proper processXXX method in the visitor.
+
+
+
+
+
+
+ Return an answer of true to the isMessageDispatchNotification() query.
+
+
+
+
+
+
+ Get the unique identifier that this object and its own
+ Marshaler share.
+
+
+
+
+
+
+ Returns a string containing the information for this DataStructure
+ such as its type and value of its elements.
+
+
+
+
+
+ Sets the value as a String
+
+
+
+
+
+ Get the unique identifier that this object and its own
+ Marshaler share.
+
+
+
+
+
+
+ Returns a string containing the information for this DataStructure
+ such as its type and value of its elements.
+
+
+
+
+
+
+ Allows a Visitor to visit this command and return a response to the
+ command based on the command type being visited. The command will call
+ the proper processXXX method in the visitor.
+
+
+
+
+
+
+ Return an answer of true to the isMessagePull() query.
+
+
+
+
+
+
+ Get the unique identifier that this object and its own
+ Marshaler share.
+
+
+
+
+
+
+ Returns a string containing the information for this DataStructure
+ such as its type and value of its elements.
+
+
+
+
+
+
+ Get the unique identifier that this object and its own
+ Marshaler share.
+
+
+
+
+
+
+ Returns a string containing the information for this DataStructure
+ such as its type and value of its elements.
+
+
+
+
+
+
+ Allows a Visitor to visit this command and return a response to the
+ command based on the command type being visited. The command will call
+ the proper processXXX method in the visitor.
+
+
+
+
+
+
+ Return an answer of true to the isProducerAck() query.
+
+
+
+
+
+
+ Get the unique identifier that this object and its own
+ Marshaler share.
+
+
+
+
+
+
+ Returns a string containing the information for this DataStructure
+ such as its type and value of its elements.
+
+
+
+
+
+
+ Get the unique identifier that this object and its own
+ Marshaler share.
+
+
+
+
+
+
+ Returns a string containing the information for this DataStructure
+ such as its type and value of its elements.
+
+
+
+
+
+
+ Allows a Visitor to visit this command and return a response to the
+ command based on the command type being visited. The command will call
+ the proper processXXX method in the visitor.
+
+
+
+
+
+
+ Return an answer of true to the isProducerInfo() query.
+
+
+
+
+
+
+ Get the unique identifier that this object and its own
+ Marshaler share.
+
+
+
+
+
+
+ Returns a string containing the information for this DataStructure
+ such as its type and value of its elements.
+
+
+
+
+
+
+ Allows a Visitor to visit this command and return a response to the
+ command based on the command type being visited. The command will call
+ the proper processXXX method in the visitor.
+
+
+
+
+
+
+ Return an answer of true to the isRemoveInfo() query.
+
+
+
+
+
+
+ Get the unique identifier that this object and its own
+ Marshaler share.
+
+
+
+
+
+
+ Returns a string containing the information for this DataStructure
+ such as its type and value of its elements.
+
+
+
+
+
+
+ Allows a Visitor to visit this command and return a response to the
+ command based on the command type being visited. The command will call
+ the proper processXXX method in the visitor.
+
+
+
+
+
+
+ Return an answer of true to the isRemoveSubscriptionInfo() query.
+
+
+
+
+
+
+ Get the unique identifier that this object and its own
+ Marshaler share.
+
+
+
+
+
+
+ Returns a string containing the information for this DataStructure
+ such as its type and value of its elements.
+
+
+
+
+
+
+ Allows a Visitor to visit this command and return a response to the
+ command based on the command type being visited. The command will call
+ the proper processXXX method in the visitor.
+
+
+
+
+
+
+ Return an answer of true to the isReplayCommand() query.
+
+
+
+
+
+
+ Get the unique identifier that this object and its own
+ Marshaler share.
+
+
+
+
+
+
+ Returns a string containing the information for this DataStructure
+ such as its type and value of its elements.
+
+
+
+
+
+
+ Get the unique identifier that this object and its own
+ Marshaler share.
+
+
+
+
+
+
+ Returns a string containing the information for this DataStructure
+ such as its type and value of its elements.
+
+
+
+
+
+
+ Allows a Visitor to visit this command and return a response to the
+ command based on the command type being visited. The command will call
+ the proper processXXX method in the visitor.
+
+
+
+
+
+
+ Return an answer of true to the isSessionInfo() query.
+
+
+
+
+
+
+ Get the unique identifier that this object and its own
+ Marshaler share.
+
+
+
+
+
+
+ Returns a string containing the information for this DataStructure
+ such as its type and value of its elements.
+
+
+
+
+
+
+ Allows a Visitor to visit this command and return a response to the
+ command based on the command type being visited. The command will call
+ the proper processXXX method in the visitor.
+
+
+
+
+
+
+ Return an answer of true to the isShutdownInfo() query.
+
+
+
+
+
+
+ Get the unique identifier that this object and its own
+ Marshaler share.
+
+
+
+
+
+
+ Returns a string containing the information for this DataStructure
+ such as its type and value of its elements.
+
+
+
+
+
+
+ Get the unique identifier that this object and its own
+ Marshaler share.
+
+
+
+
+
+
+ Returns a string containing the information for this DataStructure
+ such as its type and value of its elements.
+
+
+
+
+
+
+ Allows a Visitor to visit this command and return a response to the
+ command based on the command type being visited. The command will call
+ the proper processXXX method in the visitor.
+
+
+
+
+
+
+ Return an answer of true to the isTransactionInfo() query.
+
+
+
+
+
+
+ Return an answer of true to the IsWireFormatInfo() query.
+
+
+
+
+
+
+ Get the unique identifier that this object and its own
+ Marshaler share.
+
+
+
+
+
+
+ Returns a string containing the information for this DataStructure
+ such as its type and value of its elements.
+
+
+
+
+
+ Marshalling code for Open Wire Format for ActiveMQBlobMessage
+
+
+
+
+ Marshalling code for Open Wire Format for ActiveMQMessage
+
+
+
+
+ Marshalling code for Open Wire Format for Message
+
+
+
+
+ Marshalling code for Open Wire Format for BaseCommand
+
+
+
+
+ A base class with useful implementation inheritence methods
+ for creating marshallers of the OpenWire protocol
+
+
+
+
+ Converts the object to a String
+
+
+
+
+ Converts the object to a String
+
+
+
+
+ Converts the given transaction ID into a String
+
+
+
+
+ Creates the byte array into hexidecimal
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for ActiveMQBytesMessage
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for ActiveMQDestination
+
+
+
+
+ Marshalling code for Open Wire Format for ActiveMQMapMessage
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for ActiveMQObjectMessage
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for ActiveMQQueue
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for ActiveMQStreamMessage
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for ActiveMQTempDestination
+
+
+
+
+ Marshalling code for Open Wire Format for ActiveMQTempQueue
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for ActiveMQTempTopic
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for ActiveMQTextMessage
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for ActiveMQTopic
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for BrokerId
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for BrokerInfo
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for ConnectionControl
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for ConnectionError
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for ConnectionId
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for ConnectionInfo
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for ConsumerControl
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for ConsumerId
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for ConsumerInfo
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for ControlCommand
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for DataArrayResponse
+
+
+
+
+ Marshalling code for Open Wire Format for Response
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for DataResponse
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for DestinationInfo
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for DiscoveryEvent
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for ExceptionResponse
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for FlushCommand
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for IntegerResponse
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for JournalQueueAck
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for JournalTopicAck
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for JournalTrace
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for JournalTransaction
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for KeepAliveInfo
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for LastPartialCommand
+
+
+
+
+ Marshalling code for Open Wire Format for PartialCommand
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for LocalTransactionId
+
+
+
+
+ Marshalling code for Open Wire Format for TransactionId
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Used to create marshallers for a specific version of the OpenWire protocol.
+ Each non-abstract DataStructure object has a registered Marshaller that is
+ created and added to the OpenWireFormat objects format collection.
+
+
+
+
+ Adds the Marshallers for this version of the OpenWire protocol to the
+ Collection of Marshallers stored in the OpenWireFormat class.
+
+
+
+
+ Marshalling code for Open Wire Format for MessageAck
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for MessageDispatch
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for MessageDispatchNotification
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for MessageId
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for MessagePull
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for NetworkBridgeFilter
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for ProducerAck
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for ProducerId
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for ProducerInfo
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for RemoveInfo
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for RemoveSubscriptionInfo
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for ReplayCommand
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for SessionId
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for SessionInfo
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for ShutdownInfo
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for SubscriptionInfo
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for TransactionInfo
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for WireFormatInfo
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for XATransactionId
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for ActiveMQBlobMessage
+
+
+
+
+ Marshalling code for Open Wire Format for ActiveMQMessage
+
+
+
+
+ Marshalling code for Open Wire Format for Message
+
+
+
+
+ Marshalling code for Open Wire Format for BaseCommand
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for ActiveMQBytesMessage
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for ActiveMQDestination
+
+
+
+
+ Marshalling code for Open Wire Format for ActiveMQMapMessage
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for ActiveMQObjectMessage
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for ActiveMQQueue
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for ActiveMQStreamMessage
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for ActiveMQTempDestination
+
+
+
+
+ Marshalling code for Open Wire Format for ActiveMQTempQueue
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for ActiveMQTempTopic
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for ActiveMQTextMessage
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for ActiveMQTopic
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for BrokerId
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for BrokerInfo
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for ConnectionControl
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for ConnectionError
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for ConnectionId
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for ConnectionInfo
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for ConsumerControl
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for ConsumerId
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for ConsumerInfo
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for ControlCommand
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for DataArrayResponse
+
+
+
+
+ Marshalling code for Open Wire Format for Response
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for DataResponse
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for DestinationInfo
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for DiscoveryEvent
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for ExceptionResponse
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for FlushCommand
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for IntegerResponse
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for JournalQueueAck
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for JournalTopicAck
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for JournalTrace
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for JournalTransaction
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for KeepAliveInfo
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for LastPartialCommand
+
+
+
+
+ Marshalling code for Open Wire Format for PartialCommand
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for LocalTransactionId
+
+
+
+
+ Marshalling code for Open Wire Format for TransactionId
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Used to create marshallers for a specific version of the OpenWire protocol.
+ Each non-abstract DataStructure object has a registered Marshaller that is
+ created and added to the OpenWireFormat objects format collection.
+
+
+
+
+ Adds the Marshallers for this version of the OpenWire protocol to the
+ Collection of Marshallers stored in the OpenWireFormat class.
+
+
+
+
+ Marshalling code for Open Wire Format for MessageAck
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for MessageDispatch
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for MessageDispatchNotification
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for MessageId
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for MessagePull
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for NetworkBridgeFilter
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for ProducerAck
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for ProducerId
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for ProducerInfo
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for RemoveInfo
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for RemoveSubscriptionInfo
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for ReplayCommand
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for SessionId
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for SessionInfo
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for ShutdownInfo
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for SubscriptionInfo
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for TransactionInfo
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for WireFormatInfo
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for XATransactionId
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for ActiveMQBlobMessage
+
+
+
+
+ Marshalling code for Open Wire Format for ActiveMQMessage
+
+
+
+
+ Marshalling code for Open Wire Format for Message
+
+
+
+
+ Marshalling code for Open Wire Format for BaseCommand
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for ActiveMQBytesMessage
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for ActiveMQDestination
+
+
+
+
+ Marshalling code for Open Wire Format for ActiveMQMapMessage
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for ActiveMQObjectMessage
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for ActiveMQQueue
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for ActiveMQStreamMessage
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for ActiveMQTempDestination
+
+
+
+
+ Marshalling code for Open Wire Format for ActiveMQTempQueue
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for ActiveMQTempTopic
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for ActiveMQTextMessage
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for ActiveMQTopic
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for BrokerId
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for BrokerInfo
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for ConnectionControl
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for ConnectionError
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for ConnectionId
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for ConnectionInfo
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for ConsumerControl
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for ConsumerId
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for ConsumerInfo
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for ControlCommand
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for DataArrayResponse
+
+
+
+
+ Marshalling code for Open Wire Format for Response
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for DataResponse
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for DestinationInfo
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for DiscoveryEvent
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for ExceptionResponse
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for FlushCommand
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for IntegerResponse
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for JournalQueueAck
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for JournalTopicAck
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for JournalTrace
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for JournalTransaction
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for KeepAliveInfo
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for LastPartialCommand
+
+
+
+
+ Marshalling code for Open Wire Format for PartialCommand
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for LocalTransactionId
+
+
+
+
+ Marshalling code for Open Wire Format for TransactionId
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Used to create marshallers for a specific version of the OpenWire protocol.
+ Each non-abstract DataStructure object has a registered Marshaller that is
+ created and added to the OpenWireFormat objects format collection.
+
+
+
+
+ Adds the Marshallers for this version of the OpenWire protocol to the
+ Collection of Marshallers stored in the OpenWireFormat class.
+
+
+
+
+ Marshalling code for Open Wire Format for MessageAck
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for MessageDispatch
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for MessageDispatchNotification
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for MessageId
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for MessagePull
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for NetworkBridgeFilter
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for ProducerAck
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for ProducerId
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for ProducerInfo
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for RemoveInfo
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for RemoveSubscriptionInfo
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for ReplayCommand
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for SessionId
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for SessionInfo
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for ShutdownInfo
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for SubscriptionInfo
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for TransactionInfo
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for WireFormatInfo
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for XATransactionId
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for ActiveMQBlobMessage
+
+
+
+
+ Marshalling code for Open Wire Format for ActiveMQMessage
+
+
+
+
+ Marshalling code for Open Wire Format for Message
+
+
+
+
+ Marshalling code for Open Wire Format for BaseCommand
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for ActiveMQBytesMessage
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for ActiveMQDestination
+
+
+
+
+ Marshalling code for Open Wire Format for ActiveMQMapMessage
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for ActiveMQObjectMessage
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for ActiveMQQueue
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for ActiveMQStreamMessage
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for ActiveMQTempDestination
+
+
+
+
+ Marshalling code for Open Wire Format for ActiveMQTempQueue
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for ActiveMQTempTopic
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for ActiveMQTextMessage
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for ActiveMQTopic
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for BrokerId
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for BrokerInfo
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for ConnectionControl
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for ConnectionError
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for ConnectionId
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for ConnectionInfo
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for ConsumerControl
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for ConsumerId
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for ConsumerInfo
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for ControlCommand
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for DataArrayResponse
+
+
+
+
+ Marshalling code for Open Wire Format for Response
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for DataResponse
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for DestinationInfo
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for DiscoveryEvent
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for ExceptionResponse
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for FlushCommand
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for IntegerResponse
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for JournalQueueAck
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for JournalTopicAck
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for JournalTrace
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for JournalTransaction
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for KeepAliveInfo
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for LastPartialCommand
+
+
+
+
+ Marshalling code for Open Wire Format for PartialCommand
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for LocalTransactionId
+
+
+
+
+ Marshalling code for Open Wire Format for TransactionId
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Used to create marshallers for a specific version of the OpenWire protocol.
+ Each non-abstract DataStructure object has a registered Marshaller that is
+ created and added to the OpenWireFormat objects format collection.
+
+
+
+
+ Adds the Marshallers for this version of the OpenWire protocol to the
+ Collection of Marshallers stored in the OpenWireFormat class.
+
+
+
+
+ Marshalling code for Open Wire Format for MessageAck
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for MessageDispatch
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for MessageDispatchNotification
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for MessageId
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for MessagePull
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for NetworkBridgeFilter
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for ProducerAck
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for ProducerId
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for ProducerInfo
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for RemoveInfo
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for RemoveSubscriptionInfo
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for ReplayCommand
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for SessionId
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for SessionInfo
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for ShutdownInfo
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for SubscriptionInfo
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for TransactionInfo
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for WireFormatInfo
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for XATransactionId
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for ActiveMQBlobMessage
+
+
+
+
+ Marshalling code for Open Wire Format for ActiveMQMessage
+
+
+
+
+ Marshalling code for Open Wire Format for Message
+
+
+
+
+ Marshalling code for Open Wire Format for BaseCommand
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for ActiveMQBytesMessage
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for ActiveMQDestination
+
+
+
+
+ Marshalling code for Open Wire Format for ActiveMQMapMessage
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for ActiveMQObjectMessage
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for ActiveMQQueue
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for ActiveMQStreamMessage
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for ActiveMQTempDestination
+
+
+
+
+ Marshalling code for Open Wire Format for ActiveMQTempQueue
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for ActiveMQTempTopic
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for ActiveMQTextMessage
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for ActiveMQTopic
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for BrokerId
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for BrokerInfo
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for ConnectionControl
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for ConnectionError
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for ConnectionId
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for ConnectionInfo
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for ConsumerControl
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for ConsumerId
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for ConsumerInfo
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for ControlCommand
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for DataArrayResponse
+
+
+
+
+ Marshalling code for Open Wire Format for Response
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for DataResponse
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for DestinationInfo
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for DiscoveryEvent
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for ExceptionResponse
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for FlushCommand
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for IntegerResponse
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for JournalQueueAck
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for JournalTopicAck
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for JournalTrace
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for JournalTransaction
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for KeepAliveInfo
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for LastPartialCommand
+
+
+
+
+ Marshalling code for Open Wire Format for PartialCommand
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for LocalTransactionId
+
+
+
+
+ Marshalling code for Open Wire Format for TransactionId
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Used to create marshallers for a specific version of the OpenWire protocol.
+ Each non-abstract DataStructure object has a registered Marshaller that is
+ created and added to the OpenWireFormat objects format collection.
+
+
+
+
+ Adds the Marshallers for this version of the OpenWire protocol to the
+ Collection of Marshallers stored in the OpenWireFormat class.
+
+
+
+
+ Marshalling code for Open Wire Format for MessageAck
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for MessageDispatch
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for MessageDispatchNotification
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for MessageId
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for MessagePull
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for NetworkBridgeFilter
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for ProducerAck
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for ProducerId
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for ProducerInfo
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for RemoveInfo
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for RemoveSubscriptionInfo
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for ReplayCommand
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for SessionId
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for SessionInfo
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for ShutdownInfo
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for SubscriptionInfo
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for TransactionInfo
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for WireFormatInfo
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for XATransactionId
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for ActiveMQBlobMessage
+
+
+
+
+ Marshalling code for Open Wire Format for ActiveMQMessage
+
+
+
+
+ Marshalling code for Open Wire Format for Message
+
+
+
+
+ Marshalling code for Open Wire Format for BaseCommand
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for ActiveMQBytesMessage
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for ActiveMQDestination
+
+
+
+
+ Marshalling code for Open Wire Format for ActiveMQMapMessage
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for ActiveMQObjectMessage
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for ActiveMQQueue
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for ActiveMQStreamMessage
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for ActiveMQTempDestination
+
+
+
+
+ Marshalling code for Open Wire Format for ActiveMQTempQueue
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for ActiveMQTempTopic
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for ActiveMQTextMessage
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for ActiveMQTopic
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for BrokerId
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for BrokerInfo
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for ConnectionControl
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for ConnectionError
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for ConnectionId
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for ConnectionInfo
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for ConsumerControl
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for ConsumerId
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for ConsumerInfo
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for ControlCommand
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for DataArrayResponse
+
+
+
+
+ Marshalling code for Open Wire Format for Response
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for DataResponse
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for DestinationInfo
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for DiscoveryEvent
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for ExceptionResponse
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for FlushCommand
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for IntegerResponse
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for JournalQueueAck
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for JournalTopicAck
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for JournalTrace
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for JournalTransaction
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for KeepAliveInfo
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for LastPartialCommand
+
+
+
+
+ Marshalling code for Open Wire Format for PartialCommand
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for LocalTransactionId
+
+
+
+
+ Marshalling code for Open Wire Format for TransactionId
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Used to create marshallers for a specific version of the OpenWire protocol.
+ Each non-abstract DataStructure object has a registered Marshaller that is
+ created and added to the OpenWireFormat objects format collection.
+
+
+
+
+ Adds the Marshallers for this version of the OpenWire protocol to the
+ Collection of Marshallers stored in the OpenWireFormat class.
+
+
+
+
+ Marshalling code for Open Wire Format for MessageAck
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for MessageDispatch
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for MessageDispatchNotification
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for MessageId
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for MessagePull
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for NetworkBridgeFilter
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for ProducerAck
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for ProducerId
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for ProducerInfo
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for RemoveInfo
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for RemoveSubscriptionInfo
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for ReplayCommand
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for SessionId
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for SessionInfo
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for ShutdownInfo
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for SubscriptionInfo
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for TransactionInfo
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for WireFormatInfo
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Marshalling code for Open Wire Format for XATransactionId
+
+
+
+
+ Creates an instance of the Object that this marshaller handles.
+
+
+
+
+ Returns the type code for the Object that this Marshaller handles..
+
+
+
+
+ Represents a stream of boolean flags
+
+
+
+
+ Implements the OpenWire protocol.
+
+
+
+
+ Represents the marshalling of commands to and from an IO stream
+
+
+
+
+ Marshalls the given command object onto the stream
+
+
+
+
+ Unmarshalls the next command object from the stream
+
+
+
+
+ Gets the Transport that own this WireFormat instnace.
+
+
+
+
+ Gets the current version of the protocol that this WireFormat instance
+ supports
+
+
+
+
+ Tracks the state of a connection so a newly established transport can be
+ re-initialized to the state that was tracked.
+
+
+
+
+
+
+ null if the command is not state tracked.
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ A Composite task is one of N tasks that can be managed by a
+ CompositTaskRunner instance. The CompositeTaskRunner checks each
+ task when its wakeup method is called to determine if the Task has
+ any work it needs to complete, if no tasks have any pending work
+ then the CompositeTaskRunner can return to its sleep state until
+ the next time its wakeup method is called or it is shut down.
+
+
+
+
+ Represents a task that may take a few iterations to complete.
+
+
+
+
+ Performs some portion of the work that this Task object is
+ assigned to complete. When the task is entirely finished this
+ method should return false.
+
+
+ A this indicates if this Task should
+ be run again.
+
+
+
+
+ Indicates if this Task has any pending work.
+
+
+
+
+ A TaskRunner that dedicates a single thread to running a single Task.
+
+
+
+
+ Allows you to request a thread execute the associated Task.
+
+
+
+
+ Wakeup the TaskRunner and have it check for any pending work that
+ needs to be completed. If none is found it will go back to sleep
+ until another Wakeup call is made.
+
+
+
+
+ Attempt to Shutdown the TaskRunner, this method will wait indefinitely
+ for the TaskRunner to quite if the task runner is in a call to its Task's
+ run method and that never returns.
+
+
+
+
+ Performs a timed wait for the TaskRunner to shutdown. If the TaskRunner
+ is in a call to its Task's run method and that does not return before the
+ timeout expires this method returns and the TaskRunner may remain in the
+ running state.
+
+
+ A
+
+
+
+
+ Performs a timed wait for the TaskRunner to shutdown. If the TaskRunner
+ is in a call to its Task's run method and that does not return before the
+ timeout expires this method sends an Abort to the Task thread and return.
+
+
+ A
+
+
+
+
+ A TaskRunner that dedicates a single thread to running a single Task.
+
+
+
+
+ We Expect MANY wakeup calls on the same TaskRunner.
+
+
+
+
+ shut down the task
+
+
+
+
+
+ Manages the thread pool for long running tasks. Long running tasks are not
+ always active but when they are active, they may need a few iterations of
+ processing for them to become idle. The manager ensures that each task is
+ processes but that no one task overtakes the system. This is kina like
+ cooperative multitasking.
+
+ If your OS/JVM combination has a good thread model, you may want to avoid
+ using a thread pool to run tasks and use a DedicatedTaskRunner instead.
+
+
+
+
+ This class provides a wrapper around the ThreadPool mechanism in .NET
+ to allow for serial execution of jobs in the ThreadPool and provide
+ a means of shutting down the execution of jobs in a deterministic
+ way.
+
+
+
+
+ Represents an asynchronous task that is executed on the ThreadPool
+ at some point in the future.
+
+
+
+
+ Interface for a Logger object used to store and retrieve Recovery
+ Information needed to recover distributed transactions that operate
+ in the Microsoft Distributed Transaction Context.
+
+
+
+
+ The Unique Id of the Resource Manager that this logger is currently
+ logging recovery information for.
+
+
+
+
+ The Path to the location on disk where the recovery log is written
+ to and read from.
+
+
+
+
+ Indiciate that the Logger should create and sibdirs of the
+ given location that don't currently exist.
+
+
+
+
+ Attribute that decorates IRecoveryLoggerFactory implementations to allow
+ the Recovery Policy to find all the available factories dynamically.
+
+
+
+
+ Indexed by service name
+
+
+
+
+ This property indicates whether or not async send is enabled.
+
+
+
+
+ A Transport that is made reliable by being able to fail over to another
+ transport when a transport failure is detected.
+
+
+
+
+ Represents the logical networking transport layer. Transports implment the low
+ level protocol specific portion of the Communication between the Client and a Broker
+ such as TCP, UDP, etc. Transports make use of WireFormat objects to handle translateing
+ the cononical OpenWire Commands used in this client into binary wire level packets that
+ can be sent to the Broker or Service that the Transport connects to.
+
+
+
+
+ Sends a Command object on the Wire but does not wait for any response from the
+ receiver before returning.
+
+
+ A
+
+
+
+
+ Sends a Command object which requires a response from the Broker but does not
+ wait for the response, instead a FutureResponse object is returned that the
+ caller can use to wait on the Broker's response.
+
+
+ A
+
+
+ A
+
+
+
+
+ Sends a Command to the Broker and waits for a Response to that Command before
+ returning, this version waits indefinitely for a response.
+
+
+ A
+
+
+ A
+
+
+
+
+ Sends a Command to the Broker and waits for the given TimeSpan to expire for a
+ response before returning.
+
+
+ A
+
+
+ A
+
+
+ A
+
+
+
+
+ Allows a caller to find a specific type of Transport in the Chain of
+ Transports that is created. This allows a caller to find a specific
+ object in the Transport chain and set or get properties on that specific
+ instance. If the requested type isn't in the chain than Null is returned.
+
+
+ A
+
+
+ A
+
+
+
+
+ Updates the Uri's that this Transport is aware of and will use to
+ connect itself to. If the rebalance option is true this method will
+ terminate any current connection and reconnect to another available
+ Uri.
+
+
+ A
+
+
+ A
+
+
+
+
+ Timeout in milliseconds to wait for sending synchronous messages or commands.
+ Set to -1 for infinite timeout.
+
+
+
+
+ Timeout in milliseconds to wait for sending asynchronous messages or commands.
+ Set to -1 for infinite timeout.
+
+
+
+
+ Indicates if this Transport has already been disposed and can no longer
+ be used.
+
+
+
+
+ Indicates if this Transport is Fault Tolerant or not. A fault Tolerant
+ Transport handles low level connection errors internally allowing a client
+ to remain unaware of wire level disconnection and reconnection details.
+
+
+
+
+ Indiciates if the Transport is current Connected to is assigned URI.
+
+
+
+
+ The Remote Address that this transport is currently connected to.
+
+
+
+
+ Returns true if this Transport supports reconnections.
+
+
+
+
+ Returns true if this Transport can accept updated lists of connection Uri's.
+
+
+
+
+ Returns the IWireFormat object that this transport uses to marshal and
+ unmarshal Command objects.
+
+
+
+
+ Adds a new set of Uris to the list of Uris that this Transport can connect to.
+
+
+ A
+ Should the current connection be broken and a new one created.
+
+
+ A
+
+
+
+
+ Remove the given Uris from this Transports list of known Uris.
+
+
+ A
+ Should the current connection be broken and a new one created.
+
+
+ A
+
+
+
+
+ Gets or sets a value indicating whether to asynchronously connect to sockets
+
+ true if [async connect]; otherwise, false.
+
+
+
+ If doing an asynchronous connect, the milliseconds before timing out if no connection can be made
+
+ The async timeout.
+
+
+
+ This class is a helper for the asynchronous connect option
+
+
+
+
+ callback to properly set chosen transport
+
+
+
+
+ Uri to try connecting to
+
+
+
+
+ Failover transport issuing the connection attempt
+
+
+
+
+ Initializes a new instance of the class.
+
+ The set transport.
+ The URI.
+ The transport.
+
+
+
+ Does the connect.
+
+
+
+
+
+
+
+
+
+
+ Defines an Interface for a Command Response Builder used by the MockTransport
+ to answer Commands sent via the Request and AsnycRequest methods.
+
+
+
+
+ Given a Command, check if it requires a response and return the
+ appropriate Response that the Broker would send for this Command
+
+
+
+
+ When called the ResponseBuilder must construct all the Responses or
+ Asynchronous commands that would be sent to this client by the Broker
+ upon receipt of the passed command.
+
+
+
+
+ Transport used for testing, mimics the behaviour of a normal Transport and allows
+ messages to be sent and received
+
+
+
+
+ Injects a Command into the Transports inbound message queue, the Commands in the
+ inbound Queue are dispatched to the registered CommnadHandler instance for
+ processing, this simulates receiving a message from an external source, e.g.
+ receiving a new message from the Broker.
+
+
+ A
+
+
+
+
+ Timeout in milliseconds to wait for sending synchronous messages or commands.
+ Set to -1 for infinite timeout.
+
+
+
+
+ Timeout in milliseconds to wait for sending asynchronous messages or commands.
+ Set to -1 for infinite timeout.
+
+
+
+
+ Factory class to create the MockTransport when given on a URI as mock://XXX
+
+
+
+
+ Builds responses using the internal Cononical OpenWire Commands format.
+
+
+
+
+ An implementation of ITransport that uses sockets to communicate with the broker
+
+
+
+
+ Method Start
+
+
+
+
+ Property IsStarted
+
+
+
+
+ Timeout in milliseconds to wait for sending synchronous messages or commands.
+ Set to -1 for infinite timeout.
+
+
+
+
+ Timeout in milliseconds to wait for sending asynchronous messages or commands.
+ Set to -1 for infinite timeout.
+
+
+
+
+ Indicates the name of the Server's Certificate. By default the Host name
+ of the remote server is used, however if this doesn't match the name of the
+ Server's certificate then this option can be set to override the default.
+
+
+
+
+ Indicates the location of the Client Certificate to use when the Broker
+ is configured for Client Auth (not common). The SslTransport will supply
+ this certificate to the SslStream via the SelectLocalCertificate method.
+
+
+
+
+ Password for the Client Certificate specified via configuration.
+
+
+
+
+ Indicates if the SslTransport should ignore any errors in the supplied Broker
+ certificate and connect anyway, this is useful in testing with a default AMQ
+ broker certificate that is self signed.
+
+
+
+
+ Should the Inactivity Monitor be enabled on this Transport.
+
+
+
+
+ Size in bytes of the receive buffer.
+
+
+
+
+ Size in bytes of send buffer.
+
+
+
+
+ The time-out value, in milliseconds. The default value is 0, which indicates
+ an infinite time-out period. Specifying -1 also indicates an infinite time-out period.
+
+
+
+
+ The time-out value, in milliseconds. If you set the property with a value between 1 and 499,
+ the value will be changed to 500. The default value is 0, which indicates an infinite
+ time-out period. Specifying -1 also indicates an infinite time-out period.
+
+
+
+
+ Override in a subclass to create the specific type of transport that is
+ being implemented.
+
+
+
+
+ Attribute that decorates ITransportFactory implementations to allow
+ the TransportFactory to find all the available factories dynamically.
+
+
+
+
+ Handles asynchronous responses
+
+
+
+
+ This class make sure that the connection is still alive,
+ by monitoring the reception of commands from the peer of
+ the transport.
+
+
+
+
+ Used to implement a filter on the transport layer.
+
+
+
+
+ Method Oneway
+
+ A Command
+
+
+
+ Method AsyncRequest
+
+ A FutureResponse
+ A Command
+
+
+
+ Method Request
+
+ A Response
+ A Command
+
+
+
+ Method Request with time out for Response.
+
+ A Response
+ A Command
+ Timeout in milliseconds
+
+
+
+ Method Start
+
+
+
+
+ Method Dispose
+
+
+
+
+ Property IsStarted
+
+
+
+
+ Timeout in milliseconds to wait for sending synchronous messages or commands.
+ Set to -1 for infinite timeout.
+
+
+
+
+ Timeout in milliseconds to wait for sending asynchronous messages or commands.
+ Set to -1 for infinite timeout.
+
+
+
+
+ Constructor or the Inactivity Monitor
+
+
+
+
+
+ Check the write to the broker
+
+
+
+
+ Checks if we should allow the read check(if less than 90% of the read
+ check time elapsed then we dont do the readcheck
+
+
+
+
+
+
+ A Transport filter that is used to log the commands sent and received.
+
+
+
+
+ A Transport which guards access to the next transport using a mutex.
+
+
+
+
+ A Transport that correlates asynchronous send/receive messages into single request/response.
+
+
+
+
+ Creates a normal transport.
+
+
+ the transport
+
+
+
+ Create a transport factory for the scheme. If we do not support the transport protocol,
+ an NMSConnectionException will be thrown.
+
+
+
+
+
+
+ A Transport which negotiates the wire format
+
+
+
+
+ A FIFO based MessageDispatchChannel.
+
+
+
+
+ Defines an interface for a Message Channel used to dispatch incoming
+ Messages to a Session or MessageConsumer. The implementation controls
+ how the messages are dequeued from the channel, one option is for a
+ FIFO ordering while another might be to sort the Message's based on the
+ set Message Priority.
+
+
+
+ Construct an IdGenerator
+
+
+
+ Generate a Unique Id
+
+
+ A
+
+
+
+
+ Generate a unique ID - that is friendly for a URL or file system
+
+
+ A
+
+
+
+
+ From a generated id - return the seed (i.e. minus the count)
+
+
+ A
+
+
+ A
+
+
+
+
+ From a generated id - return the generator count
+
+
+ A
+
+
+ A
+
+
+
+
+ Does a proper compare on the ids
+
+
+ A
+
+
+ A
+
+
+ A
+
+
+
+
+ As we have to find the hostname as a side-affect of generating a unique
+ stub, we allow it's easy retrevial here
+
+
+
+
+ Utility class used to provide conveince methods that apply named property
+ settings to objects.
+
+
+
+
+ Sets the public properties of a target object using a string map.
+ This method uses .Net reflection to identify public properties of
+ the target object matching the keys from the passed map.
+
+ The object whose properties will be set.
+ Map of key/value pairs.
+
+
+
+ Sets the public properties of a target object using a string map.
+ This method uses .Net reflection to identify public properties of
+ the target object matching the keys from the passed map.
+
+ The object whose properties will be set.
+ Map of key/value pairs.
+ Key value prefix. This is prepended to the property name
+ before searching for a matching key value.
+
+
+
+ Utility class for Tracking Memory Usage with an imposed limit on the amount
+ available. Provides methods for objects to wait on more space to become
+ available if the memory limit is reached.
+
+
+
+
+ If no space is available then this method blocks until more becomes available.
+
+
+
+
+ If no space is available then this method blocks until more becomes available
+ or until the specified timeout expires.
+
+
+ A
+
+
+
+
+ Attempts to increase the amount of Memory Used, if non is available to fill
+ then this method blocks until more is freed.
+
+
+ A
+
+
+
+
+ Increase the level of Usage.
+
+
+ A
+
+
+
+
+ Decrease the level of Usage.
+
+
+ A
+
+
+
+
+ Checks if the Usage Windows has become full, is so returns true
+ otherwise returns false.
+
+
+ A
+
+
+
+
+ Consumes Advisory Messages for Temp Destination creation on deletion so that
+ the connection can track valid destinations for its sessions, and session resources.
+
+
+
+
+ Interface that provides for a Class to provide dispatching service for
+ an OpenWire MessageDispatch command.
+
+
+
+
+ Exception thrown when the broker returns an error
+
+
+
+
+ Initializes a new instance of the BrokerException class with serialized data.
+ Throws System.ArgumentNullException if the info parameter is null.
+ Throws System.Runtime.Serialization.SerializationException if the class name is null or System.Exception.HResult is zero (0).
+
+ The SerializationInfo that holds the serialized object data about the exception being thrown.
+ The StreamingContext that contains contextual information about the source or destination.
+
+
+
+ When overridden in a derived class, sets the SerializationInfo
+ with information about the exception.
+
+ The SerializationInfo that holds the serialized object data about the exception being thrown.
+ The StreamingContext that contains contextual information about the source or destination.
+
+
+
+ Generates a nice textual stack trace
+
+
+
+
+ Default Compression policy for NMS.ActiveMQ uses the built in GZipStream
+ to compress and decompress the message body. This is not compatible with
+ compression used by ActiveMQ so users should use this with caution.
+
+
+
+
+ Policy interface for Message Compression, the policy should return
+ a new Stream for compression or decompression upon request that wraps
+ the provided Stream instance.
+
+
+
+
+ Represents a connection with a message broker
+
+
+
+
+ Starts asynchronous message delivery of incoming messages for this connection.
+ Synchronous delivery is unaffected.
+
+
+
+
+ Temporarily stop asynchronous delivery of inbound messages for this connection.
+ The sending of outbound messages is unaffected.
+
+
+
+
+ Creates a new session to work on this connection
+
+
+
+
+ Creates a new session to work on this connection
+
+
+
+
+ Performs a synchronous request-response with the broker
+
+
+
+
+
+ Performs a synchronous request-response with the broker for requested timeout duration.
+
+
+
+
+
+
+
+ Check and ensure that the connection objcet is connected. If it is not
+ connected or is closed, a ConnectionClosedException is thrown.
+
+
+
+
+ Handle incoming commands
+
+ An ITransport
+ A Command
+
+
+
+ Creates a new local transaction ID
+
+
+
+
+ A delegate that can receive transport level exceptions.
+
+
+
+
+ An asynchronous listener that is notified when a Fault tolerant connection
+ has been interrupted.
+
+
+
+
+ An asynchronous listener that is notified when a Fault tolerant connection
+ has been resumed.
+
+
+
+
+ This property indicates what version of the Protocol we are using to
+ communicate with the Broker, if not set we return the lowest version
+ number to indicate we support only the basic command set.
+
+
+
+
+ This property indicates whether or not async send is enabled.
+
+
+
+
+ This property indicates whether or not async close is enabled.
+ When the connection is closed, it will either send a synchronous
+ DisposeOf command to the broker and wait for confirmation (if true),
+ or it will send the DisposeOf command asynchronously.
+
+
+
+
+ This property indicates whether or not async sends are used for
+ message acknowledgement messages. Sending Acks async can improve
+ performance but may decrease reliability.
+
+
+
+
+ This property sets the acknowledgment mode for the connection.
+ The URI parameter connection.ackmode can be set to a string value
+ that maps to the enumeration value.
+
+
+
+
+ This property is the maximum number of bytes in memory that a producer will transmit
+ to a broker before waiting for acknowledgement messages from the broker that it has
+ accepted the previously sent messages. In other words, this how you configure the
+ producer flow control window that is used for async sends where the client is responsible
+ for managing memory usage. The default value of 0 means no flow control at the client
+
+
+
+
+ This property forces all messages that are sent to be sent synchronously overriding
+ any usage of the AsyncSend flag. This can reduce performance in some cases since the
+ only messages we normally send synchronously are Persistent messages not sent in a
+ transaction. This options guarantees that no send will return until the broker has
+ acknowledge receipt of the message
+
+
+
+
+ This property indicates whether Message's should be copied before being sent via
+ one of the Connection's send methods. Copying the Message object allows the user
+ to resuse the Object over for another send. If the message isn't copied performance
+ can improve but the user must not reuse the Object as it may not have been sent
+ before they reset its payload.
+
+
+
+
+ Enable or Disable the use of Compression on Message bodies. When enabled all
+ messages have their body compressed using the Deflate compression algorithm.
+ The recipient of the message must support the use of message compression as well
+ otherwise the receiving client will receive a message whose body appears in the
+ compressed form.
+
+
+
+
+ Indicate whether or not the resources of this Connection should support the
+ Message Priority value of incoming messages and dispatch them accordingly.
+ When disabled Message are always dispatched to Consumers in FIFO order.
+
+
+
+
+ synchronously or asynchronously by the broker.
+
+
+
+
+ The Default Client Id used if the ClientId property is not set explicity.
+
+
+
+
+ Get/or set the redelivery policy for this connection.
+
+
+
+
+ This property determines if the asynchronous message delivery of incoming
+ messages has been started for this connection.
+
+
+
+
+ Exception thrown when a connection is used that it already closed
+
+
+
+
+ Initializes a new instance of the ConnectionClosedException class with serialized data.
+ Throws System.ArgumentNullException if the info parameter is null.
+ Throws System.Runtime.Serialization.SerializationException if the class name is null or System.Exception.HResult is zero (0).
+
+ The SerializationInfo that holds the serialized object data about the exception being thrown.
+ The StreamingContext that contains contextual information about the source or destination.
+
+
+
+ Represents a connection with a message broker
+
+
+
+
+ Get/or set the broker Uri.
+
+
+
+
+ A Delegate that is called each time a Message is dispatched to allow the client to do
+ any necessary transformations on the received message before it is delivered. The
+ ConnectionFactory sets the provided delegate instance on each Connection instance that
+ is created from this factory, each connection in turn passes the delegate along to each
+ Session it creates which then passes that along to the Consumers it creates.
+
+
+
+
+ A delegate that is called each time a Message is sent from this Producer which allows
+ the application to perform any needed transformations on the Message before it is sent.
+ The ConnectionFactory sets the provided delegate instance on each Connection instance that
+ is created from this factory, each connection in turn passes the delegate along to each
+ Session it creates which then passes that along to the Producers it creates.
+
+
+
+
+ Exception thrown when a connection is used that it has failed in some way.
+
+
+
+
+ Initializes a new instance of the ConnectionFailedException class with serialized data.
+ Throws System.ArgumentNullException if the info parameter is null.
+ Throws System.Runtime.Serialization.SerializationException if the class name is null or System.Exception.HResult is zero (0).
+
+ The SerializationInfo that holds the serialized object data about the exception being thrown.
+ The StreamingContext that contains contextual information about the source or destination.
+
+
+
+ Implements the Connection Meta-Data feature for Apache.NMS.ActiveMQ
+
+
+
+
+ Exception thrown when a consumer is used that it already closed
+
+
+
+
+ Initializes a new instance of the ConsumerClosedException class with serialized data.
+ Throws System.ArgumentNullException if the info parameter is null.
+ Throws System.Runtime.Serialization.SerializationException if the class name is null or System.Exception.HResult is zero (0).
+
+ The SerializationInfo that holds the serialized object data about the exception being thrown.
+ The StreamingContext that contains contextual information about the source or destination.
+
+
+
+ Summary description for DestinationFilter.
+
+
+
+
+ Exception thrown when an IO error occurs
+
+
+
+
+ Called before a commit or rollback is applied.
+
+
+
+
+ Called after a commit
+
+
+
+
+ Called after a transaction rollback
+
+
+
+
+ An object capable of receiving messages from some destination
+
+
+
+
+ Called from the parent Session of this Consumer to indicate that its
+ parent session is closing and this Consumer should close down but not
+ send any message to the Broker as the parent close will take care of
+ removing its child resources at the broker.
+
+
+
+
+ Used to get an enqueued message from the unconsumedMessages list. The
+ amount of time this method blocks is based on the timeout value. if
+ timeout == Timeout.Infinite then it blocks until a message is received.
+ if timeout == 0 then it it tries to not block at all, it returns a
+ message if it is available if timeout > 0 then it blocks up to timeout
+ amount of time. Expired messages will consumed by this method.
+
+
+ A
+
+
+ A
+
+
+
+
+ A Delegate that is called each time a Message is dispatched to allow the client to do
+ any necessary transformations on the received message before it is delivered.
+
+
+
+
+ An object capable of sending messages to some destination
+
+
+
+
+ Called from the Parent session to deactivate this Producer, when a parent
+ is closed all children are automatically removed from the broker so this
+ method circumvents the need to send a Remove command to the broker.
+
+
+
+
+ Extends the basic Connection class to provide a transacted Connection
+ instance that operates within the bounds of a .NET Scoped Transaction.
+
+ The default Session creation methods of Connection are overriden here
+ to always return a TX capable session instance.
+
+
+
+
+ Policy class used to configure the options associated with TX
+ recovery.
+
+
+
+
+ Default provider of ISession
+
+
+
+
+ Private object used for synchronization, instead of public "this"
+
+
+
+
+ Delete a destination (Queue, Topic, Temp Queue, Temp Topic).
+
+
+
+
+ Ensures that a transaction is started
+
+
+
+
+ Prevents message from throwing an exception if a client calls Acknoweldge on
+ a message that is part of a transaction either being produced or consumed. The
+ JMS Spec indicates that users should be able to call Acknowledge with no effect
+ if the message is in a transaction.
+
+
+ A
+
+
+
+
+ Sets the prefetch size, the maximum number of messages a broker will dispatch to consumers
+ until acknowledgements are received.
+
+
+
+
+ Sets the maximum number of messages to keep around per consumer
+ in addition to the prefetch window for non-durable topics until messages
+ will start to be evicted for slow consumers.
+ Must be > 0 to enable this feature
+
+
+
+
+ Enables or disables whether asynchronous dispatch should be used by the broker
+
+
+
+
+ Enables or disables exclusive consumers when using queues. An exclusive consumer means
+ only one instance of a consumer is allowed to process messages on a queue to preserve order
+
+
+
+
+ Enables or disables retroactive mode for consumers; i.e. do they go back in time or not?
+
+
+
+
+ Sets the default consumer priority for consumers
+
+
+
+
+ A Delegate that is called each time a Message is dispatched to allow the client to do
+ any necessary transformations on the received message before it is delivered.
+ The Session instance sets the delegate on each Consumer it creates.
+
+
+
+
+ A delegate that is called each time a Message is sent from this Producer which allows
+ the application to perform any needed transformations on the Message before it is sent.
+ The Session instance sets the delegate on each Producer it creates.
+
+
+
+
+ Manually Enlists in the given Transaction. This can be used to when the
+ client is using the Session in Asynchronous listener mode since the Session
+ cannot atuomatically join in this case as there is no Ambient transaction in
+ the Message Dispatch thread. This also allows for clients to use the explicit
+ exception model when necessary.
+
+
+
+
+ Reports Transacted whenever there is an Ambient Transaction or the internal
+ TransactionContext is still involed in a .NET Transaction beyond the lifetime
+ of an ambient transaction (can happen during a scoped transaction disposing
+ without Complete being called and a Rollback is in progress.)
+
+
+
+
+ Class used to define the various limits that should be used for the Prefetch
+ limit on destination based on the type of Destination in use.
+
+
+
+
+ Exception thrown when an Request times out.
+
+
+
+
+ Method AddSynchronization
+
+
+
+
+ Should be called from NetTxSession when created to check if any TX
+ data is stored for recovery and whether the Broker has matching info
+ stored. If an Transaction is found that belongs to this client and is
+ still alive on the Broker it will be recovered, otherwise the stored
+ data should be cleared.
+
+
+
+
diff --git a/lib/Net/4.0/Apache.NMS.dll b/lib/Net/4.0/Apache.NMS.dll
new file mode 100644
index 00000000..b9dc125a
Binary files /dev/null and b/lib/Net/4.0/Apache.NMS.dll differ
diff --git a/lib/Net/4.0/Apache.NMS.xml b/lib/Net/4.0/Apache.NMS.xml
new file mode 100644
index 00000000..385b480c
--- /dev/null
+++ b/lib/Net/4.0/Apache.NMS.xml
@@ -0,0 +1,2736 @@
+
+
+
+ Apache.NMS
+
+
+
+
+ A BinaryWriter that switches the endian orientation of the write operations so that they
+ are compatible across platforms.
+
+
+
+
+ Method Write
+
+ A long
+
+
+
+ Method Write
+
+ An ushort
+
+
+
+ Method Write
+
+ An int
+
+
+
+ Method Write
+
+ A char[]
+ An int
+ An int
+
+
+
+ Method Write
+
+ A char[]
+
+
+
+ Method Write
+
+ An uint
+
+
+
+ Method Write
+
+ A char
+
+
+
+ Method Write
+
+ An ulong
+
+
+
+ Method Write
+
+ A short
+
+
+
+ Method Write, writes a string to the output using the WriteString16
+ method.
+
+ A string
+
+
+
+ Method WriteString16, writes a string to the output using the Java
+ standard modified UTF-8 encoding with an unsigned short value written first to
+ indicate the length of the encoded data, the short is read as an unsigned
+ value so the max amount of data this method can write is 65535 encoded bytes.
+
+ Unlike the WriteString32 method this method does not encode the length
+ value to -1 if the string is null, this is to match the behaviour of
+ the Java DataOuputStream class's writeUTF method.
+
+ Because modified UTF-8 encding can result in a number of bytes greater that
+ the size of the String this method must first check that the encoding proces
+ will not result in a value that cannot be written becuase it is greater than
+ the max value of an unsigned short.
+
+ A string
+
+
+
+ Method WriteString32, writes a string to the output using the Openwire
+ standard modified UTF-8 encoding which an int value written first to
+ indicate the length of the encoded data, the int is read as an signed
+ value so the max amount of data this method can write is 2^31 encoded bytes.
+
+ In the case of a null value being passed this method writes a -1 to the
+ stream to indicate that the string is null.
+
+ Because modified UTF-8 encding can result in a number of bytes greater that
+ the size of the String this method must first check that the encoding proces
+ will not result in a value that cannot be written becuase it is greater than
+ the max value of an int.
+
+ A string
+
+
+
+ Method Write
+
+ A double
+
+
+
+ Method Write
+
+ A double
+
+
+
+ A BinaryWriter that switches the endian orientation of the read operations so that they
+ are compatible across platforms.
+
+
+
+
+ Method Read
+
+ An int
+ A char[]
+ An int
+ An int
+
+
+
+ Method ReadChars
+
+ A char[]
+ An int
+
+
+
+ Method ReadInt16
+
+ A short
+
+
+
+ Method ReadChar
+
+ A char
+
+
+
+ Method ReadInt64
+
+ A long
+
+
+
+ Method ReadUInt64
+
+ An ulong
+
+
+
+ Method ReadUInt32
+
+ An uint
+
+
+
+ Method ReadUInt16
+
+ An ushort
+
+
+
+ Method ReadInt32
+
+ An int
+
+
+
+ Method ReadString
+
+ A string
+
+
+
+ Method ReadString16, reads a String value encoded in the Java modified
+ UTF-8 format with a length index encoded as a 16bit unsigned short.
+
+ A string
+
+
+
+ Method ReadString32, reads a String value encoded in the Java modified
+ UTF-8 format with a length index encoded as a singed integer value.
+
+ A string
+
+
+
+ Decrement the count, releasing any waiting Threads when the count reaches Zero.
+
+
+
+
+ Causes the current Thread to wait for the count to reach zero, unless
+ the Thread is interrupted.
+
+
+
+
+ Causes the current thread to wait until the latch has counted down to zero, unless
+ the thread is interrupted, or the specified waiting time elapses.
+
+
+
+
+ Gets the current count for this Latch.
+
+
+
+
+ A StreamMessage object is used to send a stream of primitive types in the
+ .NET programming language. It is filled and read sequentially. It inherits
+ from the Message interface and adds a stream message body.
+
+ The primitive types can be read or written explicitly using methods for each
+ type. They may also be read or written generically as objects. For instance,
+ a call to IStreamMessage.WriteInt32(6) is equivalent to
+ StreamMessage.WriteObject( (Int32)6 ). Both forms are provided, because the
+ explicit form is convenient for static programming, and the object form is
+ needed when types are not known at compile time.
+
+ When the message is first created, and when ClearBody is called, the body of
+ the message is in write-only mode. After the first call to reset has been made,
+ the message body is in read-only mode. After a message has been sent, the
+ client that sent it can retain and modify it without affecting the message
+ that has been sent. The same message object can be sent multiple times. When a
+ message has been received, the provider has called reset so that the message
+ body is in read-only mode for the client.
+
+ If ClearBody is called on a message in read-only mode, the message body is
+ cleared and the message body is in write-only mode.
+
+ If a client attempts to read a message in write-only mode, a
+ MessageNotReadableException is thrown.
+
+ If a client attempts to write a message in read-only mode, a
+ MessageNotWriteableException is thrown.
+
+ IStreamMessage objects support the following conversion table. The marked cases
+ must be supported. The unmarked cases must throw a NMSException. The
+ String-to-primitive conversions may throw a runtime exception if the primitive's
+ valueOf() method does not accept it as a valid String representation of the
+ primitive.
+
+ A value written as the row type can be read as the column type.
+
+ | | boolean byte short char int long float double String byte[]
+ |----------------------------------------------------------------------
+ |boolean | X X
+ |byte | X X X X X
+ |short | X X X X
+ |char | X X
+ |int | X X X
+ |long | X X
+ |float | X X X
+ |double | X X
+ |String | X X X X X X X X
+ |byte[] | X
+ |----------------------------------------------------------------------
+
+
+
+
+
+ Represents a message either to be sent to a message broker or received from a message broker.
+
+
+
+
+ If using client acknowledgement mode on the session, then this method will acknowledge that the
+ message has been processed correctly.
+
+
+
+
+ Clears out the message body. Clearing a message's body does not clear its header
+ values or property entries.
+
+ If this message body was read-only, calling this method leaves the message body in
+ the same state as an empty body in a newly created message.
+
+
+
+
+ Clears a message's properties.
+
+ The message's header fields and body are not cleared.
+
+
+
+
+ Provides access to the message properties (headers).
+
+
+
+
+ The correlation ID used to correlate messages from conversations or long running business processes.
+
+
+
+
+ The destination of the message. This property is set by the IMessageProducer.
+
+
+
+
+ The amount of time for which this message is valid. Zero if this message does not expire.
+
+
+
+
+ The message ID which is set by the provider.
+
+
+
+
+ Whether or not this message is persistent.
+
+
+
+
+ The Priority of this message.
+
+
+
+
+ Returns true if this message has been redelivered to this or another consumer before being acknowledged successfully.
+
+
+
+
+ The destination that the consumer of this message should send replies to
+
+
+
+
+ The timestamp of when the message was pubished in UTC time. If the publisher disables setting
+ the timestamp on the message, the time will be set to the start of the UNIX epoc (1970-01-01 00:00:00).
+
+
+
+
+ The type name of this message.
+
+
+
+
+ Reads a boolean from the stream message.
+
+
+ A
+
+
+ if the NMS provider fails to read the message due to some internal error.
+
+
+ if unexpected end of message stream has been reached.
+
+
+ if this type conversion is invalid.
+
+
+ if the message is in write-only mode.
+
+
+
+
+ Reads a byte from the stream message.
+
+
+ A
+
+
+ if the NMS provider fails to read the message due to some internal error.
+
+
+ if unexpected end of message stream has been reached.
+
+
+ if this type conversion is invalid.
+
+
+ if the message is in write-only mode.
+
+
+
+
+ Reads a byte array field from the stream message into the specified byte[]
+ object (the read buffer).
+
+ To read the field value, ReadBytes should be successively called until it returns
+ a value less than the length of the read buffer. The value of the bytes in the
+ buffer following the last byte read is undefined.
+
+ If ReadBytes returns a value equal to the length of the buffer, a subsequent
+ ReadBytes call must be made. If there are no more bytes to be read, this call
+ returns -1.
+
+ If the byte array field value is null, ReadBytes returns -1.
+ If the byte array field value is empty, ReadBytes returns 0.
+
+ Once the first ReadBytes call on a byte[] field value has been made, the full
+ value of the field must be read before it is valid to read the next field.
+ An attempt to read the next field before that has been done will throw a
+ MessageFormatException.
+
+ To read the byte field value into a new byte[] object, use the ReadObject method.
+
+
+ A
+
+
+ A
+ the total number of bytes read into the buffer, or -1 if there is no more data
+ because the end of the byte field has been reached
+
+
+ if the NMS provider fails to read the message due to some internal error.
+
+
+ if unexpected end of message stream has been reached.
+
+
+ if this type conversion is invalid.
+
+
+ if the message is in write-only mode.
+
+
+
+
+
+ Reads a char from the stream message.
+
+
+ A
+
+
+ if the NMS provider fails to read the message due to some internal error.
+
+
+ if unexpected end of message stream has been reached.
+
+
+ if this type conversion is invalid.
+
+
+ if the message is in write-only mode.
+
+
+
+
+ Reads a short from the stream message.
+
+
+ A
+
+
+ if the NMS provider fails to read the message due to some internal error.
+
+
+ if unexpected end of message stream has been reached.
+
+
+ if this type conversion is invalid.
+
+
+ if the message is in write-only mode.
+
+
+
+
+ Reads a int from the stream message.
+
+
+ A
+
+
+ if the NMS provider fails to read the message due to some internal error.
+
+
+ if unexpected end of message stream has been reached.
+
+
+ if this type conversion is invalid.
+
+
+ if the message is in write-only mode.
+
+
+
+
+ Reads a long from the stream message.
+
+
+ A
+
+
+ if the NMS provider fails to read the message due to some internal error.
+
+
+ if unexpected end of message stream has been reached.
+
+
+ if this type conversion is invalid.
+
+
+ if the message is in write-only mode.
+
+
+
+
+ Reads a float from the stream message.
+
+
+ A
+
+
+ if the NMS provider fails to read the message due to some internal error.
+
+
+ if unexpected end of message stream has been reached.
+
+
+ if this type conversion is invalid.
+
+
+ if the message is in write-only mode.
+
+
+
+
+ Reads a double from the stream message.
+
+
+ A
+
+
+ if the NMS provider fails to read the message due to some internal error.
+
+
+ if unexpected end of message stream has been reached.
+
+
+ if this type conversion is invalid.
+
+
+ if the message is in write-only mode.
+
+
+
+
+ Reads a string from the stream message.
+
+
+ A
+
+
+ if the NMS provider fails to read the message due to some internal error.
+
+
+ if unexpected end of message stream has been reached.
+
+
+ if this type conversion is invalid.
+
+
+ if the message is in write-only mode.
+
+
+
+
+ Reads a Object from the stream message.
+
+
+ A
+
+
+ if the NMS provider fails to read the message due to some internal error.
+
+
+ if unexpected end of message stream has been reached.
+
+
+ if this type conversion is invalid.
+
+
+ if the message is in write-only mode.
+
+
+
+
+ Writes a boolean to the stream message.
+
+
+ A
+
+
+ if the NMS provider fails to write to the message due to some internal error.
+
+
+ if the message is in read-only mode.
+
+
+
+
+ Writes a byte to the stream message.
+
+
+ A
+
+
+ if the NMS provider fails to write to the message due to some internal error.
+
+
+ if the message is in read-only mode.
+
+
+
+
+ Writes a byte array field to the stream message.
+
+ The byte array value is written to the message as a byte array field.
+ Consecutively written byte array fields are treated as two distinct
+ fields when the fields are read.
+
+
+ A
+
+
+ if the NMS provider fails to write to the message due to some internal error.
+
+
+ if the message is in read-only mode.
+
+
+
+
+ Writes a portion of a byte array as a byte array field to the stream message.
+
+ The a portion of the byte array value is written to the message as a byte
+ array field. Consecutively written byte array fields are treated as two distinct
+ fields when the fields are read.
+
+
+ A
+
+
+ A value that indicates the point in the buffer to
+ begin writing to the stream message.
+
+
+ A value that indicates how many bytes in the buffer
+ to write to the stream message.
+
+
+ if the NMS provider fails to write to the message due to some internal error.
+
+
+ if the message is in read-only mode.
+
+
+
+
+ Writes a char to the stream message.
+
+
+ A
+
+
+ if the NMS provider fails to write to the message due to some internal error.
+
+
+ if the message is in read-only mode.
+
+
+
+
+ Writes a short to the stream message.
+
+
+ A
+
+
+ if the NMS provider fails to write to the message due to some internal error.
+
+
+ if the message is in read-only mode.
+
+
+
+
+ Writes a int to the stream message.
+
+
+ A
+
+
+ if the NMS provider fails to write to the message due to some internal error.
+
+
+ if the message is in read-only mode.
+
+
+
+
+ Writes a long to the stream message.
+
+
+ A
+
+
+ if the NMS provider fails to write to the message due to some internal error.
+
+
+ if the message is in read-only mode.
+
+
+
+
+ Writes a float to the stream message.
+
+
+ A
+
+
+ if the NMS provider fails to write to the message due to some internal error.
+
+
+ if the message is in read-only mode.
+
+
+
+
+ Writes a double to the stream message.
+
+
+ A
+
+
+ if the NMS provider fails to write to the message due to some internal error.
+
+
+ if the message is in read-only mode.
+
+
+
+
+ Writes a string to the stream message.
+
+
+ A
+
+
+ if the NMS provider fails to write to the message due to some internal error.
+
+
+ if the message is in read-only mode.
+
+
+
+
+ Writes a boolean to the stream message.
+
+
+ A
+
+
+ if the NMS provider fails to write to the message due to some internal error.
+
+
+ if the message is in read-only mode.
+
+
+
+
+ Puts the message body in read-only mode and repositions the stream to the beginning.
+
+
+ Thrown when the Message has an invalid format.
+
+
+ Thrown when there is an unhandled exception thrown from the provider.
+
+
+
+
+ A lifecycle for NMS objects to indicate they can be started
+
+
+
+
+ A delegate that can receive messages async.
+
+
+
+
+ A delegate that a client can register that will be called each time a consumer dispatches a message
+ to the client code to allow the client to Transform a received message from one type to another,
+ StreamMessage to TextMessage, ObjectMessage to TextMessage containing XML, etc. This allows a
+ client to create a consumer that will automatically transform a message to a type that the client is
+ capable of processing or adding additional information to a received message. For messages that do
+ not need to be processed the client should return null from this method, in this case the original
+ message will be dispatched to the client.
+
+
+
+
+ A consumer of messages
+
+
+
+
+ Waits until a message is available and returns it
+
+
+
+
+ If a message is available within the timeout duration it is returned otherwise this method returns null
+
+
+
+
+ Receives the next message if one is immediately available for delivery on the client side
+ otherwise this method returns null. It is never an error for this method to return null, the
+ time of Message availability varies so your client cannot rely on this method to receive a
+ message immediately after one has been sent.
+
+
+
+
+ Closes the message consumer.
+
+
+ Clients should close message consumers them when they are not needed.
+ This call blocks until a receive or message listener in progress has completed.
+ A blocked message consumer receive call returns null when this message consumer is closed.
+
+
+
+
+ An asynchronous listener which can be used to consume messages asynchronously
+
+
+
+
+ A Delegate that is called each time a Message is dispatched to allow the client to do
+ any necessary transformations on the received message before it is delivered.
+
+
+
+
+ A Factory of IConnection objects
+
+
+
+
+ Creates a new connection
+
+
+
+
+ Creates a new connection with the given user name and password
+
+
+
+
+ Get/or set the broker Uri.
+
+
+
+
+ Get/or set the redelivery policy that new IConnection objects are
+ assigned upon creation.
+
+
+
+
+ A Delegate that is called each time a Message is dispatched to allow the client to do
+ any necessary transformations on the received message before it is delivered. The
+ ConnectionFactory sets the provided delegate instance on each Connection instance that
+ is created from this factory, each connection in turn passes the delegate along to each
+ Session it creates which then passes that along to the Consumers it creates.
+
+
+
+
+ A delegate that is called each time a Message is sent from this Producer which allows
+ the application to perform any needed transformations on the Message before it is sent.
+ The ConnectionFactory sets the provided delegate instance on each Connection instance that
+ is created from this factory, each connection in turn passes the delegate along to each
+ Session it creates which then passes that along to the Producers it creates.
+
+
+
+
+ The start of the Windows epoch
+
+
+
+
+ The start of the Java epoch
+
+
+
+
+ The difference between the Windows epoch and the Java epoch
+ in milliseconds.
+
+
+
+
+ Represents a connection failure.
+
+
+
+
+ Represents an NMS exception
+
+
+
+
+ Initializes a new instance of the NMSException class with serialized data.
+ Throws System.ArgumentNullException if the info parameter is null.
+ Throws System.Runtime.Serialization.SerializationException if the class name is null or System.Exception.HResult is zero (0).
+
+ The SerializationInfo that holds the serialized object data about the exception being thrown.
+ The StreamingContext that contains contextual information about the source or destination.
+
+
+
+ When overridden in a derived class, sets the SerializationInfo with information about the exception.
+
+ The SerializationInfo that holds the serialized object data about the exception being thrown.
+ The StreamingContext that contains contextual information about the source or destination.
+
+
+
+ Returns the error code for the exception, if one has been provided.
+
+
+
+
+ Initializes a new instance of the NMSConnectionException class with serialized data.
+ Throws System.ArgumentNullException if the info parameter is null.
+ Throws System.Runtime.Serialization.SerializationException if the class name is null or System.Exception.HResult is zero (0).
+
+ The SerializationInfo that holds the serialized object data about the exception being thrown.
+ The StreamingContext that contains contextual information about the source or destination.
+
+
+
+ A lifecycle for NMS objects to indicate they can be stopped
+
+
+
+
+ The time in milliseconds to delay a redelivery
+
+ The redelivered counter.
+
+
+
+
+ Gets or sets the collision avoidance percent. This causes the redelivery delay
+ to be adjusted in order to avoid possible collision when messages are redelivered
+ to concurrent consumers.
+
+ The collision avoidance factor.
+
+
+
+ Gets or sets a value indicating whether to [use collision avoidance].
+
+
+ true if [use collision avoidance]; otherwise, false.
+
+
+
+
+ The time in milliseconds to initially delay a redelivery
+
+ The initial redelivery delay.
+
+
+
+ Gets or sets the maximum redeliveries. A value less than zero indicates
+ that there is no maximum and the NMS provider should retry forever.
+
+ The maximum redeliveries.
+
+
+
+ Gets or sets a value indicating whether [use exponential back off].
+
+
+ true if [use exponential back off]; otherwise, false.
+
+
+
+
+ Gets or sets the back off multiplier.
+
+ The back off multiplier.
+
+
+
+ Represents an Object message which contains a serializable .Net object.
+
+
+
+
+ Represents the type of the destination such as a queue or topic.
+
+
+
+
+ A base interface for destinations such as queues or topics
+
+
+
+
+ Support class that switches from one endian to the other.
+
+
+
+
+ Initializes a new instance of the ResourceAllocationException class with serialized data.
+ Throws System.ArgumentNullException if the info parameter is null.
+ Throws System.Runtime.Serialization.SerializationException if the class name is null or System.Exception.HResult is zero (0).
+
+ The SerializationInfo that holds the serialized object data about the exception being thrown.
+ The StreamingContext that contains contextual information about the source or destination.
+
+
+
+ Represents a text based message
+
+
+
+
+ The INetTxSession interface extends the capability of Session by adding access to a NMS
+ provider's support for the Distributed Transactions (optional). The transaction support
+ leverages the .NET Frameworks System.Transactions API.
+
+ The NMS Provider implements this interface by participating in the current ambient transaction
+ as defined by the System.Transactions.Transaction.Current static member. Whenever a new
+ Transaction is entered the NMS provider should enlist in that transaction. When there is no
+ ambient transaction then the NMS Prodiver should allow the INetTxSession instance to behave
+ as a session that is in Auto Acknowledge mode.
+
+ Calling the Commit or Rollback methods on a INetTxSession instance should throw an exception
+ as those operations are controlled by the Transaction Manager.
+
+ The INetTxSession interface is optional. NMS providers are not required to support this
+ interface. This interface is for use by NMS providers to support transactional environments.
+
+
+
+
+ Represents a single unit of work on an IConnection.
+ So the ISession can be used to perform transactional receive and sends
+
+
+
+
+ Creates a producer of messages
+
+
+
+
+ Creates a producer of messages on a given destination
+
+
+
+
+ Creates a consumer of messages on a given destination
+
+
+
+
+ Creates a consumer of messages on a given destination with a selector
+
+
+
+
+ Creates a consumer of messages on a given destination with a selector
+
+
+
+
+ Creates a named durable consumer of messages on a given destination with a selector
+
+
+
+
+ Deletes a durable consumer created with CreateDurableConsumer().
+
+ Name of the durable consumer
+
+
+
+ Creates a QueueBrowser object to peek at the messages on the specified queue.
+
+
+ A
+
+
+ A
+
+
+ If the Prodiver does not support creation of Queue Browsers.
+
+
+
+
+ Creates a QueueBrowser object to peek at the messages on the specified queue
+ using a message selector.
+
+
+ A
+
+
+ A
+
+
+ A
+
+
+ If the Prodiver does not support creation of Queue Browsers.
+
+
+
+
+ Returns the queue for the given name
+
+
+
+
+ Returns the topic for the given name
+
+
+
+
+ Creates a temporary queue
+
+
+
+
+ Creates a temporary topic
+
+
+
+
+ Delete a destination (Queue, Topic, Temp Queue, Temp Topic).
+
+
+
+
+ Creates a new message with an empty body
+
+
+
+
+ Creates a new text message with an empty body
+
+
+
+
+ Creates a new text message with the given body
+
+
+
+
+ Creates a new Map message which contains primitive key and value pairs
+
+
+
+
+ Creates a new Object message containing the given .NET object as the body
+
+
+
+
+ Creates a new binary message
+
+
+
+
+ Creates a new binary message with the given body
+
+
+
+
+ Creates a new stream message
+
+
+
+
+ Closes the session. There is no need to close the producers and consumers
+ of a closed session.
+
+
+
+
+ If this is a transactional session then commit all message
+ send and acknowledgements for producers and consumers in this session
+
+
+
+
+ If this is a transactional session then rollback all message
+ send and acknowledgements for producers and consumers in this session
+
+
+
+
+ A Delegate that is called each time a Message is dispatched to allow the client to do
+ any necessary transformations on the received message before it is delivered.
+ The Session instance sets the delegate on each Consumer it creates.
+
+
+
+
+ A delegate that is called each time a Message is sent from this Producer which allows
+ the application to perform any needed transformations on the Message before it is sent.
+ The Session instance sets the delegate on each Producer it creates.
+
+
+
+
+ Initializes a new instance of the IllegalStateException class with serialized data.
+ Throws System.ArgumentNullException if the info parameter is null.
+ Throws System.Runtime.Serialization.SerializationException if the class name is null or System.Exception.HResult is zero (0).
+
+ The SerializationInfo that holds the serialized object data about the exception being thrown.
+ The StreamingContext that contains contextual information about the source or destination.
+
+
+
+ A policy used to customize exactly how you want the redelivery to work.
+
+
+
+
+ Clone this object and return a new instance that the caller now owns.
+
+
+
+
+ Gets the random number generator.
+
+ The random number generator.
+
+
+
+ Gets the next boolean
+
+ true if [next bool]; otherwise, false.
+
+
+
+ Initializes a new instance of the InvalidSelectorException class with serialized data.
+ Throws System.ArgumentNullException if the info parameter is null.
+ Throws System.Runtime.Serialization.SerializationException if the class name is null or System.Exception.HResult is zero (0).
+
+ The SerializationInfo that holds the serialized object data about the exception being thrown.
+ The StreamingContext that contains contextual information about the source or destination.
+
+
+
+ Represents a topic in a message broker. A message sent to a topic
+ is delivered to all consumers on the topic who are interested in the message.
+
+
+
+
+ Represents a Map message which contains key and value pairs which are
+ of primitive types
+
+
+
+
+ Initializes a new instance of the MessageNotWriteableException class with serialized data.
+ Throws System.ArgumentNullException if the info parameter is null.
+ Throws System.Runtime.Serialization.SerializationException if the class name is null or System.Exception.HResult is zero (0).
+
+ The SerializationInfo that holds the serialized object data about the exception being thrown.
+ The StreamingContext that contains contextual information about the source or destination.
+
+
+
+ Represents a temporary topic which exists for the duration
+ of the IConnection which created it.
+
+
+
+
+ Deletes this Temporary Destination, If there are existing receivers
+ still using it, a NMSException will be thrown.
+
+
+ If NMS Provider fails to Delete the Temp Destination or the client does
+ not support this operation.
+
+
+
+
+ An attempt is made to access an invalid destination
+
+
+
+
+ Initializes a new instance of the InvalidDestinationException class with serialized data.
+ Throws System.ArgumentNullException if the info parameter is null.
+ Throws System.Runtime.Serialization.SerializationException if the class name is null or System.Exception.HResult is zero (0).
+
+ The SerializationInfo that holds the serialized object data about the exception being thrown.
+ The StreamingContext that contains contextual information about the source or destination.
+
+
+
+
+ A BytesMessage object is used to send a message containing a stream of uninterpreted
+ bytes. It inherits from the Message interface and adds a bytes message body. The
+ receiver of the message supplies the interpretation of the bytes.
+
+ This message type is for client encoding of existing message formats. If possible,
+ one of the other self-defining message types should be used instead.
+
+ Although the NMS API allows the use of message properties with byte messages, they
+ are typically not used, since the inclusion of properties may affect the format.
+
+ When the message is first created, and when ClearBody is called, the body of the
+ message is in write-only mode. After the first call to Reset has been made, the
+ message body is in read-only mode. After a message has been sent, the client that
+ sent it can retain and modify it without affecting the message that has been sent.
+ The same message object can be sent multiple times. When a message has been received,
+ the provider has called Reset so that the message body is in read-only mode for the
+ client.
+
+ If ClearBody is called on a message in read-only mode, the message body is cleared and
+ the message is in write-only mode.
+
+ If a client attempts to read a message in write-only mode, a MessageNotReadableException
+ is thrown.
+
+ If a client attempts to write a message in read-only mode, a MessageNotWriteableException
+ is thrown.
+
+
+
+
+ Reads a byte from the Message Stream.
+
+
+ A
+
+
+ Thrown when the Message is in write-only mode.
+
+
+ Thrown when an unexpected end of bytes has been reached.
+
+
+ Thrown when there is an unhandled exception thrown from the provider.
+
+
+
+
+ Writes a byte to the Message stream.
+
+
+ A
+
+
+ Thrown when the Message is in read-only mode.
+
+
+ Thrown when there is an unhandled exception thrown from the provider.
+
+
+
+
+ Reads a boolean from the Message Stream.
+
+
+ A
+
+
+ Thrown when the Message is in write-only mode.
+
+
+ Thrown when an unexpected end of bytes has been reached.
+
+
+ Thrown when there is an unhandled exception thrown from the provider.
+
+
+
+
+ Write a one byte value to the message stream representing the boolean
+ value passed.
+
+
+ A
+
+
+ Thrown when the Message is in read-only mode.
+
+
+ Thrown when there is an unhandled exception thrown from the provider.
+
+
+
+
+ Reads a char from the Message Stream.
+
+
+ A
+
+
+ Thrown when the Message is in write-only mode.
+
+
+ Thrown when an unexpected end of bytes has been reached.
+
+
+ Thrown when there is an unhandled exception thrown from the provider.
+
+
+
+
+ Write a two byte value to the message stream representing the character
+ value passed. High byte first.
+
+
+ A
+
+
+ Thrown when the Message is in read-only mode.
+
+
+ Thrown when there is an unhandled exception thrown from the provider.
+
+
+
+
+ Reads a Short from the Message Stream.
+
+
+ A
+
+
+ Thrown when the Message is in write-only mode.
+
+
+ Thrown when an unexpected end of bytes has been reached.
+
+
+ Thrown when there is an unhandled exception thrown from the provider.
+
+
+
+
+ Write a two byte value to the message stream representing the short
+ value passed. High byte first.
+
+
+ A
+
+
+ Thrown when the Message is in read-only mode.
+
+
+ Thrown when there is an unhandled exception thrown from the provider.
+
+
+
+
+ Reads an int from the Message Stream.
+
+
+ A
+
+
+ Thrown when the Message is in write-only mode.
+
+
+ Thrown when an unexpected end of bytes has been reached.
+
+
+ Thrown when there is an unhandled exception thrown from the provider.
+
+
+
+
+ Write a four byte value to the message stream representing the integer
+ value passed. High byte first.
+
+
+ A
+
+
+ Thrown when the Message is in read-only mode.
+
+
+ Thrown when there is an unhandled exception thrown from the provider.
+
+
+
+
+ Reads a long from the Message Stream.
+
+
+ A
+
+
+ Thrown when the Message is in write-only mode.
+
+
+ Thrown when an unexpected end of bytes has been reached.
+
+
+ Thrown when there is an unhandled exception thrown from the provider.
+
+
+
+
+ Write a eight byte value to the message stream representing the long
+ value passed. High byte first.
+
+
+ A
+
+
+ Thrown when the Message is in read-only mode.
+
+
+ Thrown when there is an unhandled exception thrown from the provider.
+
+
+
+
+ Reads a float from the Message Stream.
+
+
+ A
+
+
+ Thrown when the Message is in write-only mode.
+
+
+ Thrown when an unexpected end of bytes has been reached.
+
+
+ Thrown when there is an unhandled exception thrown from the provider.
+
+
+
+
+ Write a four byte value to the message stream representing the float
+ value passed. High byte first.
+
+
+ A
+
+
+ Thrown when the Message is in read-only mode.
+
+
+ Thrown when there is an unhandled exception thrown from the provider.
+
+
+
+
+ Reads an double from the Message Stream.
+
+
+ A
+
+
+ Thrown when the Message is in write-only mode.
+
+
+ Thrown when an unexpected end of bytes has been reached.
+
+
+ Thrown when there is an unhandled exception thrown from the provider.
+
+
+
+
+ Write a eight byte value to the message stream representing the double
+ value passed. High byte first.
+
+
+ A
+
+
+ Thrown when the Message is in read-only mode.
+
+
+ Thrown when there is an unhandled exception thrown from the provider.
+
+
+
+
+ Reads a byte array from the bytes message stream.
+
+ If the length of array value is less than the number of bytes remaining to
+ be read from the stream, the array should be filled. A subsequent call reads
+ the next increment, and so on.
+
+ If the number of bytes remaining in the stream is less than the length of array
+ value, the bytes should be read into the array. The return value of the total number
+ of bytes read will be less than the length of the array, indicating that there are
+ no more bytes left to be read from the stream. The next read of the stream returns -1.
+
+
+ The byte array that will be used as a buffer to read into.
+
+
+ A
+ The number of bytes read into the passed byte array, or -1 if there are no more
+ bytes left to be read from the stream.
+
+
+ Thrown when there is an unhandled exception thrown from the provider.
+
+
+ Thrown when the Message is in write-only mode.
+
+
+
+
+ Reads a portion of the bytes message stream.
+
+ If the length of array value is less than the number of bytes remaining to be
+ read from the stream, the array should be filled. A subsequent call reads the
+ next increment, and so on.
+
+ If the number of bytes remaining in the stream is less than the length of array
+ value, the bytes should be read into the array. The return value of the total
+ number of bytes read will be less than the length of the array, indicating that
+ there are no more bytes left to be read from the stream. The next read of the
+ stream returns -1.
+
+ If length is negative, or length is greater than the length of the array value,
+ then an Exception is thrown. No bytes will be read from the stream for this
+ exception case.
+
+
+ The byte array that will be used as a buffer to read into.
+
+
+ The amount of bytes to read into the buffer.
+
+
+ A
+ The number of bytes read into the passed byte array, or -1 if there are no more
+ bytes left to be read from the stream.
+
+
+ Thrown when the Message is in write-only mode.
+
+
+ Thrown when there is an unhandled exception thrown from the provider.
+
+
+
+
+ Writes a byte array to the bytes message stream.
+
+
+ A
+
+
+ Thrown when the Message is in read-only mode.
+
+
+ Thrown when there is an unhandled exception thrown from the provider.
+
+
+
+
+ Writes a portion of a byte array to the bytes message stream.
+
+
+ A
+
+
+ A
+
+
+ A
+
+
+ Thrown when the Message is in read-only mode.
+
+
+ Thrown when there is an unhandled exception thrown from the provider.
+
+
+
+
+ Reads a string that has been encoded using a modified UTF-8 format from the bytes
+ message stream.
+
+
+ A
+
+
+ Thrown when the Message is in write-only mode.
+
+
+ Thrown when an unexpected end of bytes has been reached.
+
+
+ Thrown when there is an unhandled exception thrown from the provider.
+
+
+
+
+ Writes a string to the bytes message stream using UTF-8 encoding in a
+ machine-independent manner.
+
+
+ A
+
+
+ Thrown when the Message is in read-only mode.
+
+
+ Thrown when there is an unhandled exception thrown from the provider.
+
+
+
+
+ Writes an object to the bytes message stream.
+
+ This method works only for the objectified primitive object types
+ (Int32, Double, Boolean ...), String objects, and byte arrays.
+
+
+ A
+ the object in the .NET programming language to be written; it must not be null
+
+
+ Thrown when the Message has an invalid format.
+
+
+ Thrown when the Message is in read-only mode.
+
+
+ Thrown when there is an unhandled exception thrown from the provider.
+
+
+
+
+ Puts the message body in read-only mode and repositions the stream of bytes to the beginning.
+
+
+ Thrown when the Message has an invalid format.
+
+
+ Thrown when there is an unhandled exception thrown from the provider.
+
+
+
+
+ Gets the number of bytes of the message body when the message is in read-only mode.
+ The value returned can be used to allocate a byte array. The value returned is the
+ entire length of the message body, regardless of where the pointer for reading the
+ message is currently located.
+
+
+ Thrown when the Message is in write-only mode.
+
+
+ Thrown when there is an unhandled exception thrown from the provider.
+
+
+
+
+ Utility class used to set NMS properties via introspection for IMessage derived
+ instances. This class allows IMessage classes to define Message specific properties
+ that can be accessed using the standard property get / set semantics.
+
+ This is especially useful for NMSX type properties which can vary by provider and
+ are obtianed via a call to IConnectionMetaData.NMSXPropertyNames. The client can
+ set the properties on an IMessage instance without a direct cast to the providers
+ specific Message types.
+
+ Properties accessed in this way are treated as NMS Message headers which are never
+ read-only therefore there is no exception thrown if the message itself is in the
+ read-only property mode.
+
+
+
+
+ This class provides a mechanism to intercept calls to a IPrimitiveMap
+ instance and perform validation, handle type conversion, or some other
+ function necessary to use the PrimitiveMap in a Message or other NMS
+ object.
+
+ Be default this class enforces the standard conversion policy for primitive
+ types in NMS shown in the table below:
+
+ | | boolean byte short char int long float double String byte[]
+ |----------------------------------------------------------------------
+ |boolean | X X
+ |byte | X X X X X
+ |short | X X X X
+ |char | X X
+ |int | X X X
+ |long | X X
+ |float | X X X
+ |double | X X
+ |String | X X X X X X X X
+ |byte[] | X
+ |----------------------------------------------------------------------
+
+
+
+
+
+ Represents a Map of primitive types where the keys are all string instances
+ and the values are strings or numbers.
+
+
+
+
+ Initializes a new instance of the MessageFormatException class with serialized data.
+ Throws System.ArgumentNullException if the info parameter is null.
+ Throws System.Runtime.Serialization.SerializationException if the class name is null or System.Exception.HResult is zero (0).
+
+ The SerializationInfo that holds the serialized object data about the exception being thrown.
+ The StreamingContext that contains contextual information about the source or destination.
+
+
+
+ Initializes a new instance of the InvalidClientIDException class with serialized data.
+ Throws System.ArgumentNullException if the info parameter is null.
+ Throws System.Runtime.Serialization.SerializationException if the class name is null or System.Exception.HResult is zero (0).
+
+ The SerializationInfo that holds the serialized object data about the exception being thrown.
+ The StreamingContext that contains contextual information about the source or destination.
+
+
+
+ Initializes a new instance of the MessageEOFException class with serialized data.
+ Throws System.ArgumentNullException if the info parameter is null.
+ Throws System.Runtime.Serialization.SerializationException if the class name is null or System.Exception.HResult is zero (0).
+
+ The SerializationInfo that holds the serialized object data about the exception being thrown.
+ The StreamingContext that contains contextual information about the source or destination.
+
+
+
+ A client uses a QueueBrowser object to look at messages on a queue without removing them.
+
+ The Enumeration method returns a java.util.Enumeration that is used to scan the queue's
+ messages. It may be an enumeration of the entire content of a queue, or it may contain
+ only the messages matching a message selector.
+
+ Messages may be arriving and expiring while the scan is done. The NMS API does not
+ require the content of an enumeration to be a static snapshot of queue content. Whether
+ these changes are visible or not depends on the NMS provider.
+
+
+
+
+ Closes the QueueBrowser.
+
+
+ If NMS Provider fails to close the Browser for some reason.
+
+
+
+
+ Gets this queue browser's message selector expression. If no Message
+ selector was specified than this method returns null.
+
+
+ If NMS Provider fails to get the Message Selector for some reason.
+
+
+
+
+ Gets the queue associated with this queue browser.
+
+
+ If NMS Provider fails to retrieve the IQueue associated with the Browser
+ doe to some internal error.
+
+
+
+
+ A default implementation of IPrimitiveMap
+
+
+
+
+ Method ToString
+
+ A string
+
+
+
+ Unmarshalls the map from the given data or if the data is null just
+ return an empty map
+
+
+
+
+ Unmarshals a PrimitiveMap directly from a Stream object. This
+ allows for clients to read PrimitiveMaps from Compressed or other
+ wise encoded streams without this class needing to know about it.
+
+
+ A
+
+
+ A
+
+
+
+
+ Marshals a PrimitiveMap directly to a Stream object. This
+ allows a client to write a PrimitiveMap in a compressed or
+ otherwise encoded form without this class needing to know
+ about it.
+
+
+ A
+
+
+
+
+ Marshals the primitive type map to a byte array
+
+
+
+
+ Unmarshals the primitive type map from the given byte array
+
+
+
+
+ Represents a security failure.
+
+
+
+
+ Initializes a new instance of the NMSSecurityException class with serialized data.
+ Throws System.ArgumentNullException if the info parameter is null.
+ Throws System.Runtime.Serialization.SerializationException if the class name is null or System.Exception.HResult is zero (0).
+
+ The SerializationInfo that holds the serialized object data about the exception being thrown.
+ The StreamingContext that contains contextual information about the source or destination.
+
+
+
+ Initializes a new instance of the MessageNotReadableException class with serialized data.
+ Throws System.ArgumentNullException if the info parameter is null.
+ Throws System.Runtime.Serialization.SerializationException if the class name is null or System.Exception.HResult is zero (0).
+
+ The SerializationInfo that holds the serialized object data about the exception being thrown.
+ The StreamingContext that contains contextual information about the source or destination.
+
+
+
+ The INetTxConnection extends the functionality of the IConnection interface by
+ adding the createNetTxSession method (optional).
+
+ The INetTxConnection interface is optional. NMS providers are not required to support this
+ interface. This interface is for use by NMS providers to support transactional environments.
+
+
+
+
+ Represents a connection with a message broker
+
+
+
+
+ Creates a new session to work on this connection
+
+
+
+
+ Creates a new session to work on this connection
+
+
+
+
+ Closes the connection.
+
+
+
+
+ An asynchronous listener which can be notified if an error occurs
+
+
+
+
+ An asynchronous listener that is notified when a Fault tolerant connection
+ has been interrupted.
+
+
+
+
+ An asynchronous listener that is notified when a Fault tolerant connection
+ has been resumed.
+
+
+
+
+ A Delegate that is called each time a Message is dispatched to allow the client to do
+ any necessary transformations on the received message before it is delivered. The
+ Connection sets the provided delegate instance on each Session it creates which then
+ passes that along to the Consumers it creates.
+
+
+
+
+ A delegate that is called each time a Message is sent from this Producer which allows
+ the application to perform any needed transformations on the Message before it is sent.
+ The Connection sets the provided delegate instance on each Session it creates which then
+ passes that along to the Producer it creates.
+
+
+
+
+ The default timeout for network requests.
+
+
+
+
+ The default acknowledgement mode
+
+
+
+
+ Sets the unique clienet ID for this connection before Start() or returns the
+ unique client ID after the connection has started
+
+
+
+
+ Get/or set the redelivery policy for this connection.
+
+
+
+
+ Gets the Meta Data for the NMS Connection instance.
+
+
+
+
+ Creates a INetTxSession object.
+
+
+
+
+ A delegate that a client can register that will be called each time a Producer's send method is
+ called to allow the client to Transform a sent message from one type to another, StreamMessage to
+ TextMessage, ObjectMessage to TextMessage containing XML, etc. This allows a client to create a
+ producer that will automatically transform a message to a type that some receiving client is
+ capable of processing or adding additional information to a sent message such as additional message
+ headers, etc. For messages that do not need to be processed the client should return null from
+ this method, in this case the original message will be sent.
+
+
+
+
+ An object capable of sending messages to some destination
+
+
+
+
+ Sends the message to the default destination for this producer
+
+
+
+
+ Sends the message to the default destination with the explicit QoS configuration
+
+
+
+
+ Sends the message to the given destination
+
+
+
+
+ Sends the message to the given destination with the explicit QoS configuration
+
+
+
+
+ Close the producer.
+
+
+
+
+ Creates a new message with an empty body
+
+
+
+
+ Creates a new text message with an empty body
+
+
+
+
+ Creates a new text message with the given body
+
+
+
+
+ Creates a new Map message which contains primitive key and value pairs
+
+
+
+
+ Creates a new Object message containing the given .NET object as the body
+
+
+
+
+ Creates a new binary message
+
+
+
+
+ Creates a new binary message with the given body
+
+
+
+
+ Creates a new stream message
+
+
+
+
+ A delegate that is called each time a Message is sent from this Producer which allows
+ the application to perform any needed transformations on the Message before it is sent.
+
+
+
+
+ The mode used to acknowledge messages after they are consumed
+
+
+
+
+ With this acknowledgment mode, the session will not
+ acknowledge receipt of a message since the broker assumes
+ successful receipt of a message after the onMessage handler
+ has returned without error.
+
+
+
+
+ With this acknowledgment mode, the session automatically
+ acknowledges a client's receipt of a message either when
+ the session has successfully returned from a call to receive
+ or when the message listener the session has called to
+ process the message successfully returns. Acknowlegements
+ may be delayed in this mode to increase performance at
+ the cost of the message being redelivered this client fails.
+
+
+
+
+ With this acknowledgment mode, the client acknowledges a
+ consumed message by calling the message's acknowledge method.
+ This acknowledgement acknowledges the given message and all
+ unacknowedged messages that have preceeded it for the session
+ in which the message was delivered.
+
+
+
+
+ Messages will be consumed when the transaction commits.
+
+
+
+
+ With this acknowledgment mode, the client acknowledges a
+ consumed message by calling the message's acknowledge method.
+ This acknowledgement mode allows the client to acknowledge a
+ single message. This mode is not required to be supported by
+ all NMS providers, however the provider should throw an appropriate
+ exception to indicate that the mode is unsupported.
+
+
+
+
+ A delegate that can receive transport level exceptions.
+
+
+
+
+ A delegate that is used by Fault tolerant NMS Implementation to notify their
+ clients that the Connection is not currently active to due some error.
+
+
+
+
+ A delegate that is used by Fault tolerant NMS Implementation to notify their
+ clients that the Connection that was interrupted has now been restored.
+
+
+
+
+ Class to provide support for working with Xml objects.
+
+
+
+
+ From xml spec valid chars:
+ #x9 | #xA | #xD | [#x20-#xD7FF] | [#xE000-#xFFFD] | [#x10000-#x10FFFF]
+ any Unicode character, excluding the surrogate blocks, FFFE, and FFFF.
+
+
+
+
+ Static class constructor.
+
+
+
+
+ Serialize the object to XML format. The XML encoding will be UTF-8. A Byte Order Mark (BOM)
+ will NOT be placed at the beginning of the string.
+
+
+
+
+
+
+ This removes characters that are invalid for xml encoding
+
+ Text to be encoded.
+ Text with invalid xml characters removed.
+
+
+
+ Convert the acknowledgment mode string into AcknowledgementMode enum.
+
+
+ Equivalent enum value. If unknown string is encounted, it will default to AutoAcknowledge.
+
+
+
+ Convert an object into a text message. The object must be serializable to XML.
+
+
+
+
+ Convert an object into a text message. The object must be serializable to XML.
+
+
+
+
+ Convert a text message into an object. The object must be serializable from XML.
+
+
+
+
+ Serialize the object as XML into the Text body of the message.
+ Set the NMSType to the full name of the object type.
+
+
+
+
+
+
+
+ Deserialize the object from the text message. The object must be serializable from XML.
+
+
+
+
+
+
+ Get the runtime type for the class name. This routine will search all loaded
+ assemblies in the current App Domain to find the type.
+
+ Full name of the type.
+ Type object if found, or null if not found.
+
+
+
+ Represents a queue in a message broker. A message sent to a queue is delivered
+ to at most one consumer on the queue.
+
+
+
+
+ Class to provide support for Uri query parameters which uses .Net reflection
+ to identify and set properties.
+
+
+
+
+ Given a string that could be a Composite Uri that uses syntax not compatible
+ with the .NET Uri class such as an ActiveMQ failover Uri formatted as
+ "failover://(tcp://localhost:61616)", the initial '://' must be changed
+ to ':(' so that the Uri class doesn't attempt to parse the '(tcp:' as
+ the Uri's Authority as that is not a valid host name.
+
+
+ A string that could be a Composite Uri that uses syntax not compatible
+ with the .NET Uri class
+
+
+
+
+ Parse a Uri query string of the form ?x=y&z=0
+ into a map of name/value pairs.
+
+ The query string to parse. This string should not contain
+ Uri escape characters.
+
+
+
+ Sets the public properties of a target object using a string map.
+ This method uses .Net reflection to identify public properties of
+ the target object matching the keys from the passed map.
+
+ The object whose properties will be set.
+ Map of key/value pairs.
+
+
+
+ Sets the public properties of a target object using a string map.
+ This method uses .Net reflection to identify public properties of
+ the target object matching the keys from the passed map.
+
+ The object whose properties will be set.
+ Map of key/value pairs.
+ Key value prefix. This is prepended to the property name
+ before searching for a matching key value.
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Represents a temporary queue which exists for the duration
+ of the IConnection which created it.
+
+
+
+
+ Deletes this Temporary Destination, If there are existing receivers
+ still using it, a NMSException will be thrown.
+
+
+ If NMS Provider fails to Delete the Temp Destination or the client does
+ not support this operation.
+
+
+
+
+ Initializes a new instance of the TransactionRolledBackException class with serialized data.
+ Throws System.ArgumentNullException if the info parameter is null.
+ Throws System.Runtime.Serialization.SerializationException if the class name is null or System.Exception.HResult is zero (0).
+
+ The SerializationInfo that holds the serialized object data about the exception being thrown.
+ The StreamingContext that contains contextual information about the source or destination.
+
+
+
+ Initializes a new instance of the TransactionInProgressException class with serialized data.
+ Throws System.ArgumentNullException if the info parameter is null.
+ Throws System.Runtime.Serialization.SerializationException if the class name is null or System.Exception.HResult is zero (0).
+
+ The SerializationInfo that holds the serialized object data about the exception being thrown.
+ The StreamingContext that contains contextual information about the source or destination.
+
+
+
+ Provider implementation mapping class.
+
+
+
+
+ Implementation of a factory for instances.
+
+
+
+
+ Static class constructor
+
+
+
+
+ The ConnectionFactory object must define a constructor that takes as a minimum a Uri object.
+ Any additional parameters are optional, but will typically include a Client ID string.
+
+ The URI for the ActiveMQ provider.
+ Optional parameters to use when creating the ConnectionFactory.
+
+
+
+ The ConnectionFactory object must define a constructor that takes as a minimum a Uri object.
+ Any additional parameters are optional, but will typically include a Client ID string.
+
+ The URI for the ActiveMQ provider.
+ Optional parameters to use when creating the ConnectionFactory.
+
+
+
+ Create a connection factory that can create connections for the given scheme in the URI.
+
+ The URI for the ActiveMQ provider.
+ Optional parameters to use when creating the ConnectionFactory.
+ A implementation that will be used.
+
+
+
+ Finds the associated with the given scheme.
+
+ The scheme (e.g. tcp, activemq or stomp).
+ The of the ConnectionFactory that will be used
+ to create the connection for the specified .
+
+
+
+ Lookup the connection factory assembly filename and class name.
+ Read an external configuration file that maps scheme to provider implementation.
+ Load XML config files named: nmsprovider-{scheme}.config
+ Following is a sample configuration file named nmsprovider-jms.config. Replace
+ the parenthesis with angle brackets for proper XML formatting.
+
+ (?xml version="1.0" encoding="utf-8" ?)
+ (configuration)
+ (provider assembly="MyCompany.NMS.JMSProvider.dll" classFactory="MyCompany.NMS.JMSProvider.ConnectionFactory"/)
+ (/configuration)
+
+ This configuration file would be loaded and parsed when a connection uri with a scheme of 'jms'
+ is used for the provider. In this example the connection string might look like:
+ jms://localhost:7222
+
+
+ Folder paths to look in.
+ The scheme.
+ Name of the assembly file.
+ Name of the factory class.
+ true if the configuration file for the specified could
+ be found; otherwise, false.
+
+
+
+ Get an array of search paths to look for config files.
+
+
+ A collection of search paths, including the current directory, the current AppDomain's
+ BaseDirectory and the current AppDomain's RelativeSearchPath.
+
+
+
+
+ Converts a params object[] collection into a plain object[]s, to pass to the constructor.
+
+ The first parameter in the collection.
+ The remaining parameters.
+ An array of instances.
+
+
+
+ Creates a new connection.
+
+ An created by the requested ConnectionFactory.
+
+
+
+ Creates a new connection with the given and credentials.
+
+ The username to use when establishing the connection.
+ The password to use when establishing the connection.
+ An created by the requested ConnectionFactory.
+
+
+
+ Get/or set the broker Uri.
+
+
+
+
+ The actual IConnectionFactory implementation that is being used. This implementation
+ depends on the scheme of the URI used when constructed.
+
+
+
+
+ Get/or Set the IRedeliveryPolicy instance using the IConnectionFactory implementation
+ that is being used.
+
+
+
+
+ Get/or Set the ConsumerTransformerDelegate using the IConnectionFactory implementation
+ that is currently being used.
+
+
+
+
+ Get/or Set the ProducerTransformerDelegate using the IConnectionFactory implementation
+ that is currently being used.
+
+
+
+
+ The ITrace interface is used internally by ActiveMQ to log messages.
+ The client aplication may provide an implementation of ITrace if it wishes to
+ route messages to a specific destination.
+
+
+
+ Use the class to register an instance of ITrace as the
+ active trace destination.
+
+
+
+
+
+ Provides information describing the NMS IConnection instance.
+
+
+
+
+ Get the Major version number of the NMS API this Provider supports.
+
+
+
+
+ Get the Minor version number of the NMS API this Provider supports.
+
+
+
+
+ Get the name of this NMS Provider.
+
+
+
+
+ Gets a formatted string detailing the NMS API version this Provider supports.
+
+
+
+
+ Gets a String array of all the NMSX property names this NMS Provider supports.
+
+
+
+
+ Gets the Providers Major version number.
+
+
+
+
+ Gets the Providers Minor version number.
+
+
+
+
+ Gets a formatted string detailing the version of this NMS Provider.
+
+
+
+
+ Class to provide support for working with Session objects.
+
+
+
+
+ Get the destination by parsing the embedded type prefix. Default is Queue if no prefix is
+ embedded in the destinationName.
+
+ Session object to use to get the destination.
+ Name of destination with embedded prefix. The embedded prefix can be one of the following:
+
+ queue://
+ topic://
+ temp-queue://
+ temp-topic://
+
+
+
+
+
+
+ Get the destination by parsing the embedded type prefix.
+
+ Session object to use to get the destination.
+ Name of destination with embedded prefix. The embedded prefix can be one of the following:
+
+ queue://
+ topic://
+ temp-queue://
+ temp-topic://
+
+
+ Default type if no embedded prefix is specified.
+
+
+
+
+ Delete the named destination by parsing the embedded type prefix. Default is Queue if no prefix is
+ embedded in the destinationName.
+
+ Session object to use to get the destination.
+ Name of destination with embedded prefix. The embedded prefix can be one of the following:
+
+ queue://
+ topic://
+ temp-queue://
+ temp-topic://
+
+
+
+
+
+
+ Delete the named destination by parsing the embedded type prefix.
+
+ Session object to use to get the destination.
+ Name of destination with embedded prefix. The embedded prefix can be one of the following:
+
+ queue://
+ topic://
+ temp-queue://
+ temp-topic://
+
+
+ Default type if no embedded prefix is specified.
+
+
+
+
+ Base Utility class for conversion between IMessage type objects for different
+ NMS providers.
+
+
+
+
+ Copies the standard NMS and user defined properties from the givem
+ message to the specified message, the class version transforms the
+ Destination instead of just doing a straight copy.
+
+
+
+
+ Copies the standard NMS and user defined properties from the givem
+ message to the specified message, this method makes no attempt to convert
+ the values in the Message to native provider implementations.
+
+
+
+
+ Define an enumerated array of message priorities.
+
+
+
+
+ Define an enumerated array of message delivery modes. Provider-specific
+ values can be used to extend this enumerated mode. TIBCO is known to
+ provide a third value of ReliableDelivery. At minimum, a provider must
+ support Persistent and NonPersistent.
+
+
+
+
+ Defines a number of constants
+
+
+
+
+ Some application servers provide support for use in a .NET transactions (optional).
+
+ To include NMS API transactions in a MSDTC transaction, an application server requires a
+ .NET Transaction aware NMS provider that is capable of mapping the MSDTC transaction model
+ into operations that are supported by the application server. An NMS provider exposes its
+ .NET Transaction support using an INetTxConnectionFactory object, which an application
+ server uses to create INetTxConnection objects.
+
+ The INetTxConnectionFactory interface is optional. NMS providers are not required to support this
+ interface. This interface is for use by NMS providers to support transactional environments.
+
+
+
+
+ Creates a new connection
+
+
+
+
+ Creates a new connection with the given user name and password
+
+
+
+
diff --git a/lib/Net/4.0/Common.Logging.dll b/lib/Net/4.0/Common.Logging.dll
new file mode 100644
index 00000000..5c1feac9
Binary files /dev/null and b/lib/Net/4.0/Common.Logging.dll differ
diff --git a/lib/Net/4.0/Ionic.Zlib.dll b/lib/Net/4.0/Ionic.Zlib.dll
new file mode 100644
index 00000000..7c29e8cc
Binary files /dev/null and b/lib/Net/4.0/Ionic.Zlib.dll differ
diff --git a/lib/Net/4.0/NUnitAsp.dll b/lib/Net/4.0/NUnitAsp.dll
new file mode 100644
index 00000000..9f45eff8
Binary files /dev/null and b/lib/Net/4.0/NUnitAsp.dll differ
diff --git a/lib/Net/4.0/NUnitAspEx.dll b/lib/Net/4.0/NUnitAspEx.dll
new file mode 100644
index 00000000..030f906e
Binary files /dev/null and b/lib/Net/4.0/NUnitAspEx.dll differ
diff --git a/lib/Net/4.0/NUnitAspEx.xml b/lib/Net/4.0/NUnitAspEx.xml
new file mode 100644
index 00000000..41bacde7
--- /dev/null
+++ b/lib/Net/4.0/NUnitAspEx.xml
@@ -0,0 +1,139 @@
+
+
+
+ NUnitAspEx
+
+
+
+
+ Encapsulates a request from within a testsuite using the "asptest://" pseudo-protocol.
+
+
+
+
+ Encapsulates the ugly details of deriving from HttpWebRequest.
+
+
+ Since various frameworks like NUnitAsp rely on the output of WebRequest.Create() being of type HttpWebRequest
+ but HttpWebRequest is not customizable the easy way, this class shields further derived classes from the ugly reflection details.
+
+
+
+
+ Creates a new instance for the given uri.
+
+ the to create this request for.
+
+
+
+
+
+
+
+
+
+
+ Override this method in your derived class and call to set the response object.
+
+
+
+
+ Create the stream to be used for uploading content.
+
+
+
+
+
+ Encapsulates a response from an .
+
+
+
+
+ Encapsulates the ugly details of deriving from HttpWebResponse.
+
+
+
+
+ Summary description for HttpReflectionUtils.
+
+
+
+
+ Summary description for HttpWebClient.
+
+
+
+
+ An AspFixtureHost lives inside it's own AppDomain with an initialized HttpRuntime.
+
+
+
+
+ Summary description for IAspFixtureHost.
+
+
+
+
+ Creates a new Host instance within a new AppDomain based on the passed in Properties.
+
+
+ You must not call this method from within an existing Host's AppDomain.
+
+
+
+
+ Unload the passed Host's AppDomain.
+
+
+
+
+ Return null to avoid timing out of remoting references
+
+
+
+
+
+ Initializes the newly created host instance.
+
+
+
+
+ Use this property to gain access to the Host from within the Host's AppDomain
+
+
+ This property is set only within the Host's AppDomain.
+ Outside the AppDomain it will always return null.
+
+
+
+
+ Use to synchronize access to this host instance
+
+
+
+
+ Returns a reference to the AppDomain, that created this Host instance
+
+
+
+
+ Returns the physical assembly reference location this AppDomain has been created from.
+
+
+
+
+ Summary description for AspTestClient.
+
+
+
+
+ Summary description for AspTestContext.
+
+
+
+
+ Summary description for AspTestExecutionModule.
+
+
+
+
diff --git a/lib/Net/4.0/NVelocity.dll b/lib/Net/4.0/NVelocity.dll
new file mode 100644
index 00000000..9b44dfeb
Binary files /dev/null and b/lib/Net/4.0/NVelocity.dll differ
diff --git a/lib/Net/4.0/Rhino.Mocks.dll b/lib/Net/4.0/Rhino.Mocks.dll
new file mode 100644
index 00000000..3fc4b2ae
Binary files /dev/null and b/lib/Net/4.0/Rhino.Mocks.dll differ
diff --git a/lib/Net/4.0/Rhino.Mocks.xml b/lib/Net/4.0/Rhino.Mocks.xml
new file mode 100644
index 00000000..b1f76384
--- /dev/null
+++ b/lib/Net/4.0/Rhino.Mocks.xml
@@ -0,0 +1,5624 @@
+
+
+
+ Rhino.Mocks
+
+
+
+
+ Defines constraints and return values for arguments of a mock.
+ Only use Arg inside a method call on a mock that is recording.
+ Example:
+ ExpectCall(
+ mock.foo(
+ Arg<int>.Is.GreaterThan(2),
+ Arg<string>.Is.Anything
+ ));
+ Use Arg.Text for string specific constraints
+ Use Arg<ListClass>.List for list specific constraints
+
+
+
+
+
+ Register the predicate as a constraint for the current call.
+
+ The predicate.
+ default(T)
+
+ Allow you to use code to create constraints
+
+ demo.AssertWasCalled(x => x.Bar(Arg{string}.Matches(a => a.StartsWith("b") && a.Contains("ba"))));
+
+
+
+
+
+ Define a complex constraint for this argument by passing several constraints
+ combined with operators. (Use Is in simple cases.)
+ Example: Arg<string>.Matches(Is.Equal("Hello") || Text.EndsWith("u"));
+
+ Constraints using Is, Text and List
+ Dummy to satisfy the compiler
+
+
+
+ Define a Ref argument.
+
+ Constraints for this argument
+ value returned by the mock
+
+
+
+
+ Define a out parameter. Use it together with the keyword out and use the
+ Dummy field available by the return value.
+ Example: mock.foo( out Arg<string>.Out("hello").Dummy );
+
+
+
+
+
+
+ Define a simple constraint for this argument. (Use Matches in simple cases.)
+ Example:
+ Arg<int>.Is.Anthing
+ Arg<string>.Is.Equal("hello")
+
+
+
+
+ Define Constraints on list arguments.
+
+
+
+
+ Use the Arg class (without generic) to define Text constraints
+
+
+
+
+ Evaluate an equal constraint for .
+
+ The object the parameter should equal to
+
+
+
+ Define constraints on text arguments.
+
+
+
+
+ Used to manage the static state of the Arg<T> class"/>
+
+
+
+
+ Resets the static state
+
+
+
+
+ Returns return values for the out and ref parameters
+ Note: the array returned has the size of the number of out and ref
+ argument definitions
+
+
+
+
+
+ Returns the constraints for all arguments.
+ Out arguments have an Is.Anything constraint and are also in the list.
+
+
+
+
+
+ What should BackToRecord clear
+
+
+
+
+ Retain all expectations and behaviors and return to mock
+
+
+
+
+ All expectations
+
+
+
+
+ Event subscribers for this instance
+
+
+
+
+ Methods that should be forwarded to the base class implementation
+
+
+
+
+ Properties that should behave like properties
+
+
+
+
+ Remove all the behavior of the object
+
+
+
+
+ Interface for constraints
+
+
+
+
+ Determines if the object pass the constraints
+
+
+
+
+ And operator for constraints
+
+
+
+
+ Not operator for constraints
+
+
+
+
+ Or operator for constraints
+
+
+
+
+ Allow overriding of || or &&
+
+
+
+
+
+
+ Allow overriding of || or &&
+
+
+
+
+
+
+ Gets the message for this constraint
+
+
+
+
+
+ Constrain that the public field has a specified value
+
+
+
+
+ Constrain that the public field matches another constraint.
+
+
+
+
+ Creates a new instance.
+
+ Name of the public field.
+ Constraint to place on the public field value.
+
+
+
+ Creates a new instance, specifying a disambiguating
+ for the public field.
+
+ The type that declares the public field, used to disambiguate between public fields.
+ Name of the public field.
+ Constraint to place on the public field value.
+
+
+
+ Determines if the object passes the constraint.
+
+
+
+
+ Gets the message for this constraint
+
+
+
+
+
+ Creates a new instance.
+
+ Name of the public field.
+ Expected value.
+
+
+
+ Creates a new instance, specifying a disambiguating
+ for the public field.
+
+ The type that declares the public field, used to disambiguate between public fields.
+ Name of the public field.
+ Expected value.
+
+
+
+ Constrain that the property has a specified value
+
+
+
+
+ Constrain that the property matches another constraint.
+
+
+
+
+ Creates a new instance.
+
+ Name of the property.
+ Constraint to place on the property value.
+
+
+
+ Creates a new instance, specifying a disambiguating
+ for the property.
+
+ The type that declares the property, used to disambiguate between properties.
+ Name of the property.
+ Constraint to place on the property value.
+
+
+
+ Determines if the object passes the constraint.
+
+
+
+
+ Gets the message for this constraint
+
+
+
+
+
+ Creates a new instance.
+
+ Name of the property.
+ Expected value.
+
+
+
+ Creates a new instance, specifying a disambiguating
+ for the property.
+
+ The type that declares the property, used to disambiguate between properties.
+ Name of the property.
+ Expected value.
+
+
+
+ Constrain that the parameter must be of the specified type
+
+
+
+
+ Creates a new instance.
+
+ Type.
+
+
+
+ Determines if the object pass the constraints
+
+
+
+
+ Gets the message for this constraint
+
+
+
+
+
+ Constraint that determines whether an object is the same object as another.
+
+
+
+
+ Creates a new instance.
+
+ Obj.
+
+
+
+ Determines if the object passes the constraints.
+
+
+
+
+ Gets the message for this constraint.
+
+
+
+
+ Evaluate a parameter using constraints
+
+
+
+
+ Create new instance
+
+
+
+
+
+ Determines if the object pass the constraints
+
+
+
+
+ Gets the message for this constraint
+
+
+
+
+
+ A constraint based on lambda expression, we are using Expression{T}
+ because we want to be able to get good error reporting on that.
+
+
+
+
+ Initializes a new instance of the class.
+
+ The expr.
+
+
+
+ Determines if the object pass the constraints
+
+
+
+
+
+
+ Gets the message for this constraint
+
+
+
+
+
+ Constrain that the list contains the same items as the parameter list
+
+
+
+
+ Creates a new instance.
+
+ In list.
+
+
+
+ Determines if the object pass the constraints
+
+
+
+
+ Gets the message for this constraint
+
+
+
+
+
+ Constrain that the parameter is one of the items in the list
+
+
+
+
+ Creates a new instance.
+
+ In list.
+
+
+
+ Determines if the object pass the constraints
+
+
+
+
+ Gets the message for this constraint
+
+
+
+
+
+ Constrain that the object is inside the parameter list
+
+
+
+
+ Creates a new instance.
+
+ In list.
+
+
+
+ Determines if the object pass the constraints
+
+
+
+
+ Gets the message for this constraint
+
+
+
+
+
+ Applies another AbstractConstraint to the collection count.
+
+
+
+
+ Creates a new instance.
+
+ The constraint that should be applied to the collection count.
+
+
+
+ Determines if the parameter conforms to this constraint.
+
+
+
+
+ Gets the message for this constraint.
+
+
+
+
+ Applies another AbstractConstraint to a specific list element.
+
+
+
+
+ Creates a new instance.
+
+ The zero-based index of the list element.
+ The constraint that should be applied to the list element.
+
+
+
+ Determines if the parameter conforms to this constraint.
+
+
+
+
+ Gets the message for this constraint
+
+
+
+
+
+ Applies another AbstractConstraint to a specific generic keyed list element.
+
+
+
+
+ Creates a new instance.
+
+ The key of the list element.
+ The constraint that should be applied to the list element.
+
+
+
+ Determines if the parameter conforms to this constraint.
+
+
+
+
+ Gets the message for this constraint
+
+
+
+
+
+ Constrains that all elements are in the parameter list
+
+
+
+
+ Initializes a new instance of the class.
+
+ The these.
+
+
+
+ Determines if the object pass the constraints
+
+
+
+
+
+
+ Gets the message for this constraint
+
+
+
+
+
+ Combines two constraints, constraint pass if either is fine.
+
+
+
+
+ Creates a new instance.
+
+ C1.
+ C2.
+
+
+
+ Determines if the object pass the constraints
+
+
+
+
+ Gets the message for this constraint
+
+
+
+
+
+ Negate a constraint
+
+
+
+
+ Creates a new instance.
+
+ C1.
+
+
+
+ Determines if the object pass the constraints
+
+
+
+
+ Gets the message for this constraint
+
+
+
+
+
+ Combines two constraints
+
+
+
+
+
+ Creates a new instance.
+
+ C1.
+ C2.
+
+
+
+ Determines if the object pass the constraints
+
+
+
+
+ Gets the message for this constraint
+
+
+
+
+
+ Constrain the argument to validate according to regex pattern
+
+
+
+
+ Creates a new instance.
+
+ Pattern.
+
+
+
+ Determines if the object pass the constraints
+
+
+
+
+ Gets the message for this constraint
+
+
+
+
+
+ Constraint that evaluate whatever an argument contains the specified string.
+
+
+
+
+ Creates a new instance.
+
+ Inner string.
+
+
+
+ Determines if the object pass the constraints
+
+
+
+
+ Gets the message for this constraint
+
+
+
+
+
+ Constraint that evaluate whatever an argument ends with the specified string
+
+
+
+
+ Creates a new instance.
+
+ End.
+
+
+
+ Determines if the object pass the constraints
+
+
+
+
+ Gets the message for this constraint
+
+
+
+
+
+ Constraint that evaluate whatever an argument start with the specified string
+
+
+
+
+ Creates a new instance.
+
+ Start.
+
+
+
+ Determines if the object pass the constraints
+
+
+
+
+ Gets the message for this constraint
+
+
+
+
+
+ Constraint that evaluate whatever an object equals another
+
+
+
+
+ Creates a new instance.
+
+ Obj.
+
+
+
+ Determines if the object pass the constraints
+
+
+
+
+ Gets the message for this constraint
+
+
+
+
+
+ Constraint that always returns true
+
+
+
+
+ Determines if the object pass the constraints
+
+
+
+
+ Gets the message for this constraint
+
+
+
+
+
+ Constraint that evaluate whatever a comparable is greater than another
+
+
+
+
+ Creates a new instance.
+
+
+
+
+ Determines if the object pass the constraints
+
+
+
+
+ Gets the message for this constraint
+
+
+
+
+
+ Initializes a new constraint object.
+
+ The expected object, The actual object is passed in as a parameter to the method
+
+
+
+ Evaluate this constraint.
+
+ The actual object that was passed in the method call to the mock.
+ True when the constraint is met, else false.
+
+
+
+ Checks if the properties of the object
+ are the same as the properies of the object.
+
+ The expected object
+ The actual object
+ True when both objects have the same values, else False.
+
+
+
+
+
+
+
+
+ This is the real heart of the beast.
+
+
+
+ Used by CheckReferenceType to check all properties of the reference type.
+
+ The expected object
+ The actual object
+ True when both objects have the same values, else False.
+
+
+
+ Used by CheckReferenceType to check all fields of the reference type.
+
+ The expected object
+ The actual object
+ True when both objects have the same values, else False.
+
+
+
+ Checks the items of both collections
+
+ The expected collection
+
+ True if both collections contain the same items in the same order.
+
+
+
+ Builds a propertyname from the Stack _properties like 'Order.Product.Price'
+ to be used in the error message.
+
+ A nested property name.
+
+
+
+ Rhino.Mocks uses this property to generate an error message.
+
+
+ A message telling the tester why the constraint failed.
+
+
+
+
+ Provides access to the constraintes defined in the class to be used in context
+ with the syntax.
+
+ The type of the argument
+
+
+
+ Evaluate a greater than constraint for .
+
+ The object the parameter should be greater than
+
+
+
+ Evaluate a less than constraint for .
+
+ The object the parameter should be less than
+
+
+
+ Evaluate a less than or equal constraint for .
+
+ The object the parameter should be less than or equal to
+
+
+
+ Evaluate a greater than or equal constraint for .
+
+ The object the parameter should be greater than or equal to
+
+
+
+ Evaluate an equal constraint for .
+
+ The object the parameter should equal to
+
+
+
+ Converts the object type to a better match if this is a primitive type.
+
+ The obj.
+
+
+
+
+ Converts the object type to match.
+
+
+ Because of implicit conversions and the way ArgConstraints this method is needed to check
+ object type and potentially change the object type for a better "match" so that obj1.Equals(obj2)
+ will return the proper "answer"
+
+ The obj.
+
+
+
+
+ Evaluate a not equal constraint for .
+
+ The object the parameter should not equal to
+
+
+
+ Evaluate a same as constraint.
+
+ The object the parameter should the same as.
+
+
+
+ Evaluate a not same as constraint.
+
+ The object the parameter should not be the same as.
+
+
+
+ Throws NotSupportedException. Don't use Equals to define constraints. Use Equal instead.
+
+
+
+
+
+
+ Serves as a hash function for a particular type.
+
+
+ A hash code for the current .
+
+
+
+
+ A constraints that accept anything
+
+
+
+
+
+ A constraint that accept only nulls
+
+
+
+
+
+ A constraint that accept only non null values
+
+
+
+
+
+ A constraint that accept only value of the specified type.
+ The check is performed on the type that has been defined
+ as the argument type.
+
+
+
+
+ Provides access to the constraints defined in the class to be used in context
+ with the syntax.
+
+
+
+
+ Determines whether the specified object is in the parameter.
+ The parameter must be IEnumerable.
+
+ Obj.
+
+
+
+
+ Determines whatever the parameter is in the collection.
+
+
+
+
+ Determines that the parameter collection is identical to the specified collection
+
+
+
+
+ Determines that the parameter collection has the specified number of elements.
+
+ The constraint that should be applied to the collection count.
+
+
+
+ Determines that an element of the parameter collections conforms to another AbstractConstraint.
+
+ The zero-based index of the list element.
+ The constraint which should be applied to the list element.
+
+
+
+ Determines that all elements of the specified collection are in the the parameter collection
+
+ The collection to compare against
+ The constraint which should be applied to the list parameter.
+
+
+
+ Throws NotSupportedException. Don't use Equals to define constraints. Use Equal instead.
+
+
+
+
+
+
+ Serves as a hash function for a particular type.
+
+
+ A hash code for the current .
+
+
+
+
+ Provides a dummy field to pass as out or ref argument.
+
+
+
+
+
+ Dummy field to satisfy the compiler. Used for out and ref arguments.
+
+
+
+
+ Central location for constraints for object's public fields
+
+
+
+
+ Constrains the parameter to have a public field with the specified value
+
+ Name of the public field.
+ Expected value.
+
+
+
+
+ Constrains the parameter to have a public field with the specified value.
+
+ The type that declares the public field, used to disambiguate between public fields.
+ Name of the public field.
+ Expected value.
+
+
+
+
+ Constrains the parameter to have a public field satisfying a specified constraint.
+
+ Name of the public field.
+ Constraint for the public field.
+
+
+
+ Constrains the parameter to have a public field satisfying a specified constraint.
+
+ The type that declares the public field, used to disambiguate between public fields.
+ Name of the public field.
+ Constraint for the public field.
+
+
+
+ Determines whether the parameter has the specified public field and that it is null.
+
+ Name of the public field.
+
+
+
+
+ Determines whether the parameter has the specified public field and that it is null.
+
+ The type that declares the public field, used to disambiguate between public fields.
+ Name of the public field.
+
+
+
+
+ Determines whether the parameter has the specified public field and that it is not null.
+
+ Name of the public field.
+
+
+
+
+ Determines whether the parameter has the specified public field and that it is not null.
+
+ The type that declares the public field, used to disambiguate between public fields.
+ Name of the public field.
+
+
+
+
+ Central location for constraints
+
+
+
+
+ Evaluate a greater than constraint for .
+
+ The object the parameter should be greater than
+
+
+
+ Evaluate a less than constraint for .
+
+ The object the parameter should be less than
+
+
+
+ Evaluate a less than or equal constraint for .
+
+ The object the parameter should be less than or equal to
+
+
+
+ Evaluate a greater than or equal constraint for .
+
+ The object the parameter should be greater than or equal to
+
+
+
+ Evaluate an equal constraint for .
+
+ The object the parameter should equal to
+
+
+
+ Evaluate a not equal constraint for .
+
+ The object the parameter should not equal to
+
+
+
+ Evaluate a same as constraint.
+
+ The object the parameter should the same as.
+
+
+
+ Evaluate a not same as constraint.
+
+ The object the parameter should not be the same as.
+
+
+
+ A constraints that accept anything
+
+
+
+
+
+ A constraint that accept only nulls
+
+
+
+
+
+ A constraint that accept only non null values
+
+
+
+
+
+ A constraint that accept only value of the specified type
+
+
+
+
+ A constraint that accept only value of the specified type
+
+
+
+
+ Evaluate a parameter using a predicate
+
+ The predicate to use
+
+
+
+ Central location for constraints about lists and collections
+
+
+
+
+ Determines whether the specified obj is in the parameter.
+ The parameter must be IEnumerable.
+
+ Obj.
+
+
+
+
+ Determines whatever the parameter is in the collection.
+
+
+
+
+ Determines that the parameter collection is identical to the specified collection
+
+
+
+
+ Determines that the parameter collection has the specified number of elements.
+
+ The constraint that should be applied to the collection count.
+
+
+
+ Determines that an element of the parameter collections conforms to another AbstractConstraint.
+
+ The zero-based index of the list element.
+ The constraint which should be applied to the list element.
+
+
+
+ Determines that an element of the parameter collections conforms to another AbstractConstraint.
+
+ The key of the element.
+ The constraint which should be applied to the element.
+
+
+
+ Determines that all elements of the specified collection are in the the parameter collection
+
+ The collection to compare against
+ The constraint which should be applied to the list parameter.
+
+
+
+ Central location for constraints for object's properties
+
+
+
+
+ Constrains the parameter to have property with the specified value
+
+ Name of the property.
+ Expected value.
+
+
+
+
+ Constrains the parameter to have property with the specified value.
+
+ The type that declares the property, used to disambiguate between properties.
+ Name of the property.
+ Expected value.
+
+
+
+
+ Constrains the parameter to have a property satisfying a specified constraint.
+
+ Name of the property.
+ Constraint for the property.
+
+
+
+ Constrains the parameter to have a property satisfying a specified constraint.
+
+ The type that declares the property, used to disambiguate between properties.
+ Name of the property.
+ Constraint for the property.
+
+
+
+ Determines whether the parameter has the specified property and that it is null.
+
+ Name of the property.
+
+
+
+
+ Determines whether the parameter has the specified property and that it is null.
+
+ The type that declares the property, used to disambiguate between properties.
+ Name of the property.
+
+
+
+
+ Determines whether the parameter has the specified property and that it is not null.
+
+ Name of the property.
+
+
+
+
+ Determines whether the parameter has the specified property and that it is not null.
+
+ The type that declares the property, used to disambiguate between properties.
+ Name of the property.
+
+
+
+
+ constraints the parameter to have the exact same property values as the expected object.
+
+ An object, of the same type as the parameter, whose properties are set with the expected values.
+ An instance of the constraint that will do the actual check.
+
+ The parameter's public property values and public field values will be matched against the expected object's
+ public property values and public field values. The first mismatch will be reported and no further matching is done.
+ The matching is recursive for any property or field that has properties or fields of it's own.
+ Collections are supported through IEnumerable, which means the constraint will check if the actual and expected
+ collection contain the same values in the same order, where the values contained by the collection can have properties
+ and fields of their own that will be checked as well because of the recursive nature of this constraint.
+
+
+
+
+ Central location for all text related constraints
+
+
+
+
+ Constrain the argument to starts with the specified string
+
+
+
+
+ Constrain the argument to end with the specified string
+
+
+
+
+ Constrain the argument to contain the specified string
+
+
+
+
+ Constrain the argument to validate according to regex pattern
+
+
+
+
+ Provides access to the constraintes defined in the class to be used in context
+ with the syntax.
+
+
+
+
+ Constrain the argument to starts with the specified string
+
+
+
+
+
+ Constrain the argument to end with the specified string
+
+
+
+
+ Constrain the argument to contain the specified string
+
+
+
+
+ Constrain the argument to validate according to regex pattern
+
+
+
+
+ Throws NotSupportedException. Don't use Equals to define constraints. Use Equal instead.
+
+
+
+
+
+
+ Serves as a hash function for a particular type.
+
+
+ A hash code for the current .
+
+
+
+
+ This class defines a lot of method signatures, which we will use
+ to allow compatability on net-2.0
+
+
+
+
+ dummy
+
+
+
+
+ dummy
+
+
+
+
+ dummy
+
+
+
+
+ dummy
+
+
+
+
+ dummy
+
+
+
+
+ dummy
+
+
+
+
+ dummy
+
+
+
+
+ dummy
+
+
+
+
+ dummy
+
+
+
+
+ dummy
+
+
+
+
+ dummy
+
+
+
+
+ dummy
+
+
+ dummy
+
+
+
+
+ dummy
+
+
+
+
+ dummy
+
+
+
+
+ dummy
+
+
+
+
+ dummy
+
+
+
+
+ dummy
+
+
+
+
+ dummy
+
+
+
+
+ dummy
+
+
+
+
+ dummy
+
+
+
+
+ dummy
+
+
+
+
+ Allows expectations to be set on methods that should never be called.
+ For methods with void return value, you need to use LastCall or
+ DoNotExpect.Call() with a delegate.
+
+
+
+
+ Sets LastCall.Repeat.Never() on /any/ proxy on /any/ repository on the current thread.
+ This method if not safe for multi threading scenarios.
+
+
+
+
+ Accepts a delegate that will execute inside the method which
+ LastCall.Repeat.Never() will be applied to.
+ It is expected to be used with anonymous delegates / lambda expressions and only one
+ method should be called.
+
+
+ IService mockSrv = mocks.CreateMock(typeof(IService)) as IService;
+ DoNotExpect.Call(delegate{ mockSrv.Stop(); });
+ ...
+
+
+
+
+ An expectaton violation was detected.
+
+
+
+
+ Creates a new instance.
+
+ Message.
+
+
+
+ Serialization constructor
+
+
+
+
+ Signals that an object was call on a mock repository which doesn't
+ belong to this mock repository or not a mock
+
+
+
+
+ Creates a new instance.
+
+ Message.
+
+
+
+ Serialization constructor
+
+
+
+
+ Allows to set expectation on methods that has return values.
+ For methods with void return value, you need to use LastCall
+
+
+
+
+ The method options for the last call on /any/ proxy on /any/ repository on the current thread.
+ This method if not safe for multi threading scenarios, use .
+
+
+
+
+ Accepts a delegate that will execute inside the method, and then return the resulting
+ instance.
+ It is expected to be used with anonymous delegates / lambda expressions and only one
+ method should be called.
+
+
+ IService mockSrv = mocks.CreateMock(typeof(IService)) as IService;
+ Expect.Call(delegate{ mockSrv.Start(); }).Throw(new NetworkException());
+ ...
+
+
+
+
+ Get the method options for the last method call on the mockInstance.
+
+
+
+
+ A delegate that can be used to get better syntax on Expect.Call(delegate { foo.DoSomething(); });
+
+
+
+
+ Abstract class that holds common information for
+ expectations.
+
+
+
+
+ Interface to validate that a method call is correct.
+
+
+
+
+ Validate the arguments for the method.
+ This method can be called numerous times, so be careful about side effects
+
+ The arguments with which the method was called
+
+
+
+ Add an actual method call to this expectation
+
+
+
+
+ Returns the return value or throw the exception and setup any output / ref parameters
+ that has been set.
+
+
+
+
+ Builds the verification failure message.
+
+
+
+
+
+ Gets the error message.
+
+
+
+
+
+ Range of expected calls
+
+
+
+
+ Number of call actually made for this method
+
+
+
+
+ If this expectation is still waiting for calls.
+
+
+
+
+ The return value for a method matching this expectation
+
+
+
+
+ Gets or sets the exception to throw on a method matching this expectation.
+
+
+
+
+ Gets a value indicating whether this instance's action is staisfied.
+ A staisfied instance means that there are no more requirements from
+ this method. A method with non void return value must register either
+ a return value or an exception to throw.
+
+
+
+
+ Gets the method this expectation is for.
+
+
+
+
+ Gets or sets what special condtions there are for this method
+ repeating.
+
+
+
+
+ Gets a value indicating whether this expectation was satisfied
+
+
+
+
+ Specify whatever this expectation has a return value set
+ You can't check ReturnValue for this because a valid return value include null.
+
+
+
+
+ An action to execute when the method is matched.
+
+
+
+
+ Set the out / ref parameters for the method call.
+ The indexing is zero based and ignores any non out/ref parameter.
+ It is possible not to pass all the parameters. This method can be called only once.
+
+
+
+
+ Documentation Message
+
+
+
+
+ Gets the invocation for this expectation
+
+ The invocation.
+
+
+
+ Occurs when the exceptation is match on a method call
+
+
+
+
+ Allow to set the return value in the future, if it was already set.
+
+
+
+
+ Number of actuall calls made that passed this expectation
+
+
+
+
+ Range of expected calls that should pass this expectation.
+
+
+
+
+ The return value for a method matching this expectation
+
+
+
+
+ The exception to throw on a method matching this expectation.
+
+
+
+
+ The method this expectation is for.
+
+
+
+
+ The return value for this method was set
+
+
+
+
+ Whether this method will repeat
+ unlimited number of times.
+
+
+
+
+ A delegate that will be run when the
+ expectation is matched.
+
+
+
+
+ The arguments that matched this expectation.
+
+
+
+
+ Documentation message
+
+
+
+
+ The method originalInvocation
+
+
+
+
+ Get the hash code
+
+
+
+
+ Add an actual actualMethodCall call to this expectation
+
+
+
+
+ Builds the verification failure message.
+
+
+
+
+
+ Returns the return value or throw the exception and setup output / ref parameters
+
+
+
+
+ Validate the arguments for the method on the child methods
+
+ The arguments with which the method was called
+
+
+
+ Creates a new instance.
+
+ The originalInvocation for this method, required because it contains the generic type infromation
+ Number of method calls for this expectations
+
+
+
+ Creates a new instance.
+
+ Expectation.
+
+
+
+ Validate the arguments for the method on the child methods
+
+ The arguments with which the method was called
+
+
+
+ Determines if this object equal to obj
+
+
+
+
+ The error message for these arguments
+
+
+
+
+ Asserts that the delegate has the same parameters as the expectation's method call
+
+
+
+
+ Setter for the outpur / ref parameters for this expecataion.
+ Can only be set once.
+
+
+
+
+ Specify whether this expectation has a return value set
+ You can't check ReturnValue for this because a valid return value include null.
+
+
+
+
+ Gets the method this expectation is for.
+
+
+
+
+ Gets the originalInvocation for this expectation
+
+ The originalInvocation.
+
+
+
+ Gets or sets what special condtions there are for this method
+
+
+
+
+ Range of expected calls
+
+
+
+
+ Number of call actually made for this method
+
+
+
+
+ If this expectation is still waiting for calls.
+
+
+
+
+ Gets a value indicating whether this expectation was satisfied
+
+
+
+
+ The return value for a method matching this expectation
+
+
+
+
+ An action to execute when the method is matched.
+
+
+
+
+ Gets or sets the exception to throw on a method matching this expectation.
+
+
+
+
+ Gets a value indicating whether this instance's action is staisfied.
+ A staisfied instance means that there are no more requirements from
+ this method. A method with non void return value must register either
+ a return value or an exception to throw or an action to execute.
+
+
+
+
+ Documentation message
+
+
+
+
+ Occurs when the exceptation is match on a method call
+
+
+
+
+ Allow to set the return value in the future, if it was already set.
+
+
+
+
+ Gets the error message.
+
+
+
+
+
+ Expectation that matches any arguments for the method.
+
+
+
+
+ Creates a new instance.
+
+ Invocation for this expectation
+ Number of method calls for this expectations
+
+
+
+ Creates a new instance.
+
+ Expectation.
+
+
+
+ Validate the arguments for the method.
+
+ The arguments with which the method was called
+
+
+
+ Determines if the object equal to expectation
+
+
+
+
+ Get the hash code
+
+
+
+
+ Gets the error message.
+
+
+
+
+
+ Summary description for ArgsEqualExpectation.
+
+
+
+
+ Creates a new instance.
+
+ Expected args.
+ The invocation for this expectation
+ Number of method calls for this expectations
+
+
+
+ Validate the arguments for the method.
+
+ The arguments with which the method was called
+
+
+
+ Determines if the object equal to expectation
+
+
+
+
+ Get the hash code
+
+
+
+
+ Gets the error message.
+
+
+
+
+
+ Get the expected args.
+
+
+
+
+ Call a specified callback to verify the expectation
+
+
+
+
+ Creates a new instance.
+
+ Expectation.
+ Callback.
+
+
+
+ Creates a new instance.
+
+ Invocation for this expectation
+ Callback.
+ Number of method calls for this expectations
+
+
+
+ Validate the arguments for the method on the child methods
+
+ The arguments with which the method was called
+
+
+
+ Determines if the object equal to expectation
+
+
+
+
+ Get the hash code
+
+
+
+
+ Gets the error message.
+
+
+
+
+
+ Expect the method's arguments to match the contraints
+
+
+
+
+ Creates a new instance.
+
+ Invocation for this expectation
+ Constraints.
+ Number of method calls for this expectations
+
+
+
+ Creates a new instance.
+
+ Expectation.
+ Constraints.
+
+
+
+ Validate the arguments for the method.
+
+ The arguments with which the method was called
+
+
+
+ Determines if the object equal to expectation
+
+
+
+
+ Get the hash code
+
+
+
+
+ Gets the error message.
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Summary for AndSpecification
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Summary description for FollowsEventNamingStandard
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Summary descritpion for NamedEventExistsOnDeclaringType
+
+
+
+
+
+
+
+
+ Doesn't log anything, just makes happy noises
+
+
+
+
+ Log expectations - allows to see what is going on inside Rhino Mocks
+
+
+
+
+ Logs the expectation as is was recorded
+
+ The invocation.
+ The expectation.
+
+
+
+ Logs the expectation as it was recorded
+
+ The invocation.
+ The expectation.
+
+
+
+ Logs the unexpected method call.
+
+ The invocation.
+ The message.
+
+
+
+ Logs the expectation as is was recorded
+
+ The invocation.
+ The expectation.
+
+
+
+ Logs the expectation as it was recorded
+
+ The invocation.
+ The expectation.
+
+
+
+ Logs the unexpected method call.
+
+ The invocation.
+ The message.
+
+
+
+ Operation on a remoting proxy
+
+
+ It is not possible to directly communicate to a real proxy via transparent proxy.
+ Transparent proxy impersonates a user type and only methods of that user type are callable.
+ The only methods that are guaranteed to exist on any transparent proxy are methods defined
+ in Object: namely ToString(), GetHashCode(), and Equals()).
+
+ These three methods are the only way to tell the real proxy to do something.
+ Equals() is the most suitable of all, since it accepts an arbitrary object parameter.
+ The RemotingProxy code is built so that if it is compared to an IRemotingProxyOperation,
+ transparentProxy.Equals(operation) will call operation.Process(realProxy).
+ This way we can retrieve a real proxy from transparent proxy and perform
+ arbitrary operation on it.
+
+
+
+
+ Generates remoting proxies and provides utility functions
+
+
+
+
+ Create the proxy using remoting
+
+
+
+
+ Check whether an object is a transparent proxy with a RemotingProxy behind it
+
+ Object to check
+ true if the object is a transparent proxy with a RemotingProxy instance behind it, false otherwise
+ We use Equals() method to communicate with the real proxy behind the object.
+ See IRemotingProxyOperation for more details
+
+
+
+ Retrieve a mocked object from a transparent proxy
+
+ Transparent proxy with a RemotingProxy instance behind it
+ Mocked object associated with the proxy
+ We use Equals() method to communicate with the real proxy behind the object.
+ See IRemotingProxyOperation for more details
+
+
+
+ Implementation of IInvocation based on remoting proxy
+
+ Some methods are marked NotSupported since they either don't make sense
+ for remoting proxies, or they are never called by Rhino Mocks
+
+
+
+ Rudimetry implementation that simply logs methods calls as text.
+
+
+
+
+ Initializes a new instance of the class.
+
+ The writer.
+
+
+
+ Logs the expectation as it was recorded
+
+ The invocation.
+ The expectation.
+
+
+
+ Logs the expectation as it was recorded
+
+ The invocation.
+ The expectation.
+
+
+
+ Logs the unexpected method call.
+
+ The invocation.
+ The message.
+
+
+
+ Behave like a stub, all properties and events acts normally, methods calls
+ return default values by default (but can use expectations to set them up), etc.
+
+
+
+
+ Records all the expectations for a mock
+
+
+
+
+ Different actions on this mock
+
+
+
+
+ Add a method call for this state' mock.
+
+ The invocation for this method
+ The method that was called
+ The arguments this method was called with
+
+
+
+ Verify that this mock expectations have passed.
+
+
+
+
+ Verify that we can move to replay state and move
+ to the reply state.
+
+
+
+
+ Gets a mock state that match the original mock state of the object.
+
+
+
+
+ Get the options for the last method call
+
+
+
+
+ Set the exception to throw when Verify is called.
+ This is used to report exception that may have happened but where caught in the code.
+ This way, they are reported anyway when Verify() is called.
+
+
+
+
+ This method is called to indicate that a property behavior call.
+ This is done so we generate good error message in the common case of people using
+ Stubbed properties with Return().
+
+
+
+
+ Gets the matching verify state for this state
+
+
+
+
+ Get the options for the last method call
+
+
+
+
+ Get the options for the last method call
+
+
+
+
+ Set the exception to throw when Verify is called.
+ This is used to report exception that may have happened but where caught in the code.
+ This way, they are reported anyway when Verify() is called.
+
+
+
+
+ This method is called to indicate that a property behavior call.
+ This is done so we generate good error message in the common case of people using
+ Stubbed properties with Return().
+
+
+
+
+ Creates a new instance.
+
+ Repository.
+ The proxy that generates the method calls
+
+
+
+ Add a method call for this state' mock.
+
+ The invocation for this method
+ The method that was called
+ The arguments this method was called with
+
+
+
+ Verify that we can move to replay state and move
+ to the reply state.
+
+
+
+
+ Verify that we can move to replay state and move
+ to the reply state.
+
+
+
+
+ Verify that this mock expectations have passed.
+
+
+
+
+ Gets a mock state that match the original mock state of the object.
+
+
+
+
+ Asserts the previous method is closed (had an expectation set on it so we can replay it correctly)
+
+
+
+
+ Get the default call count range expectation
+
+
+
+
+
+ Gets the last expectation.
+
+
+
+
+ Gets the total method calls count.
+
+
+
+
+ Get the options for the last method call
+
+
+
+
+ Gets the matching verify state for this state
+
+
+
+
+ Initializes a new instance of the class.
+
+ The proxy that generates the method calls
+ Repository.
+
+
+
+ We don't care much about expectations here, so we will remove the expectation if
+ it is not closed.
+
+
+
+
+ Verify that we can move to replay state and move
+ to the reply state.
+
+
+
+
+
+ Get the default call count range expectation
+
+
+
+
+
+ Validate expectations on recorded methods, but in general completely ignoring them.
+ Similar to except that it would return a
+ when BackToRecord is called.
+
+
+
+
+ Validate all expectations on a mock
+
+
+
+
+ The repository for this state
+
+
+
+
+ The proxy object for this state
+
+
+
+
+ Get the options for the last method call
+
+
+
+
+ Creates a new instance.
+
+ The previous state for this method
+
+
+
+ Add a method call for this state' mock.
+
+ The invocation for this method
+ The method that was called
+ The arguments this method was called with
+
+
+
+ Add a method call for this state' mock.
+ This allows derived method to cleanly get a the setupresult behavior while adding
+ their own.
+
+ The invocation for this method
+ The method that was called
+ The arguments this method was called with
+
+
+
+ Set the exception to throw when Verify is called.
+ This is used to report exception that may have happened but where caught in the code.
+ This way, they are reported anyway when Verify() is called.
+
+
+
+
+ not relevant
+
+
+
+
+ Verify that this mock expectations have passed.
+
+
+
+
+ Verify that we can move to replay state and move
+ to the reply state.
+
+
+
+
+ Gets a mock state that match the original mock state of the object.
+
+
+
+
+ Get the options for the last method call
+
+
+
+
+ Gets the matching verify state for this state
+
+
+
+
+ Initializes a new instance of the class.
+
+ The previous state for this method
+
+
+
+ Add a method call for this state' mock.
+
+ The invocation for this method
+ The method that was called
+ The arguments this method was called with
+
+
+
+ Gets a mock state that matches the original mock state of the object.
+
+
+
+
+ Write rhino mocks log info to the trace
+
+
+
+
+ Initializes a new instance of the class.
+
+
+
+
+ Initializes a new instance of the class.
+
+ if set to true [log recorded].
+ if set to true [log replayed].
+ if set to true [log unexpected].
+
+
+
+ Logs the expectation as is was recorded
+
+ The invocation.
+ The expectation.
+
+
+
+ Logs the expectation as it was recorded
+
+ The invocation.
+ The expectation.
+
+
+
+ Logs the unexpected method call.
+
+ The invocation.
+ The message.
+
+
+
+ Writes log information as stack traces about rhino mocks activity
+
+
+
+
+ Allows to redirect output to a different location.
+
+
+
+
+ Logs the expectation as is was recorded
+
+ The invocation.
+ The expectation.
+
+
+
+ Logs the expectation as it was recorded
+
+ The invocation.
+ The expectation.
+
+
+
+ Logs the unexpected method call.
+
+ The invocation.
+ The message.
+
+
+
+ Marker interface used to indicate that this is a partial mock.
+
+
+
+
+ Options for CallOriginalMethod
+
+
+
+
+ No expectation is created, the method will be called directly
+
+
+
+
+ Normal expectation is created, but when the method is later called, it will also call the original method
+
+
+
+
+ This is a data structure that is used by
+ to pass
+ the current method to the relevant delegate
+
+
+
+
+ Initializes a new instance of the class.
+
+ The invocation.
+
+
+
+ Gets the args for this method invocation
+
+
+
+
+ Get the method that was caused this invocation
+
+
+
+
+ Gets or sets the return value for this method invocation
+
+ The return value.
+
+
+
+ Adds optional new usage:
+ using(mockRepository.Record()) {
+ Expect.Call(mock.Method()).Return(retVal);
+ }
+ using(mockRepository.Playback()) {
+ // Execute code
+ }
+ N.B. mockRepository.ReplayAll() and mockRepository.VerifyAll()
+ calls are taken care of by Record/Playback
+
+
+ Creates proxied instances of types.
+
+
+
+ Generates a stub without needing a
+ Arguments for 's constructor
+ The of stub to create.
+ The stub
+
+
+
+ Generates a stub without needing a
+ The of stub.
+ Arguments for the 's constructor.
+ The stub
+
+
+
+ Generate a mock object without needing a
+ type of mock object to create.
+ Arguments for 's constructor
+ the mock object
+
+
+
+ Generate a multi-mock object without needing a
+ The typeof object to generate a mock for.
+ A second interface to generate a multi-mock for.
+ Arguments for 's constructor
+ the multi-mock object
+
+
+
+ Generate a multi-mock object without without needing a
+ The typeof object to generate a mock for.
+ An interface to generate a multi-mock for.
+ A second interface to generate a multi-mock for.
+ Arguments for 's constructor
+ the multi-mock object
+
+
+
+ Creates a multi-mock without without needing a
+ The type of mock to create, this can be a class
+ Any extra interfaces to add to the multi-mock, these can only be interfaces.
+ Arguments for 's constructor
+ the multi-mock object
+
+
+
+ Creates a strict mock without without needing a
+ Any arguments required for the 's constructor
+ The type of mock object to create.
+ The mock object with strict replay semantics
+
+
+
+ Creates a strict multi-mock without needing a
+ Any arguments required for the 's constructor
+ The type of mock object to create, this can be a class.
+ An interface to generate a multi-mock for, this must be an interface!
+ The multi-mock object with strict replay semantics
+
+
+
+ Creates a strict multi-mock without needing a
+ Any arguments required for the 's constructor
+ The type of mock object to create, this can be a class.
+ An interface to generate a multi-mock for, this must be an interface!
+ A second interface to generate a multi-mock for, this must be an interface!
+ The multi-mock object with strict replay semantics
+
+
+
+ Creates a strict multi-mock without needing a
+ The type of mock object to create, this can be a class
+ Any extra interfaces to generate a multi-mock for, these must be interaces!
+ Any arguments for the 's constructor
+ The strict multi-mock object
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Generate a mock object with dynamic replay semantics and remoting without needing the mock repository
+
+
+
+
+ Generate a mock object with strict replay semantics and remoting without needing the mock repository
+
+
+
+ Helper method to create a mock object without a repository instance and put the object back into replay mode.
+ The type of mock object to create
+ A delegate that uses a mock repository instance to create the underlying mock
+ The mock object in the replay mode.
+
+
+
+
+
+
+
+
+
+
+
+
+
+ This is a map of types to ProxyGenerators.
+
+
+
+
+ This is used to record the last repository that has a method called on it.
+
+
+
+
+ this is used to get to the last proxy on this repository.
+
+
+
+
+ For mock delegates, maps the proxy instance from intercepted invocations
+ back to the delegate that was originally returned to client code, if any.
+
+
+
+
+ All the proxies in the mock repositories
+
+
+
+
+ This is here because we can't put it in any of the recorders, since repeatable methods
+ have no orderring, and if we try to handle them using the usual manner, we would get into
+ wierd situations where repeatable method that was defined in an orderring block doesn't
+ exists until we enter this block.
+
+
+
+
+ Creates a new instance.
+
+
+
+
+ Move the repository to ordered mode
+
+
+
+
+ Move the repository to un-ordered mode
+
+
+
+
+ Creates a mock for the specified type.
+
+ Type.
+ Arguments for the class' constructor, if mocking a concrete class
+
+
+
+ Creates a strict mock for the specified type.
+
+ Type.
+ Arguments for the class' constructor, if mocking a concrete class
+
+
+
+ Creates a remoting mock for the specified type.
+
+ Type.
+ Arguments for the class' constructor, if mocking a concrete class
+
+
+
+ Creates a strict remoting mock for the specified type.
+
+ Type.
+ Arguments for the class' constructor, if mocking a concrete class
+
+
+
+ Creates a remoting mock for the specified type.
+
+
+ Arguments for the class' constructor, if mocking a concrete class
+
+
+
+
+ Creates a strict remoting mock for the specified type.
+
+
+ Arguments for the class' constructor, if mocking a concrete class
+
+
+
+
+ Creates a mock from several types, with strict semantics.
+ Only may be a class.
+
+
+
+
+ Creates a strict mock from several types, with strict semantics.
+ Only may be a class.
+
+
+
+
+ Creates a mock from several types, with strict semantics.
+ Only may be a class.
+
+ The main type to mock.
+ Extra interface types to mock.
+ Arguments for the class' constructor, if mocking a concrete class.
+
+
+
+ Creates a strict mock from several types, with strict semantics.
+ Only may be a class.
+
+ The main type to mock.
+ Extra interface types to mock.
+ Arguments for the class' constructor, if mocking a concrete class.
+
+
+
+ Creates a mock from several types, with dynamic semantics.
+ Only may be a class.
+
+ The main type to mock.
+ Extra interface types to mock.
+
+
+
+ Creates a mock from several types, with dynamic semantics.
+ Only may be a class.
+
+ The main type to mock.
+ Extra interface types to mock.
+ Arguments for the class' constructor, if mocking a concrete class.
+
+
+ Creates a dynamic mock for the specified type.
+ Type.
+ Arguments for the class' constructor, if mocking a concrete class
+
+
+ Creates a dynamic mock for the specified type.
+ Type.
+ Arguments for the class' constructor, if mocking a concrete class
+
+
+ Creates a dynamic mock for the specified type.
+
+ Arguments for the class' constructor, if mocking a concrete class
+
+
+
+ Creates a mock object that defaults to calling the class methods if no expectation is set on the method.
+ Type.
+ Arguments for the class' constructor.
+
+
+ Creates a mock object that defaults to calling the class methods.
+ Type.
+ Extra interface types to mock.
+
+
+ Creates a mock object that defaults to calling the class methods.
+ Type.
+ Extra interface types to mock.
+ Arguments for the class' constructor.
+
+
+ Creates a mock object using remoting proxies
+ Type to mock - must be MarshalByRefObject
+ Mock object
+ Proxy mock can mock non-virtual methods, but not static methods
+ Creates the mock state for this proxy
+
+
+
+ Cause the mock state to change to replay, any further call is compared to the
+ ones that were called in the record state.
+
+ This method *cannot* be called from inside an ordering.
+ the object to move to replay state
+
+
+
+ Cause the mock state to change to replay, any further call is compared to the
+ ones that were called in the record state.
+
+ the object to move to replay state
+
+
+
+ Move the mocked object back to record state.You can (and it's recommended) to run {Verify()} before you use this method.
+ Will delete all current expectations!
+
+
+
+ Move the mocked object back to record state.
+ Optionally, can delete all current expectations, but allows more granularity about how
+ it would behave with regard to the object state.
+
+
+
+
+ Verify that all the expectations for this object were fulfilled.
+
+ the object to verify the expectations for
+
+
+
+ Get the method options for the last call on
+ mockedInstance.
+
+ The mock object
+ Method options for the last call
+
+
+
+ Maps an invocation proxy back to the mock object instance that was originally
+ returned to client code which might have been a delegate to this proxy.
+
+ The mock object proxy from the intercepted invocation
+ The mock object
+
+
+ This is provided to allow advance extention functionality, where Rhino Mocks standard functionality is not enough.
+ The type to mock
+ Delegate that create the first state of the mocked object (usualy the record state).
+ Additional types to be implemented, this can be only interfaces
+ optional arguments for the constructor
+
+
+
+
+ Method: GetMockedObject
+ Get an IProxy from a mocked object instance, or throws if the
+ object is not a mock object.
+
+
+
+
+ Method: GetMockedObjectOrNull
+ Get an IProxy from a mocked object instance, or null if the
+ object is not a mock object.
+
+
+
+ Pops the recorder.
+
+
+ Pushes the recorder.
+ New recorder.
+
+
+
+ All the mock objects in this repository will be moved
+ to record state.
+
+
+
+
+ All the mock objects in this repository will be moved
+ to record state.
+
+
+
+
+ Replay all the mocks from this repository
+
+
+
+
+ Verify all the mocks from this repository
+
+
+
+
+ Gets the proxy generator for a specific type. Having a single ProxyGenerator
+ with multiple types linearly degrades the performance so this implementation
+ keeps one ProxyGenerator per type.
+
+
+
+ Set the exception to be thrown when verified is called.
+
+
+
+ Creates a mock for the spesified type with strict mocking semantics.
+ Strict semantics means that any call that wasn't explicitly recorded is considered an error and would cause an exception to be thrown.
+
+ Arguments for the class' constructor, if mocking a concrete class
+
+
+
+ Creates a mock for the spesified type with strict mocking semantics.
+ Strict semantics means that any call that wasn't explicitly recorded is considered an error and would cause an exception to be thrown.
+
+ Arguments for the class' constructor, if mocking a concrete class
+
+
+
+ Creates a dynamic mock for the specified type.
+
+ Arguments for the class' constructor, if mocking a concrete class
+
+
+
+ Creates a mock object from several types.
+
+
+
+
+ Creates a strict mock object from several types.
+
+
+
+
+ Create a mock object from several types with dynamic semantics.
+
+
+
+
+ Create a mock object from several types with partial semantics.
+
+
+
+
+ Create a mock object from several types with strict semantics.
+
+ Extra interface types to mock.
+ Arguments for the class' constructor, if mocking a concrete class
+
+
+
+ Create a strict mock object from several types with strict semantics.
+
+ Extra interface types to mock.
+ Arguments for the class' constructor, if mocking a concrete class
+
+
+
+ Create a mock object from several types with dynamic semantics.
+
+ Extra interface types to mock.
+ Arguments for the class' constructor, if mocking a concrete class
+
+
+
+ Create a mock object from several types with partial semantics.
+
+ Extra interface types to mock.
+ Arguments for the class' constructor, if mocking a concrete class
+
+
+
+ Create a mock object with from a class that defaults to calling the class methods
+
+ Arguments for the class' constructor, if mocking a concrete class
+
+
+
+ Create a stub object, one that has properties and events ready for use, and
+ can have methods called on it. It requires an explicit step in order to create
+ an expectation for a stub.
+
+ The arguments for constructor.
+
+
+
+ Create a stub object, one that has properties and events ready for use, and
+ can have methods called on it. It requires an explicit step in order to create
+ an expectation for a stub.
+
+ The type.
+ The arguments for constructor.
+ The stub
+
+
+
+ Returns true if the passed mock is currently in replay mode.
+
+ The mock to test.
+ True if the mock is in replay mode, false otherwise.
+
+
+
+ Determines whether the specified proxy is a stub.
+
+ The proxy.
+
+
+
+ Register a call on a prperty behavior
+
+
+
+
+
+ Gets the recorder.
+
+
+
+
+
+ Gets the replayer for this repository.
+
+
+
+
+
+ Gets the last proxy which had a method call.
+
+
+
+
+ Delegate: CreateMockState
+ This is used internally to cleanly handle the creation of different
+ RecordMockStates.
+
+
+
+
+ A set of extension methods that adds Arrange Act Assert mode to Rhino Mocks
+
+
+
+
+ Create an expectation on this mock for this action to occur
+
+
+ The mock.
+ The action.
+
+
+
+
+ Reset all expectations on this mock object
+
+
+ The mock.
+
+
+
+ Reset the selected expectation on this mock object
+
+
+ The mock.
+ The options to reset the expectations on this mock.
+
+
+
+ Cause the mock state to change to replay, any further call is compared to the
+ ones that were called in the record state.
+
+ the mocked object to move to replay state
+
+
+
+ Gets the mock repository for this specificied mock object
+
+
+ The mock.
+
+
+
+
+ Create an expectation on this mock for this action to occur
+
+
+
+ The mock.
+ The action.
+
+
+
+
+ Tell the mock object to perform a certain action when a matching
+ method is called.
+ Does not create an expectation for this method.
+
+
+ The mock.
+ The action.
+
+
+
+
+ Tell the mock object to perform a certain action when a matching
+ method is called.
+ Does not create an expectation for this method.
+
+
+
+ The mock.
+ The action.
+
+
+
+
+ Gets the arguments for calls made on this mock object and the method that was called
+ in the action.
+
+
+ The mock.
+ The action.
+
+
+ Here we will get all the arguments for all the calls made to DoSomething(int)
+
+ var argsForCalls = foo54.GetArgumentsForCallsMadeOn(x => x.DoSomething(0))
+
+
+
+
+
+ Gets the arguments for calls made on this mock object and the method that was called
+ in the action and matches the given constraints
+
+
+ The mock.
+ The action.
+ The setup constraints.
+
+
+ Here we will get all the arguments for all the calls made to DoSomething(int)
+
+ var argsForCalls = foo54.GetArgumentsForCallsMadeOn(x => x.DoSomething(0))
+
+
+
+
+
+ Asserts that a particular method was called on this mock object
+
+
+ The mock.
+ The action.
+
+
+
+ Asserts that a particular method was called on this mock object that match
+ a particular constraint set.
+
+
+ The mock.
+ The action.
+ The setup constraints.
+
+
+
+ Asserts that a particular method was called on this mock object that match
+ a particular constraint set.
+
+
+ The mock.
+ The action.
+
+
+
+ Asserts that a particular method was called on this mock object that match
+ a particular constraint set.
+
+
+ The mock.
+ The action.
+ The setup constraints.
+
+
+
+ Asserts that a particular method was NOT called on this mock object
+
+
+ The mock.
+ The action.
+
+
+
+ Asserts that a particular method was NOT called on this mock object that match
+ a particular constraint set.
+
+
+ The mock.
+ The action.
+ The setup constraints.
+
+
+
+ Asserts that a particular method was NOT called on this mock object
+
+
+ The mock.
+ The action.
+
+
+
+ Asserts that a particular method was NOT called on this mock object
+
+
+ The mock.
+ The action.
+ The setup constraints.
+
+
+
+ Finds the approprite implementation type of this item.
+ This is the class or an interface outside of the rhino mocks.
+
+ The mocked obj.
+
+
+
+
+ Verifies all expectations on this mock object
+
+ The mock object.
+
+
+
+ Gets the event raiser for the event that was called in the action passed
+
+ The type of the event source.
+ The mock object.
+ The event subscription.
+
+
+
+
+ Raise the specified event using the passed arguments.
+ The even is extracted from the passed labmda
+
+ The type of the event source.
+ The mock object.
+ The event subscription.
+ The sender.
+ The instance containing the event data.
+
+
+
+ Raise the specified event using the passed arguments.
+ The even is extracted from the passed labmda
+
+ The type of the event source.
+ The mock object.
+ The event subscription.
+ The args.
+
+
+ TODO: Make this better! It currently breaks down when mocking classes or
+ ABC's that call other virtual methods which are getting intercepted too. I wish
+ we could just walk Expression{Action{Action{T}} to assert only a single
+ method is being made.
+
+ The workaround is to not call foo.AssertWasCalled .. rather foo.VerifyAllExpectations()
+ The type of mock object
+ The mock repository
+ The actual mock object to assert expectations on.
+
+
+
+ Fake type that disallow creating it.
+ Should have been System.Type, but we can't use it.
+
+
+
+
+ Utility class for dealing with messing generics scenarios.
+
+
+
+
+ There are issues with trying to get this to work correctly with open generic types, since this is an edge case,
+ I am letting the runtime handle it.
+
+
+
+
+ Gets the real type, including de-constructing and constructing the type of generic
+ methods parameters.
+
+ The type.
+ The invocation.
+
+
+
+
+ Because we need to support complex types here (simple generics were handled above) we
+ need to be aware of the following scenarios:
+ List[T] and List[Foo[T]]
+
+
+
+
+ ExpectationsList
+
+
+
+
+ Dictionary
+
+
+
+
+ Dictionary class
+
+
+
+
+ Create a new instance of ProxyStateDictionary
+
+
+
+
+ Allows to call a method and immediately get it's options.
+
+
+
+
+ Interface to allow calling a method and immediately get it's options.
+
+
+
+
+ Get the method options for the call
+
+ The method call should go here, the return value is ignored
+
+
+
+ Creates a new instance.
+
+
+
+
+ Get the method options for the call
+
+ The method call should go here, the return value is ignored
+
+
+
+ Allows to call a method and immediately get it's options.
+ Set the expected number for the call to Any()
+
+
+
+
+ Creates a new instance.
+
+ Proxy.
+ Mocked instance.
+
+
+
+ Get the method options for the call
+
+ The method call should go here, the return value is ignored
+
+
+
+ This class is reponsible for taking a delegate and creating a wrapper
+ interface around it, so it can be mocked.
+
+
+
+
+ The scope for all the delegate interfaces create by this mock repository.
+
+
+
+
+ Gets a type with an "Invoke" method suitable for use as a target of the
+ specified delegate type.
+
+
+
+
+
+
+ Raise events for all subscribers for an event
+
+
+
+
+ Raise events for all subscribers for an event
+
+
+
+
+ Raise the event
+
+
+
+
+ The most common form for the event handler signature
+
+
+
+
+ Create an event raiser for the specified event on this instance.
+
+
+
+
+ Creates a new instance of EventRaiser
+
+
+
+
+ Raise the event
+
+
+
+
+ The most common signature for events
+ Here to allow intellisense to make better guesses about how
+ it should suggest parameters.
+
+
+
+
+ Allows to define what would happen when a method
+ is called.
+
+
+
+
+ Allows to define what would happen when a method
+ is called.
+
+
+
+
+ Set the return value for the method.
+
+ The object the method will return
+ IRepeat that defines how many times the method will return this value
+
+
+
+ Allow to override this return value in the future
+
+ IRepeat that defines how many times the method will return this value
+
+
+
+ Throws the specified exception when the method is called.
+
+ Exception to throw
+
+
+
+ Ignores the arguments for this method. Any argument will be matched
+ againt this method.
+
+
+
+
+ Add constraints for the method's arguments.
+
+
+
+
+ Set a callback method for the last call
+
+
+
+
+ Set a delegate to be called when the expectation is matched.
+ The delegate return value will be returned from the expectation.
+
+
+
+
+ Set a delegate to be called when the expectation is matched.
+ The delegate return value will be returned from the expectation.
+
+
+
+
+ Set a delegate to be called when the expectation is matched.
+ The delegate return value will be returned from the expectation.
+
+
+
+
+ Set a delegate to be called when the expectation is matched.
+ The delegate return value will be returned from the expectation.
+
+
+
+
+ Set a delegate to be called when the expectation is matched.
+ The delegate return value will be returned from the expectation.
+
+
+
+
+ Set a delegate to be called when the expectation is matched.
+ The delegate return value will be returned from the expectation.
+
+
+
+
+ Set a delegate to be called when the expectation is matched.
+ The delegate return value will be returned from the expectation.
+
+
+
+
+ Set a delegate to be called when the expectation is matched.
+ The delegate return value will be returned from the expectation.
+
+
+
+
+ Set a delegate to be called when the expectation is matched.
+ The delegate return value will be returned from the expectation.
+
+
+
+
+ Set a delegate to be called when the expectation is matched.
+ The delegate return value will be returned from the expectation.
+
+
+
+
+ Set a delegate to be called when the expectation is matched.
+ The delegate return value will be returned from the expectation.
+
+
+
+
+ Set a delegate to be called when the expectation is matched.
+ The delegate return value will be returned from the expectation.
+
+
+
+
+ Set a delegate to be called when the expectation is matched
+ and allow to optionally modify the invocation as needed
+
+
+
+
+ Call the original method on the class, bypassing the mocking layers.
+
+
+
+
+
+ Call the original method on the class, optionally bypassing the mocking layers.
+
+
+
+
+
+ Use the property as a simple property, getting/setting the values without
+ causing mock expectations.
+
+
+
+
+ Expect last (property) call as property setting, ignore the argument given
+
+
+
+
+
+ Expect last (property) call as property setting with a given argument.
+
+
+
+
+
+
+ Get an event raiser for the last subscribed event.
+
+
+
+
+ Set the parameter values for out and ref parameters.
+ This is done using zero based indexing, and _ignoring_ any non out/ref parameter.
+
+
+
+
+ Documentation message for the expectation
+
+ Message
+
+
+
+ Better syntax to define repeats.
+
+
+
+
+ Allows to specify the number of time for method calls
+
+
+
+
+ Repeat the method twice.
+
+
+
+
+ Repeat the method once.
+
+
+
+
+ Repeat the method at least once, then repeat as many time as it would like.
+
+
+
+
+ Repeat the method any number of times.
+ This has special affects in that this method would now ignore orderring.
+
+
+
+
+ Set the range to repeat an action.
+
+ Min.
+ Max.
+
+
+
+ Set the amount of times to repeat an action.
+
+
+
+
+ This method must not appear in the replay state.
+ This has special affects in that this method would now ignore orderring.
+
+
+
+
+ Creates a new instance.
+
+ the repository for this expectation
+ the recorder for this proxy
+ the proxy for this expectation
+ Expectation.
+
+
+
+ Add constraints for the method's arguments.
+
+
+
+
+ Set a callback method for the last call
+
+
+
+
+ Set a callback method for the last call
+
+
+
+
+ Set a callback method for the last call
+
+
+
+
+ Set a callback method for the last call
+
+
+
+
+ Set a callback method for the last call
+
+
+
+
+ Set a callback method for the last call
+
+
+
+
+ Set a callback method for the last call
+
+
+
+
+ Set a callback method for the last call
+
+
+
+
+ Set a callback method for the last call
+
+
+
+
+ Set a callback method for the last call
+
+
+
+
+ Set a callback method for the last call
+
+
+
+
+ Set a callback method for the last call
+
+
+
+
+ Set a delegate to be called when the expectation is matched.
+ The delegate return value will be returned from the expectation.
+
+
+
+
+ Set a delegate to be called when the expectation is matched.
+ The delegate return value will be returned from the expectation.
+
+
+
+
+ Set the return value for the method.
+
+ The object the method will return
+ IRepeat that defines how many times the method will return this value
+
+
+
+ Set the return value for the method, but allow to override this return value in the future
+
+ IRepeat that defines how many times the method will return this value
+
+
+
+ Throws the specified exception when the method is called.
+
+ Exception to throw
+
+
+
+ Ignores the arguments for this method. Any argument will be matched
+ againt this method.
+
+
+
+
+ Call the original method on the class, bypassing the mocking layers.
+
+
+
+
+
+ Call the original method on the class, optionally bypassing the mocking layers
+
+
+
+
+
+ Use the property as a simple property, getting/setting the values without
+ causing mock expectations.
+
+
+
+
+ Expect last (property) call as property setting, ignore the argument given
+
+
+
+
+
+ Expect last (property) call as property setting with a given argument.
+
+
+
+
+
+
+ Gets the event raiser for the last event
+
+
+
+
+ Set the parameter values for out and ref parameters.
+ This is done using zero based indexing, and _ignoring_ any non out/ref parameter.
+
+
+
+
+ Repeat the method twice.
+
+
+
+
+ Repeat the method once.
+
+
+
+
+ Repeat the method at least once, then repeat as many time as it would like.
+
+
+
+
+ This method must not appear in the replay state.
+
+
+
+
+ Documentation message for the expectation
+
+ Message
+
+
+
+ Repeat the method any number of times.
+
+
+
+
+ Set the range to repeat an action.
+
+ Min.
+ Max.
+
+
+
+ Set the amount of times to repeat an action.
+
+
+
+
+ Better syntax to define repeats.
+
+
+
+
+ This class will provide hash code for hashtables without needing
+ to call the GetHashCode() on the object, which may very well be mocked.
+ This class has no state so it is a singelton to avoid creating a lot of objects
+ that does the exact same thing. See flyweight patterns.
+
+
+
+
+ Get the hash code for a proxy object without calling GetHashCode()
+ on the object.
+
+
+
+
+ Compares two instances of mocked objects
+
+
+
+
+ Compare two mocked objects
+
+
+
+
+ The next hash code value for a mock object.
+ This is safe for multi threading.
+
+
+
+
+ The sole instance of
+
+
+
+
+ This is a dummy type that is used merely to give DynamicProxy the proxy instance that
+ it needs to create IProxy's types.
+
+
+
+
+ Interface to find the repository of a mocked object
+
+
+
+
+ Return true if it should call the original method on the object
+ instead of pass it to the message chain.
+
+ The method to call
+
+
+
+ Register a method to be called on the object directly
+
+
+
+
+ Register a property on the object that will behave as a simple property
+
+
+
+
+ Check if the method was registered as a property method.
+
+
+
+
+ Do get/set on the property, according to need.
+
+
+
+
+ Do add/remove on the event
+
+
+
+
+ Get the subscribers of a spesific event
+
+
+
+
+ Gets the declaring type of the method, taking into acccount the possible generic
+ parameters that it was created with.
+
+
+
+
+ Clears the state of the object, remove original calls, property behavior, subscribed events, etc.
+
+
+
+
+ Get all the method calls arguments that were made against this object with the specificed
+ method.
+
+
+ Only method calls in replay mode are counted
+
+
+
+
+ Records the method call
+
+
+
+
+ Mocks that are tied to this mock lifestyle
+
+
+
+
+ The unique hash code of this mock, which is not related
+ to the value of the GetHashCode() call on the object.
+
+
+
+
+ Gets the repository.
+
+
+
+
+ Gets the implemented types by this mocked object
+
+ The implemented.
+
+
+
+ Gets or sets the constructor arguments.
+
+ The constructor arguments.
+
+
+
+ The mocked instance that this is representing
+
+
+
+
+ Create a new instance of
+
+
+
+
+ Return true if it should call the original method on the object
+ instead of pass it to the message chain.
+
+ The method to call
+
+
+
+ Register a method to be called on the object directly
+
+
+
+
+ Register a property on the object that will behave as a simple property
+ Return true if there is already a value for the property
+
+
+
+
+ Check if the method was registered as a property method.
+
+
+
+
+ Do get/set on the property, according to need.
+
+
+
+
+ Do add/remove on the event
+
+
+
+
+ Get the subscribers of a spesific event
+
+
+
+
+ Gets the declaring type of the method, taking into acccount the possible generic
+ parameters that it was created with.
+
+
+
+
+ Get all the method calls arguments that were made against this object with the specificed
+ method.
+
+
+
+
+ Only method calls in replay mode are counted
+
+
+
+
+ Records the method call
+
+
+
+
+
+
+ Clears the state of the object, remove original calls, property behavior, subscribed events, etc.
+
+
+
+
+ Mocks that are tied to this mock lifestyle
+
+
+
+
+ The unique hash code of this proxy, which is not related
+ to the value of the GetHashCode() call on the object.
+
+
+
+
+ Gets the repository.
+
+
+
+
+ Gets or sets the constructor arguments.
+
+ The constructor arguments.
+
+
+
+ The mocked instance that this is representing
+
+
+
+
+ Gets the implemented types by this mocked object
+
+ The implemented.
+
+
+
+ Range for expected method calls
+
+
+
+
+ Creates a new instance.
+
+ Min.
+ Max.
+
+
+
+ Return the string representation of this range.
+
+
+
+
+ Gets or sets the min.
+
+
+
+
+
+ Gets or sets the max.
+
+
+
+
+
+ Records all the expectations for a mock and
+ return a ReplayDynamicMockState when Replay()
+ is called.
+
+
+
+
+ Creates a new instance.
+
+ Repository.
+ The proxy that generates the method calls
+
+
+
+ Verify that we can move to replay state and move
+ to the reply state.
+
+
+
+
+ Get the default call count range expectation
+
+
+
+
+
+ Gets a mock state that match the original mock state of the object.
+
+
+
+
+ Records all the expectations for a mock and
+ return a ReplayPartialMockState when Replay()
+ is called.
+
+
+
+
+ Creates a new instance.
+
+ Repository.
+ The proxy that generates the method calls
+
+
+
+ Verify that we can move to replay state and move
+ to the reply state.
+
+
+
+
+ Gets a mock state that matches the original mock state of the object.
+
+
+
+
+ Options for special repeat option
+
+
+
+
+ This method can be called only as many times as the IMethodOptions.Expect allows.
+
+
+
+
+ This method should never be called
+
+
+
+
+ This method can be call any number of times
+
+
+
+
+ This method will call the original method
+
+
+
+
+ This method will call the original method, bypassing the mocking layer
+
+
+
+
+ This method will simulate simple property behavior
+
+
+
+
+ Validate all expectations on a mock and ignores calls to
+ any method that was not setup properly.
+
+
+
+
+ Creates a new instance.
+
+ The previous state for this method
+
+
+
+ Add a method call for this state' mock.
+
+ The invocation for this method
+ The method that was called
+ The arguments this method was called with
+
+
+
+ Gets a mock state that match the original mock state of the object.
+
+
+
+
+ Validate all expectations on a mock and ignores calls to
+ any method that was not setup properly.
+
+
+
+
+ Creates a new instance.
+
+ The previous state for this method
+
+
+
+ Add a method call for this state' mock.
+
+ The invocation for this method
+ The method that was called
+ The arguments this method was called with
+
+
+
+ Gets a mock state that match the original mock state of the object.
+
+
+
+
+ Summary description for RhinoInterceptor.
+
+
+
+
+ Creates a new instance.
+
+
+
+
+ Intercept a method call and direct it to the repository.
+
+
+
+
+ Validate arguments for methods
+
+
+
+
+ Validate that the passed argument is not null.
+
+ The object to validate
+ The name of the argument
+
+ If the obj is null, an ArgumentNullException with the passed name
+ is thrown.
+
+
+
+
+ Validate that the arguments are equal.
+
+ Expected args.
+ Actual Args.
+
+
+
+ Validate that the two arguments are equals, including validation for
+ when the arguments are collections, in which case it will validate their values.
+
+
+
+
+ This method is safe for use even if any of the objects is a mocked object
+ that override equals.
+
+
+
+
+ Throw an object already verified when accessed
+
+
+
+
+ Create a new instance of VerifiedMockState
+
+ The previous mock state, used to get the initial record state
+
+
+
+ Add a method call for this state' mock.
+
+ The invocation for this method
+ The method that was called
+ The arguments this method was called with
+
+
+
+ Verify that this mock expectations have passed.
+
+
+
+
+ Verify that we can move to replay state and move
+ to the reply state.
+
+
+
+
+ Gets a mock state that match the original mock state of the object.
+
+
+
+
+ Get the options for the last method call
+
+
+
+
+ Set the exception to throw when Verify is called.
+ This is used to report exception that may have happened but where caught in the code.
+ This way, they are reported anyway when Verify() is called.
+
+
+
+
+ not relevant
+
+
+
+
+ Gets the matching verify state for this state
+
+
+
+
+ Get the options for the last method call
+
+
+
+
+ Records the actions on all the mocks created by a repository.
+
+
+
+
+ Records the specified call with the specified args on the mocked object.
+
+
+
+
+ Get the expectation for this method on this object with this arguments
+
+
+
+
+ This check the methods that were setup using the SetupResult.For()
+ or LastCall.Repeat.Any() and that bypass the whole expectation model.
+
+
+
+
+ Gets the all expectations for a mocked object and method combination,
+ regardless of the expected arguments / callbacks / contraints.
+
+ Mocked object.
+ Method.
+ List of all relevant expectation
+
+
+
+ Gets the all expectations for proxy.
+
+ Mocked object.
+ List of all relevant expectation
+
+
+
+ Removes all the repeatable expectations for proxy.
+
+ Mocked object.
+
+
+
+ Replaces the old expectation with the new expectation for the specified proxy/method pair.
+ This replace ALL expectations that equal to old expectations.
+
+ Proxy.
+ Method.
+ Old expectation.
+ New expectation.
+
+
+
+ Adds the recorder and turn it into the active recorder.
+
+ Recorder.
+
+
+
+ Moves to previous recorder.
+
+
+
+
+ Gets the recorded expectation or null.
+
+
+
+
+ Gets the next expected calls string.
+
+
+
+
+ Moves to parent recorder.
+
+
+
+
+ Set the expectation so it can repeat any number of times.
+
+
+
+
+ Removes the expectation from the recorder
+
+
+
+
+ Clear the replayer to call (and all its chain of replayers)
+ This also removes it from the list of expectations, so it will never be considered again
+
+
+
+
+ Get the expectation for this method on this object with this arguments
+
+
+
+
+ Gets a value indicating whether this instance has expectations that weren't satisfied yet.
+
+
+ true if this instance has expectations; otherwise, false.
+
+
+
+
+ Allows to set various options for the last method call on
+ a specified object.
+ If the method has a return value, it's recommended to use Expect
+
+
+
+
+ Allows to get an interface to work on the last call.
+
+ The mocked object
+ Interface that allows to set options for the last method call on this object
+
+
+
+ Set the return value for the method.
+
+ The object the method will return
+ IRepeat that defines how many times the method will return this value
+
+
+
+ Set the return value for the method. This overload is needed for LastCall.Return(null)
+
+ The object the method will return
+ IRepeat that defines how many times the method will return this value
+
+
+
+ Throws the specified exception when the method is called.
+
+ Exception to throw
+
+
+
+ Ignores the arguments for this method. Any argument will be matched
+ againt this method.
+
+
+
+
+ Add constraints for the method's arguments.
+
+
+
+
+ Set a callback method for the last call
+
+
+
+
+ Set a callback method for the last call
+
+
+
+
+ Set a callback method for the last call
+
+
+
+
+ Set a callback method for the last call
+
+
+
+
+ Set a callback method for the last call
+
+
+
+
+ Set a callback method for the last call
+
+
+
+
+ Set a callback method for the last call
+
+
+
+
+ Set a callback method for the last call
+
+
+
+
+ Set a callback method for the last call
+
+
+
+
+ Set a callback method for the last call
+
+
+
+
+ Set a callback method for the last call
+
+
+
+
+ Set a callback method for the last call
+
+
+
+
+ Call the original method on the class, bypassing the mocking layers, for the last call.
+
+
+
+
+ Call the original method on the class, optionally bypassing the mocking layers, for the last call.
+
+
+
+
+ Set a delegate to be called when the expectation is matched.
+ The delegate return value will be returned from the expectation.
+
+
+
+
+ Gets an interface that will raise the last event when called.
+
+
+
+
+ Set the parameter values for out and ref parameters.
+ This is done using zero based indexing, and _ignoring_ any non out/ref parameter.
+
+
+
+
+ Documentation message for the expectation
+
+ Message
+
+
+
+ Use the property as a simple property, getting/setting the values without
+ causing mock expectations.
+
+
+
+
+ Better syntax to define repeats.
+
+
+
+
+ Base class for method recorders, handle delegating to inner recorder if needed.
+
+
+
+
+ List of the expected actions on for this recorder
+ The legal values are:
+ * Expectations
+ * Method Recorders
+
+
+
+
+ The current recorder.
+
+
+
+
+ The current replayer;
+
+
+
+
+ The parent recorder of this one, may be null.
+
+
+
+
+ This contains a list of all the replayers that should be ignored
+ for a spesific method call. A replayer gets into this list by calling
+ ClearReplayerToCall() on its parent. This list is Clear()ed on each new invocation.
+
+
+
+
+ All the repeatable methods calls.
+
+
+
+
+ Counts the recursion depth of the current expectation search stack
+
+
+
+
+ Creates a new instance.
+
+
+
+
+ Creates a new instance.
+
+ Parent recorder.
+ Repeatable methods
+
+
+
+ Records the specified call with the specified args on the mocked object.
+
+
+
+
+ Get the expectation for this method on this object with this arguments
+
+
+
+
+ Gets the all expectations for a mocked object and method combination,
+ regardless of the expected arguments / callbacks / contraints.
+
+ Mocked object.
+ Method.
+ List of all relevant expectation
+
+
+
+ Gets the all expectations for proxy.
+
+ Mocked object.
+ List of all relevant expectation
+
+
+
+ Replaces the old expectation with the new expectation for the specified proxy/method pair.
+ This replace ALL expectations that equal to old expectations.
+
+ Proxy.
+ Method.
+ Old expectation.
+ New expectation.
+
+
+
+ Remove the all repeatable expectations for proxy.
+
+ Mocked object.
+
+
+
+ Set the expectation so it can repeat any number of times.
+
+
+
+
+ Removes the expectation from the recorder
+
+
+
+
+ Adds the recorder and turn it into the active recorder.
+
+ Recorder.
+
+
+
+ Moves to previous recorder.
+
+
+
+
+ Moves to parent recorder.
+
+
+
+
+ Gets the recorded expectation or null.
+
+
+
+
+ Clear the replayer to call (and all its chain of replayers).
+ This also removes it from the list of expectations, so it will never be considered again
+
+
+
+
+ Get the expectation for this method on this object with this arguments
+
+
+
+
+ Gets the next expected calls string.
+
+
+
+
+ Handles the real getting of the recorded expectation or null.
+
+
+
+
+ Handle the real execution of this method for the derived class
+
+
+
+
+ Handle the real execution of this method for the derived class
+
+
+
+
+ Handle the real execution of this method for the derived class
+
+
+
+
+ Handle the real execution of this method for the derived class
+
+
+
+
+ Handle the real execution of this method for the derived class
+
+
+
+
+ Handle the real execution of this method for the derived class
+
+
+
+
+ Should this replayer be considered valid for this call?
+
+
+
+
+ This check the methods that were setup using the SetupResult.For()
+ or LastCall.Repeat.Any() and that bypass the whole expectation model.
+
+
+
+
+ Gets a value indicating whether this instance has expectations that weren't satisfied yet.
+
+
+ true if this instance has expectations; otherwise, false.
+
+
+
+
+ Handle the real execution of this method for the derived class
+
+
+
+
+ Ordered collection of methods, methods must arrive in specified order
+ in order to pass.
+
+
+
+
+ Unordered collection of method records, any expectation that exist
+ will be matched.
+
+
+
+
+ The parent recorder we have redirected to.
+ Useful for certain edge cases in orderring.
+ See: FieldProblem_Entropy for the details.
+
+
+
+
+ Creates a new instance.
+
+ Parent recorder.
+ Repeatable methods
+
+
+
+ Creates a new instance.
+
+
+
+
+ Records the specified call with the specified args on the mocked object.
+
+ Mocked object.
+ Method.
+ Expectation.
+
+
+
+ Get the expectation for this method on this object with this arguments
+
+ Invocation for this method
+ Mocked object.
+ Method.
+ Args.
+ True is the call was recorded, false otherwise
+
+
+
+ Gets the all expectations for a mocked object and method combination,
+ regardless of the expected arguments / callbacks / contraints.
+
+ Mocked object.
+ Method.
+ List of all relevant expectation
+
+
+
+ Gets the all expectations for proxy.
+
+ Mocked object.
+ List of all relevant expectation
+
+
+
+ Replaces the old expectation with the new expectation for the specified proxy/method pair.
+ This replace ALL expectations that equal to old expectations.
+
+ Proxy.
+ Method.
+ Old expectation.
+ New expectation.
+
+
+
+ Handle the real execution of this method for the derived class
+
+
+
+
+ Handles the real getting of the recorded expectation or null.
+
+
+
+
+ Handle the real execution of this method for the derived class
+
+
+
+
+ Gets the next expected calls string.
+
+
+
+
+ Create an exception for an unexpected method call.
+
+
+
+
+ Gets a value indicating whether this instance has expectations that weren't satisfied yet.
+
+
+ true if this instance has expectations; otherwise, false.
+
+
+
+
+ Creates a new instance.
+
+ Parent recorder.
+ Repetable methods
+
+
+
+ Creates a new instance.
+
+
+
+
+ Handles the real getting of the recorded expectation or null.
+
+
+
+
+ Get the expectation for this method on this object with this arguments
+
+
+
+
+ Gets the next expected calls string.
+
+
+
+
+ Hold an expectation for a method call on an object
+
+
+
+
+ Creates a new instance.
+
+ Proxy.
+ Method.
+ Expectation.
+
+
+
+ Determines if the object equal to this instance
+
+ Obj.
+
+
+
+
+ Gets the hash code.
+
+
+
+
+
+ Gets the proxy.
+
+
+
+
+
+ Gets the method.
+
+
+
+
+
+ Gets the expectation.
+
+
+
+
+
+ Holds a pair of mocked object and a method
+ and allows to compare them against each other.
+ This allows us to have a distinction between mockOne.MyMethod() and
+ mockTwo.MyMethod()...
+
+
+
+
+ Creates a new instance.
+
+ Proxy.
+ Method.
+
+
+
+ Determines whatever obj equals to this instance.
+ ProxyMethodPairs are equal when they point to the same /instance/ of
+ an object, and to the same method.
+
+ Obj.
+
+
+
+
+ Gets the hash code.
+
+
+
+
+
+ Gets the proxy.
+
+
+
+
+
+ Gets the method.
+
+
+
+
+
+ Change the recorder from ordered to unordered and vice versa
+
+
+
+
+ Creates a new instance.
+
+
+
+
+ Disposes this instance.
+
+
+
+
+ Accessor for the current mocker
+
+
+
+
+ The current mocker
+
+
+
+
+ Used for [assembly: InternalsVisibleTo(RhinoMocks.StrongName)]
+ Used for [assembly: InternalsVisibleTo(RhinoMocks.NormalName)]
+
+
+
+
+ Strong name for the Dynamic Proxy assemblies. Used for InternalsVisibleTo specification.
+
+
+
+
+ Normal name for dynamic proxy assemblies. Used for InternalsVisibleTo specification.
+
+
+
+
+ Logs all method calls for methods
+
+
+
+
+ Setup method calls to repeat any number of times.
+
+
+
+
+ Get the method options and set the last method call to repeat
+ any number of times.
+ This also means that the method would transcend ordering
+
+
+
+
+ Get the method options for the last method call on the mockInstance and set it
+ to repeat any number of times.
+ This also means that the method would transcend ordering
+
+
+
+
+ Utility class for working with method calls.
+
+
+
+
+ Return the string representation of a method call and its arguments.
+
+ The method
+ The method arguments
+ Invocation of the method, used to get the generics arguments
+ Delegate to format the parameter
+ The string representation of this method call
+
+
+
+ Return the string representation of a method call and its arguments.
+
+ The invocation of the method, used to get the generic parameters
+ The method
+ The method arguments
+ The string representation of this method call
+
+
+
+ Delegate to format the argument for the string representation of
+ the method call.
+
+
+
+
+ Utility to get the default value for a type
+
+
+
+
+ The default value for a type.
+ Null for reference types and void
+ 0 for value types.
+ First element for enums
+ Note that we need to get the value even for opened generic types, such as those from
+ generic methods.
+
+ Type.
+ The invocation.
+ the default value
+
+
+
+ Allows easier access to MockRepository, works closely with Mocker.Current to
+ allow access to a context where the mock repository is automatially verified at
+ the end of the code block.
+
+
+
+
+ Initialize a code block where Mocker.Current is initialized.
+ At the end of the code block, all the expectation will be verified.
+ This overload will create a new MockRepository.
+
+ The code that will be executed under the mock context
+
+
+
+ Initialize a code block where Mocker.Current is initialized.
+ At the end of the code block, all the expectation will be verified.
+ This overload will create a new MockRepository.
+
+ The mock repository to use, at the end of the code block, VerifyAll() will be called on the repository.
+ The code that will be executed under the mock context
+
+
+
+ Create a FluentMocker
+
+ The mock repository to use.
+
+
+
+ A method with no arguments and no return value that will be called under the mock context.
+
+
+
+
+ FluentMocker implements some kind of fluent interface attempt
+ for saying "With the Mocks [mocks], Expecting (in same order) [things] verify [that]."
+
+
+
+
+ Interface to verify previously defined expectations
+
+
+
+
+ Verifies if a piece of code
+
+
+
+
+ Defines unordered expectations
+
+ A delegate describing the expectations
+ an IMockVerifier
+
+
+
+ Defines ordered expectations
+
+ A delegate describing the expectations
+ an IMockVerifier
+
+
+
+ Verifies previously defined expectations
+
+
+
+
+ This delegate is compatible with the System.Func{T,R} signature
+ We have to define our own to get compatability with 2.0
+
+
+
+
+ This attribute is here so we can get better Pex integration
+ Using this means that Pex will not try to inspect the work of
+ the actual proxies being generated by Rhino Mocks
+
+
+
+
diff --git a/lib/Net/4.0/log4net.dll b/lib/Net/4.0/log4net.dll
new file mode 100644
index 00000000..995816f2
Binary files /dev/null and b/lib/Net/4.0/log4net.dll differ
diff --git a/lib/Net/4.0/nunit.core.dll b/lib/Net/4.0/nunit.core.dll
new file mode 100644
index 00000000..dd3b2e00
Binary files /dev/null and b/lib/Net/4.0/nunit.core.dll differ
diff --git a/lib/Net/4.0/nunit.core.interfaces.dll b/lib/Net/4.0/nunit.core.interfaces.dll
new file mode 100644
index 00000000..39a11273
Binary files /dev/null and b/lib/Net/4.0/nunit.core.interfaces.dll differ
diff --git a/lib/Net/4.0/nunit.framework.dll b/lib/Net/4.0/nunit.framework.dll
new file mode 100644
index 00000000..639dbb0d
Binary files /dev/null and b/lib/Net/4.0/nunit.framework.dll differ
diff --git a/lib/Net/4.0/nunit.framework.xml b/lib/Net/4.0/nunit.framework.xml
new file mode 100644
index 00000000..e67b2cdc
--- /dev/null
+++ b/lib/Net/4.0/nunit.framework.xml
@@ -0,0 +1,10228 @@
+
+
+
+ nunit.framework
+
+
+
+
+ BinaryConstraint is the abstract base of all constraints
+ that combine two other constraints in some fashion.
+
+
+
+
+ The Constraint class is the base of all built-in constraints
+ within NUnit. It provides the operator overloads used to combine
+ constraints.
+
+
+
+
+ The IConstraintExpression interface is implemented by all
+ complete and resolvable constraints and expressions.
+
+
+
+
+ Return the top-level constraint for this expression
+
+
+
+
+
+ Static UnsetObject used to detect derived constraints
+ failing to set the actual value.
+
+
+
+
+ The actual value being tested against a constraint
+
+
+
+
+ The display name of this Constraint for use by ToString()
+
+
+
+
+ Argument fields used by ToString();
+
+
+
+
+ The builder holding this constraint
+
+
+
+
+ Construct a constraint with no arguments
+
+
+
+
+ Construct a constraint with one argument
+
+
+
+
+ Construct a constraint with two arguments
+
+
+
+
+ Sets the ConstraintBuilder holding this constraint
+
+
+
+
+ Write the failure message to the MessageWriter provided
+ as an argument. The default implementation simply passes
+ the constraint and the actual value to the writer, which
+ then displays the constraint description and the value.
+
+ Constraints that need to provide additional details,
+ such as where the error occured can override this.
+
+ The MessageWriter on which to display the message
+
+
+
+ Test whether the constraint is satisfied by a given value
+
+ The value to be tested
+ True for success, false for failure
+
+
+
+ Test whether the constraint is satisfied by an
+ ActualValueDelegate that returns the value to be tested.
+ The default implementation simply evaluates the delegate
+ but derived classes may override it to provide for delayed
+ processing.
+
+ An ActualValueDelegate
+ True for success, false for failure
+
+
+
+ Test whether the constraint is satisfied by a given reference.
+ The default implementation simply dereferences the value but
+ derived classes may override it to provide for delayed processing.
+
+ A reference to the value to be tested
+ True for success, false for failure
+
+
+
+ Write the constraint description to a MessageWriter
+
+ The writer on which the description is displayed
+
+
+
+ Write the actual value for a failing constraint test to a
+ MessageWriter. The default implementation simply writes
+ the raw value of actual, leaving it to the writer to
+ perform any formatting.
+
+ The writer on which the actual value is displayed
+
+
+
+ Default override of ToString returns the constraint DisplayName
+ followed by any arguments within angle brackets.
+
+
+
+
+
+ Returns the string representation of this constraint
+
+
+
+
+ This operator creates a constraint that is satisfied only if both
+ argument constraints are satisfied.
+
+
+
+
+ This operator creates a constraint that is satisfied if either
+ of the argument constraints is satisfied.
+
+
+
+
+ This operator creates a constraint that is satisfied if the
+ argument constraint is not satisfied.
+
+
+
+
+ Returns a DelayedConstraint with the specified delay time.
+
+ The delay in milliseconds.
+
+
+
+
+ Returns a DelayedConstraint with the specified delay time
+ and polling interval.
+
+ The delay in milliseconds.
+ The interval at which to test the constraint.
+
+
+
+
+ The display name of this Constraint for use by ToString().
+ The default value is the name of the constraint with
+ trailing "Constraint" removed. Derived classes may set
+ this to another name in their constructors.
+
+
+
+
+ Returns a ConstraintExpression by appending And
+ to the current constraint.
+
+
+
+
+ Returns a ConstraintExpression by appending And
+ to the current constraint.
+
+
+
+
+ Returns a ConstraintExpression by appending Or
+ to the current constraint.
+
+
+
+
+ Class used to detect any derived constraints
+ that fail to set the actual value in their
+ Matches override.
+
+
+
+
+ The first constraint being combined
+
+
+
+
+ The second constraint being combined
+
+
+
+
+ Construct a BinaryConstraint from two other constraints
+
+ The first constraint
+ The second constraint
+
+
+
+ AndConstraint succeeds only if both members succeed.
+
+
+
+
+ Create an AndConstraint from two other constraints
+
+ The first constraint
+ The second constraint
+
+
+
+ Apply both member constraints to an actual value, succeeding
+ succeeding only if both of them succeed.
+
+ The actual value
+ True if the constraints both succeeded
+
+
+
+ Write a description for this contraint to a MessageWriter
+
+ The MessageWriter to receive the description
+
+
+
+ Write the actual value for a failing constraint test to a
+ MessageWriter. The default implementation simply writes
+ the raw value of actual, leaving it to the writer to
+ perform any formatting.
+
+ The writer on which the actual value is displayed
+
+
+
+ OrConstraint succeeds if either member succeeds
+
+
+
+
+ Create an OrConstraint from two other constraints
+
+ The first constraint
+ The second constraint
+
+
+
+ Apply the member constraints to an actual value, succeeding
+ succeeding as soon as one of them succeeds.
+
+ The actual value
+ True if either constraint succeeded
+
+
+
+ Write a description for this contraint to a MessageWriter
+
+ The MessageWriter to receive the description
+
+
+
+ CollectionConstraint is the abstract base class for
+ constraints that operate on collections.
+
+
+
+
+ Construct an empty CollectionConstraint
+
+
+
+
+ Construct a CollectionConstraint
+
+
+
+
+
+ Determines whether the specified enumerable is empty.
+
+ The enumerable.
+
+ true if the specified enumerable is empty; otherwise, false.
+
+
+
+
+ Test whether the constraint is satisfied by a given value
+
+ The value to be tested
+ True for success, false for failure
+
+
+
+ Protected method to be implemented by derived classes
+
+
+
+
+
+
+ CollectionItemsEqualConstraint is the abstract base class for all
+ collection constraints that apply some notion of item equality
+ as a part of their operation.
+
+
+
+
+ Construct an empty CollectionConstraint
+
+
+
+
+ Construct a CollectionConstraint
+
+
+
+
+
+ Flag the constraint to use the supplied IComparer object.
+
+ The IComparer object to use.
+ Self.
+
+
+
+ Flag the constraint to use the supplied IComparer object.
+
+ The IComparer object to use.
+ Self.
+
+
+
+ Flag the constraint to use the supplied Comparison object.
+
+ The IComparer object to use.
+ Self.
+
+
+
+ Flag the constraint to use the supplied IEqualityComparer object.
+
+ The IComparer object to use.
+ Self.
+
+
+
+ Flag the constraint to use the supplied IEqualityComparer object.
+
+ The IComparer object to use.
+ Self.
+
+
+
+ Compares two collection members for equality
+
+
+
+
+ Return a new CollectionTally for use in making tests
+
+ The collection to be included in the tally
+
+
+
+ Flag the constraint to ignore case and return self.
+
+
+
+
+ EmptyCollectionConstraint tests whether a collection is empty.
+
+
+
+
+ Check that the collection is empty
+
+
+
+
+
+
+ Write the constraint description to a MessageWriter
+
+
+
+
+
+ UniqueItemsConstraint tests whether all the items in a
+ collection are unique.
+
+
+
+
+ Check that all items are unique.
+
+
+
+
+
+
+ Write a description of this constraint to a MessageWriter
+
+
+
+
+
+ CollectionContainsConstraint is used to test whether a collection
+ contains an expected object as a member.
+
+
+
+
+ Construct a CollectionContainsConstraint
+
+
+
+
+
+ Test whether the expected item is contained in the collection
+
+
+
+
+
+
+ Write a descripton of the constraint to a MessageWriter
+
+
+
+
+
+ CollectionEquivalentCOnstraint is used to determine whether two
+ collections are equivalent.
+
+
+
+
+ Construct a CollectionEquivalentConstraint
+
+
+
+
+
+ Test whether two collections are equivalent
+
+
+
+
+
+
+ Write a description of this constraint to a MessageWriter
+
+
+
+
+
+ CollectionSubsetConstraint is used to determine whether
+ one collection is a subset of another
+
+
+
+
+ Construct a CollectionSubsetConstraint
+
+ The collection that the actual value is expected to be a subset of
+
+
+
+ Test whether the actual collection is a subset of
+ the expected collection provided.
+
+
+
+
+
+
+ Write a description of this constraint to a MessageWriter
+
+
+
+
+
+ CollectionOrderedConstraint is used to test whether a collection is ordered.
+
+
+
+
+ Construct a CollectionOrderedConstraint
+
+
+
+
+ Modifies the constraint to use an IComparer and returns self.
+
+
+
+
+ Modifies the constraint to use an IComparer<T> and returns self.
+
+
+
+
+ Modifies the constraint to use a Comparison<T> and returns self.
+
+
+
+
+ Modifies the constraint to test ordering by the value of
+ a specified property and returns self.
+
+
+
+
+ Test whether the collection is ordered
+
+
+
+
+
+
+ Write a description of the constraint to a MessageWriter
+
+
+
+
+
+ Returns the string representation of the constraint.
+
+
+
+
+
+ If used performs a reverse comparison
+
+
+
+
+ Abstract base class for constraints that compare values to
+ determine if one is greater than, equal to or less than
+ the other.
+
+
+
+
+ The value against which a comparison is to be made
+
+
+
+
+ If true, less than returns success
+
+
+
+
+ if true, equal returns success
+
+
+
+
+ if true, greater than returns success
+
+
+
+
+ The predicate used as a part of the description
+
+
+
+
+ ComparisonAdapter to be used in making the comparison
+
+
+
+
+ Initializes a new instance of the class.
+
+ The value against which to make a comparison.
+ if set to true less succeeds.
+ if set to true equal succeeds.
+ if set to true greater succeeds.
+ String used in describing the constraint.
+
+
+
+ Test whether the constraint is satisfied by a given value
+
+ The value to be tested
+ True for success, false for failure
+
+
+
+ Write the constraint description to a MessageWriter
+
+ The writer on which the description is displayed
+
+
+
+ Modifies the constraint to use an IComparer and returns self
+
+
+
+
+ Modifies the constraint to use an IComparer<T> and returns self
+
+
+
+
+ Modifies the constraint to use a Comparison<T> and returns self
+
+
+
+
+ Tests whether a value is greater than the value supplied to its constructor
+
+
+
+
+ Initializes a new instance of the class.
+
+ The expected value.
+
+
+
+ Tests whether a value is greater than or equal to the value supplied to its constructor
+
+
+
+
+ Initializes a new instance of the class.
+
+ The expected value.
+
+
+
+ Tests whether a value is less than the value supplied to its constructor
+
+
+
+
+ Initializes a new instance of the class.
+
+ The expected value.
+
+
+
+ Tests whether a value is less than or equal to the value supplied to its constructor
+
+
+
+
+ Initializes a new instance of the class.
+
+ The expected value.
+
+
+
+ Delegate used to delay evaluation of the actual value
+ to be used in evaluating a constraint
+
+
+
+
+ ConstraintBuilder maintains the stacks that are used in
+ processing a ConstraintExpression. An OperatorStack
+ is used to hold operators that are waiting for their
+ operands to be reognized. a ConstraintStack holds
+ input constraints as well as the results of each
+ operator applied.
+
+
+
+
+ Initializes a new instance of the class.
+
+
+
+
+ Appends the specified operator to the expression by first
+ reducing the operator stack and then pushing the new
+ operator on the stack.
+
+ The operator to push.
+
+
+
+ Appends the specified constraint to the expresson by pushing
+ it on the constraint stack.
+
+ The constraint to push.
+
+
+
+ Sets the top operator right context.
+
+ The right context.
+
+
+
+ Reduces the operator stack until the topmost item
+ precedence is greater than or equal to the target precedence.
+
+ The target precedence.
+
+
+
+ Resolves this instance, returning a Constraint. If the builder
+ is not currently in a resolvable state, an exception is thrown.
+
+ The resolved constraint
+
+
+
+ Gets a value indicating whether this instance is resolvable.
+
+
+ true if this instance is resolvable; otherwise, false.
+
+
+
+
+ OperatorStack is a type-safe stack for holding ConstraintOperators
+
+
+
+
+ Initializes a new instance of the class.
+
+ The builder.
+
+
+
+ Pushes the specified operator onto the stack.
+
+ The op.
+
+
+
+ Pops the topmost operator from the stack.
+
+
+
+
+
+ Gets a value indicating whether this is empty.
+
+ true if empty; otherwise, false.
+
+
+
+ Gets the topmost operator without modifying the stack.
+
+ The top.
+
+
+
+ ConstraintStack is a type-safe stack for holding Constraints
+
+
+
+
+ Initializes a new instance of the class.
+
+ The builder.
+
+
+
+ Pushes the specified constraint. As a side effect,
+ the constraint's builder field is set to the
+ ConstraintBuilder owning this stack.
+
+ The constraint.
+
+
+
+ Pops this topmost constrait from the stack.
+ As a side effect, the constraint's builder
+ field is set to null.
+
+
+
+
+
+ Gets a value indicating whether this is empty.
+
+ true if empty; otherwise, false.
+
+
+
+ Gets the topmost constraint without modifying the stack.
+
+ The topmost constraint
+
+
+
+ EmptyConstraint tests a whether a string or collection is empty,
+ postponing the decision about which test is applied until the
+ type of the actual argument is known.
+
+
+
+
+ Test whether the constraint is satisfied by a given value
+
+ The value to be tested
+ True for success, false for failure
+
+
+
+ Write the constraint description to a MessageWriter
+
+ The writer on which the description is displayed
+
+
+
+ EqualConstraint is able to compare an actual value with the
+ expected value provided in its constructor. Two objects are
+ considered equal if both are null, or if both have the same
+ value. NUnit has special semantics for some object types.
+
+
+
+
+ If true, strings in error messages will be clipped
+
+
+
+
+ NUnitEqualityComparer used to test equality.
+
+
+
+
+ Initializes a new instance of the class.
+
+ The expected value.
+
+
+
+ Flag the constraint to use a tolerance when determining equality.
+
+ Tolerance value to be used
+ Self.
+
+
+
+ Flag the constraint to use the supplied IComparer object.
+
+ The IComparer object to use.
+ Self.
+
+
+
+ Flag the constraint to use the supplied IComparer object.
+
+ The IComparer object to use.
+ Self.
+
+
+
+ Flag the constraint to use the supplied IComparer object.
+
+ The IComparer object to use.
+ Self.
+
+
+
+ Flag the constraint to use the supplied Comparison object.
+
+ The IComparer object to use.
+ Self.
+
+
+
+ Flag the constraint to use the supplied IEqualityComparer object.
+
+ The IComparer object to use.
+ Self.
+
+
+
+ Flag the constraint to use the supplied IEqualityComparer object.
+
+ The IComparer object to use.
+ Self.
+
+
+
+ Test whether the constraint is satisfied by a given value
+
+ The value to be tested
+ True for success, false for failure
+
+
+
+ Write a failure message. Overridden to provide custom
+ failure messages for EqualConstraint.
+
+ The MessageWriter to write to
+
+
+
+ Write description of this constraint
+
+ The MessageWriter to write to
+
+
+
+ Display the failure information for two collections that did not match.
+
+ The MessageWriter on which to display
+ The expected collection.
+ The actual collection
+ The depth of this failure in a set of nested collections
+
+
+
+ Displays a single line showing the types and sizes of the expected
+ and actual collections or arrays. If both are identical, the value is
+ only shown once.
+
+ The MessageWriter on which to display
+ The expected collection or array
+ The actual collection or array
+ The indentation level for the message line
+
+
+
+ Displays a single line showing the point in the expected and actual
+ arrays at which the comparison failed. If the arrays have different
+ structures or dimensions, both values are shown.
+
+ The MessageWriter on which to display
+ The expected array
+ The actual array
+ Index of the failure point in the underlying collections
+ The indentation level for the message line
+
+
+
+ Flag the constraint to ignore case and return self.
+
+
+
+
+ Flag the constraint to suppress string clipping
+ and return self.
+
+
+
+
+ Flag the constraint to compare arrays as collections
+ and return self.
+
+
+
+
+ Switches the .Within() modifier to interpret its tolerance as
+ a distance in representable values (see remarks).
+
+ Self.
+
+ Ulp stands for "unit in the last place" and describes the minimum
+ amount a given value can change. For any integers, an ulp is 1 whole
+ digit. For floating point values, the accuracy of which is better
+ for smaller numbers and worse for larger numbers, an ulp depends
+ on the size of the number. Using ulps for comparison of floating
+ point results instead of fixed tolerances is safer because it will
+ automatically compensate for the added inaccuracy of larger numbers.
+
+
+
+
+ Switches the .Within() modifier to interpret its tolerance as
+ a percentage that the actual values is allowed to deviate from
+ the expected value.
+
+ Self
+
+
+
+ Causes the tolerance to be interpreted as a TimeSpan in days.
+
+ Self
+
+
+
+ Causes the tolerance to be interpreted as a TimeSpan in hours.
+
+ Self
+
+
+
+ Causes the tolerance to be interpreted as a TimeSpan in minutes.
+
+ Self
+
+
+
+ Causes the tolerance to be interpreted as a TimeSpan in seconds.
+
+ Self
+
+
+
+ Causes the tolerance to be interpreted as a TimeSpan in milliseconds.
+
+ Self
+
+
+
+ Causes the tolerance to be interpreted as a TimeSpan in clock ticks.
+
+ Self
+
+
+
+ SameAsConstraint tests whether an object is identical to
+ the object passed to its constructor
+
+
+
+
+ Initializes a new instance of the class.
+
+ The expected object.
+
+
+
+ Test whether the constraint is satisfied by a given value
+
+ The value to be tested
+ True for success, false for failure
+
+
+
+ Write the constraint description to a MessageWriter
+
+ The writer on which the description is displayed
+
+
+
+ StringConstraint is the abstract base for constraints
+ that operate on strings. It supports the IgnoreCase
+ modifier for string operations.
+
+
+
+
+ The expected value
+
+
+
+
+ Indicates whether tests should be case-insensitive
+
+
+
+
+ Constructs a StringConstraint given an expected value
+
+ The expected value
+
+
+
+ Modify the constraint to ignore case in matching.
+
+
+
+
+ EmptyStringConstraint tests whether a string is empty.
+
+
+
+
+ Test whether the constraint is satisfied by a given value
+
+ The value to be tested
+ True for success, false for failure
+
+
+
+ Write the constraint description to a MessageWriter
+
+ The writer on which the description is displayed
+
+
+
+ NullEmptyStringConstraint tests whether a string is either null or empty.
+
+
+
+
+ Constructs a new NullOrEmptyStringConstraint
+
+
+
+
+ Test whether the constraint is satisfied by a given value
+
+ The value to be tested
+ True for success, false for failure
+
+
+
+ Write the constraint description to a MessageWriter
+
+ The writer on which the description is displayed
+
+
+
+ SubstringConstraint can test whether a string contains
+ the expected substring.
+
+
+
+
+ Initializes a new instance of the class.
+
+ The expected.
+
+
+
+ Test whether the constraint is satisfied by a given value
+
+ The value to be tested
+ True for success, false for failure
+
+
+
+ Write the constraint description to a MessageWriter
+
+ The writer on which the description is displayed
+
+
+
+ StartsWithConstraint can test whether a string starts
+ with an expected substring.
+
+
+
+
+ Initializes a new instance of the class.
+
+ The expected string
+
+
+
+ Test whether the constraint is matched by the actual value.
+ This is a template method, which calls the IsMatch method
+ of the derived class.
+
+
+
+
+
+
+ Write the constraint description to a MessageWriter
+
+ The writer on which the description is displayed
+
+
+
+ EndsWithConstraint can test whether a string ends
+ with an expected substring.
+
+
+
+
+ Initializes a new instance of the class.
+
+ The expected string
+
+
+
+ Test whether the constraint is matched by the actual value.
+ This is a template method, which calls the IsMatch method
+ of the derived class.
+
+
+
+
+
+
+ Write the constraint description to a MessageWriter
+
+ The writer on which the description is displayed
+
+
+
+ RegexConstraint can test whether a string matches
+ the pattern provided.
+
+
+
+
+ Initializes a new instance of the class.
+
+ The pattern.
+
+
+
+ Test whether the constraint is satisfied by a given value
+
+ The value to be tested
+ True for success, false for failure
+
+
+
+ Write the constraint description to a MessageWriter
+
+ The writer on which the description is displayed
+
+
+
+ TypeConstraint is the abstract base for constraints
+ that take a Type as their expected value.
+
+
+
+
+ The expected Type used by the constraint
+
+
+
+
+ Construct a TypeConstraint for a given Type
+
+
+
+
+
+ Write the actual value for a failing constraint test to a
+ MessageWriter. TypeConstraints override this method to write
+ the name of the type.
+
+ The writer on which the actual value is displayed
+
+
+
+ ExactTypeConstraint is used to test that an object
+ is of the exact type provided in the constructor
+
+
+
+
+ Construct an ExactTypeConstraint for a given Type
+
+ The expected Type.
+
+
+
+ Test that an object is of the exact type specified
+
+ The actual value.
+ True if the tested object is of the exact type provided, otherwise false.
+
+
+
+ Write the description of this constraint to a MessageWriter
+
+ The MessageWriter to use
+
+
+
+ InstanceOfTypeConstraint is used to test that an object
+ is of the same type provided or derived from it.
+
+
+
+
+ Construct an InstanceOfTypeConstraint for the type provided
+
+ The expected Type
+
+
+
+ Test whether an object is of the specified type or a derived type
+
+ The object to be tested
+ True if the object is of the provided type or derives from it, otherwise false.
+
+
+
+ Write a description of this constraint to a MessageWriter
+
+ The MessageWriter to use
+
+
+
+ AssignableFromConstraint is used to test that an object
+ can be assigned from a given Type.
+
+
+
+
+ Construct an AssignableFromConstraint for the type provided
+
+
+
+
+
+ Test whether an object can be assigned from the specified type
+
+ The object to be tested
+ True if the object can be assigned a value of the expected Type, otherwise false.
+
+
+
+ Write a description of this constraint to a MessageWriter
+
+ The MessageWriter to use
+
+
+
+ AssignableToConstraint is used to test that an object
+ can be assigned to a given Type.
+
+
+
+
+ Construct an AssignableToConstraint for the type provided
+
+
+
+
+
+ Test whether an object can be assigned to the specified type
+
+ The object to be tested
+ True if the object can be assigned a value of the expected Type, otherwise false.
+
+
+
+ Write a description of this constraint to a MessageWriter
+
+ The MessageWriter to use
+
+
+
+ ContainsConstraint tests a whether a string contains a substring
+ or a collection contains an object. It postpones the decision of
+ which test to use until the type of the actual argument is known.
+ This allows testing whether a string is contained in a collection
+ or as a substring of another string using the same syntax.
+
+
+
+
+ Initializes a new instance of the class.
+
+ The expected.
+
+
+
+ Test whether the constraint is satisfied by a given value
+
+ The value to be tested
+ True for success, false for failure
+
+
+
+ Write the constraint description to a MessageWriter
+
+ The writer on which the description is displayed
+
+
+
+ Flag the constraint to ignore case and return self.
+
+
+
+
+ PropertyExistsConstraint tests that a named property
+ exists on the object provided through Match.
+
+ Originally, PropertyConstraint provided this feature
+ in addition to making optional tests on the vaue
+ of the property. The two constraints are now separate.
+
+
+
+
+ Initializes a new instance of the class.
+
+ The name of the property.
+
+
+
+ Test whether the property exists for a given object
+
+ The object to be tested
+ True for success, false for failure
+
+
+
+ Write the constraint description to a MessageWriter
+
+ The writer on which the description is displayed
+
+
+
+ Write the actual value for a failing constraint test to a
+ MessageWriter.
+
+ The writer on which the actual value is displayed
+
+
+
+ Returns the string representation of the constraint.
+
+
+
+
+
+ PropertyConstraint extracts a named property and uses
+ its value as the actual value for a chained constraint.
+
+
+
+
+ Abstract base class used for prefixes
+
+
+
+
+ The base constraint
+
+
+
+
+ Construct given a base constraint
+
+
+
+
+
+ Initializes a new instance of the class.
+
+ The name.
+ The constraint to apply to the property.
+
+
+
+ Test whether the constraint is satisfied by a given value
+
+ The value to be tested
+ True for success, false for failure
+
+
+
+ Write the constraint description to a MessageWriter
+
+ The writer on which the description is displayed
+
+
+
+ Write the actual value for a failing constraint test to a
+ MessageWriter. The default implementation simply writes
+ the raw value of actual, leaving it to the writer to
+ perform any formatting.
+
+ The writer on which the actual value is displayed
+
+
+
+ Returns the string representation of the constraint.
+
+
+
+
+
+ NotConstraint negates the effect of some other constraint
+
+
+
+
+ Initializes a new instance of the class.
+
+ The base constraint to be negated.
+
+
+
+ Test whether the constraint is satisfied by a given value
+
+ The value to be tested
+ True for if the base constraint fails, false if it succeeds
+
+
+
+ Write the constraint description to a MessageWriter
+
+ The writer on which the description is displayed
+
+
+
+ Write the actual value for a failing constraint test to a MessageWriter.
+
+ The writer on which the actual value is displayed
+
+
+
+ AllItemsConstraint applies another constraint to each
+ item in a collection, succeeding if they all succeed.
+
+
+
+
+ Construct an AllItemsConstraint on top of an existing constraint
+
+
+
+
+
+ Apply the item constraint to each item in the collection,
+ failing if any item fails.
+
+
+
+
+
+
+ Write a description of this constraint to a MessageWriter
+
+
+
+
+
+ SomeItemsConstraint applies another constraint to each
+ item in a collection, succeeding if any of them succeeds.
+
+
+
+
+ Construct a SomeItemsConstraint on top of an existing constraint
+
+
+
+
+
+ Apply the item constraint to each item in the collection,
+ succeeding if any item succeeds.
+
+
+
+
+
+
+ Write a description of this constraint to a MessageWriter
+
+
+
+
+
+ NoItemConstraint applies another constraint to each
+ item in a collection, failing if any of them succeeds.
+
+
+
+
+ Construct a SomeItemsConstraint on top of an existing constraint
+
+
+
+
+
+ Apply the item constraint to each item in the collection,
+ failing if any item fails.
+
+
+
+
+
+
+ Write a description of this constraint to a MessageWriter
+
+
+
+
+
+ The Numerics class contains common operations on numeric values.
+
+
+
+
+ Checks the type of the object, returning true if
+ the object is a numeric type.
+
+ The object to check
+ true if the object is a numeric type
+
+
+
+ Checks the type of the object, returning true if
+ the object is a floating point numeric type.
+
+ The object to check
+ true if the object is a floating point numeric type
+
+
+
+ Checks the type of the object, returning true if
+ the object is a fixed point numeric type.
+
+ The object to check
+ true if the object is a fixed point numeric type
+
+
+
+ Test two numeric values for equality, performing the usual numeric
+ conversions and using a provided or default tolerance. If the tolerance
+ provided is Empty, this method may set it to a default tolerance.
+
+ The expected value
+ The actual value
+ A reference to the tolerance in effect
+ True if the values are equal
+
+
+
+ Compare two numeric values, performing the usual numeric conversions.
+
+ The expected value
+ The actual value
+ The relationship of the values to each other
+
+
+
+ MessageWriter is the abstract base for classes that write
+ constraint descriptions and messages in some form. The
+ class has separate methods for writing various components
+ of a message, allowing implementations to tailor the
+ presentation as needed.
+
+
+
+
+ Construct a MessageWriter given a culture
+
+
+
+
+ Method to write single line message with optional args, usually
+ written to precede the general failure message.
+
+ The message to be written
+ Any arguments used in formatting the message
+
+
+
+ Method to write single line message with optional args, usually
+ written to precede the general failure message, at a givel
+ indentation level.
+
+ The indentation level of the message
+ The message to be written
+ Any arguments used in formatting the message
+
+
+
+ Display Expected and Actual lines for a constraint. This
+ is called by MessageWriter's default implementation of
+ WriteMessageTo and provides the generic two-line display.
+
+ The constraint that failed
+
+
+
+ Display Expected and Actual lines for given values. This
+ method may be called by constraints that need more control over
+ the display of actual and expected values than is provided
+ by the default implementation.
+
+ The expected value
+ The actual value causing the failure
+
+
+
+ Display Expected and Actual lines for given values, including
+ a tolerance value on the Expected line.
+
+ The expected value
+ The actual value causing the failure
+ The tolerance within which the test was made
+
+
+
+ Display the expected and actual string values on separate lines.
+ If the mismatch parameter is >=0, an additional line is displayed
+ line containing a caret that points to the mismatch point.
+
+ The expected string value
+ The actual string value
+ The point at which the strings don't match or -1
+ If true, case is ignored in locating the point where the strings differ
+ If true, the strings should be clipped to fit the line
+
+
+
+ Writes the text for a connector.
+
+ The connector.
+
+
+
+ Writes the text for a predicate.
+
+ The predicate.
+
+
+
+ Writes the text for an expected value.
+
+ The expected value.
+
+
+
+ Writes the text for a modifier
+
+ The modifier.
+
+
+
+ Writes the text for an actual value.
+
+ The actual value.
+
+
+
+ Writes the text for a generalized value.
+
+ The value.
+
+
+
+ Writes the text for a collection value,
+ starting at a particular point, to a max length
+
+ The collection containing elements to write.
+ The starting point of the elements to write
+ The maximum number of elements to write
+
+
+
+ Abstract method to get the max line length
+
+
+
+
+ Static methods used in creating messages
+
+
+
+
+ Static string used when strings are clipped
+
+
+
+
+ Returns the representation of a type as used in NUnitLite.
+ This is the same as Type.ToString() except for arrays,
+ which are displayed with their declared sizes.
+
+
+
+
+
+
+ Converts any control characters in a string
+ to their escaped representation.
+
+ The string to be converted
+ The converted string
+
+
+
+ Return the a string representation for a set of indices into an array
+
+ Array of indices for which a string is needed
+
+
+
+ Get an array of indices representing the point in a collection or
+ array corresponding to a single int index into the collection.
+
+ The collection to which the indices apply
+ Index in the collection
+ Array of indices
+
+
+
+ Clip a string to a given length, starting at a particular offset, returning the clipped
+ string with ellipses representing the removed parts
+
+ The string to be clipped
+ The maximum permitted length of the result string
+ The point at which to start clipping
+ The clipped string
+
+
+
+ Clip the expected and actual strings in a coordinated fashion,
+ so that they may be displayed together.
+
+
+
+
+
+
+
+
+ Shows the position two strings start to differ. Comparison
+ starts at the start index.
+
+ The expected string
+ The actual string
+ The index in the strings at which comparison should start
+ Boolean indicating whether case should be ignored
+ -1 if no mismatch found, or the index where mismatch found
+
+
+
+ PathConstraint serves as the abstract base of constraints
+ that operate on paths and provides several helper methods.
+
+
+
+
+ The expected path used in the constraint
+
+
+
+
+ Flag indicating whether a caseInsensitive comparison should be made
+
+
+
+
+ Construct a PathConstraint for a give expected path
+
+ The expected path
+
+
+
+ Returns the string representation of this constraint
+
+
+
+
+ Canonicalize the provided path
+
+
+ The path in standardized form
+
+
+
+ Test whether two paths are the same
+
+ The first path
+ The second path
+
+
+
+
+ Test whether one path is the same as or under another path
+
+ The first path - supposed to be the parent path
+ The second path - supposed to be the child path
+
+
+
+
+ Modifies the current instance to be case-insensitve
+ and returns it.
+
+
+
+
+ Modifies the current instance to be case-sensitve
+ and returns it.
+
+
+
+
+ Summary description for SamePathConstraint.
+
+
+
+
+ Initializes a new instance of the class.
+
+ The expected path
+
+
+
+ Test whether the constraint is satisfied by a given value
+
+ The value to be tested
+ True for success, false for failure
+
+
+
+ Write the constraint description to a MessageWriter
+
+ The writer on which the description is displayed
+
+
+
+ SamePathOrUnderConstraint tests that one path is under another
+
+
+
+
+ Initializes a new instance of the class.
+
+ The expected path
+
+
+
+ Test whether the constraint is satisfied by a given value
+
+ The value to be tested
+ True for success, false for failure
+
+
+
+ Write the constraint description to a MessageWriter
+
+ The writer on which the description is displayed
+
+
+
+ EmptyDirectoryConstraint is used to test that a directory is empty
+
+
+
+
+ Test whether the constraint is satisfied by a given value
+
+ The value to be tested
+ True for success, false for failure
+
+
+
+ Write the constraint description to a MessageWriter
+
+ The writer on which the description is displayed
+
+
+
+ Write the actual value for a failing constraint test to a
+ MessageWriter. The default implementation simply writes
+ the raw value of actual, leaving it to the writer to
+ perform any formatting.
+
+ The writer on which the actual value is displayed
+
+
+
+ SubDirectoryConstraint is used to test that one directory is a subdirectory of another.
+
+
+
+
+ Initializes a new instance of the class.
+
+ The dir info.
+
+
+
+ Test whether the constraint is satisfied by a given value
+
+ The value to be tested
+ True for success, false for failure
+
+
+
+ Write the constraint description to a MessageWriter
+
+ The writer on which the description is displayed
+
+
+
+ Builds a list of DirectoryInfo objects, recursing where necessary
+
+ directory to recurse
+ list of DirectoryInfo objects from the top level
+
+
+
+ private method to determine whether a directory is within the path
+
+ top-level directory to search
+ directory to search for
+ true if found, false if not
+
+
+
+ Method to compare two DirectoryInfo objects
+
+ first directory to compare
+ second directory to compare
+ true if equivalent, false if not
+
+
+
+ ThrowsConstraint is used to test the exception thrown by
+ a delegate by applying a constraint to it.
+
+
+
+
+ Initializes a new instance of the class,
+ using a constraint to be applied to the exception.
+
+ A constraint to apply to the caught exception.
+
+
+
+ Executes the code of the delegate and captures any exception.
+ If a non-null base constraint was provided, it applies that
+ constraint to the exception.
+
+ A delegate representing the code to be tested
+ True if an exception is thrown and the constraint succeeds, otherwise false
+
+
+
+ Converts an ActualValueDelegate to a TestDelegate
+ before calling the primary overload.
+
+
+
+
+
+
+ Write the constraint description to a MessageWriter
+
+ The writer on which the description is displayed
+
+
+
+ Write the actual value for a failing constraint test to a
+ MessageWriter. The default implementation simply writes
+ the raw value of actual, leaving it to the writer to
+ perform any formatting.
+
+ The writer on which the actual value is displayed
+
+
+
+ Returns the string representation of this constraint
+
+
+
+
+ Get the actual exception thrown - used by Assert.Throws.
+
+
+
+
+ ThrowsNothingConstraint tests that a delegate does not
+ throw an exception.
+
+
+
+
+ Test whether the constraint is satisfied by a given value
+
+ The value to be tested
+ True if no exception is thrown, otherwise false
+
+
+
+ Write the constraint description to a MessageWriter
+
+ The writer on which the description is displayed
+
+
+
+ Write the actual value for a failing constraint test to a
+ MessageWriter. The default implementation simply writes
+ the raw value of actual, leaving it to the writer to
+ perform any formatting.
+
+ The writer on which the actual value is displayed
+
+
+
+ RangeConstraint tests whethe two values are within a
+ specified range.
+
+
+
+
+ Initializes a new instance of the class.
+
+ From.
+ To.
+
+
+
+ Test whether the constraint is satisfied by a given value
+
+ The value to be tested
+ True for success, false for failure
+
+
+
+ Write the constraint description to a MessageWriter
+
+ The writer on which the description is displayed
+
+
+
+ Modifies the constraint to use an IComparer and returns self.
+
+
+
+
+ Modifies the constraint to use an IComparer<T> and returns self.
+
+
+
+
+ Modifies the constraint to use a Comparison<T> and returns self.
+
+
+
+
+ Helper class with properties and methods that supply
+ a number of constraints used in Asserts.
+
+
+
+
+ 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.
+
+
+
+
+ Returns a new AttributeConstraint checking for the
+ presence of a particular attribute on an object.
+
+
+
+
+ Returns a new AttributeConstraint checking for the
+ presence of a particular attribute on an object.
+
+
+
+
+ Returns a constraint that tests two items for equality
+
+
+
+
+ Returns a constraint that tests that two references are the same object
+
+
+
+
+ Returns a constraint that tests whether the
+ actual value is greater than the suppled argument
+
+
+
+
+ Returns a constraint that tests whether the
+ actual value is greater than or equal to the suppled argument
+
+
+
+
+ Returns a constraint that tests whether the
+ actual value is greater than or equal to the suppled argument
+
+
+
+
+ Returns a constraint that tests whether the
+ actual value is less than the suppled argument
+
+
+
+
+ Returns a constraint that tests whether the
+ actual value is less than or equal to the suppled argument
+
+
+
+
+ Returns a constraint that tests whether the
+ actual value is less than or equal to the suppled argument
+
+
+
+
+ Returns a constraint that tests whether the actual
+ value is of the exact type supplied as an argument.
+
+
+
+
+ Returns a constraint that tests whether the actual
+ value is of the exact type supplied as an argument.
+
+
+
+
+ Returns a constraint that tests whether the actual value
+ is of the type supplied as an argument or a derived type.
+
+
+
+
+ Returns a constraint that tests whether the actual value
+ is of the type supplied as an argument or a derived type.
+
+
+
+
+ Returns a constraint that tests whether the actual value
+ is of the type supplied as an argument or a derived type.
+
+
+
+
+ Returns a constraint that tests whether the actual value
+ is of the type supplied as an argument or a derived type.
+
+
+
+
+ Returns a constraint that tests whether the actual value
+ is assignable from the type supplied as an argument.
+
+
+
+
+ Returns a constraint that tests whether the actual value
+ is assignable from the type supplied as an argument.
+
+
+
+
+ Returns a constraint that tests whether the actual value
+ is assignable from the type supplied as an argument.
+
+
+
+
+ Returns a constraint that tests whether the actual value
+ is assignable from the type supplied as an argument.
+
+
+
+
+ Returns a constraint that tests whether the actual value
+ is a collection containing the same elements as the
+ collection supplied as an argument.
+
+
+
+
+ Returns a constraint that tests whether the actual value
+ is a subset of the collection supplied as an argument.
+
+
+
+
+ Returns a new CollectionContainsConstraint checking for the
+ presence of a particular object in the collection.
+
+
+
+
+ Returns a new CollectionContainsConstraint checking for the
+ presence of a particular object in the collection.
+
+
+
+
+ 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.
+
+
+
+
+ Returns a constraint that succeeds if the actual
+ value contains the substring supplied as an argument.
+
+
+
+
+ Returns a constraint that succeeds if the actual
+ value contains the substring supplied as an argument.
+
+
+
+
+ Returns a constraint that fails if the actual
+ value contains the substring supplied as an argument.
+
+
+
+
+ Returns a constraint that succeeds if the actual
+ value starts with the substring supplied as an argument.
+
+
+
+
+ Returns a constraint that succeeds if the actual
+ value starts with the substring supplied as an argument.
+
+
+
+
+ Returns a constraint that fails if the actual
+ value starts with the substring supplied as an argument.
+
+
+
+
+ Returns a constraint that succeeds if the actual
+ value ends with the substring supplied as an argument.
+
+
+
+
+ Returns a constraint that succeeds if the actual
+ value ends with the substring supplied as an argument.
+
+
+
+
+ Returns a constraint that fails if the actual
+ value ends with the substring supplied as an argument.
+
+
+
+
+ Returns a constraint that succeeds if the actual
+ value matches the Regex pattern supplied as an argument.
+
+
+
+
+ Returns a constraint that succeeds if the actual
+ value matches the Regex pattern supplied as an argument.
+
+
+
+
+ Returns a constraint that fails if the actual
+ value matches the pattern supplied as an argument.
+
+
+
+
+ Returns a constraint that tests whether the path provided
+ is the same as an expected path after canonicalization.
+
+
+
+
+ Returns a constraint that tests whether the path provided
+ is the same path or under an expected path after canonicalization.
+
+
+
+
+ Returns a constraint that tests whether the actual value falls
+ within a specified range.
+
+
+
+
+ Returns a ConstraintExpression that negates any
+ following constraint.
+
+
+
+
+ Returns a ConstraintExpression that negates any
+ following constraint.
+
+
+
+
+ Returns a ConstraintExpression, which will apply
+ the following constraint to all members of a collection,
+ succeeding if all of them succeed.
+
+
+
+
+ Returns a ConstraintExpression, which will apply
+ the following constraint to all members of a collection,
+ succeeding if at least one of them succeeds.
+
+
+
+
+ Returns a ConstraintExpression, which will apply
+ the following constraint to all members of a collection,
+ succeeding if all of them fail.
+
+
+
+
+ Returns a new ConstraintExpression, which will apply the following
+ constraint to the Length property of the object being tested.
+
+
+
+
+ Returns a new ConstraintExpression, which will apply the following
+ constraint to the Count property of the object being tested.
+
+
+
+
+ Returns a new ConstraintExpression, which will apply the following
+ constraint to the Message property of the object being tested.
+
+
+
+
+ Returns a new ConstraintExpression, which will apply the following
+ constraint to the InnerException property of the object being tested.
+
+
+
+
+ Returns a constraint that tests for null
+
+
+
+
+ Returns a constraint that tests for True
+
+
+
+
+ Returns a constraint that tests for False
+
+
+
+
+ Returns a constraint that tests for NaN
+
+
+
+
+ Returns a constraint that tests for empty
+
+
+
+
+ Returns a constraint that tests whether a collection
+ contains all unique items.
+
+
+
+
+ Returns a constraint that tests whether an object graph is serializable in binary format.
+
+
+
+
+ Returns a constraint that tests whether an object graph is serializable in xml format.
+
+
+
+
+ Returns a constraint that tests whether a collection is ordered
+
+
+
+
+ The ConstraintOperator class is used internally by a
+ ConstraintBuilder to represent an operator that
+ modifies or combines constraints.
+
+ Constraint operators use left and right precedence
+ values to determine whether the top operator on the
+ stack should be reduced before pushing a new operator.
+
+
+
+
+ The precedence value used when the operator
+ is about to be pushed to the stack.
+
+
+
+
+ The precedence value used when the operator
+ is on the top of the stack.
+
+
+
+
+ Reduce produces a constraint from the operator and
+ any arguments. It takes the arguments from the constraint
+ stack and pushes the resulting constraint on it.
+
+
+
+
+
+ The syntax element preceding this operator
+
+
+
+
+ The syntax element folowing this operator
+
+
+
+
+ The precedence value used when the operator
+ is about to be pushed to the stack.
+
+
+
+
+ The precedence value used when the operator
+ is on the top of the stack.
+
+
+
+
+ PrefixOperator takes a single constraint and modifies
+ it's action in some way.
+
+
+
+
+ Reduce produces a constraint from the operator and
+ any arguments. It takes the arguments from the constraint
+ stack and pushes the resulting constraint on it.
+
+
+
+
+
+ Returns the constraint created by applying this
+ prefix to another constraint.
+
+
+
+
+
+
+ Negates the test of the constraint it wraps.
+
+
+
+
+ Constructs a new NotOperator
+
+
+
+
+ Returns a NotConstraint applied to its argument.
+
+
+
+
+ Abstract base for operators that indicate how to
+ apply a constraint to items in a collection.
+
+
+
+
+ Constructs a CollectionOperator
+
+
+
+
+ Represents a constraint that succeeds if all the
+ members of a collection match a base constraint.
+
+
+
+
+ Returns a constraint that will apply the argument
+ to the members of a collection, succeeding if
+ they all succeed.
+
+
+
+
+ Represents a constraint that succeeds if any of the
+ members of a collection match a base constraint.
+
+
+
+
+ Returns a constraint that will apply the argument
+ to the members of a collection, succeeding if
+ any of them succeed.
+
+
+
+
+ Represents a constraint that succeeds if none of the
+ members of a collection match a base constraint.
+
+
+
+
+ Returns a constraint that will apply the argument
+ to the members of a collection, succeeding if
+ none of them succeed.
+
+
+
+
+ Represents a constraint that simply wraps the
+ constraint provided as an argument, without any
+ further functionality, but which modifes the
+ order of evaluation because of its precedence.
+
+
+
+
+ Constructor for the WithOperator
+
+
+
+
+ Returns a constraint that wraps its argument
+
+
+
+
+ Abstract base class for operators that are able to reduce to a
+ constraint whether or not another syntactic element follows.
+
+
+
+
+ Operator used to test for the presence of a named Property
+ on an object and optionally apply further tests to the
+ value of that property.
+
+
+
+
+ Constructs a PropOperator for a particular named property
+
+
+
+
+ Reduce produces a constraint from the operator and
+ any arguments. It takes the arguments from the constraint
+ stack and pushes the resulting constraint on it.
+
+
+
+
+
+ Gets the name of the property to which the operator applies
+
+
+
+
+ Operator that tests for the presence of a particular attribute
+ on a type and optionally applies further tests to the attribute.
+
+
+
+
+ Construct an AttributeOperator for a particular Type
+
+ The Type of attribute tested
+
+
+
+ Reduce produces a constraint from the operator and
+ any arguments. It takes the arguments from the constraint
+ stack and pushes the resulting constraint on it.
+
+
+
+
+ Operator that tests that an exception is thrown and
+ optionally applies further tests to the exception.
+
+
+
+
+ Construct a ThrowsOperator
+
+
+
+
+ Reduce produces a constraint from the operator and
+ any arguments. It takes the arguments from the constraint
+ stack and pushes the resulting constraint on it.
+
+
+
+
+ Abstract base class for all binary operators
+
+
+
+
+ Reduce produces a constraint from the operator and
+ any arguments. It takes the arguments from the constraint
+ stack and pushes the resulting constraint on it.
+
+
+
+
+
+ Abstract method that produces a constraint by applying
+ the operator to its left and right constraint arguments.
+
+
+
+
+ Gets the left precedence of the operator
+
+
+
+
+ Gets the right precedence of the operator
+
+
+
+
+ Operator that requires both it's arguments to succeed
+
+
+
+
+ Construct an AndOperator
+
+
+
+
+ Apply the operator to produce an AndConstraint
+
+
+
+
+ Operator that requires at least one of it's arguments to succeed
+
+
+
+
+ Construct an OrOperator
+
+
+
+
+ Apply the operator to produce an OrConstraint
+
+
+
+
+ ConstraintExpression represents a compound constraint in the
+ process of being constructed from a series of syntactic elements.
+
+ Individual elements are appended to the expression as they are
+ reognized. Once an actual Constraint is appended, the expression
+ returns a resolvable Constraint.
+
+
+
+
+ ConstraintExpressionBase is the abstract base class for the
+ generated ConstraintExpression class, which represents a
+ compound constraint in the process of being constructed
+ from a series of syntactic elements.
+
+ NOTE: ConstraintExpressionBase is aware of some of its
+ derived classes, which is an apparent violation of
+ encapsulation. Ideally, these classes would be a
+ single class, but they must be separated in order to
+ allow parts to be generated under .NET 1.x and to
+ provide proper user feedback in syntactically
+ aware IDEs.
+
+
+
+
+ The ConstraintBuilder holding the elements recognized so far
+
+
+
+
+ Initializes a new instance of the class.
+
+
+
+
+ Initializes a new instance of the
+ class passing in a ConstraintBuilder, which may be pre-populated.
+
+ The builder.
+
+
+
+ Returns a string representation of the expression as it
+ currently stands. This should only be used for testing,
+ since it has the side-effect of resolving the expression.
+
+
+
+
+
+ Appends an operator to the expression and returns the
+ resulting expression itself.
+
+
+
+
+ Appends a self-resolving operator to the expression and
+ returns a new ResolvableConstraintExpression.
+
+
+
+
+ Appends a constraint to the expression and returns that
+ constraint, which is associated with the current state
+ of the expression being built.
+
+
+
+
+ Initializes a new instance of the class.
+
+
+
+
+ Initializes a new instance of the
+ class passing in a ConstraintBuilder, which may be pre-populated.
+
+ The builder.
+
+
+
+ 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.
+
+
+
+
+ Returns a new AttributeConstraint checking for the
+ presence of a particular attribute on an object.
+
+
+
+
+ Returns a new AttributeConstraint checking for the
+ presence of a particular attribute on an object.
+
+
+
+
+ Returns the constraint provided as an argument - used to allow custom
+ custom constraints to easily participate in the syntax.
+
+
+
+
+ Returns the constraint provided as an argument - used to allow custom
+ custom constraints to easily participate in the syntax.
+
+
+
+
+ Returns a constraint that tests two items for equality
+
+
+
+
+ Returns a constraint that tests that two references are the same object
+
+
+
+
+ Returns a constraint that tests whether the
+ actual value is greater than the suppled argument
+
+
+
+
+ Returns a constraint that tests whether the
+ actual value is greater than or equal to the suppled argument
+
+
+
+
+ Returns a constraint that tests whether the
+ actual value is greater than or equal to the suppled argument
+
+
+
+
+ Returns a constraint that tests whether the
+ actual value is less than the suppled argument
+
+
+
+
+ Returns a constraint that tests whether the
+ actual value is less than or equal to the suppled argument
+
+
+
+
+ Returns a constraint that tests whether the
+ actual value is less than or equal to the suppled argument
+
+
+
+
+ Returns a constraint that tests whether the actual
+ value is of the exact type supplied as an argument.
+
+
+
+
+ Returns a constraint that tests whether the actual
+ value is of the exact type supplied as an argument.
+
+
+
+
+ Returns a constraint that tests whether the actual value
+ is of the type supplied as an argument or a derived type.
+
+
+
+
+ Returns a constraint that tests whether the actual value
+ is of the type supplied as an argument or a derived type.
+
+
+
+
+ Returns a constraint that tests whether the actual value
+ is of the type supplied as an argument or a derived type.
+
+
+
+
+ Returns a constraint that tests whether the actual value
+ is of the type supplied as an argument or a derived type.
+
+
+
+
+ Returns a constraint that tests whether the actual value
+ is assignable from the type supplied as an argument.
+
+
+
+
+ Returns a constraint that tests whether the actual value
+ is assignable from the type supplied as an argument.
+
+
+
+
+ Returns a constraint that tests whether the actual value
+ is assignable from the type supplied as an argument.
+
+
+
+
+ Returns a constraint that tests whether the actual value
+ is assignable from the type supplied as an argument.
+
+
+
+
+ Returns a constraint that tests whether the actual value
+ is a collection containing the same elements as the
+ collection supplied as an argument.
+
+
+
+
+ Returns a constraint that tests whether the actual value
+ is a subset of the collection supplied as an argument.
+
+
+
+
+ Returns a new CollectionContainsConstraint checking for the
+ presence of a particular object in the collection.
+
+
+
+
+ Returns a new CollectionContainsConstraint checking for the
+ presence of a particular object in the collection.
+
+
+
+
+ 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.
+
+
+
+
+ Returns a constraint that succeeds if the actual
+ value contains the substring supplied as an argument.
+
+
+
+
+ Returns a constraint that succeeds if the actual
+ value contains the substring supplied as an argument.
+
+
+
+
+ Returns a constraint that succeeds if the actual
+ value starts with the substring supplied as an argument.
+
+
+
+
+ Returns a constraint that succeeds if the actual
+ value starts with the substring supplied as an argument.
+
+
+
+
+ Returns a constraint that succeeds if the actual
+ value ends with the substring supplied as an argument.
+
+
+
+
+ Returns a constraint that succeeds if the actual
+ value ends with the substring supplied as an argument.
+
+
+
+
+ Returns a constraint that succeeds if the actual
+ value matches the Regex pattern supplied as an argument.
+
+
+
+
+ Returns a constraint that succeeds if the actual
+ value matches the Regex pattern supplied as an argument.
+
+
+
+
+ Returns a constraint that tests whether the path provided
+ is the same as an expected path after canonicalization.
+
+
+
+
+ Returns a constraint that tests whether the path provided
+ is the same path or under an expected path after canonicalization.
+
+
+
+
+ Returns a constraint that tests whether the actual value falls
+ within a specified range.
+
+
+
+
+ Returns a ConstraintExpression that negates any
+ following constraint.
+
+
+
+
+ Returns a ConstraintExpression that negates any
+ following constraint.
+
+
+
+
+ Returns a ConstraintExpression, which will apply
+ the following constraint to all members of a collection,
+ succeeding if all of them succeed.
+
+
+
+
+ Returns a ConstraintExpression, which will apply
+ the following constraint to all members of a collection,
+ succeeding if at least one of them succeeds.
+
+
+
+
+ Returns a ConstraintExpression, which will apply
+ the following constraint to all members of a collection,
+ succeeding if all of them fail.
+
+
+
+
+ Returns a new ConstraintExpression, which will apply the following
+ constraint to the Length property of the object being tested.
+
+
+
+
+ Returns a new ConstraintExpression, which will apply the following
+ constraint to the Count property of the object being tested.
+
+
+
+
+ Returns a new ConstraintExpression, which will apply the following
+ constraint to the Message property of the object being tested.
+
+
+
+
+ Returns a new ConstraintExpression, which will apply the following
+ constraint to the InnerException property of the object being tested.
+
+
+
+
+ With is currently a NOP - reserved for future use.
+
+
+
+
+ Returns a constraint that tests for null
+
+
+
+
+ Returns a constraint that tests for True
+
+
+
+
+ Returns a constraint that tests for False
+
+
+
+
+ Returns a constraint that tests for NaN
+
+
+
+
+ Returns a constraint that tests for empty
+
+
+
+
+ Returns a constraint that tests whether a collection
+ contains all unique items.
+
+
+
+
+ Returns a constraint that tests whether an object graph is serializable in binary format.
+
+
+
+
+ Returns a constraint that tests whether an object graph is serializable in xml format.
+
+
+
+
+ Returns a constraint that tests whether a collection is ordered
+
+
+
+
+ BinarySerializableConstraint tests whether
+ an object is serializable in binary format.
+
+
+
+
+ Test whether the constraint is satisfied by a given value
+
+ The value to be tested
+ True for success, false for failure
+
+
+
+ Write the constraint description to a MessageWriter
+
+ The writer on which the description is displayed
+
+
+
+ Write the actual value for a failing constraint test to a
+ MessageWriter. The default implementation simply writes
+ the raw value of actual, leaving it to the writer to
+ perform any formatting.
+
+ The writer on which the actual value is displayed
+
+
+
+ Returns the string representation
+
+
+
+
+ BinarySerializableConstraint tests whether
+ an object is serializable in binary format.
+
+
+
+
+ Test whether the constraint is satisfied by a given value
+
+ The value to be tested
+ True for success, false for failure
+
+
+
+ Write the constraint description to a MessageWriter
+
+ The writer on which the description is displayed
+
+
+
+ Write the actual value for a failing constraint test to a
+ MessageWriter. The default implementation simply writes
+ the raw value of actual, leaving it to the writer to
+ perform any formatting.
+
+ The writer on which the actual value is displayed
+
+
+
+ Returns the string representation of this constraint
+
+
+
+
+ BasicConstraint is the abstract base for constraints that
+ perform a simple comparison to a constant value.
+
+
+
+
+ Initializes a new instance of the class.
+
+ The expected.
+ The description.
+
+
+
+ Test whether the constraint is satisfied by a given value
+
+ The value to be tested
+ True for success, false for failure
+
+
+
+ Write the constraint description to a MessageWriter
+
+ The writer on which the description is displayed
+
+
+
+ NullConstraint tests that the actual value is null
+
+
+
+
+ Initializes a new instance of the class.
+
+
+
+
+ TrueConstraint tests that the actual value is true
+
+
+
+
+ Initializes a new instance of the class.
+
+
+
+
+ FalseConstraint tests that the actual value is false
+
+
+
+
+ Initializes a new instance of the class.
+
+
+
+
+ NaNConstraint tests that the actual value is a double or float NaN
+
+
+
+
+ Test that the actual value is an NaN
+
+
+
+
+
+
+ Write the constraint description to a specified writer
+
+
+
+
+
+ AttributeExistsConstraint tests for the presence of a
+ specified attribute on a Type.
+
+
+
+
+ Constructs an AttributeExistsConstraint for a specific attribute Type
+
+
+
+
+
+ Tests whether the object provides the expected attribute.
+
+ A Type, MethodInfo, or other ICustomAttributeProvider
+ True if the expected attribute is present, otherwise false
+
+
+
+ Writes the description of the constraint to the specified writer
+
+
+
+
+ AttributeConstraint tests that a specified attribute is present
+ on a Type or other provider and that the value of the attribute
+ satisfies some other constraint.
+
+
+
+
+ Constructs an AttributeConstraint for a specified attriute
+ Type and base constraint.
+
+
+
+
+
+
+ Determines whether the Type or other provider has the
+ expected attribute and if its value matches the
+ additional constraint specified.
+
+
+
+
+ Writes a description of the attribute to the specified writer.
+
+
+
+
+ Writes the actual value supplied to the specified writer.
+
+
+
+
+ Returns a string representation of the constraint.
+
+
+
+
+ ResolvableConstraintExpression is used to represent a compound
+ constraint being constructed at a point where the last operator
+ may either terminate the expression or may have additional
+ qualifying constraints added to it.
+
+ It is used, for example, for a Property element or for
+ an Exception element, either of which may be optionally
+ followed by constraints that apply to the property or
+ exception.
+
+
+
+
+ Create a new instance of ResolvableConstraintExpression
+
+
+
+
+ Create a new instance of ResolvableConstraintExpression,
+ passing in a pre-populated ConstraintBuilder.
+
+
+
+
+ Resolve the current expression to a Constraint
+
+
+
+
+ Appends an And Operator to the expression
+
+
+
+
+ Appends an Or operator to the expression.
+
+
+
+
+ Applies a delay to the match so that a match can be evaluated in the future.
+
+
+
+
+ Creates a new DelayedConstraint
+
+ The inner constraint two decorate
+ The time interval after which the match is performed
+ If the value of is less than 0
+
+
+
+ Creates a new DelayedConstraint
+
+ The inner constraint two decorate
+ The time interval after which the match is performed
+ The time interval used for polling
+ If the value of is less than 0
+
+
+
+ Test whether the constraint is satisfied by a given value
+
+ The value to be tested
+ True for if the base constraint fails, false if it succeeds
+
+
+
+ Test whether the constraint is satisfied by a delegate
+
+ The delegate whose value is to be tested
+ True for if the base constraint fails, false if it succeeds
+
+
+
+ Test whether the constraint is satisfied by a given reference.
+ Overridden to wait for the specified delay period before
+ calling the base constraint with the dereferenced value.
+
+ A reference to the value to be tested
+ True for success, false for failure
+
+
+
+ Write the constraint description to a MessageWriter
+
+ The writer on which the description is displayed
+
+
+
+ Write the actual value for a failing constraint test to a MessageWriter.
+
+ The writer on which the actual value is displayed
+
+
+
+ Returns the string representation of the constraint.
+
+
+
+ Helper routines for working with floating point numbers
+
+
+ The floating point comparison code is based on this excellent article:
+ http://www.cygnus-software.com/papers/comparingfloats/comparingfloats.htm
+
+
+ "ULP" means Unit in the Last Place and in the context of this library refers to
+ the distance between two adjacent floating point numbers. IEEE floating point
+ numbers can only represent a finite subset of natural numbers, with greater
+ accuracy for smaller numbers and lower accuracy for very large numbers.
+
+
+ If a comparison is allowed "2 ulps" of deviation, that means the values are
+ allowed to deviate by up to 2 adjacent floating point values, which might be
+ as low as 0.0000001 for small numbers or as high as 10.0 for large numbers.
+
+
+
+
+ Compares two floating point values for equality
+ First floating point value to be compared
+ Second floating point value t be compared
+
+ Maximum number of representable floating point values that are allowed to
+ be between the left and the right floating point values
+
+ True if both numbers are equal or close to being equal
+
+
+ Floating point values can only represent a finite subset of natural numbers.
+ For example, the values 2.00000000 and 2.00000024 can be stored in a float,
+ but nothing inbetween them.
+
+
+ This comparison will count how many possible floating point values are between
+ the left and the right number. If the number of possible values between both
+ numbers is less than or equal to maxUlps, then the numbers are considered as
+ being equal.
+
+
+ Implementation partially follows the code outlined here:
+ http://www.anttirt.net/2007/08/19/proper-floating-point-comparisons/
+
+
+
+
+ Compares two double precision floating point values for equality
+ First double precision floating point value to be compared
+ Second double precision floating point value t be compared
+
+ Maximum number of representable double precision floating point values that are
+ allowed to be between the left and the right double precision floating point values
+
+ True if both numbers are equal or close to being equal
+
+
+ Double precision floating point values can only represent a limited series of
+ natural numbers. For example, the values 2.0000000000000000 and 2.0000000000000004
+ can be stored in a double, but nothing inbetween them.
+
+
+ This comparison will count how many possible double precision floating point
+ values are between the left and the right number. If the number of possible
+ values between both numbers is less than or equal to maxUlps, then the numbers
+ are considered as being equal.
+
+
+ Implementation partially follows the code outlined here:
+ http://www.anttirt.net/2007/08/19/proper-floating-point-comparisons/
+
+
+
+
+
+ Reinterprets the memory contents of a floating point value as an integer value
+
+
+ Floating point value whose memory contents to reinterpret
+
+
+ The memory contents of the floating point value interpreted as an integer
+
+
+
+
+ Reinterprets the memory contents of a double precision floating point
+ value as an integer value
+
+
+ Double precision floating point value whose memory contents to reinterpret
+
+
+ The memory contents of the double precision floating point value
+ interpreted as an integer
+
+
+
+
+ Reinterprets the memory contents of an integer as a floating point value
+
+ Integer value whose memory contents to reinterpret
+
+ The memory contents of the integer value interpreted as a floating point value
+
+
+
+
+ Reinterprets the memory contents of an integer value as a double precision
+ floating point value
+
+ Integer whose memory contents to reinterpret
+
+ The memory contents of the integer interpreted as a double precision
+ floating point value
+
+
+
+ Union of a floating point variable and an integer
+
+
+ The union's value as a floating point variable
+
+
+ The union's value as an integer
+
+
+ The union's value as an unsigned integer
+
+
+ Union of a double precision floating point variable and a long
+
+
+ The union's value as a double precision floating point variable
+
+
+ The union's value as a long
+
+
+ The union's value as an unsigned long
+
+
+
+ Modes in which the tolerance value for a comparison can
+ be interpreted.
+
+
+
+
+ The tolerance was created with a value, without specifying
+ how the value would be used. This is used to prevent setting
+ the mode more than once and is generally changed to Linear
+ upon execution of the test.
+
+
+
+
+ The tolerance is used as a numeric range within which
+ two compared values are considered to be equal.
+
+
+
+
+ Interprets the tolerance as the percentage by which
+ the two compared values my deviate from each other.
+
+
+
+
+ Compares two values based in their distance in
+ representable numbers.
+
+
+
+
+ The Tolerance class generalizes the notion of a tolerance
+ within which an equality test succeeds. Normally, it is
+ used with numeric types, but it can be used with any
+ type that supports taking a difference between two
+ objects and comparing that difference to a value.
+
+
+
+
+ Constructs a linear tolerance of a specdified amount
+
+
+
+
+ Constructs a tolerance given an amount and ToleranceMode
+
+
+
+
+ Tests that the current Tolerance is linear with a
+ numeric value, throwing an exception if it is not.
+
+
+
+
+ Returns an empty Tolerance object, equivalent to
+ specifying an exact match.
+
+
+
+
+ Gets the ToleranceMode for the current Tolerance
+
+
+
+
+ Gets the value of the current Tolerance instance.
+
+
+
+
+ Returns a new tolerance, using the current amount as a percentage.
+
+
+
+
+ Returns a new tolerance, using the current amount in Ulps.
+
+
+
+
+ Returns a new tolerance with a TimeSpan as the amount, using
+ the current amount as a number of days.
+
+
+
+
+ Returns a new tolerance with a TimeSpan as the amount, using
+ the current amount as a number of hours.
+
+
+
+
+ Returns a new tolerance with a TimeSpan as the amount, using
+ the current amount as a number of minutes.
+
+
+
+
+ Returns a new tolerance with a TimeSpan as the amount, using
+ the current amount as a number of seconds.
+
+
+
+
+ Returns a new tolerance with a TimeSpan as the amount, using
+ the current amount as a number of milliseconds.
+
+
+
+
+ Returns a new tolerance with a TimeSpan as the amount, using
+ the current amount as a number of clock ticks.
+
+
+
+
+ Returns true if the current tolerance is empty.
+
+
+
+
+ ComparisonAdapter class centralizes all comparisons of
+ values in NUnit, adapting to the use of any provided
+ IComparer, IComparer<T> or Comparison<T>
+
+
+
+
+ Returns a ComparisonAdapter that wraps an IComparer
+
+
+
+
+ Returns a ComparisonAdapter that wraps an IComparer<T>
+
+
+
+
+ Returns a ComparisonAdapter that wraps a Comparison<T>
+
+
+
+
+ Compares two objects
+
+
+
+
+ Gets the default ComparisonAdapter, which wraps an
+ NUnitComparer object.
+
+
+
+
+ Construct a ComparisonAdapter for an IComparer
+
+
+
+
+ Compares two objects
+
+
+
+
+
+
+
+ Construct a default ComparisonAdapter
+
+
+
+
+ ComparisonAdapter<T> extends ComparisonAdapter and
+ allows use of an IComparer<T> or Comparison<T>
+ to actually perform the comparison.
+
+
+
+
+ Construct a ComparisonAdapter for an IComparer<T>
+
+
+
+
+ Compare a Type T to an object
+
+
+
+
+ Construct a ComparisonAdapter for a Comparison<T>
+
+
+
+
+ Compare a Type T to an object
+
+
+
+
+ EqualityAdapter class handles all equality comparisons
+ that use an IEqualityComparer, IEqualityComparer<T>
+ or a ComparisonAdapter.
+
+
+
+
+ Compares two objects, returning true if they are equal
+
+
+
+
+ Returns an EqualityAdapter that wraps an IComparer.
+
+
+
+
+ Returns an EqualityAdapter that wraps an IEqualityComparer.
+
+
+
+
+ Returns an EqualityAdapter that wraps an IEqualityComparer<T>.
+
+
+
+
+ Returns an EqualityAdapter that wraps an IComparer<T>.
+
+
+
+
+ Returns an EqualityAdapter that wraps a Comparison<T>.
+
+
+
+
+ NUnitComparer encapsulates NUnit's default behavior
+ in comparing two objects.
+
+
+
+
+ Compares two objects
+
+
+
+
+
+
+
+ Returns the default NUnitComparer.
+
+
+
+
+ NUnitEqualityComparer encapsulates NUnit's handling of
+ equality tests between objects.
+
+
+
+
+ If true, all string comparisons will ignore case
+
+
+
+
+ If true, arrays will be treated as collections, allowing
+ those of different dimensions to be compared
+
+
+
+
+ If non-zero, equality comparisons within the specified
+ tolerance will succeed.
+
+
+
+
+ Comparison object used in comparisons for some constraints.
+
+
+
+
+ Compares two objects for equality.
+
+
+
+
+ Helper method to compare two arrays
+
+
+
+
+ Method to compare two DirectoryInfo objects
+
+ first directory to compare
+ second directory to compare
+ true if equivalent, false if not
+
+
+
+ Returns the default NUnitEqualityComparer
+
+
+
+
+ Gets and sets a flag indicating whether case should
+ be ignored in determining equality.
+
+
+
+
+ Gets and sets a flag indicating that arrays should be
+ compared as collections, without regard to their shape.
+
+
+
+
+ Gets and sets an external comparer to be used to
+ test for equality. It is applied to members of
+ collections, in place of NUnit's own logic.
+
+
+
+
+ Gets and sets a tolerance used to compare objects of
+ certin types.
+
+
+
+
+ Gets the list of failure points for the last Match performed.
+
+
+
+
+ Predicate constraint wraps a Predicate in a constraint,
+ returning success if the predicate is true.
+
+
+
+
+ Construct a PredicateConstraint from a predicate
+
+
+
+
+ Determines whether the predicate succeeds when applied
+ to the actual value.
+
+
+
+
+ Writes the description to a MessageWriter
+
+
+
+
+ CollectionTally counts (tallies) the number of
+ occurences of each object in one or more enumerations.
+
+
+
+
+ Construct a CollectionTally object from a comparer and a collection
+
+
+
+
+ Try to remove an object from the tally
+
+ The object to remove
+ True if successful, false if the object was not found
+
+
+
+ Try to remove a set of objects from the tally
+
+ The objects to remove
+ True if successful, false if any object was not found
+
+
+
+ The number of objects remaining in the tally
+
+
+
+
+ SetUpFixtureAttribute is used to identify a SetUpFixture
+
+
+
+
+ Basic Asserts on strings.
+
+
+
+
+ The Equals method throws an AssertionException. This is done
+ to make sure there is no mistake by calling this function.
+
+
+
+
+
+
+ override the default ReferenceEquals to throw an AssertionException. This
+ implementation makes sure there is no mistake in calling this function
+ as part of Assert.
+
+
+
+
+
+
+ Asserts that a string is found within another string.
+
+ The expected string
+ The string to be examined
+ The message to display in case of failure
+ Arguments used in formatting the message
+
+
+
+ Asserts that a string is found within another string.
+
+ The expected string
+ The string to be examined
+ The message to display in case of failure
+
+
+
+ Asserts that a string is found within another string.
+
+ The expected string
+ The string to be examined
+
+
+
+ Asserts that a string is not found within another string.
+
+ The expected string
+ The string to be examined
+ The message to display in case of failure
+ Arguments used in formatting the message
+
+
+
+ Asserts that a string is found within another string.
+
+ The expected string
+ The string to be examined
+ The message to display in case of failure
+
+
+
+ Asserts that a string is found within another string.
+
+ The expected string
+ The string to be examined
+
+
+
+ Asserts that a string starts with another string.
+
+ The expected string
+ The string to be examined
+ The message to display in case of failure
+ Arguments used in formatting the message
+
+
+
+ Asserts that a string starts with another string.
+
+ The expected string
+ The string to be examined
+ The message to display in case of failure
+
+
+
+ Asserts that a string starts with another string.
+
+ The expected string
+ The string to be examined
+
+
+
+ Asserts that a string does not start with another string.
+
+ The expected string
+ The string to be examined
+ The message to display in case of failure
+ Arguments used in formatting the message
+
+
+
+ Asserts that a string does not start with another string.
+
+ The expected string
+ The string to be examined
+ The message to display in case of failure
+
+
+
+ Asserts that a string does not start with another string.
+
+ The expected string
+ The string to be examined
+
+
+
+ Asserts that a string ends with another string.
+
+ The expected string
+ The string to be examined
+ The message to display in case of failure
+ Arguments used in formatting the message
+
+
+
+ Asserts that a string ends with another string.
+
+ The expected string
+ The string to be examined
+ The message to display in case of failure
+
+
+
+ Asserts that a string ends with another string.
+
+ The expected string
+ The string to be examined
+
+
+
+ Asserts that a string does not end with another string.
+
+ The expected string
+ The string to be examined
+ The message to display in case of failure
+ Arguments used in formatting the message
+
+
+
+ Asserts that a string does not end with another string.
+
+ The expected string
+ The string to be examined
+ The message to display in case of failure
+
+
+
+ Asserts that a string does not end with another string.
+
+ The expected string
+ The string to be examined
+
+
+
+ Asserts that two strings are equal, without regard to case.
+
+ The expected string
+ The actual string
+ The message to display in case of failure
+ Arguments used in formatting the message
+
+
+
+ Asserts that two strings are equal, without regard to case.
+
+ The expected string
+ The actual string
+ The message to display in case of failure
+
+
+
+ Asserts that two strings are equal, without regard to case.
+
+ The expected string
+ The actual string
+
+
+
+ Asserts that two strings are not equal, without regard to case.
+
+ The expected string
+ The actual string
+ The message to display in case of failure
+ Arguments used in formatting the message
+
+
+
+ Asserts that two strings are Notequal, without regard to case.
+
+ The expected string
+ The actual string
+ The message to display in case of failure
+
+
+
+ Asserts that two strings are not equal, without regard to case.
+
+ The expected string
+ The actual string
+
+
+
+ Asserts that a string matches an expected regular expression pattern.
+
+ The regex pattern to be matched
+ The actual string
+ The message to display in case of failure
+ Arguments used in formatting the message
+
+
+
+ Asserts that a string matches an expected regular expression pattern.
+
+ The regex pattern to be matched
+ The actual string
+ The message to display in case of failure
+
+
+
+ Asserts that a string matches an expected regular expression pattern.
+
+ The regex pattern to be matched
+ The actual string
+
+
+
+ Asserts that a string does not match an expected regular expression pattern.
+
+ The regex pattern to be used
+ The actual string
+ The message to display in case of failure
+ Arguments used in formatting the message
+
+
+
+ Asserts that a string does not match an expected regular expression pattern.
+
+ The regex pattern to be used
+ The actual string
+ The message to display in case of failure
+
+
+
+ Asserts that a string does not match an expected regular expression pattern.
+
+ The regex pattern to be used
+ The actual string
+
+
+
+ PropertyAttribute is used to attach information to a test as a name/value pair..
+
+
+
+
+ Construct a PropertyAttribute with a name and string value
+
+ The name of the property
+ The property value
+
+
+
+ Construct a PropertyAttribute with a name and int value
+
+ The name of the property
+ The property value
+
+
+
+ Construct a PropertyAttribute with a name and double value
+
+ The name of the property
+ The property value
+
+
+
+ Constructor for derived classes that set the
+ property dictionary directly.
+
+
+
+
+ Constructor for use by derived classes that use the
+ name of the type as the property name. Derived classes
+ must ensure that the Type of the property value is
+ a standard type supported by the BCL. Any custom
+ types will cause a serialization Exception when
+ in the client.
+
+
+
+
+ Gets the property dictionary for this attribute
+
+
+
+
+ A set of Assert methods operationg on one or more collections
+
+
+
+
+ The Equals method throws an AssertionException. This is done
+ to make sure there is no mistake by calling this function.
+
+
+
+
+
+
+ override the default ReferenceEquals to throw an AssertionException. This
+ implementation makes sure there is no mistake in calling this function
+ as part of Assert.
+
+
+
+
+
+
+ Asserts that all items contained in collection are of the type specified by expectedType.
+
+ IEnumerable containing objects to be considered
+ System.Type that all objects in collection must be instances of
+
+
+
+ Asserts that all items contained in collection are of the type specified by expectedType.
+
+ IEnumerable containing objects to be considered
+ System.Type that all objects in collection must be instances of
+ The message that will be displayed on failure
+
+
+
+ Asserts that all items contained in collection are of the type specified by expectedType.
+
+ IEnumerable containing objects to be considered
+ System.Type that all objects in collection must be instances of
+ The message that will be displayed on failure
+ Arguments to be used in formatting the message
+
+
+
+ Asserts that all items contained in collection are not equal to null.
+
+ IEnumerable containing objects to be considered
+
+
+
+ Asserts that all items contained in collection are not equal to null.
+
+ IEnumerable containing objects to be considered
+ The message that will be displayed on failure
+
+
+
+ Asserts that all items contained in collection are not equal to null.
+
+ IEnumerable of objects to be considered
+ The message that will be displayed on failure
+ Arguments to be used in formatting the message
+
+
+
+ Ensures that every object contained in collection exists within the collection
+ once and only once.
+
+ IEnumerable of objects to be considered
+
+
+
+ Ensures that every object contained in collection exists within the collection
+ once and only once.
+
+ IEnumerable of objects to be considered
+ The message that will be displayed on failure
+
+
+
+ Ensures that every object contained in collection exists within the collection
+ once and only once.
+
+ IEnumerable of objects to be considered
+ The message that will be displayed on failure
+ Arguments to be used in formatting the message
+
+
+
+ Asserts that expected and actual are exactly equal. The collections must have the same count,
+ and contain the exact same objects in the same order.
+
+ The first IEnumerable of objects to be considered
+ The second IEnumerable of objects to be considered
+
+
+
+ Asserts that expected and actual are exactly equal. The collections must have the same count,
+ and contain the exact same objects in the same order.
+ If comparer is not null then it will be used to compare the objects.
+
+ The first IEnumerable of objects to be considered
+ The second IEnumerable of objects to be considered
+ The IComparer to use in comparing objects from each IEnumerable
+
+
+
+ Asserts that expected and actual are exactly equal. The collections must have the same count,
+ and contain the exact same objects in the same order.
+
+ The first IEnumerable of objects to be considered
+ The second IEnumerable of objects to be considered
+ The message that will be displayed on failure
+
+
+
+ Asserts that expected and actual are exactly equal. The collections must have the same count,
+ and contain the exact same objects in the same order.
+ If comparer is not null then it will be used to compare the objects.
+
+ The first IEnumerable of objects to be considered
+ The second IEnumerable of objects to be considered
+ The IComparer to use in comparing objects from each IEnumerable
+ The message that will be displayed on failure
+
+
+
+ Asserts that expected and actual are exactly equal. The collections must have the same count,
+ and contain the exact same objects in the same order.
+
+ The first IEnumerable of objects to be considered
+ The second IEnumerable of objects to be considered
+ The message that will be displayed on failure
+ Arguments to be used in formatting the message
+
+
+
+ Asserts that expected and actual are exactly equal. The collections must have the same count,
+ and contain the exact same objects in the same order.
+ If comparer is not null then it will be used to compare the objects.
+
+ The first IEnumerable of objects to be considered
+ The second IEnumerable of objects to be considered
+ The IComparer to use in comparing objects from each IEnumerable
+ The message that will be displayed on failure
+ Arguments to be used in formatting the message
+
+
+
+ Asserts that expected and actual are equivalent, containing the same objects but the match may be in any order.
+
+ The first IEnumerable of objects to be considered
+ The second IEnumerable of objects to be considered
+
+
+
+ Asserts that expected and actual are equivalent, containing the same objects but the match may be in any order.
+
+ The first IEnumerable of objects to be considered
+ The second IEnumerable of objects to be considered
+ The message that will be displayed on failure
+
+
+
+ Asserts that expected and actual are equivalent, containing the same objects but the match may be in any order.
+
+ The first IEnumerable of objects to be considered
+ The second IEnumerable of objects to be considered
+ The message that will be displayed on failure
+ Arguments to be used in formatting the message
+
+
+
+ Asserts that expected and actual are not exactly equal.
+
+ The first IEnumerable of objects to be considered
+ The second IEnumerable of objects to be considered
+
+
+
+ Asserts that expected and actual are not exactly equal.
+ If comparer is not null then it will be used to compare the objects.
+
+ The first IEnumerable of objects to be considered
+ The second IEnumerable of objects to be considered
+ The IComparer to use in comparing objects from each IEnumerable
+
+
+
+ Asserts that expected and actual are not exactly equal.
+
+ The first IEnumerable of objects to be considered
+ The second IEnumerable of objects to be considered
+ The message that will be displayed on failure
+
+
+
+ Asserts that expected and actual are not exactly equal.
+ If comparer is not null then it will be used to compare the objects.
+
+ The first IEnumerable of objects to be considered
+ The second IEnumerable of objects to be considered
+ The IComparer to use in comparing objects from each IEnumerable
+ The message that will be displayed on failure
+
+
+
+ Asserts that expected and actual are not exactly equal.
+
+ The first IEnumerable of objects to be considered
+ The second IEnumerable of objects to be considered
+ The message that will be displayed on failure
+ Arguments to be used in formatting the message
+
+
+
+ Asserts that expected and actual are not exactly equal.
+ If comparer is not null then it will be used to compare the objects.
+
+ The first IEnumerable of objects to be considered
+ The second IEnumerable of objects to be considered
+ The IComparer to use in comparing objects from each IEnumerable
+ The message that will be displayed on failure
+ Arguments to be used in formatting the message
+
+
+
+ Asserts that expected and actual are not equivalent.
+
+ The first IEnumerable of objects to be considered
+ The second IEnumerable of objects to be considered
+
+
+
+ Asserts that expected and actual are not equivalent.
+
+ The first IEnumerable of objects to be considered
+ The second IEnumerable of objects to be considered
+ The message that will be displayed on failure
+
+
+
+ Asserts that expected and actual are not equivalent.
+
+ The first IEnumerable of objects to be considered
+ The second IEnumerable of objects to be considered
+ The message that will be displayed on failure
+ Arguments to be used in formatting the message
+
+
+
+ Asserts that collection contains actual as an item.
+
+ IEnumerable of objects to be considered
+ Object to be found within collection
+
+
+
+ Asserts that collection contains actual as an item.
+
+ IEnumerable of objects to be considered
+ Object to be found within collection
+ The message that will be displayed on failure
+
+
+
+ Asserts that collection contains actual as an item.
+
+ IEnumerable of objects to be considered
+ Object to be found within collection
+ The message that will be displayed on failure
+ Arguments to be used in formatting the message
+
+
+
+ Asserts that collection does not contain actual as an item.
+
+ IEnumerable of objects to be considered
+ Object that cannot exist within collection
+
+
+
+ Asserts that collection does not contain actual as an item.
+
+ IEnumerable of objects to be considered
+ Object that cannot exist within collection
+ The message that will be displayed on failure
+
+
+
+ Asserts that collection does not contain actual as an item.
+
+ IEnumerable of objects to be considered
+ Object that cannot exist within collection
+ The message that will be displayed on failure
+ Arguments to be used in formatting the message
+
+
+
+ Asserts that superset is not a subject of subset.
+
+ The IEnumerable superset to be considered
+ The IEnumerable subset to be considered
+
+
+
+ Asserts that superset is not a subject of subset.
+
+ The IEnumerable superset to be considered
+ The IEnumerable subset to be considered
+ The message that will be displayed on failure
+
+
+
+ Asserts that superset is not a subject of subset.
+
+ The IEnumerable superset to be considered
+ The IEnumerable subset to be considered
+ The message that will be displayed on failure
+ Arguments to be used in formatting the message
+
+
+
+ Asserts that superset is a subset of subset.
+
+ The IEnumerable superset to be considered
+ The IEnumerable subset to be considered
+
+
+
+ Asserts that superset is a subset of subset.
+
+ The IEnumerable superset to be considered
+ The IEnumerable subset to be considered
+ The message that will be displayed on failure
+
+
+
+ Asserts that superset is a subset of subset.
+
+ The IEnumerable superset to be considered
+ The IEnumerable subset to be considered
+ The message that will be displayed on failure
+ Arguments to be used in formatting the message
+
+
+
+ Assert that an array, list or other collection is empty
+
+ An array, list or other collection implementing IEnumerable
+ The message to be displayed on failure
+ Arguments to be used in formatting the message
+
+
+
+ Assert that an array, list or other collection is empty
+
+ An array, list or other collection implementing IEnumerable
+ The message to be displayed on failure
+
+
+
+ Assert that an array,list or other collection is empty
+
+ An array, list or other collection implementing IEnumerable
+
+
+
+ Assert that an array, list or other collection is empty
+
+ An array, list or other collection implementing IEnumerable
+ The message to be displayed on failure
+ Arguments to be used in formatting the message
+
+
+
+ Assert that an array, list or other collection is empty
+
+ An array, list or other collection implementing IEnumerable
+ The message to be displayed on failure
+
+
+
+ Assert that an array,list or other collection is empty
+
+ An array, list or other collection implementing IEnumerable
+
+
+
+ Assert that an array, list or other collection is ordered
+
+ An array, list or other collection implementing IEnumerable
+ The message to be displayed on failure
+ Arguments to be used in formatting the message
+
+
+
+ Assert that an array, list or other collection is ordered
+
+ An array, list or other collection implementing IEnumerable
+ The message to be displayed on failure
+
+
+
+ Assert that an array, list or other collection is ordered
+
+ An array, list or other collection implementing IEnumerable
+
+
+
+ Assert that an array, list or other collection is ordered
+
+ An array, list or other collection implementing IEnumerable
+ A custom comparer to perform the comparisons
+ The message to be displayed on failure
+ Arguments to be used in formatting the message
+
+
+
+ Assert that an array, list or other collection is ordered
+
+ An array, list or other collection implementing IEnumerable
+ A custom comparer to perform the comparisons
+ The message to be displayed on failure
+
+
+
+ Assert that an array, list or other collection is ordered
+
+ An array, list or other collection implementing IEnumerable
+ A custom comparer to perform the comparisons
+
+
+
+ Summary description for FileAssert.
+
+
+
+
+ The Equals method throws an AssertionException. This is done
+ to make sure there is no mistake by calling this function.
+
+
+
+
+
+
+ override the default ReferenceEquals to throw an AssertionException. This
+ implementation makes sure there is no mistake in calling this function
+ as part of Assert.
+
+
+
+
+
+
+ We don't actually want any instances of this object, but some people
+ like to inherit from it to add other static methods. Hence, the
+ protected constructor disallows any instances of this object.
+
+
+
+
+ Verifies that two Streams are equal. Two Streams are considered
+ equal if both are null, or if both have the same value byte for byte.
+ If they are not equal an is thrown.
+
+ The expected Stream
+ The actual Stream
+ The message to display if Streams are not equal
+ Arguments to be used in formatting the message
+
+
+
+ Verifies that two Streams are equal. Two Streams are considered
+ equal if both are null, or if both have the same value byte for byte.
+ If they are not equal an is thrown.
+
+ The expected Stream
+ The actual Stream
+ The message to display if objects are not equal
+
+
+
+ Verifies that two Streams are equal. Two Streams are considered
+ equal if both are null, or if both have the same value byte for byte.
+ If they are not equal an is thrown.
+
+ The expected Stream
+ The actual Stream
+
+
+
+ Verifies that two files are equal. Two files are considered
+ equal if both are null, or if both have the same value byte for byte.
+ If they are not equal an is thrown.
+
+ A file containing the value that is expected
+ A file containing the actual value
+ The message to display if Streams are not equal
+ Arguments to be used in formatting the message
+
+
+
+ Verifies that two files are equal. Two files are considered
+ equal if both are null, or if both have the same value byte for byte.
+ If they are not equal an is thrown.
+
+ A file containing the value that is expected
+ A file containing the actual value
+ The message to display if objects are not equal
+
+
+
+ Verifies that two files are equal. Two files are considered
+ equal if both are null, or if both have the same value byte for byte.
+ If they are not equal an is thrown.
+
+ A file containing the value that is expected
+ A file containing the actual value
+
+
+
+ Verifies that two files are equal. Two files are considered
+ equal if both are null, or if both have the same value byte for byte.
+ If they are not equal an is thrown.
+
+ The path to a file containing the value that is expected
+ The path to a file containing the actual value
+ The message to display if Streams are not equal
+ Arguments to be used in formatting the message
+
+
+
+ Verifies that two files are equal. Two files are considered
+ equal if both are null, or if both have the same value byte for byte.
+ If they are not equal an is thrown.
+
+ The path to a file containing the value that is expected
+ The path to a file containing the actual value
+ The message to display if objects are not equal
+
+
+
+ Verifies that two files are equal. Two files are considered
+ equal if both are null, or if both have the same value byte for byte.
+ If they are not equal an is thrown.
+
+ The path to a file containing the value that is expected
+ The path to a file containing the actual value
+
+
+
+ Asserts that two Streams are not equal. If they are equal
+ an is thrown.
+
+ The expected Stream
+ The actual Stream
+ The message to be displayed when the two Stream are the same.
+ Arguments to be used in formatting the message
+
+
+
+ Asserts that two Streams are not equal. If they are equal
+ an is thrown.
+
+ The expected Stream
+ The actual Stream
+ The message to be displayed when the Streams are the same.
+
+
+
+ Asserts that two Streams are not equal. If they are equal
+ an is thrown.
+
+ The expected Stream
+ The actual Stream
+
+
+
+ Asserts that two files are not equal. If they are equal
+ an is thrown.
+
+ A file containing the value that is expected
+ A file containing the actual value
+ The message to display if Streams are not equal
+ Arguments to be used in formatting the message
+
+
+
+ Asserts that two files are not equal. If they are equal
+ an is thrown.
+
+ A file containing the value that is expected
+ A file containing the actual value
+ The message to display if objects are not equal
+
+
+
+ Asserts that two files are not equal. If they are equal
+ an is thrown.
+
+ A file containing the value that is expected
+ A file containing the actual value
+
+
+
+ Asserts that two files are not equal. If they are equal
+ an is thrown.
+
+ The path to a file containing the value that is expected
+ The path to a file containing the actual value
+ The message to display if Streams are not equal
+ Arguments to be used in formatting the message
+
+
+
+ Asserts that two files are not equal. If they are equal
+ an is thrown.
+
+ The path to a file containing the value that is expected
+ The path to a file containing the actual value
+ The message to display if objects are not equal
+
+
+
+ Asserts that two files are not equal. If they are equal
+ an is thrown.
+
+ The path to a file containing the value that is expected
+ The path to a file containing the actual value
+
+
+
+ Attribute used to provide descriptive text about a
+ test case or fixture.
+
+
+
+
+ Construct the attribute
+
+ Text describing the test
+
+
+
+ Gets the test description
+
+
+
+
+ Interface implemented by a user fixture in order to
+ validate any expected exceptions. It is only called
+ for test methods marked with the ExpectedException
+ attribute.
+
+
+
+
+ Method to handle an expected exception
+
+ The exception to be handled
+
+
+
+ TextMessageWriter writes constraint descriptions and messages
+ in displayable form as a text stream. It tailors the display
+ of individual message components to form the standard message
+ format of NUnit assertion failure messages.
+
+
+
+
+ Prefix used for the expected value line of a message
+
+
+
+
+ Prefix used for the actual value line of a message
+
+
+
+
+ Length of a message prefix
+
+
+
+
+ Construct a TextMessageWriter
+
+
+
+
+ Construct a TextMessageWriter, specifying a user message
+ and optional formatting arguments.
+
+
+
+
+
+
+ Method to write single line message with optional args, usually
+ written to precede the general failure message, at a givel
+ indentation level.
+
+ The indentation level of the message
+ The message to be written
+ Any arguments used in formatting the message
+
+
+
+ Display Expected and Actual lines for a constraint. This
+ is called by MessageWriter's default implementation of
+ WriteMessageTo and provides the generic two-line display.
+
+ The constraint that failed
+
+
+
+ Display Expected and Actual lines for given values. This
+ method may be called by constraints that need more control over
+ the display of actual and expected values than is provided
+ by the default implementation.
+
+ The expected value
+ The actual value causing the failure
+
+
+
+ Display Expected and Actual lines for given values, including
+ a tolerance value on the expected line.
+
+ The expected value
+ The actual value causing the failure
+ The tolerance within which the test was made
+
+
+
+ Display the expected and actual string values on separate lines.
+ If the mismatch parameter is >=0, an additional line is displayed
+ line containing a caret that points to the mismatch point.
+
+ The expected string value
+ The actual string value
+ The point at which the strings don't match or -1
+ If true, case is ignored in string comparisons
+ If true, clip the strings to fit the max line length
+
+
+
+ Writes the text for a connector.
+
+ The connector.
+
+
+
+ Writes the text for a predicate.
+
+ The predicate.
+
+
+
+ Write the text for a modifier.
+
+ The modifier.
+
+
+
+ Writes the text for an expected value.
+
+ The expected value.
+
+
+
+ Writes the text for an actual value.
+
+ The actual value.
+
+
+
+ Writes the text for a generalized value.
+
+ The value.
+
+
+
+ Writes the text for a collection value,
+ starting at a particular point, to a max length
+
+ The collection containing elements to write.
+ The starting point of the elements to write
+ The maximum number of elements to write
+
+
+
+ Write the generic 'Expected' line for a constraint
+
+ The constraint that failed
+
+
+
+ Write the generic 'Expected' line for a given value
+
+ The expected value
+
+
+
+ Write the generic 'Expected' line for a given value
+ and tolerance.
+
+ The expected value
+ The tolerance within which the test was made
+
+
+
+ Write the generic 'Actual' line for a constraint
+
+ The constraint for which the actual value is to be written
+
+
+
+ Write the generic 'Actual' line for a given value
+
+ The actual value causing a failure
+
+
+
+ Gets or sets the maximum line length for this writer
+
+
+
+
+ AssertionHelper is an optional base class for user tests,
+ allowing the use of shorter names for constraints and
+ asserts and avoiding conflict with the definition of
+ , from which it inherits much of its
+ behavior, in certain mock object frameworks.
+
+
+
+
+ Apply a constraint to an actual value, succeeding if the constraint
+ is satisfied and throwing an assertion exception on failure. Works
+ identically to
+
+ A Constraint to be applied
+ The actual value to test
+
+
+
+ Apply a constraint to an actual value, succeeding if the constraint
+ is satisfied and throwing an assertion exception on failure. Works
+ identically to
+
+ A Constraint to be applied
+ The actual value to test
+ The message that will be displayed on failure
+
+
+
+ Apply a constraint to an actual value, succeeding if the constraint
+ is satisfied and throwing an assertion exception on failure. Works
+ identically to
+
+ A Constraint to be applied
+ The actual value to test
+ The message that will be displayed on failure
+ Arguments to be used in formatting the message
+
+
+
+ Apply a constraint to an actual value, succeeding if the constraint
+ is satisfied and throwing an assertion exception on failure.
+
+ A Constraint expression to be applied
+ An ActualValueDelegate returning the value to be tested
+
+
+
+ Apply a constraint to an actual value, succeeding if the constraint
+ is satisfied and throwing an assertion exception on failure.
+
+ A Constraint expression to be applied
+ An ActualValueDelegate returning the value to be tested
+ The message that will be displayed on failure
+
+
+
+ Apply a constraint to an actual value, succeeding if the constraint
+ is satisfied and throwing an assertion exception on failure.
+
+ An ActualValueDelegate returning the value to be tested
+ A Constraint expression to be applied
+ The message that will be displayed on failure
+ Arguments to be used in formatting the message
+
+
+
+ Apply a constraint to a referenced value, succeeding if the constraint
+ is satisfied and throwing an assertion exception on failure.
+
+ A Constraint to be applied
+ The actual value to test
+
+
+
+ Apply a constraint to a referenced value, succeeding if the constraint
+ is satisfied and throwing an assertion exception on failure.
+
+ A Constraint to be applied
+ The actual value to test
+ The message that will be displayed on failure
+
+
+
+ Apply a constraint to a referenced value, succeeding if the constraint
+ is satisfied and throwing an assertion exception on failure.
+
+ A Constraint to be applied
+ The actual value to test
+ The message that will be displayed on failure
+ Arguments to be used in formatting the message
+
+
+
+ Asserts that a condition is true. If the condition is false the method throws
+ an . Works Identically to
+ .
+
+ The evaluated condition
+ The message to display if the condition is false
+ Arguments to be used in formatting the message
+
+
+
+ Asserts that a condition is true. If the condition is false the method throws
+ an . Works Identically to
+ .
+
+ The evaluated condition
+ The message to display if the condition is false
+
+
+
+ Asserts that a condition is true. If the condition is false the method throws
+ an . Works Identically to .
+
+ The evaluated condition
+
+
+
+ Asserts that the code represented by a delegate throws an exception
+ that satisfies the constraint provided.
+
+ A TestDelegate to be executed
+ A ThrowsConstraint used in the test
+
+
+
+ Returns a ListMapper based on a collection.
+
+ The original collection
+
+
+
+
+ Abstract base for Attributes that are used to include tests
+ in the test run based on environmental settings.
+
+
+
+
+ Constructor with no included items specified, for use
+ with named property syntax.
+
+
+
+
+ Constructor taking one or more included items
+
+ Comma-delimited list of included items
+
+
+
+ Name of the item that is needed in order for
+ a test to run. Multiple itemss may be given,
+ separated by a comma.
+
+
+
+
+ Name of the item to be excluded. Multiple items
+ may be given, separated by a comma.
+
+
+
+
+ The reason for including or excluding the test
+
+
+
+
+ PlatformAttribute is used to mark a test fixture or an
+ individual method as applying to a particular platform only.
+
+
+
+
+ Constructor with no platforms specified, for use
+ with named property syntax.
+
+
+
+
+ Constructor taking one or more platforms
+
+ Comma-deliminted list of platforms
+
+
+
+ CultureAttribute is used to mark a test fixture or an
+ individual method as applying to a particular Culture only.
+
+
+
+
+ Constructor with no cultures specified, for use
+ with named property syntax.
+
+
+
+
+ Constructor taking one or more cultures
+
+ Comma-deliminted list of cultures
+
+
+
+ Summary description for SetCultureAttribute.
+
+
+
+
+ Construct given the name of a culture
+
+
+
+
+
+ GlobalSettings is a place for setting default values used
+ by the framework in performing asserts.
+
+
+
+
+ Default tolerance for floating point equality
+
+
+
+
+ Summary description for DirectoryAssert
+
+
+
+
+ The Equals method throws an AssertionException. This is done
+ to make sure there is no mistake by calling this function.
+
+
+
+
+
+
+ override the default ReferenceEquals to throw an AssertionException. This
+ implementation makes sure there is no mistake in calling this function
+ as part of Assert.
+
+
+
+
+
+
+ We don't actually want any instances of this object, but some people
+ like to inherit from it to add other static methods. Hence, the
+ protected constructor disallows any instances of this object.
+
+
+
+
+ Verifies that two directories are equal. Two directories are considered
+ equal if both are null, or if both have the same value byte for byte.
+ If they are not equal an is thrown.
+
+ A directory containing the value that is expected
+ A directory containing the actual value
+ The message to display if directories are not equal
+ Arguments to be used in formatting the message
+
+
+
+ Verifies that two directories are equal. Two directories are considered
+ equal if both are null, or if both have the same value byte for byte.
+ If they are not equal an is thrown.
+
+ A directory containing the value that is expected
+ A directory containing the actual value
+ The message to display if directories are not equal
+
+
+
+ Verifies that two directories are equal. Two directories are considered
+ equal if both are null, or if both have the same value byte for byte.
+ If they are not equal an is thrown.
+
+ A directory containing the value that is expected
+ A directory containing the actual value
+
+
+
+ Verifies that two directories are equal. Two directories are considered
+ equal if both are null, or if both have the same value byte for byte.
+ If they are not equal an is thrown.
+
+ A directory path string containing the value that is expected
+ A directory path string containing the actual value
+ The message to display if directories are not equal
+ Arguments to be used in formatting the message
+
+
+
+ Verifies that two directories are equal. Two directories are considered
+ equal if both are null, or if both have the same value byte for byte.
+ If they are not equal an is thrown.
+
+ A directory path string containing the value that is expected
+ A directory path string containing the actual value
+ The message to display if directories are not equal
+
+
+
+ Verifies that two directories are equal. Two directories are considered
+ equal if both are null, or if both have the same value byte for byte.
+ If they are not equal an is thrown.
+
+ A directory path string containing the value that is expected
+ A directory path string containing the actual value
+
+
+
+ Asserts that two directories are not equal. If they are equal
+ an is thrown.
+
+ A directory containing the value that is expected
+ A directory containing the actual value
+ The message to display if directories are not equal
+ Arguments to be used in formatting the message
+
+
+
+ Asserts that two directories are not equal. If they are equal
+ an is thrown.
+
+ A directory containing the value that is expected
+ A directory containing the actual value
+ The message to display if directories are not equal
+
+
+
+ Asserts that two directories are not equal. If they are equal
+ an is thrown.
+
+ A directory containing the value that is expected
+ A directory containing the actual value
+
+
+
+ Asserts that two directories are not equal. If they are equal
+ an is thrown.
+
+ A directory path string containing the value that is expected
+ A directory path string containing the actual value
+ The message to display if directories are equal
+ Arguments to be used in formatting the message
+
+
+
+ Asserts that two directories are not equal. If they are equal
+ an is thrown.
+
+ A directory path string containing the value that is expected
+ A directory path string containing the actual value
+ The message to display if directories are equal
+
+
+
+ Asserts that two directories are not equal. If they are equal
+ an is thrown.
+
+ A directory path string containing the value that is expected
+ A directory path string containing the actual value
+
+
+
+ Asserts that the directory is empty. If it is not empty
+ an is thrown.
+
+ A directory to search
+ The message to display if directories are not equal
+ Arguments to be used in formatting the message
+
+
+
+ Asserts that the directory is empty. If it is not empty
+ an is thrown.
+
+ A directory to search
+ The message to display if directories are not equal
+
+
+
+ Asserts that the directory is empty. If it is not empty
+ an is thrown.
+
+ A directory to search
+
+
+
+ Asserts that the directory is empty. If it is not empty
+ an is thrown.
+
+ A directory to search
+ The message to display if directories are not equal
+ Arguments to be used in formatting the message
+
+
+
+ Asserts that the directory is empty. If it is not empty
+ an is thrown.
+
+ A directory to search
+ The message to display if directories are not equal
+
+
+
+ Asserts that the directory is empty. If it is not empty
+ an is thrown.
+
+ A directory to search
+
+
+
+ Asserts that the directory is not empty. If it is empty
+ an is thrown.
+
+ A directory to search
+ The message to display if directories are not equal
+ Arguments to be used in formatting the message
+
+
+
+ Asserts that the directory is not empty. If it is empty
+ an is thrown.
+
+ A directory to search
+ The message to display if directories are not equal
+
+
+
+ Asserts that the directory is not empty. If it is empty
+ an is thrown.
+
+ A directory to search
+
+
+
+ Asserts that the directory is not empty. If it is empty
+ an is thrown.
+
+ A directory to search
+ The message to display if directories are not equal
+ Arguments to be used in formatting the message
+
+
+
+ Asserts that the directory is not empty. If it is empty
+ an is thrown.
+
+ A directory to search
+ The message to display if directories are not equal
+
+
+
+ Asserts that the directory is not empty. If it is empty
+ an is thrown.
+
+ A directory to search
+
+
+
+ Asserts that path contains actual as a subdirectory or
+ an is thrown.
+
+ A directory to search
+ sub-directory asserted to exist under directory
+ The message to display if directory is not within the path
+ Arguments to be used in formatting the message
+
+
+
+ Asserts that path contains actual as a subdirectory or
+ an is thrown.
+
+ A directory to search
+ sub-directory asserted to exist under directory
+ The message to display if directory is not within the path
+
+
+
+ Asserts that path contains actual as a subdirectory or
+ an is thrown.
+
+ A directory to search
+ sub-directory asserted to exist under directory
+
+
+
+ Asserts that path contains actual as a subdirectory or
+ an is thrown.
+
+ A directory to search
+ sub-directory asserted to exist under directory
+ The message to display if directory is not within the path
+ Arguments to be used in formatting the message
+
+
+
+ Asserts that path contains actual as a subdirectory or
+ an is thrown.
+
+ A directory to search
+ sub-directory asserted to exist under directory
+ The message to display if directory is not within the path
+
+
+
+ Asserts that path contains actual as a subdirectory or
+ an is thrown.
+
+ A directory to search
+ sub-directory asserted to exist under directory
+
+
+
+ Asserts that path does not contain actual as a subdirectory or
+ an is thrown.
+
+ A directory to search
+ sub-directory asserted to exist under directory
+ The message to display if directory is not within the path
+ Arguments to be used in formatting the message
+
+
+
+ Asserts that path does not contain actual as a subdirectory or
+ an is thrown.
+
+ A directory to search
+ sub-directory asserted to exist under directory
+ The message to display if directory is not within the path
+
+
+
+ Asserts that path does not contain actual as a subdirectory or
+ an is thrown.
+
+ A directory to search
+ sub-directory asserted to exist under directory
+
+
+
+ Asserts that path does not contain actual as a subdirectory or
+ an is thrown.
+
+ A directory to search
+ sub-directory asserted to exist under directory
+ The message to display if directory is not within the path
+ Arguments to be used in formatting the message
+
+
+
+ Asserts that path does not contain actual as a subdirectory or
+ an is thrown.
+
+ A directory to search
+ sub-directory asserted to exist under directory
+ The message to display if directory is not within the path
+
+
+
+ Asserts that path does not contain actual as a subdirectory or
+ an is thrown.
+
+ A directory to search
+ sub-directory asserted to exist under directory
+
+
+
+ TestCaseAttribute is used to mark parameterized test cases
+ and provide them with their arguments.
+
+
+
+
+ The ITestCaseData interface is implemented by a class
+ that is able to return complete testcases for use by
+ a parameterized test method.
+
+ NOTE: This interface is used in both the framework
+ and the core, even though that results in two different
+ types. However, sharing the source code guarantees that
+ the various implementations will be compatible and that
+ the core is able to reflect successfully over the
+ framework implementations of ITestCaseData.
+
+
+
+
+ Gets the argument list to be provided to the test
+
+
+
+
+ Gets the expected result
+
+
+
+
+ Gets the expected exception Type
+
+
+
+
+ Gets the FullName of the expected exception
+
+
+
+
+ Gets the name to be used for the test
+
+
+
+
+ Gets the description of the test
+
+
+
+
+ Gets a value indicating whether this is ignored.
+
+ true if ignored; otherwise, false.
+
+
+
+ Gets the ignore reason.
+
+ The ignore reason.
+
+
+
+ Construct a TestCaseAttribute with a list of arguments.
+ This constructor is not CLS-Compliant
+
+
+
+
+
+ Construct a TestCaseAttribute with a single argument
+
+
+
+
+
+ Construct a TestCaseAttribute with a two arguments
+
+
+
+
+
+
+ Construct a TestCaseAttribute with a three arguments
+
+
+
+
+
+
+
+ Gets the list of arguments to a test case
+
+
+
+
+ Gets or sets the expected result.
+
+ The result.
+
+
+
+ Gets or sets the expected exception.
+
+ The expected exception.
+
+
+
+ Gets or sets the name the expected exception.
+
+ The expected name of the exception.
+
+
+
+ Gets or sets the expected message of the expected exception
+
+ The expected message of the exception.
+
+
+
+ Gets or sets the type of match to be performed on the expected message
+
+
+
+
+ Gets or sets the description.
+
+ The description.
+
+
+
+ Gets or sets the name of the test.
+
+ The name of the test.
+
+
+
+ Gets or sets the ignored status of the test
+
+
+
+
+ Gets or sets the ignored status of the test
+
+
+
+
+ Gets the ignore reason.
+
+ The ignore reason.
+
+
+
+ The TestCaseData class represents a set of arguments
+ and other parameter info to be used for a parameterized
+ test case. It provides a number of instance modifiers
+ for use in initializing the test case.
+
+ Note: Instance modifiers are getters that return
+ the same instance after modifying it's state.
+
+
+
+
+ The argument list to be provided to the test
+
+
+
+
+ The expected result to be returned
+
+
+
+
+ The expected exception Type
+
+
+
+
+ The FullName of the expected exception
+
+
+
+
+ The name to be used for the test
+
+
+
+
+ The description of the test
+
+
+
+
+ A dictionary of properties, used to add information
+ to tests without requiring the class to change.
+
+
+
+
+ If true, indicates that the test case is to be ignored
+
+
+
+
+ The reason for ignoring a test case
+
+
+
+
+ Initializes a new instance of the class.
+
+ The arguments.
+
+
+
+ Initializes a new instance of the class.
+
+ The argument.
+
+
+
+ Initializes a new instance of the class.
+
+ The first argument.
+ The second argument.
+
+
+
+ Initializes a new instance of the class.
+
+ The first argument.
+ The second argument.
+ The third argument.
+
+
+
+ Sets the expected result for the test
+
+ The expected result
+ A modified TestCaseData
+
+
+
+ Sets the expected exception type for the test
+
+ Type of the expected exception.
+ The modified TestCaseData instance
+
+
+
+ Sets the expected exception type for the test
+
+ FullName of the expected exception.
+ The modified TestCaseData instance
+
+
+
+ Sets the name of the test case
+
+ The modified TestCaseData instance
+
+
+
+ Sets the description for the test case
+ being constructed.
+
+ The description.
+ The modified TestCaseData instance.
+
+
+
+ Applies a category to the test
+
+
+
+
+
+
+ Applies a named property to the test
+
+
+
+
+
+
+
+ Applies a named property to the test
+
+
+
+
+
+
+
+ Applies a named property to the test
+
+
+
+
+
+
+
+ Ignores this TestCase.
+
+
+
+
+
+ Ignores this TestCase, specifying the reason.
+
+ The reason.
+
+
+
+
+ Gets the argument list to be provided to the test
+
+
+
+
+ Gets the expected result
+
+
+
+
+ Gets the expected exception Type
+
+
+
+
+ Gets the FullName of the expected exception
+
+
+
+
+ Gets the name to be used for the test
+
+
+
+
+ Gets the description of the test
+
+
+
+
+ Gets a value indicating whether this is ignored.
+
+ true if ignored; otherwise, false.
+
+
+
+ Gets the ignore reason.
+
+ The ignore reason.
+
+
+
+ Gets a list of categories associated with this test.
+
+
+
+
+ Gets the property dictionary for this test
+
+
+
+
+ Thrown when an assertion failed.
+
+
+
+
+
+
+ The error message that explains
+ the reason for the exception
+ The exception that caused the
+ current exception
+
+
+
+ Serialization Constructor
+
+
+
+
+ Thrown when a test executes inconclusively.
+
+
+
+
+ The error message that explains
+ the reason for the exception
+
+
+ The error message that explains
+ the reason for the exception
+ The exception that caused the
+ current exception
+
+
+
+ Serialization Constructor
+
+
+
+
+ Attribute used to identify a method that is
+ called before any tests in a fixture are run.
+
+
+
+
+ Attribute used to identify a method that is called after
+ all the tests in a fixture have run. The method is
+ guaranteed to be called, even if an exception is thrown.
+
+
+
+
+ ExplicitAttribute marks a test or test fixture so that it will
+ only be run if explicitly executed from the gui or command line
+ or if it is included by use of a filter. The test will not be
+ run simply because an enclosing suite is run.
+
+
+
+
+ Default constructor
+
+
+
+
+ Constructor with a reason
+
+ The reason test is marked explicit
+
+
+
+ The reason test is marked explicit
+
+
+
+
+ Thrown when an assertion failed.
+
+
+
+
+ The error message that explains
+ the reason for the exception
+
+
+ The error message that explains
+ the reason for the exception
+ The exception that caused the
+ current exception
+
+
+
+ Serialization Constructor
+
+
+
+
+ Thrown when an assertion failed.
+
+
+
+
+
+
+ The error message that explains
+ the reason for the exception
+ The exception that caused the
+ current exception
+
+
+
+ Serialization Constructor
+
+
+
+
+ Enumeration indicating how the expected message parameter is to be used
+
+
+
+ Expect an exact match
+
+
+ Expect a message containing the parameter string
+
+
+ Match the regular expression provided as a parameter
+
+
+ Expect a message that starts with the parameter string
+
+
+
+ ExpectedExceptionAttribute
+
+
+
+
+
+ Constructor for a non-specific exception
+
+
+
+
+ Constructor for a given type of exception
+
+ The type of the expected exception
+
+
+
+ Constructor for a given exception name
+
+ The full name of the expected exception
+
+
+
+ Gets or sets the expected exception type
+
+
+
+
+ Gets or sets the full Type name of the expected exception
+
+
+
+
+ Gets or sets the expected message text
+
+
+
+
+ Gets or sets the user message displayed in case of failure
+
+
+
+
+ Gets or sets the type of match to be performed on the expected message
+
+
+
+
+ Gets the name of a method to be used as an exception handler
+
+
+
+
+ Attribute used to mark a test that is to be ignored.
+ Ignored tests result in a warning message when the
+ tests are run.
+
+
+
+
+ Constructs the attribute without giving a reason
+ for ignoring the test.
+
+
+
+
+ Constructs the attribute giving a reason for ignoring the test
+
+ The reason for ignoring the test
+
+
+
+ The reason for ignoring a test
+
+
+
+
+ Attribute used to mark a class that contains one-time SetUp
+ and/or TearDown methods that apply to all the tests in a
+ namespace or an assembly.
+
+
+
+
+ Attribute used to mark a static (shared in VB) property
+ that returns a list of tests.
+
+
+
+
+ Attribute used to identify a method that is called
+ immediately after each test is run. The method is
+ guaranteed to be called, even if an exception is thrown.
+
+
+
+
+ Adding this attribute to a method within a
+ class makes the method callable from the NUnit test runner. There is a property
+ called Description which is optional which you can provide a more detailed test
+ description. This class cannot be inherited.
+
+
+
+ [TestFixture]
+ public class Fixture
+ {
+ [Test]
+ public void MethodToTest()
+ {}
+
+ [Test(Description = "more detailed description")]
+ publc void TestDescriptionMethod()
+ {}
+ }
+
+
+
+
+
+ Descriptive text for this test
+
+
+
+
+ [TestFixture]
+ public class ExampleClass
+ {}
+
+
+
+
+ Default constructor
+
+
+
+
+ Construct with a object[] representing a set of arguments.
+ In .NET 2.0, the arguments may later be separated into
+ type arguments and constructor arguments.
+
+
+
+
+
+ Descriptive text for this fixture
+
+
+
+
+ The arguments originally provided to the attribute
+
+
+
+
+ Gets or sets a value indicating whether this should be ignored.
+
+ true if ignore; otherwise, false.
+
+
+
+ Gets or sets the ignore reason. May set Ignored as a side effect.
+
+ The ignore reason.
+
+
+
+ Get or set the type arguments. If not set
+ explicitly, any leading arguments that are
+ Types are taken as type arguments.
+
+
+
+
+ RequiredAddinAttribute may be used to indicate the names of any addins
+ that must be present in order to run some or all of the tests in an
+ assembly. If the addin is not loaded, the entire assembly is marked
+ as NotRunnable.
+
+
+
+
+ Initializes a new instance of the class.
+
+ The required addin.
+
+
+
+ Gets the name of required addin.
+
+ The required addin name.
+
+
+
+ Marks a test to use a combinatorial join of any argument data
+ provided. NUnit will create a test case for every combination of
+ the arguments provided. This can result in a large number of test
+ cases and so should be used judiciously. This is the default join
+ type, so the attribute need not be used except as documentation.
+
+
+
+
+ Default constructor
+
+
+
+
+ Marks a test to use pairwise join of any argument data provided.
+ NUnit will attempt too excercise every pair of argument values at
+ least once, using as small a number of test cases as it can. With
+ only two arguments, this is the same as a combinatorial join.
+
+
+
+
+ Default constructor
+
+
+
+
+ Marks a test to use a sequential join of any argument data
+ provided. NUnit will use arguements for each parameter in
+ sequence, generating test cases up to the largest number
+ of argument values provided and using null for any arguments
+ for which it runs out of values. Normally, this should be
+ used with the same number of arguments for each parameter.
+
+
+
+
+ Default constructor
+
+
+
+
+ Abstract base class for attributes that apply to parameters
+ and supply data for the parameter.
+
+
+
+
+ Gets the data to be provided to the specified parameter
+
+
+
+
+ ValuesAttribute is used to provide literal arguments for
+ an individual parameter of a test.
+
+
+
+
+ The collection of data to be returned. Must
+ be set by any derived attribute classes.
+ We use an object[] so that the individual
+ elements may have their type changed in GetData
+ if necessary.
+
+
+
+
+ Construct with one argument
+
+
+
+
+
+ Construct with two arguments
+
+
+
+
+
+
+ Construct with three arguments
+
+
+
+
+
+
+
+ Construct with an array of arguments
+
+
+
+
+
+ Get the collection of values to be used as arguments
+
+
+
+
+ RandomAttribute is used to supply a set of random values
+ to a single parameter of a parameterized test.
+
+
+
+
+ Construct a set of doubles from 0.0 to 1.0,
+ specifying only the count.
+
+
+
+
+
+ Construct a set of doubles from min to max
+
+
+
+
+
+
+
+ Construct a set of ints from min to max
+
+
+
+
+
+
+
+ Get the collection of values to be used as arguments
+
+
+
+
+ RangeAttribute is used to supply a range of values to an
+ individual parameter of a parameterized test.
+
+
+
+
+ Construct a range of ints using default step of 1
+
+
+
+
+
+
+ Construct a range of ints specifying the step size
+
+
+
+
+
+
+
+ Construct a range of longs
+
+
+
+
+
+
+
+ Construct a range of doubles
+
+
+
+
+
+
+
+ Construct a range of floats
+
+
+
+
+
+
+
+ Helper class with properties and methods that supply
+ a number of constraints used in Asserts.
+
+
+
+
+ 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.
+
+
+
+
+ Returns a new AttributeConstraint checking for the
+ presence of a particular attribute on an object.
+
+
+
+
+ Returns a new AttributeConstraint checking for the
+ presence of a particular attribute on an object.
+
+
+
+
+ Returns a new CollectionContainsConstraint checking for the
+ presence of a particular object in the collection.
+
+
+
+
+ Returns a ConstraintExpression that negates any
+ following constraint.
+
+
+
+
+ Returns a ConstraintExpression, which will apply
+ the following constraint to all members of a collection,
+ succeeding if all of them succeed.
+
+
+
+
+ Returns a ConstraintExpression, which will apply
+ the following constraint to all members of a collection,
+ succeeding if at least one of them succeeds.
+
+
+
+
+ Returns a ConstraintExpression, which will apply
+ the following constraint to all members of a collection,
+ succeeding if all of them fail.
+
+
+
+
+ Returns a new ConstraintExpression, which will apply the following
+ constraint to the Length property of the object being tested.
+
+
+
+
+ Returns a new ConstraintExpression, which will apply the following
+ constraint to the Count property of the object being tested.
+
+
+
+
+ Returns a new ConstraintExpression, which will apply the following
+ constraint to the Message property of the object being tested.
+
+
+
+
+ Returns a new ConstraintExpression, which will apply the following
+ constraint to the InnerException property of the object being tested.
+
+
+
+
+ Helper class with properties and methods that supply
+ a number of constraints used in Asserts.
+
+
+
+
+ Returns a constraint that tests two items for equality
+
+
+
+
+ Returns a constraint that tests that two references are the same object
+
+
+
+
+ Returns a constraint that tests whether the
+ actual value is greater than the suppled argument
+
+
+
+
+ Returns a constraint that tests whether the
+ actual value is greater than or equal to the suppled argument
+
+
+
+
+ Returns a constraint that tests whether the
+ actual value is greater than or equal to the suppled argument
+
+
+
+
+ Returns a constraint that tests whether the
+ actual value is less than the suppled argument
+
+
+
+
+ Returns a constraint that tests whether the
+ actual value is less than or equal to the suppled argument
+
+
+
+
+ Returns a constraint that tests whether the
+ actual value is less than or equal to the suppled argument
+
+
+
+
+ Returns a constraint that tests whether the actual
+ value is of the exact type supplied as an argument.
+
+
+
+
+ Returns a constraint that tests whether the actual
+ value is of the exact type supplied as an argument.
+
+
+
+
+ Returns a constraint that tests whether the actual value
+ is of the type supplied as an argument or a derived type.
+
+
+
+
+ Returns a constraint that tests whether the actual value
+ is of the type supplied as an argument or a derived type.
+
+
+
+
+ Returns a constraint that tests whether the actual value
+ is of the type supplied as an argument or a derived type.
+
+
+
+
+ Returns a constraint that tests whether the actual value
+ is of the type supplied as an argument or a derived type.
+
+
+
+
+ Returns a constraint that tests whether the actual value
+ is assignable from the type supplied as an argument.
+
+
+
+
+ Returns a constraint that tests whether the actual value
+ is assignable from the type supplied as an argument.
+
+
+
+
+ Returns a constraint that tests whether the actual value
+ is assignable from the type supplied as an argument.
+
+
+
+
+ Returns a constraint that tests whether the actual value
+ is assignable from the type supplied as an argument.
+
+
+
+
+ Returns a constraint that tests whether the actual value
+ is a collection containing the same elements as the
+ collection supplied as an argument.
+
+
+
+
+ Returns a constraint that tests whether the actual value
+ is a subset of the collection supplied as an argument.
+
+
+
+
+ Returns a constraint that succeeds if the actual
+ value contains the substring supplied as an argument.
+
+
+
+
+ Returns a constraint that succeeds if the actual
+ value starts with the substring supplied as an argument.
+
+
+
+
+ Returns a constraint that succeeds if the actual
+ value ends with the substring supplied as an argument.
+
+
+
+
+ Returns a constraint that succeeds if the actual
+ value matches the Regex pattern supplied as an argument.
+
+
+
+
+ Returns a constraint that tests whether the path provided
+ is the same as an expected path after canonicalization.
+
+
+
+
+ Returns a constraint that tests whether the path provided
+ is the same path or under an expected path after canonicalization.
+
+
+
+
+ Returns a constraint that tests whether the actual value falls
+ within a specified range.
+
+
+
+
+ Returns a ConstraintExpression that negates any
+ following constraint.
+
+
+
+
+ Returns a ConstraintExpression, which will apply
+ the following constraint to all members of a collection,
+ succeeding if all of them succeed.
+
+
+
+
+ Returns a constraint that tests for null
+
+
+
+
+ Returns a constraint that tests for True
+
+
+
+
+ Returns a constraint that tests for False
+
+
+
+
+ Returns a constraint that tests for NaN
+
+
+
+
+ Returns a constraint that tests for empty
+
+
+
+
+ Returns a constraint that tests whether a collection
+ contains all unique items.
+
+
+
+
+ Returns a constraint that tests whether an object graph is serializable in binary format.
+
+
+
+
+ Returns a constraint that tests whether an object graph is serializable in xml format.
+
+
+
+
+ Returns a constraint that tests whether a collection is ordered
+
+
+
+
+ The List class is a helper class with properties and methods
+ that supply a number of constraints used with lists and collections.
+
+
+
+
+ List.Map returns a ListMapper, which can be used to map
+ the original collection to another collection.
+
+
+
+
+
+
+ ListMapper is used to transform a collection used as an actual argument
+ producing another collection to be used in the assertion.
+
+
+
+
+ Construct a ListMapper based on a collection
+
+ The collection to be transformed
+
+
+
+ Produces a collection containing all the values of a property
+
+ The collection of property values
+
+
+
+
+ Helper class with static methods used to supply constraints
+ that operate on strings.
+
+
+
+
+ Returns a constraint that succeeds if the actual
+ value contains the substring supplied as an argument.
+
+
+
+
+ Returns a constraint that fails if the actual
+ value contains the substring supplied as an argument.
+
+
+
+
+ Returns a constraint that succeeds if the actual
+ value starts with the substring supplied as an argument.
+
+
+
+
+ Returns a constraint that fails if the actual
+ value starts with the substring supplied as an argument.
+
+
+
+
+ Returns a constraint that succeeds if the actual
+ value ends with the substring supplied as an argument.
+
+
+
+
+ Returns a constraint that fails if the actual
+ value ends with the substring supplied as an argument.
+
+
+
+
+ Returns a constraint that succeeds if the actual
+ value matches the Regex pattern supplied as an argument.
+
+
+
+
+ Returns a constraint that fails if the actual
+ value matches the pattern supplied as an argument.
+
+
+
+
+ Returns a ConstraintExpression, which will apply
+ the following constraint to all members of a collection,
+ succeeding if all of them succeed.
+
+
+
+
+ Helper class with properties and methods that supply
+ constraints that operate on exceptions.
+
+
+
+
+ Creates a constraint specifying the exact type of exception expected
+
+
+
+
+ Creates a constraint specifying the exact type of exception expected
+
+
+
+
+ Creates a constraint specifying the type of exception expected
+
+
+
+
+ Creates a constraint specifying the type of exception expected
+
+
+
+
+ Creates a constraint specifying an expected exception
+
+
+
+
+ Creates a constraint specifying an exception with a given InnerException
+
+
+
+
+ Creates a constraint specifying an expected TargetInvocationException
+
+
+
+
+ Creates a constraint specifying an expected TargetInvocationException
+
+
+
+
+ Creates a constraint specifying an expected TargetInvocationException
+
+
+
+
+ Creates a constraint specifying that no exception is thrown
+
+
+
+
+ FactoryAttribute indicates the source to be used to
+ provide test cases for a test method.
+
+
+
+
+ Construct with the name of the factory - for use with languages
+ that don't support params arrays.
+
+ An array of the names of the factories that will provide data
+
+
+
+ Construct with a Type and name - for use with languages
+ that don't support params arrays.
+
+ The Type that will provide data
+ The name of the method, property or field that will provide data
+
+
+
+ The name of a the method, property or fiend to be used as a source
+
+
+
+
+ A Type to be used as a source
+
+
+
+
+ ValueSourceAttribute indicates the source to be used to
+ provide data for one parameter of a test method.
+
+
+
+
+ Construct with the name of the factory - for use with languages
+ that don't support params arrays.
+
+ The name of the data source to be used
+
+
+
+ Construct with a Type and name - for use with languages
+ that don't support params arrays.
+
+ The Type that will provide data
+ The name of the method, property or field that will provide data
+
+
+
+ The name of a the method, property or fiend to be used as a source
+
+
+
+
+ A Type to be used as a source
+
+
+
+
+ The Iz class is a synonym for Is intended for use in VB,
+ which regards Is as a keyword.
+
+
+
+
+ WUsed on a method, marks the test with a timeout value in milliseconds.
+ The test will be run in a separate thread and is cancelled if the timeout
+ is exceeded. Used on a method or assembly, sets the default timeout
+ for all contained test methods.
+
+
+
+
+ Construct a TimeoutAttribute given a time in milliseconds
+
+ The timeout value in milliseconds
+
+
+
+ Marks a test that must run in the STA, causing it
+ to run in a separate thread if necessary.
+
+ On methods, you may also use STAThreadAttribute
+ to serve the same purpose.
+
+
+
+
+ Construct a RequiresSTAAttribute
+
+
+
+
+ Marks a test that must run in the MTA, causing it
+ to run in a separate thread if necessary.
+
+ On methods, you may also use MTAThreadAttribute
+ to serve the same purpose.
+
+
+
+
+ Construct a RequiresMTAAttribute
+
+
+
+
+ Marks a test that must run on a separate thread.
+
+
+
+
+ Construct a RequiresThreadAttribute
+
+
+
+
+ Construct a RequiresThreadAttribute, specifying the apartment
+
+
+
+
+ Summary description for MaxTimeAttribute.
+
+
+
+
+ Construct a MaxTimeAttribute, given a time in milliseconds.
+
+ The maximum elapsed time in milliseconds
+
+
+
+ RepeatAttribute may be applied to test case in order
+ to run it multiple times.
+
+
+
+
+ Construct a RepeatAttribute
+
+ The number of times to run the test
+
+
+
+ Provides static methods to express the assumptions
+ that must be met for a test to give a meaningful
+ result. If an assumption is not met, the test
+ should produce an inconclusive result.
+
+
+
+
+ The Equals method throws an AssertionException. This is done
+ to make sure there is no mistake by calling this function.
+
+
+
+
+
+
+ override the default ReferenceEquals to throw an AssertionException. This
+ implementation makes sure there is no mistake in calling this function
+ as part of Assert.
+
+
+
+
+
+
+ Apply a constraint to an actual value, succeeding if the constraint
+ is satisfied and throwing an InconclusiveException on failure.
+
+ A Constraint expression to be applied
+ The actual value to test
+
+
+
+ Apply a constraint to an actual value, succeeding if the constraint
+ is satisfied and throwing an InconclusiveException on failure.
+
+ A Constraint expression to be applied
+ The actual value to test
+ The message that will be displayed on failure
+
+
+
+ Apply a constraint to an actual value, succeeding if the constraint
+ is satisfied and throwing an InconclusiveException on failure.
+
+ A Constraint expression to be applied
+ The actual value to test
+ The message that will be displayed on failure
+ Arguments to be used in formatting the message
+
+
+
+ Apply a constraint to an actual value, succeeding if the constraint
+ is satisfied and throwing an InconclusiveException on failure.
+
+ A Constraint expression to be applied
+ An ActualValueDelegate returning the value to be tested
+
+
+
+ Apply a constraint to an actual value, succeeding if the constraint
+ is satisfied and throwing an InconclusiveException on failure.
+
+ A Constraint expression to be applied
+ An ActualValueDelegate returning the value to be tested
+ The message that will be displayed on failure
+
+
+
+ Apply a constraint to an actual value, succeeding if the constraint
+ is satisfied and throwing an InconclusiveException on failure.
+
+ An ActualValueDelegate returning the value to be tested
+ A Constraint expression to be applied
+ The message that will be displayed on failure
+ Arguments to be used in formatting the message
+
+
+
+ Apply a constraint to a referenced value, succeeding if the constraint
+ is satisfied and throwing an InconclusiveException on failure.
+
+ A Constraint expression to be applied
+ The actual value to test
+
+
+
+ Apply a constraint to a referenced value, succeeding if the constraint
+ is satisfied and throwing an InconclusiveException on failure.
+
+ A Constraint expression to be applied
+ The actual value to test
+ The message that will be displayed on failure
+
+
+
+ Apply a constraint to a referenced value, succeeding if the constraint
+ is satisfied and throwing an InconclusiveException on failure.
+
+ A Constraint expression to be applied
+ The actual value to test
+ The message that will be displayed on failure
+ Arguments to be used in formatting the message
+
+
+
+ Asserts that a condition is true. If the condition is false the method throws
+ an .
+
+ The evaluated condition
+ The message to display if the condition is false
+ Arguments to be used in formatting the message
+
+
+
+ Asserts that a condition is true. If the condition is false the method throws
+ an .
+
+ The evaluated condition
+ The message to display if the condition is false
+
+
+
+ Asserts that a condition is true. If the condition is false the
+ method throws an .
+
+ The evaluated condition
+
+
+
+ Asserts that the code represented by a delegate throws an exception
+ that satisfies the constraint provided.
+
+ A TestDelegate to be executed
+ A ThrowsConstraint used in the test
+
+
+
+ Randomizer returns a set of random values in a repeatable
+ way, to allow re-running of tests if necessary.
+
+
+
+
+ Get a randomizer for a particular member, returning
+ one that has already been created if it exists.
+ This ensures that the same values are generated
+ each time the tests are reloaded.
+
+
+
+
+ Get a randomizer for a particular parameter, returning
+ one that has already been created if it exists.
+ This ensures that the same values are generated
+ each time the tests are reloaded.
+
+
+
+
+ Construct a randomizer using a random seed
+
+
+
+
+ Construct a randomizer using a specified seed
+
+
+
+
+ Return an array of random doubles between 0.0 and 1.0.
+
+
+
+
+
+
+ Return an array of random doubles with values in a specified range.
+
+
+
+
+ Return an array of random ints with values in a specified range.
+
+
+
+
+ Get a random seed for use in creating a randomizer.
+
+
+
+
+ Adding this attribute to a method within a
+ class makes the method callable from the NUnit test runner. There is a property
+ called Description which is optional which you can provide a more detailed test
+ description. This class cannot be inherited.
+
+
+
+ [TestFixture]
+ public class Fixture
+ {
+ [Test]
+ public void MethodToTest()
+ {}
+
+ [Test(Description = "more detailed description")]
+ publc void TestDescriptionMethod()
+ {}
+ }
+
+
+
+
+
+ Used to mark a field for use as a datapoint when executing a theory
+ within the same fixture that requires an argument of the field's Type.
+
+
+
+
+ Used to mark an array as containing a set of datapoints to be used
+ executing a theory within the same fixture that requires an argument
+ of the Type of the array elements.
+
+
+
+
+ The SpecialValue enum is used to represent TestCase arguments
+ that cannot be used as arguments to an Attribute.
+
+
+
+
+ Null represents a null value, which cannot be used as an
+ argument to an attriute under .NET 1.x
+
+
+
+
+ Summary description for SetUICultureAttribute.
+
+
+
+
+ Construct given the name of a culture
+
+
+
+
+
+ Delegate used by tests that execute code and
+ capture any thrown exception.
+
+
+
+
+ The Assert class contains a collection of static methods that
+ implement the most common assertions used in NUnit.
+
+
+
+
+ We don't actually want any instances of this object, but some people
+ like to inherit from it to add other static methods. Hence, the
+ protected constructor disallows any instances of this object.
+
+
+
+
+ The Equals method throws an AssertionException. This is done
+ to make sure there is no mistake by calling this function.
+
+
+
+
+
+
+ override the default ReferenceEquals to throw an AssertionException. This
+ implementation makes sure there is no mistake in calling this function
+ as part of Assert.
+
+
+
+
+
+
+ Helper for Assert.AreEqual(double expected, double actual, ...)
+ allowing code generation to work consistently.
+
+ The expected value
+ The actual value
+ The maximum acceptable difference between the
+ the expected and the actual
+ The message to display in case of failure
+ Array of objects to be used in formatting the message
+
+
+
+ Throws a with the message and arguments
+ that are passed in. This allows a test to be cut short, with a result
+ of success returned to NUnit.
+
+ The message to initialize the with.
+ Arguments to be used in formatting the message
+
+
+
+ Throws a with the message and arguments
+ that are passed in. This allows a test to be cut short, with a result
+ of success returned to NUnit.
+
+ The message to initialize the with.
+
+
+
+ Throws a with the message and arguments
+ that are passed in. This allows a test to be cut short, with a result
+ of success returned to NUnit.
+
+
+
+
+ Throws an with the message and arguments
+ that are passed in. This is used by the other Assert functions.
+
+ The message to initialize the with.
+ Arguments to be used in formatting the message
+
+
+
+ Throws an with the message that is
+ passed in. This is used by the other Assert functions.
+
+ The message to initialize the with.
+
+
+
+ Throws an .
+ This is used by the other Assert functions.
+
+
+
+
+ Throws an with the message and arguments
+ that are passed in. This causes the test to be reported as ignored.
+
+ The message to initialize the with.
+ Arguments to be used in formatting the message
+
+
+
+ Throws an with the message that is
+ passed in. This causes the test to be reported as ignored.
+
+ The message to initialize the with.
+
+
+
+ Throws an .
+ This causes the test to be reported as ignored.
+
+
+
+
+ Throws an with the message and arguments
+ that are passed in. This causes the test to be reported as inconclusive.
+
+ The message to initialize the with.
+ Arguments to be used in formatting the message
+
+
+
+ Throws an with the message that is
+ passed in. This causes the test to be reported as inconclusive.
+
+ The message to initialize the with.
+
+
+
+ Throws an .
+ This causes the test to be reported as Inconclusive.
+
+
+
+
+ Apply a constraint to an actual value, succeeding if the constraint
+ is satisfied and throwing an assertion exception on failure.
+
+ A Constraint to be applied
+ The actual value to test
+
+
+
+ Apply a constraint to an actual value, succeeding if the constraint
+ is satisfied and throwing an assertion exception on failure.
+
+ A Constraint to be applied
+ The actual value to test
+ The message that will be displayed on failure
+
+
+
+ Apply a constraint to an actual value, succeeding if the constraint
+ is satisfied and throwing an assertion exception on failure.
+
+ A Constraint expression to be applied
+ The actual value to test
+ The message that will be displayed on failure
+ Arguments to be used in formatting the message
+
+
+
+ Apply a constraint to an actual value, succeeding if the constraint
+ is satisfied and throwing an assertion exception on failure.
+
+ A Constraint expression to be applied
+ An ActualValueDelegate returning the value to be tested
+
+
+
+ Apply a constraint to an actual value, succeeding if the constraint
+ is satisfied and throwing an assertion exception on failure.
+
+ A Constraint expression to be applied
+ An ActualValueDelegate returning the value to be tested
+ The message that will be displayed on failure
+
+
+
+ Apply a constraint to an actual value, succeeding if the constraint
+ is satisfied and throwing an assertion exception on failure.
+
+ An ActualValueDelegate returning the value to be tested
+ A Constraint expression to be applied
+ The message that will be displayed on failure
+ Arguments to be used in formatting the message
+
+
+
+ Apply a constraint to a referenced value, succeeding if the constraint
+ is satisfied and throwing an assertion exception on failure.
+
+ A Constraint to be applied
+ The actual value to test
+
+
+
+ Apply a constraint to a referenced value, succeeding if the constraint
+ is satisfied and throwing an assertion exception on failure.
+
+ A Constraint to be applied
+ The actual value to test
+ The message that will be displayed on failure
+
+
+
+ Apply a constraint to a referenced value, succeeding if the constraint
+ is satisfied and throwing an assertion exception on failure.
+
+ A Constraint to be applied
+ The actual value to test
+ The message that will be displayed on failure
+ Arguments to be used in formatting the message
+
+
+
+ Asserts that a condition is true. If the condition is false the method throws
+ an .
+
+ The evaluated condition
+ The message to display if the condition is false
+ Arguments to be used in formatting the message
+
+
+
+ Asserts that a condition is true. If the condition is false the method throws
+ an .
+
+ The evaluated condition
+ The message to display if the condition is false
+
+
+
+ Asserts that a condition is true. If the condition is false the method throws
+ an .
+
+ The evaluated condition
+
+
+
+ Asserts that the code represented by a delegate throws an exception
+ that satisfies the constraint provided.
+
+ A TestDelegate to be executed
+ A ThrowsConstraint used in the test
+
+
+
+ Verifies that a delegate throws a particular exception when called.
+
+ A constraint to be satisfied by the exception
+ A TestSnippet delegate
+ The message that will be displayed on failure
+ Arguments to be used in formatting the message
+
+
+
+ Verifies that a delegate throws a particular exception when called.
+
+ A constraint to be satisfied by the exception
+ A TestSnippet delegate
+ The message that will be displayed on failure
+
+
+
+ Verifies that a delegate throws a particular exception when called.
+
+ A constraint to be satisfied by the exception
+ A TestSnippet delegate
+
+
+
+ Verifies that a delegate throws a particular exception when called.
+
+ The exception Type expected
+ A TestSnippet delegate
+ The message that will be displayed on failure
+ Arguments to be used in formatting the message
+
+
+
+ Verifies that a delegate throws a particular exception when called.
+
+ The exception Type expected
+ A TestSnippet delegate
+ The message that will be displayed on failure
+
+
+
+ Verifies that a delegate throws a particular exception when called.
+
+ The exception Type expected
+ A TestSnippet delegate
+
+
+
+ Verifies that a delegate throws a particular exception when called.
+
+ Type of the expected exception
+ A TestSnippet delegate
+ The message that will be displayed on failure
+ Arguments to be used in formatting the message
+
+
+
+ Verifies that a delegate throws a particular exception when called.
+
+ Type of the expected exception
+ A TestSnippet delegate
+ The message that will be displayed on failure
+
+
+
+ Verifies that a delegate throws a particular exception when called.
+
+ Type of the expected exception
+ A TestSnippet delegate
+
+
+
+ Verifies that a delegate throws an exception when called
+ and returns it.
+
+ A TestDelegate
+ The message that will be displayed on failure
+ Arguments to be used in formatting the message
+
+
+
+ Verifies that a delegate throws an exception when called
+ and returns it.
+
+ A TestDelegate
+ The message that will be displayed on failure
+
+
+
+ Verifies that a delegate throws an exception when called
+ and returns it.
+
+ A TestDelegate
+
+
+
+ Verifies that a delegate throws an exception of a certain Type
+ or one derived from it when called and returns it.
+
+ The expected Exception Type
+ A TestDelegate
+ The message that will be displayed on failure
+ Arguments to be used in formatting the message
+
+
+
+ Verifies that a delegate throws an exception of a certain Type
+ or one derived from it when called and returns it.
+
+ The expected Exception Type
+ A TestDelegate
+ The message that will be displayed on failure
+
+
+
+ Verifies that a delegate throws an exception of a certain Type
+ or one derived from it when called and returns it.
+
+ The expected Exception Type
+ A TestDelegate
+
+
+
+ Verifies that a delegate throws an exception of a certain Type
+ or one derived from it when called and returns it.
+
+ The expected Exception Type
+ A TestDelegate
+ The message that will be displayed on failure
+ Arguments to be used in formatting the message
+
+
+
+ Verifies that a delegate throws an exception of a certain Type
+ or one derived from it when called and returns it.
+
+ The expected Exception Type
+ A TestDelegate
+ The message that will be displayed on failure
+
+
+
+ Verifies that a delegate throws an exception of a certain Type
+ or one derived from it when called and returns it.
+
+ The expected Exception Type
+ A TestDelegate
+
+
+
+ Verifies that a delegate does not throw an exception
+
+ A TestSnippet delegate
+ The message that will be displayed on failure
+ Arguments to be used in formatting the message
+
+
+
+ Verifies that a delegate does not throw an exception.
+
+ A TestSnippet delegate
+ The message that will be displayed on failure
+
+
+
+ Verifies that a delegate does not throw an exception.
+
+ A TestSnippet delegate
+
+
+
+ Asserts that a condition is true. If the condition is false the method throws
+ an .
+
+ The evaluated condition
+ The message to display in case of failure
+ Array of objects to be used in formatting the message
+
+
+
+ Asserts that a condition is true. If the condition is false the method throws
+ an .
+
+ The evaluated condition
+ The message to display in case of failure
+
+
+
+ Asserts that a condition is true. If the condition is false the method throws
+ an .
+
+ The evaluated condition
+
+
+
+ Asserts that a condition is true. If the condition is false the method throws
+ an .
+
+ The evaluated condition
+ The message to display in case of failure
+ Array of objects to be used in formatting the message
+
+
+
+ Asserts that a condition is true. If the condition is false the method throws
+ an .
+
+ The evaluated condition
+ The message to display in case of failure
+
+
+
+ Asserts that a condition is true. If the condition is false the method throws
+ an .
+
+ The evaluated condition
+
+
+
+ Asserts that a condition is false. If the condition is true the method throws
+ an .
+
+ The evaluated condition
+ The message to display in case of failure
+ Array of objects to be used in formatting the message
+
+
+
+ Asserts that a condition is false. If the condition is true the method throws
+ an .
+
+ The evaluated condition
+ The message to display in case of failure
+
+
+
+ Asserts that a condition is false. If the condition is true the method throws
+ an .
+
+ The evaluated condition
+
+
+
+ Asserts that a condition is false. If the condition is true the method throws
+ an .
+
+ The evaluated condition
+ The message to display in case of failure
+ Array of objects to be used in formatting the message
+
+
+
+ Asserts that a condition is false. If the condition is true the method throws
+ an .
+
+ The evaluated condition
+ The message to display in case of failure
+
+
+
+ Asserts that a condition is false. If the condition is true the method throws
+ an .
+
+ The evaluated condition
+
+
+
+ Verifies that the object that is passed in is not equal to null
+ If the object is null then an
+ is thrown.
+
+ The object that is to be tested
+ The message to display in case of failure
+ Array of objects to be used in formatting the message
+
+
+
+ Verifies that the object that is passed in is not equal to null
+ If the object is null then an
+ is thrown.
+
+ The object that is to be tested
+ The message to display in case of failure
+
+
+
+ Verifies that the object that is passed in is not equal to null
+ If the object is null then an
+ is thrown.
+
+ The object that is to be tested
+
+
+
+ Verifies that the object that is passed in is not equal to null
+ If the object is null then an
+ is thrown.
+
+ The object that is to be tested
+ The message to display in case of failure
+ Array of objects to be used in formatting the message
+
+
+
+ Verifies that the object that is passed in is not equal to null
+ If the object is null then an
+ is thrown.
+
+ The object that is to be tested
+ The message to display in case of failure
+
+
+
+ Verifies that the object that is passed in is not equal to null
+ If the object is null then an
+ is thrown.
+
+ The object that is to be tested
+
+
+
+ Verifies that the object that is passed in is equal to null
+ If the object is not null then an
+ is thrown.
+
+ The object that is to be tested
+ The message to display in case of failure
+ Array of objects to be used in formatting the message
+
+
+
+ Verifies that the object that is passed in is equal to null
+ If the object is not null then an
+ is thrown.
+
+ The object that is to be tested
+ The message to display in case of failure
+
+
+
+ Verifies that the object that is passed in is equal to null
+ If the object is not null then an
+ is thrown.
+
+ The object that is to be tested
+
+
+
+ Verifies that the object that is passed in is equal to null
+ If the object is not null then an
+ is thrown.
+
+ The object that is to be tested
+ The message to display in case of failure
+ Array of objects to be used in formatting the message
+
+
+
+ Verifies that the object that is passed in is equal to null
+ If the object is not null then an
+ is thrown.
+
+ The object that is to be tested
+ The message to display in case of failure
+
+
+
+ Verifies that the object that is passed in is equal to null
+ If the object is not null then an
+ is thrown.
+
+ The object that is to be tested
+
+
+
+ Verifies that the double that is passed in is an NaN value.
+ If the object is not NaN then an
+ is thrown.
+
+ The value that is to be tested
+ The message to display in case of failure
+ Array of objects to be used in formatting the message
+
+
+
+ Verifies that the double that is passed in is an NaN value.
+ If the object is not NaN then an
+ is thrown.
+
+ The value that is to be tested
+ The message to display in case of failure
+
+
+
+ Verifies that the double that is passed in is an NaN value.
+ If the object is not NaN then an
+ is thrown.
+
+ The value that is to be tested
+
+
+
+ Verifies that the double that is passed in is an NaN value.
+ If the object is not NaN then an
+ is thrown.
+
+ The value that is to be tested
+ The message to display in case of failure
+ Array of objects to be used in formatting the message
+
+
+
+ Verifies that the double that is passed in is an NaN value.
+ If the object is not NaN then an
+ is thrown.
+
+ The value that is to be tested
+ The message to display in case of failure
+
+
+
+ Verifies that the double that is passed in is an NaN value.
+ If the object is not NaN then an
+ is thrown.
+
+ The value that is to be tested
+
+
+
+ Assert that a string is empty - that is equal to string.Empty
+
+ The string to be tested
+ The message to display in case of failure
+ Array of objects to be used in formatting the message
+
+
+
+ Assert that a string is empty - that is equal to string.Empty
+
+ The string to be tested
+ The message to display in case of failure
+
+
+
+ Assert that a string is empty - that is equal to string.Empty
+
+ The string to be tested
+
+
+
+ Assert that an array, list or other collection is empty
+
+ An array, list or other collection implementing ICollection
+ The message to display in case of failure
+ Array of objects to be used in formatting the message
+
+
+
+ Assert that an array, list or other collection is empty
+
+ An array, list or other collection implementing ICollection
+ The message to display in case of failure
+
+
+
+ Assert that an array, list or other collection is empty
+
+ An array, list or other collection implementing ICollection
+
+
+
+ Assert that a string is not empty - that is not equal to string.Empty
+
+ The string to be tested
+ The message to display in case of failure
+ Array of objects to be used in formatting the message
+
+
+
+ Assert that a string is not empty - that is not equal to string.Empty
+
+ The string to be tested
+ The message to display in case of failure
+
+
+
+ Assert that a string is not empty - that is not equal to string.Empty
+
+ The string to be tested
+
+
+
+ Assert that an array, list or other collection is not empty
+
+ An array, list or other collection implementing ICollection
+ The message to display in case of failure
+ Array of objects to be used in formatting the message
+
+
+
+ Assert that an array, list or other collection is not empty
+
+ An array, list or other collection implementing ICollection
+ The message to display in case of failure
+
+
+
+ Assert that an array, list or other collection is not empty
+
+ An array, list or other collection implementing ICollection
+
+
+
+ Assert that a string is either null or equal to string.Empty
+
+ The string to be tested
+ The message to display in case of failure
+ Array of objects to be used in formatting the message
+
+
+
+ Assert that a string is either null or equal to string.Empty
+
+ The string to be tested
+ The message to display in case of failure
+
+
+
+ Assert that a string is either null or equal to string.Empty
+
+ The string to be tested
+
+
+
+ Assert that a string is not null or empty
+
+ The string to be tested
+ The message to display in case of failure
+ Array of objects to be used in formatting the message
+
+
+
+ Assert that a string is not null or empty
+
+ The string to be tested
+ The message to display in case of failure
+
+
+
+ Assert that a string is not null or empty
+
+ The string to be tested
+
+
+
+ Asserts that an object may be assigned a value of a given Type.
+
+ The expected Type.
+ The object under examination
+ The message to display in case of failure
+ Array of objects to be used in formatting the message
+
+
+
+ Asserts that an object may be assigned a value of a given Type.
+
+ The expected Type.
+ The object under examination
+ The message to display in case of failure
+
+
+
+ Asserts that an object may be assigned a value of a given Type.
+
+ The expected Type.
+ The object under examination
+
+
+
+ Asserts that an object may be assigned a value of a given Type.
+
+ The expected Type.
+ The object under examination
+ The message to display in case of failure
+ Array of objects to be used in formatting the message
+
+
+
+ Asserts that an object may be assigned a value of a given Type.
+
+ The expected Type.
+ The object under examination
+ The message to display in case of failure
+
+
+
+ Asserts that an object may be assigned a value of a given Type.
+
+ The expected Type.
+ The object under examination
+
+
+
+ Asserts that an object may not be assigned a value of a given Type.
+
+ The expected Type.
+ The object under examination
+ The message to display in case of failure
+ Array of objects to be used in formatting the message
+
+
+
+ Asserts that an object may not be assigned a value of a given Type.
+
+ The expected Type.
+ The object under examination
+ The message to display in case of failure
+
+
+
+ Asserts that an object may not be assigned a value of a given Type.
+
+ The expected Type.
+ The object under examination
+
+
+
+ Asserts that an object may not be assigned a value of a given Type.
+
+ The expected Type.
+ The object under examination
+ The message to display in case of failure
+ Array of objects to be used in formatting the message
+
+
+
+ Asserts that an object may not be assigned a value of a given Type.
+
+ The expected Type.
+ The object under examination
+ The message to display in case of failure
+
+
+
+ Asserts that an object may not be assigned a value of a given Type.
+
+ The expected Type.
+ The object under examination
+
+
+
+ Asserts that an object is an instance of a given type.
+
+ The expected Type
+ The object being examined
+ The message to display in case of failure
+ Array of objects to be used in formatting the message
+
+
+
+ Asserts that an object is an instance of a given type.
+
+ The expected Type
+ The object being examined
+ The message to display in case of failure
+
+
+
+ Asserts that an object is an instance of a given type.
+
+ The expected Type
+ The object being examined
+
+
+
+ Asserts that an object is an instance of a given type.
+
+ The expected Type
+ The object being examined
+ The message to display in case of failure
+ Array of objects to be used in formatting the message
+
+
+
+ Asserts that an object is an instance of a given type.
+
+ The expected Type
+ The object being examined
+ The message to display in case of failure
+
+
+
+ Asserts that an object is an instance of a given type.
+
+ The expected Type
+ The object being examined
+
+
+
+ Asserts that an object is an instance of a given type.
+
+ The expected Type
+ The object being examined
+ The message to display in case of failure
+ Array of objects to be used in formatting the message
+
+
+
+ Asserts that an object is an instance of a given type.
+
+ The expected Type
+ The object being examined
+ The message to display in case of failure
+
+
+
+ Asserts that an object is an instance of a given type.
+
+ The expected Type
+ The object being examined
+
+
+
+ Asserts that an object is not an instance of a given type.
+
+ The expected Type
+ The object being examined
+ The message to display in case of failure
+ Array of objects to be used in formatting the message
+
+
+
+ Asserts that an object is not an instance of a given type.
+
+ The expected Type
+ The object being examined
+ The message to display in case of failure
+
+
+
+ Asserts that an object is not an instance of a given type.
+
+ The expected Type
+ The object being examined
+
+
+
+ Asserts that an object is not an instance of a given type.
+
+ The expected Type
+ The object being examined
+ The message to display in case of failure
+ Array of objects to be used in formatting the message
+
+
+
+ Asserts that an object is not an instance of a given type.
+
+ The expected Type
+ The object being examined
+ The message to display in case of failure
+
+
+
+ Asserts that an object is not an instance of a given type.
+
+ The expected Type
+ The object being examined
+
+
+
+ Asserts that an object is not an instance of a given type.
+
+ The expected Type
+ The object being examined
+ The message to display in case of failure
+ Array of objects to be used in formatting the message
+
+
+
+ Asserts that an object is not an instance of a given type.
+
+ The expected Type
+ The object being examined
+ The message to display in case of failure
+
+
+
+ Asserts that an object is not an instance of a given type.
+
+ The expected Type
+ The object being examined
+
+
+
+ Verifies that two values are equal. If they are not, then an
+ is thrown.
+
+ The expected value
+ The actual value
+ The message to display in case of failure
+ Array of objects to be used in formatting the message
+
+
+
+ Verifies that two values are equal. If they are not, then an
+ is thrown.
+
+ The expected value
+ The actual value
+ The message to display in case of failure
+
+
+
+ Verifies that two values are equal. If they are not, then an
+ is thrown.
+
+ The expected value
+ The actual value
+
+
+
+ Verifies that two values are equal. If they are not, then an
+ is thrown.
+
+ The expected value
+ The actual value
+ The message to display in case of failure
+ Array of objects to be used in formatting the message
+
+
+
+ Verifies that two values are equal. If they are not, then an
+ is thrown.
+
+ The expected value
+ The actual value
+ The message to display in case of failure
+
+
+
+ Verifies that two values are equal. If they are not, then an
+ is thrown.
+
+ The expected value
+ The actual value
+
+
+
+ Verifies that two values are equal. If they are not, then an
+ is thrown.
+
+ The expected value
+ The actual value
+ The message to display in case of failure
+ Array of objects to be used in formatting the message
+
+
+
+ Verifies that two values are equal. If they are not, then an
+ is thrown.
+
+ The expected value
+ The actual value
+ The message to display in case of failure
+
+
+
+ Verifies that two values are equal. If they are not, then an
+ is thrown.
+
+ The expected value
+ The actual value
+
+
+
+ Verifies that two values are equal. If they are not, then an
+ is thrown.
+
+ The expected value
+ The actual value
+ The message to display in case of failure
+ Array of objects to be used in formatting the message
+
+
+
+ Verifies that two values are equal. If they are not, then an
+ is thrown.
+
+ The expected value
+ The actual value
+ The message to display in case of failure
+
+
+
+ Verifies that two values are equal. If they are not, then an
+ is thrown.
+
+ The expected value
+ The actual value
+
+
+
+ Verifies that two values are equal. If they are not, then an
+ is thrown.
+
+ The expected value
+ The actual value
+ The message to display in case of failure
+ Array of objects to be used in formatting the message
+
+
+
+ Verifies that two values are equal. If they are not, then an
+ is thrown.
+
+ The expected value
+ The actual value
+ The message to display in case of failure
+
+
+
+ Verifies that two values are equal. If they are not, then an
+ is thrown.
+
+ The expected value
+ The actual value
+
+
+
+ Verifies that two doubles are equal considering a delta. If the
+ expected value is infinity then the delta value is ignored. If
+ they are not equal then an is
+ thrown.
+
+ The expected value
+ The actual value
+ The maximum acceptable difference between the
+ the expected and the actual
+ The message to display in case of failure
+ Array of objects to be used in formatting the message
+
+
+
+ Verifies that two doubles are equal considering a delta. If the
+ expected value is infinity then the delta value is ignored. If
+ they are not equal then an is
+ thrown.
+
+ The expected value
+ The actual value
+ The maximum acceptable difference between the
+ the expected and the actual
+ The message to display in case of failure
+
+
+
+ Verifies that two doubles are equal considering a delta. If the
+ expected value is infinity then the delta value is ignored. If
+ they are not equal then an is
+ thrown.
+
+ The expected value
+ The actual value
+ The maximum acceptable difference between the
+ the expected and the actual
+
+
+
+ Verifies that two doubles are equal considering a delta. If the
+ expected value is infinity then the delta value is ignored. If
+ they are not equal then an is
+ thrown.
+
+ The expected value
+ The actual value
+ The maximum acceptable difference between the
+ the expected and the actual
+ The message to display in case of failure
+ Array of objects to be used in formatting the message
+
+
+
+ Verifies that two doubles are equal considering a delta. If the
+ expected value is infinity then the delta value is ignored. If
+ they are not equal then an is
+ thrown.
+
+ The expected value
+ The actual value
+ The maximum acceptable difference between the
+ the expected and the actual
+ The message to display in case of failure
+
+
+
+ Verifies that two doubles are equal considering a delta. If the
+ expected value is infinity then the delta value is ignored. If
+ they are not equal then an is
+ thrown.
+
+ The expected value
+ The actual value
+ The maximum acceptable difference between the
+ the expected and the actual
+
+
+
+ Verifies that two objects are equal. Two objects are considered
+ equal if both are null, or if both have the same value. NUnit
+ has special semantics for some object types.
+ If they are not equal an is thrown.
+
+ The value that is expected
+ The actual value
+ The message to display in case of failure
+ Array of objects to be used in formatting the message
+
+
+
+ Verifies that two objects are equal. Two objects are considered
+ equal if both are null, or if both have the same value. NUnit
+ has special semantics for some object types.
+ If they are not equal an is thrown.
+
+ The value that is expected
+ The actual value
+ The message to display in case of failure
+
+
+
+ Verifies that two objects are equal. Two objects are considered
+ equal if both are null, or if both have the same value. NUnit
+ has special semantics for some object types.
+ If they are not equal an is thrown.
+
+ The value that is expected
+ The actual value
+
+
+
+ Verifies that two values are not equal. If they are equal, then an
+ is thrown.
+
+ The expected value
+ The actual value
+ The message to display in case of failure
+ Array of objects to be used in formatting the message
+
+
+
+ Verifies that two values are not equal. If they are equal, then an
+ is thrown.
+
+ The expected value
+ The actual value
+ The message to display in case of failure
+
+
+
+ Verifies that two values are not equal. If they are equal, then an
+ is thrown.
+
+ The expected value
+ The actual value
+
+
+
+ Verifies that two values are not equal. If they are equal, then an
+ is thrown.
+
+ The expected value
+ The actual value
+ The message to display in case of failure
+ Array of objects to be used in formatting the message
+
+
+
+ Verifies that two values are not equal. If they are equal, then an
+ is thrown.
+
+ The expected value
+ The actual value
+ The message to display in case of failure
+
+
+
+ Verifies that two values are not equal. If they are equal, then an
+ is thrown.
+
+ The expected value
+ The actual value
+
+
+
+ Verifies that two values are not equal. If they are equal, then an
+ is thrown.
+
+ The expected value
+ The actual value
+ The message to display in case of failure
+ Array of objects to be used in formatting the message
+
+
+
+ Verifies that two values are not equal. If they are equal, then an
+ is thrown.
+
+ The expected value
+ The actual value
+ The message to display in case of failure
+
+
+
+ Verifies that two values are not equal. If they are equal, then an
+ is thrown.
+
+ The expected value
+ The actual value
+
+
+
+ Verifies that two values are not equal. If they are equal, then an
+ is thrown.
+
+ The expected value
+ The actual value
+ The message to display in case of failure
+ Array of objects to be used in formatting the message
+
+
+
+ Verifies that two values are not equal. If they are equal, then an
+ is thrown.
+
+ The expected value
+ The actual value
+ The message to display in case of failure
+
+
+
+ Verifies that two values are not equal. If they are equal, then an
+ is thrown.
+
+ The expected value
+ The actual value
+
+
+
+ Verifies that two values are not equal. If they are equal, then an
+ is thrown.
+
+ The expected value
+ The actual value
+ The message to display in case of failure
+ Array of objects to be used in formatting the message
+
+
+
+ Verifies that two values are not equal. If they are equal, then an
+ is thrown.
+
+ The expected value
+ The actual value
+ The message to display in case of failure
+
+
+
+ Verifies that two values are not equal. If they are equal, then an
+ is thrown.
+
+ The expected value
+ The actual value
+
+
+
+ Verifies that two values are not equal. If they are equal, then an
+ is thrown.
+
+ The expected value
+ The actual value
+ The message to display in case of failure
+ Array of objects to be used in formatting the message
+
+
+
+ Verifies that two values are not equal. If they are equal, then an
+ is thrown.
+
+ The expected value
+ The actual value
+ The message to display in case of failure
+
+
+
+ Verifies that two values are not equal. If they are equal, then an
+ is thrown.
+
+ The expected value
+ The actual value
+
+
+
+ Verifies that two values are not equal. If they are equal, then an
+ is thrown.
+
+ The expected value
+ The actual value
+ The message to display in case of failure
+ Array of objects to be used in formatting the message
+
+
+
+ Verifies that two values are not equal. If they are equal, then an
+ is thrown.
+
+ The expected value
+ The actual value
+ The message to display in case of failure
+
+
+
+ Verifies that two values are not equal. If they are equal, then an
+ is thrown.
+
+ The expected value
+ The actual value
+
+
+
+ Verifies that two objects are not equal. Two objects are considered
+ equal if both are null, or if both have the same value. NUnit
+ has special semantics for some object types.
+ If they are equal an is thrown.
+
+ The value that is expected
+ The actual value
+ The message to display in case of failure
+ Array of objects to be used in formatting the message
+
+
+
+ Verifies that two objects are not equal. Two objects are considered
+ equal if both are null, or if both have the same value. NUnit
+ has special semantics for some object types.
+ If they are equal an is thrown.
+
+ The value that is expected
+ The actual value
+ The message to display in case of failure
+
+
+
+ Verifies that two objects are not equal. Two objects are considered
+ equal if both are null, or if both have the same value. NUnit
+ has special semantics for some object types.
+ If they are equal an is thrown.
+
+ The value that is expected
+ The actual value
+
+
+
+ Asserts that two objects refer to the same object. If they
+ are not the same an is thrown.
+
+ The expected object
+ The actual object
+ The message to display in case of failure
+ Array of objects to be used in formatting the message
+
+
+
+ Asserts that two objects refer to the same object. If they
+ are not the same an is thrown.
+
+ The expected object
+ The actual object
+ The message to display in case of failure
+
+
+
+ Asserts that two objects refer to the same object. If they
+ are not the same an is thrown.
+
+ The expected object
+ The actual object
+
+
+
+ Asserts that two objects do not refer to the same object. If they
+ are the same an is thrown.
+
+ The expected object
+ The actual object
+ The message to display in case of failure
+ Array of objects to be used in formatting the message
+
+
+
+ Asserts that two objects do not refer to the same object. If they
+ are the same an is thrown.
+
+ The expected object
+ The actual object
+ The message to display in case of failure
+
+
+
+ Asserts that two objects do not refer to the same object. If they
+ are the same an is thrown.
+
+ The expected object
+ The actual object
+
+
+
+ Verifies that the first value is greater than the second
+ value. If it is not, then an
+ is thrown.
+
+ The first value, expected to be greater
+ The second value, expected to be less
+ The message to display in case of failure
+ Array of objects to be used in formatting the message
+
+
+
+ Verifies that the first value is greater than the second
+ value. If it is not, then an
+ is thrown.
+
+ The first value, expected to be greater
+ The second value, expected to be less
+ The message to display in case of failure
+
+
+
+ Verifies that the first value is greater than the second
+ value. If it is not, then an
+ is thrown.
+
+ The first value, expected to be greater
+ The second value, expected to be less
+
+
+
+ Verifies that the first value is greater than the second
+ value. If it is not, then an
+ is thrown.
+
+ The first value, expected to be greater
+ The second value, expected to be less
+ The message to display in case of failure
+ Array of objects to be used in formatting the message
+
+
+
+ Verifies that the first value is greater than the second
+ value. If it is not, then an
+ is thrown.
+
+ The first value, expected to be greater
+ The second value, expected to be less
+ The message to display in case of failure
+
+
+
+ Verifies that the first value is greater than the second
+ value. If it is not, then an
+ is thrown.
+
+ The first value, expected to be greater
+ The second value, expected to be less
+
+
+
+ Verifies that the first value is greater than the second
+ value. If it is not, then an
+ is thrown.
+
+ The first value, expected to be greater
+ The second value, expected to be less
+ The message to display in case of failure
+ Array of objects to be used in formatting the message
+
+
+
+ Verifies that the first value is greater than the second
+ value. If it is not, then an
+ is thrown.
+
+ The first value, expected to be greater
+ The second value, expected to be less
+ The message to display in case of failure
+
+
+
+ Verifies that the first value is greater than the second
+ value. If it is not, then an
+ is thrown.
+
+ The first value, expected to be greater
+ The second value, expected to be less
+
+
+
+ Verifies that the first value is greater than the second
+ value. If it is not, then an
+ is thrown.
+
+ The first value, expected to be greater
+ The second value, expected to be less
+ The message to display in case of failure
+ Array of objects to be used in formatting the message
+
+
+
+ Verifies that the first value is greater than the second
+ value. If it is not, then an
+ is thrown.
+
+ The first value, expected to be greater
+ The second value, expected to be less
+ The message to display in case of failure
+
+
+
+ Verifies that the first value is greater than the second
+ value. If it is not, then an
+ is thrown.
+
+ The first value, expected to be greater
+ The second value, expected to be less
+
+
+
+ Verifies that the first value is greater than the second
+ value. If it is not, then an
+ is thrown.
+
+ The first value, expected to be greater
+ The second value, expected to be less
+ The message to display in case of failure
+ Array of objects to be used in formatting the message
+
+
+
+ Verifies that the first value is greater than the second
+ value. If it is not, then an
+ is thrown.
+
+ The first value, expected to be greater
+ The second value, expected to be less
+ The message to display in case of failure
+
+
+
+ Verifies that the first value is greater than the second
+ value. If it is not, then an
+ is thrown.
+
+ The first value, expected to be greater
+ The second value, expected to be less
+
+
+
+ Verifies that the first value is greater than the second
+ value. If it is not, then an
+ is thrown.
+
+ The first value, expected to be greater
+ The second value, expected to be less
+ The message to display in case of failure
+ Array of objects to be used in formatting the message
+
+
+
+ Verifies that the first value is greater than the second
+ value. If it is not, then an
+ is thrown.
+
+ The first value, expected to be greater
+ The second value, expected to be less
+ The message to display in case of failure
+
+
+
+ Verifies that the first value is greater than the second
+ value. If it is not, then an
+ is thrown.
+
+ The first value, expected to be greater
+ The second value, expected to be less
+
+
+
+ Verifies that the first value is greater than the second
+ value. If it is not, then an
+ is thrown.
+
+ The first value, expected to be greater
+ The second value, expected to be less
+ The message to display in case of failure
+ Array of objects to be used in formatting the message
+
+
+
+ Verifies that the first value is greater than the second
+ value. If it is not, then an
+ is thrown.
+
+ The first value, expected to be greater
+ The second value, expected to be less
+ The message to display in case of failure
+
+
+
+ Verifies that the first value is greater than the second
+ value. If it is not, then an
+ is thrown.
+
+ The first value, expected to be greater
+ The second value, expected to be less
+
+
+
+ Verifies that the first value is greater than the second
+ value. If it is not, then an
+ is thrown.
+
+ The first value, expected to be greater
+ The second value, expected to be less
+ The message to display in case of failure
+ Array of objects to be used in formatting the message
+
+
+
+ Verifies that the first value is greater than the second
+ value. If it is not, then an
+ is thrown.
+
+ The first value, expected to be greater
+ The second value, expected to be less
+ The message to display in case of failure
+
+
+
+ Verifies that the first value is greater than the second
+ value. If it is not, then an
+ is thrown.
+
+ The first value, expected to be greater
+ The second value, expected to be less
+
+
+
+ Verifies that the first value is less than the second
+ value. If it is not, then an
+ is thrown.
+
+ The first value, expected to be less
+ The second value, expected to be greater
+ The message to display in case of failure
+ Array of objects to be used in formatting the message
+
+
+
+ Verifies that the first value is less than the second
+ value. If it is not, then an
+ is thrown.
+
+ The first value, expected to be less
+ The second value, expected to be greater
+ The message to display in case of failure
+
+
+
+ Verifies that the first value is less than the second
+ value. If it is not, then an
+ is thrown.
+
+ The first value, expected to be less
+ The second value, expected to be greater
+
+
+
+ Verifies that the first value is less than the second
+ value. If it is not, then an
+ is thrown.
+
+ The first value, expected to be less
+ The second value, expected to be greater
+ The message to display in case of failure
+ Array of objects to be used in formatting the message
+
+
+
+ Verifies that the first value is less than the second
+ value. If it is not, then an
+ is thrown.
+
+ The first value, expected to be less
+ The second value, expected to be greater
+ The message to display in case of failure
+
+
+
+ Verifies that the first value is less than the second
+ value. If it is not, then an
+ is thrown.
+
+ The first value, expected to be less
+ The second value, expected to be greater
+
+
+
+ Verifies that the first value is less than the second
+ value. If it is not, then an
+ is thrown.
+
+ The first value, expected to be less
+ The second value, expected to be greater
+ The message to display in case of failure
+ Array of objects to be used in formatting the message
+
+
+
+ Verifies that the first value is less than the second
+ value. If it is not, then an
+ is thrown.
+
+ The first value, expected to be less
+ The second value, expected to be greater
+ The message to display in case of failure
+
+
+
+ Verifies that the first value is less than the second
+ value. If it is not, then an
+ is thrown.
+
+ The first value, expected to be less
+ The second value, expected to be greater
+
+
+
+ Verifies that the first value is less than the second
+ value. If it is not, then an
+ is thrown.
+
+ The first value, expected to be less
+ The second value, expected to be greater
+ The message to display in case of failure
+ Array of objects to be used in formatting the message
+
+
+
+ Verifies that the first value is less than the second
+ value. If it is not, then an
+ is thrown.
+
+ The first value, expected to be less
+ The second value, expected to be greater
+ The message to display in case of failure
+
+
+
+ Verifies that the first value is less than the second
+ value. If it is not, then an
+ is thrown.
+
+ The first value, expected to be less
+ The second value, expected to be greater
+
+
+
+ Verifies that the first value is less than the second
+ value. If it is not, then an
+ is thrown.
+
+ The first value, expected to be less
+ The second value, expected to be greater
+ The message to display in case of failure
+ Array of objects to be used in formatting the message
+
+
+
+ Verifies that the first value is less than the second
+ value. If it is not, then an
+ is thrown.
+
+ The first value, expected to be less
+ The second value, expected to be greater
+ The message to display in case of failure
+
+
+
+ Verifies that the first value is less than the second
+ value. If it is not, then an
+ is thrown.
+
+ The first value, expected to be less
+ The second value, expected to be greater
+
+
+
+ Verifies that the first value is less than the second
+ value. If it is not, then an
+ is thrown.
+
+ The first value, expected to be less
+ The second value, expected to be greater
+ The message to display in case of failure
+ Array of objects to be used in formatting the message
+
+
+
+ Verifies that the first value is less than the second
+ value. If it is not, then an
+ is thrown.
+
+ The first value, expected to be less
+ The second value, expected to be greater
+ The message to display in case of failure
+
+
+
+ Verifies that the first value is less than the second
+ value. If it is not, then an
+ is thrown.
+
+ The first value, expected to be less
+ The second value, expected to be greater
+
+
+
+ Verifies that the first value is less than the second
+ value. If it is not, then an
+ is thrown.
+
+ The first value, expected to be less
+ The second value, expected to be greater
+ The message to display in case of failure
+ Array of objects to be used in formatting the message
+
+
+
+ Verifies that the first value is less than the second
+ value. If it is not, then an
+ is thrown.
+
+ The first value, expected to be less
+ The second value, expected to be greater
+ The message to display in case of failure
+
+
+
+ Verifies that the first value is less than the second
+ value. If it is not, then an
+ is thrown.
+
+ The first value, expected to be less
+ The second value, expected to be greater
+
+
+
+ Verifies that the first value is less than the second
+ value. If it is not, then an
+ is thrown.
+
+ The first value, expected to be less
+ The second value, expected to be greater
+ The message to display in case of failure
+ Array of objects to be used in formatting the message
+
+
+
+ Verifies that the first value is less than the second
+ value. If it is not, then an
+ is thrown.
+
+ The first value, expected to be less
+ The second value, expected to be greater
+ The message to display in case of failure
+
+
+
+ Verifies that the first value is less than the second
+ value. If it is not, then an
+ is thrown.
+
+ The first value, expected to be less
+ The second value, expected to be greater
+
+
+
+ Verifies that the first value is greater than or equal tothe second
+ value. If it is not, then an
+ is thrown.
+
+ The first value, expected to be greater
+ The second value, expected to be less
+ The message to display in case of failure
+ Array of objects to be used in formatting the message
+
+
+
+ Verifies that the first value is greater than or equal tothe second
+ value. If it is not, then an
+ is thrown.
+
+ The first value, expected to be greater
+ The second value, expected to be less
+ The message to display in case of failure
+
+
+
+ Verifies that the first value is greater than or equal tothe second
+ value. If it is not, then an
+ is thrown.
+
+ The first value, expected to be greater
+ The second value, expected to be less
+
+
+
+ Verifies that the first value is greater than or equal tothe second
+ value. If it is not, then an
+ is thrown.
+
+ The first value, expected to be greater
+ The second value, expected to be less
+ The message to display in case of failure
+ Array of objects to be used in formatting the message
+
+
+
+ Verifies that the first value is greater than or equal tothe second
+ value. If it is not, then an
+ is thrown.
+
+ The first value, expected to be greater
+ The second value, expected to be less
+ The message to display in case of failure
+
+
+
+ Verifies that the first value is greater than or equal tothe second
+ value. If it is not, then an
+ is thrown.
+
+ The first value, expected to be greater
+ The second value, expected to be less
+
+
+
+ Verifies that the first value is greater than or equal tothe second
+ value. If it is not, then an
+ is thrown.
+
+ The first value, expected to be greater
+ The second value, expected to be less
+ The message to display in case of failure
+ Array of objects to be used in formatting the message
+
+
+
+ Verifies that the first value is greater than or equal tothe second
+ value. If it is not, then an
+ is thrown.
+
+ The first value, expected to be greater
+ The second value, expected to be less
+ The message to display in case of failure
+
+
+
+ Verifies that the first value is greater than or equal tothe second
+ value. If it is not, then an
+ is thrown.
+
+ The first value, expected to be greater
+ The second value, expected to be less
+
+
+
+ Verifies that the first value is greater than or equal tothe second
+ value. If it is not, then an
+ is thrown.
+
+ The first value, expected to be greater
+ The second value, expected to be less
+ The message to display in case of failure
+ Array of objects to be used in formatting the message
+
+
+
+ Verifies that the first value is greater than or equal tothe second
+ value. If it is not, then an
+ is thrown.
+
+ The first value, expected to be greater
+ The second value, expected to be less
+ The message to display in case of failure
+
+
+
+ Verifies that the first value is greater than or equal tothe second
+ value. If it is not, then an
+ is thrown.
+
+ The first value, expected to be greater
+ The second value, expected to be less
+
+
+
+ Verifies that the first value is greater than or equal tothe second
+ value. If it is not, then an
+ is thrown.
+
+ The first value, expected to be greater
+ The second value, expected to be less
+ The message to display in case of failure
+ Array of objects to be used in formatting the message
+
+
+
+ Verifies that the first value is greater than or equal tothe second
+ value. If it is not, then an
+ is thrown.
+
+ The first value, expected to be greater
+ The second value, expected to be less
+ The message to display in case of failure
+
+
+
+ Verifies that the first value is greater than or equal tothe second
+ value. If it is not, then an
+ is thrown.
+
+ The first value, expected to be greater
+ The second value, expected to be less
+
+
+
+ Verifies that the first value is greater than or equal tothe second
+ value. If it is not, then an
+ is thrown.
+
+ The first value, expected to be greater
+ The second value, expected to be less
+ The message to display in case of failure
+ Array of objects to be used in formatting the message
+
+
+
+ Verifies that the first value is greater than or equal tothe second
+ value. If it is not, then an
+ is thrown.
+
+ The first value, expected to be greater
+ The second value, expected to be less
+ The message to display in case of failure
+
+
+
+ Verifies that the first value is greater than or equal tothe second
+ value. If it is not, then an
+ is thrown.
+
+ The first value, expected to be greater
+ The second value, expected to be less
+
+
+
+ Verifies that the first value is greater than or equal tothe second
+ value. If it is not, then an
+ is thrown.
+
+ The first value, expected to be greater
+ The second value, expected to be less
+ The message to display in case of failure
+ Array of objects to be used in formatting the message
+
+
+
+ Verifies that the first value is greater than or equal tothe second
+ value. If it is not, then an
+ is thrown.
+
+ The first value, expected to be greater
+ The second value, expected to be less
+ The message to display in case of failure
+
+
+
+ Verifies that the first value is greater than or equal tothe second
+ value. If it is not, then an
+ is thrown.
+
+ The first value, expected to be greater
+ The second value, expected to be less
+
+
+
+ Verifies that the first value is greater than or equal tothe second
+ value. If it is not, then an
+ is thrown.
+
+ The first value, expected to be greater
+ The second value, expected to be less
+ The message to display in case of failure
+ Array of objects to be used in formatting the message
+
+
+
+ Verifies that the first value is greater than or equal tothe second
+ value. If it is not, then an
+ is thrown.
+
+ The first value, expected to be greater
+ The second value, expected to be less
+ The message to display in case of failure
+
+
+
+ Verifies that the first value is greater than or equal tothe second
+ value. If it is not, then an
+ is thrown.
+
+ The first value, expected to be greater
+ The second value, expected to be less
+
+
+
+ Verifies that the first value is less than or equal to the second
+ value. If it is not, then an
+ is thrown.
+
+ The first value, expected to be less
+ The second value, expected to be greater
+ The message to display in case of failure
+ Array of objects to be used in formatting the message
+
+
+
+ Verifies that the first value is less than or equal to the second
+ value. If it is not, then an
+ is thrown.
+
+ The first value, expected to be less
+ The second value, expected to be greater
+ The message to display in case of failure
+
+
+
+ Verifies that the first value is less than or equal to the second
+ value. If it is not, then an
+ is thrown.
+
+ The first value, expected to be less
+ The second value, expected to be greater
+
+
+
+ Verifies that the first value is less than or equal to the second
+ value. If it is not, then an
+ is thrown.
+
+ The first value, expected to be less
+ The second value, expected to be greater
+ The message to display in case of failure
+ Array of objects to be used in formatting the message
+
+
+
+ Verifies that the first value is less than or equal to the second
+ value. If it is not, then an
+ is thrown.
+
+ The first value, expected to be less
+ The second value, expected to be greater
+ The message to display in case of failure
+
+
+
+ Verifies that the first value is less than or equal to the second
+ value. If it is not, then an
+ is thrown.
+
+ The first value, expected to be less
+ The second value, expected to be greater
+
+
+
+ Verifies that the first value is less than or equal to the second
+ value. If it is not, then an
+ is thrown.
+
+ The first value, expected to be less
+ The second value, expected to be greater
+ The message to display in case of failure
+ Array of objects to be used in formatting the message
+
+
+
+ Verifies that the first value is less than or equal to the second
+ value. If it is not, then an
+ is thrown.
+
+ The first value, expected to be less
+ The second value, expected to be greater
+ The message to display in case of failure
+
+
+
+ Verifies that the first value is less than or equal to the second
+ value. If it is not, then an
+ is thrown.
+
+ The first value, expected to be less
+ The second value, expected to be greater
+
+
+
+ Verifies that the first value is less than or equal to the second
+ value. If it is not, then an
+ is thrown.
+
+ The first value, expected to be less
+ The second value, expected to be greater
+ The message to display in case of failure
+ Array of objects to be used in formatting the message
+
+
+
+ Verifies that the first value is less than or equal to the second
+ value. If it is not, then an
+ is thrown.
+
+ The first value, expected to be less
+ The second value, expected to be greater
+ The message to display in case of failure
+
+
+
+ Verifies that the first value is less than or equal to the second
+ value. If it is not, then an
+ is thrown.
+
+ The first value, expected to be less
+ The second value, expected to be greater
+
+
+
+ Verifies that the first value is less than or equal to the second
+ value. If it is not, then an
+ is thrown.
+
+ The first value, expected to be less
+ The second value, expected to be greater
+ The message to display in case of failure
+ Array of objects to be used in formatting the message
+
+
+
+ Verifies that the first value is less than or equal to the second
+ value. If it is not, then an
+ is thrown.
+
+ The first value, expected to be less
+ The second value, expected to be greater
+ The message to display in case of failure
+
+
+
+ Verifies that the first value is less than or equal to the second
+ value. If it is not, then an
+ is thrown.
+
+ The first value, expected to be less
+ The second value, expected to be greater
+
+
+
+ Verifies that the first value is less than or equal to the second
+ value. If it is not, then an
+ is thrown.
+
+ The first value, expected to be less
+ The second value, expected to be greater
+ The message to display in case of failure
+ Array of objects to be used in formatting the message
+
+
+
+ Verifies that the first value is less than or equal to the second
+ value. If it is not, then an
+ is thrown.
+
+ The first value, expected to be less
+ The second value, expected to be greater
+ The message to display in case of failure
+
+
+
+ Verifies that the first value is less than or equal to the second
+ value. If it is not, then an
+ is thrown.
+
+ The first value, expected to be less
+ The second value, expected to be greater
+
+
+
+ Verifies that the first value is less than or equal to the second
+ value. If it is not, then an
+ is thrown.
+
+ The first value, expected to be less
+ The second value, expected to be greater
+ The message to display in case of failure
+ Array of objects to be used in formatting the message
+
+
+
+ Verifies that the first value is less than or equal to the second
+ value. If it is not, then an
+ is thrown.
+
+ The first value, expected to be less
+ The second value, expected to be greater
+ The message to display in case of failure
+
+
+
+ Verifies that the first value is less than or equal to the second
+ value. If it is not, then an
+ is thrown.
+
+ The first value, expected to be less
+ The second value, expected to be greater
+
+
+
+ Verifies that the first value is less than or equal to the second
+ value. If it is not, then an
+ is thrown.
+
+ The first value, expected to be less
+ The second value, expected to be greater
+ The message to display in case of failure
+ Array of objects to be used in formatting the message
+
+
+
+ Verifies that the first value is less than or equal to the second
+ value. If it is not, then an
+ is thrown.
+
+ The first value, expected to be less
+ The second value, expected to be greater
+ The message to display in case of failure
+
+
+
+ Verifies that the first value is less than or equal to the second
+ value. If it is not, then an
+ is thrown.
+
+ The first value, expected to be less
+ The second value, expected to be greater
+
+
+
+ Asserts that an object is contained in a list.
+
+ The expected object
+ The list to be examined
+ The message to display in case of failure
+ Array of objects to be used in formatting the message
+
+
+
+ Asserts that an object is contained in a list.
+
+ The expected object
+ The list to be examined
+ The message to display in case of failure
+
+
+
+ Asserts that an object is contained in a list.
+
+ The expected object
+ The list to be examined
+
+
+
+ Gets the number of assertions executed so far and
+ resets the counter to zero.
+
+
+
+
+ Static helper class used in the constraint-based syntax
+
+
+
+
+ Creates a new SubstringConstraint
+
+ The value of the substring
+ A SubstringConstraint
+
+
+
+ Creates a new CollectionContainsConstraint.
+
+ The item that should be found.
+ A new CollectionContainsConstraint
+
+
+
+ Attribute used to apply a category to a test
+
+
+
+
+ The name of the category
+
+
+
+
+ Construct attribute for a given category based on
+ a name. The name may not contain the characters ',',
+ '+', '-' or '!'. However, this is not checked in the
+ constructor since it would cause an error to arise at
+ as the test was loaded without giving a clear indication
+ of where the problem is located. The error is handled
+ in NUnitFramework.cs by marking the test as not
+ runnable.
+
+ The name of the category
+
+
+
+ Protected constructor uses the Type name as the name
+ of the category.
+
+
+
+
+ The name of the category
+
+
+
+
+ The TestStatus enum indicates the result of running a test
+
+
+
+
+ The test was inconclusive
+
+
+
+
+ The test has skipped
+
+
+
+
+ The test succeeded
+
+
+
+
+ The test failed
+
+
+
+
+ Provide the context information of the current test
+
+
+
+
+ The TestState of current test. This maps to the ResultState
+ used in nunit.core and is subject to change in the future.
+
+
+
+
+ The TestStatus of current test. This enum will be used
+ in future versions of NUnit and so is to be preferred
+ to the TestState value.
+
+
+
+
+ The name of the currently executing test. If no
+ test is running, the name of the last test run.
+
+
+
+
+ The properties of the currently executing test
+ or, if no test is running, of the last test run.
+
+
+
+
+ The ResultState enum indicates the result of running a test
+
+
+
+
+ The result is inconclusive
+
+
+
+
+ The test was not runnable.
+
+
+
+
+ The test has been skipped.
+
+
+
+
+ The test has been ignored.
+
+
+
+
+ The test succeeded
+
+
+
+
+ The test failed
+
+
+
+
+ The test encountered an unexpected exception
+
+
+
+
+ The test was cancelled by the user
+
+
+
+
diff --git a/src/Spring/Spring.Aop/Aop/Config/AopNamespaceParser.cs b/src/Spring/Spring.Aop/Aop/Config/AopNamespaceParser.cs
index ac3955d6..d75f05e7 100644
--- a/src/Spring/Spring.Aop/Aop/Config/AopNamespaceParser.cs
+++ b/src/Spring/Spring.Aop/Aop/Config/AopNamespaceParser.cs
@@ -18,7 +18,6 @@
#endregion
-using System;
using Spring.Objects.Factory.Xml;
namespace Spring.Aop.Config
diff --git a/src/Spring/Spring.Aop/Aop/Framework/AbstractMethodInvocation.cs b/src/Spring/Spring.Aop/Aop/Framework/AbstractMethodInvocation.cs
index 213563c3..17bc760b 100644
--- a/src/Spring/Spring.Aop/Aop/Framework/AbstractMethodInvocation.cs
+++ b/src/Spring/Spring.Aop/Aop/Framework/AbstractMethodInvocation.cs
@@ -357,7 +357,7 @@ namespace Spring.Aop.Framework
{
StringBuilder buffer = new StringBuilder("Invocation: method '");
buffer.Append(Method.Name).Append("', ").Append("arguments ");
- buffer.Append(this.arguments != null ? StringUtils.ArrayToCommaDelimitedString(this.arguments) : "[none]");
+ buffer.Append(this.arguments != null ? StringUtils.CollectionToCommaDelimitedString(this.arguments) : "[none]");
buffer.Append("; ");
if (this.target == null)
{
diff --git a/src/Spring/Spring.Aop/Aop/Framework/Adapter/AdvisorAdapterRegistrationManager.cs b/src/Spring/Spring.Aop/Aop/Framework/Adapter/AdvisorAdapterRegistrationManager.cs
index 49c86fae..11469052 100644
--- a/src/Spring/Spring.Aop/Aop/Framework/Adapter/AdvisorAdapterRegistrationManager.cs
+++ b/src/Spring/Spring.Aop/Aop/Framework/Adapter/AdvisorAdapterRegistrationManager.cs
@@ -20,7 +20,6 @@
#region Imports
-using System;
using Spring.Objects.Factory.Config;
#endregion
diff --git a/src/Spring/Spring.Aop/Aop/Framework/Adapter/DefaultAdvisorAdapterRegistry.cs b/src/Spring/Spring.Aop/Aop/Framework/Adapter/DefaultAdvisorAdapterRegistry.cs
index d5c2c7dc..396ff9c9 100644
--- a/src/Spring/Spring.Aop/Aop/Framework/Adapter/DefaultAdvisorAdapterRegistry.cs
+++ b/src/Spring/Spring.Aop/Aop/Framework/Adapter/DefaultAdvisorAdapterRegistry.cs
@@ -21,12 +21,10 @@
#region Imports
using System;
-using System.Collections;
+using System.Collections.Generic;
using AopAlliance.Aop;
using AopAlliance.Intercept;
-
-using Spring.Aop;
using Spring.Aop.Support;
#endregion
@@ -43,7 +41,7 @@ namespace Spring.Aop.Framework.Adapter
[Serializable]
public class DefaultAdvisorAdapterRegistry : IAdvisorAdapterRegistry
{
- private readonly IList adapters = new ArrayList();
+ private readonly IList adapters = new List();
///
/// Creates a new instance of the
diff --git a/src/Spring/Spring.Aop/Aop/Framework/Adapter/IAdvisorAdapter.cs b/src/Spring/Spring.Aop/Aop/Framework/Adapter/IAdvisorAdapter.cs
index 71fe8484..8ac7f40a 100644
--- a/src/Spring/Spring.Aop/Aop/Framework/Adapter/IAdvisorAdapter.cs
+++ b/src/Spring/Spring.Aop/Aop/Framework/Adapter/IAdvisorAdapter.cs
@@ -20,7 +20,6 @@
#region Imports
-using System;
using AopAlliance.Aop;
using AopAlliance.Intercept;
diff --git a/src/Spring/Spring.Aop/Aop/Framework/Adapter/IAdvisorAdapterRegistry.cs b/src/Spring/Spring.Aop/Aop/Framework/Adapter/IAdvisorAdapterRegistry.cs
index 1b571536..83549c50 100644
--- a/src/Spring/Spring.Aop/Aop/Framework/Adapter/IAdvisorAdapterRegistry.cs
+++ b/src/Spring/Spring.Aop/Aop/Framework/Adapter/IAdvisorAdapterRegistry.cs
@@ -20,7 +20,6 @@
#region Imports
-using System;
using AopAlliance.Intercept;
#endregion
diff --git a/src/Spring/Spring.Aop/Aop/Framework/AdvisedSupport.cs b/src/Spring/Spring.Aop/Aop/Framework/AdvisedSupport.cs
index cc250005..d305f805 100644
--- a/src/Spring/Spring.Aop/Aop/Framework/AdvisedSupport.cs
+++ b/src/Spring/Spring.Aop/Aop/Framework/AdvisedSupport.cs
@@ -20,16 +20,16 @@
using System;
using System.Collections;
-using System.Collections.Specialized;
+using System.Collections.Generic;
using System.Reflection;
using System.Text;
+
using AopAlliance.Aop;
using AopAlliance.Intercept;
-using Spring.Aop;
+
using Spring.Aop.Support;
using Spring.Aop.Target;
using Spring.Util;
-using Spring.Proxy;
namespace Spring.Aop.Framework
{
@@ -65,7 +65,7 @@ namespace Spring.Aop.Framework
/// will be wrapped in an advice before being added to this list.
///
///
- private IList _advisors = new ArrayList();
+ private List _advisors = new List();
///
/// Array updated on changes to the advisors list, which is easier to
@@ -76,7 +76,7 @@ namespace Spring.Aop.Framework
///
/// List of introductions.
///
- private ArrayList _introductions = new ArrayList();
+ private List _introductions = new List();
///
/// Interface map specifying which object should interface methods be
@@ -88,7 +88,7 @@ namespace Spring.Aop.Framework
/// to the target object.
///
///
- private readonly IDictionary interfaceMap = new ListDictionary();
+ private readonly Dictionary interfaceMap = new Dictionary();
///
/// The for this instance.
@@ -108,7 +108,7 @@ namespace Spring.Aop.Framework
///
/// The list of event listeners.
///
- private readonly IList listeners = new ArrayList();
+ private readonly IList listeners = new List();
///
/// The advisor chain factory.
@@ -274,7 +274,7 @@ namespace Spring.Aop.Framework
for (int i = 0; i < this._introductions.Count; i++)
{
- IIntroductionAdvisor advisor = (IIntroductionAdvisor) this._introductions[i];
+ IIntroductionAdvisor advisor = this._introductions[i];
canBeSerialized = advisor.GetType().IsSerializable
&& advisor.Advice.GetType().IsSerializable;
if (!canBeSerialized) return false;
@@ -294,7 +294,7 @@ namespace Spring.Aop.Framework
/// to be (or that are being) proxied by this proxy.
///
///
- public virtual Type[] Interfaces
+ public virtual IList Interfaces
{
get
{
@@ -318,12 +318,12 @@ namespace Spring.Aop.Framework
///
/// Set interfaces to be proxied, bypassing locking and
///
- protected void SetInterfacesInternal(Type[] value)
+ protected void SetInterfacesInternal(IList value)
{
this.interfaceMap.Clear();
if (value != null)
{
- for (int i = 0; i < value.Length; i++)
+ for (int i = 0; i < value.Count; i++)
{
AddInterfaceInternal(value[i]);
}
@@ -392,14 +392,9 @@ namespace Spring.Aop.Framework
/// instances that have been applied to this proxy.
///
///
- public virtual IAdvisor[] Advisors
+ public virtual IList Advisors
{
- get
- {
- {
- return _advisorsArray;
- }
- }
+ get { return _advisorsArray; }
}
///
@@ -419,13 +414,13 @@ namespace Spring.Aop.Framework
/// instances that have been applied to this proxy.
///
///
- public virtual IIntroductionAdvisor[] Introductions
+ public virtual IList Introductions
{
get
{
lock (this.SyncRoot)
{
- return (IIntroductionAdvisor[])this._introductions.ToArray(typeof(IIntroductionAdvisor));
+ return this._introductions;
}
}
}
@@ -680,7 +675,7 @@ namespace Spring.Aop.Framework
"Introduction index " + index + " is out of bounds: Only have " + _introductions.Count +
" introductions.");
}
- IIntroductionAdvisor advisor = (IIntroductionAdvisor)_introductions[index];
+ IIntroductionAdvisor advisor = _introductions[index];
// remove all interfaces introduced by the advisor...
foreach (Type intf in advisor.Interfaces)
{
@@ -830,8 +825,7 @@ namespace Spring.Aop.Framework
int pos = this._introductions.Count;
for (int i = 0; i < pos; i++)
{
- IIntroductionAdvisor introduction
- = (IIntroductionAdvisor)this._introductions[i];
+ IIntroductionAdvisor introduction = this._introductions[i];
if (introduction.Advice.GetType() == introductionType)
{
pos = i;
@@ -1123,7 +1117,7 @@ namespace Spring.Aop.Framework
DieIfFrozen("Cannot remove interface: configuration is frozen.");
lock (this.SyncRoot)
{
- if (intf != null && this.interfaceMap.Contains(intf))
+ if (intf != null && this.interfaceMap.ContainsKey(intf))
{
this.interfaceMap.Remove(intf);
InterfacesChanged();
@@ -1188,7 +1182,7 @@ namespace Spring.Aop.Framework
{
for (int i = 0; i < this._advisors.Count; ++i)
{
- IAdvisor advisor = (IAdvisor)this._advisors[i];
+ IAdvisor advisor = this._advisors[i];
if (advisor.Advice == advice)
{
return i;
@@ -1492,7 +1486,7 @@ namespace Spring.Aop.Framework
///
protected internal virtual void CopyConfigurationFrom(AdvisedSupport other)
{
- CopyConfigurationFrom(other, other.TargetSource, new ArrayList(other.Advisors), new ArrayList(other.Introductions));
+ CopyConfigurationFrom(other, other.TargetSource, new List(other.Advisors), new List(other.Introductions));
}
///
@@ -1515,25 +1509,25 @@ namespace Spring.Aop.Framework
/// the new target source
/// the advisors for the chain
/// the introductions for the chain
- protected internal virtual void CopyConfigurationFrom(AdvisedSupport other, ITargetSource targetSource, IList advisors, IList introductions)
+ protected internal virtual void CopyConfigurationFrom(AdvisedSupport other, ITargetSource targetSource, IList advisors, IList introductions)
{
CopyFrom(other);
this.AdvisorChainFactory = other.advisorChainFactory;
this.m_targetSource = targetSource;
// this.cachedProxyType = other.cachedProxyType;
// this.cachedProxyConstructor = other.cachedProxyConstructor;
- this.Interfaces = (Type[]) CollectionUtils.ToArray(other.Interfaces, typeof(Type));
+ this.Interfaces = new List(other.Interfaces);
foreach (Type intf in other.interfaceMap.Keys)
{
this.interfaceMap[intf] = other.interfaceMap[intf];
}
- this._advisors = new ArrayList();
+ this._advisors = new List();
foreach (IAdvisor advisor in advisors)
{
AssertUtils.ArgumentNotNull(advisor, "Advisor must not be null");
AddAdvisor(advisor);
}
- this._introductions = new ArrayList();
+ this._introductions = new List();
foreach (IIntroductionAdvisor advisor in introductions)
{
// TODO (EE): implement
@@ -1575,7 +1569,7 @@ namespace Spring.Aop.Framework
foreach (Type intf in this.interfaceMap.Keys)
{
buffer.Append(separator).Append("[").Append(intf.FullName).Append("] -> ");
- IIntroductionAdvisor advisor = this.interfaceMap[intf] as IIntroductionAdvisor;
+ IIntroductionAdvisor advisor = this.interfaceMap[intf];
if (advisor == null)
{
if (TargetSource.TargetType != null)
diff --git a/src/Spring/Spring.Aop/Aop/Framework/AdvisorChainFactoryUtils.cs b/src/Spring/Spring.Aop/Aop/Framework/AdvisorChainFactoryUtils.cs
index f9201428..d4ebd34e 100644
--- a/src/Spring/Spring.Aop/Aop/Framework/AdvisorChainFactoryUtils.cs
+++ b/src/Spring/Spring.Aop/Aop/Framework/AdvisorChainFactoryUtils.cs
@@ -21,9 +21,11 @@
#region Imports
using System;
-using System.Collections;
+using System.Collections.Generic;
using System.Reflection;
+
using AopAlliance.Intercept;
+
using Spring.Aop.Framework.Adapter;
#endregion
@@ -62,10 +64,10 @@ namespace Spring.Aop.Framework
/// (if there's
/// a dynamic method matcher that needs evaluation at runtime).
///
- public static IList CalculateInterceptors(
+ public static IList
///
- /// The target object to set the value on.
+ /// The target object to set the value on.
///
///
- /// The value to set.
+ /// The value to set.
///
///
- /// Variables for expression evaluation.
+ /// Variables for expression evaluation.
///
- protected override void SetTargetValue(object target, object value, IDictionary variables)
+ protected override void SetTargetValue(object target, object value, IDictionary variables)
{
this.TargetExpression.SetValue(target, variables, value);
}
diff --git a/src/Spring/Spring.Core/Expressions/BaseNode.cs b/src/Spring/Spring.Core/Expressions/BaseNode.cs
index 17888ad6..66951740 100644
--- a/src/Spring/Spring.Core/Expressions/BaseNode.cs
+++ b/src/Spring/Spring.Core/Expressions/BaseNode.cs
@@ -20,6 +20,7 @@
using System;
using System.Collections;
+using System.Collections.Generic;
using System.Runtime.Serialization;
namespace Spring.Expressions
@@ -99,7 +100,7 @@ namespace Spring.Expressions
///
/// Gets/Sets global variables of the current evaluation
///
- public IDictionary Variables;
+ public IDictionary Variables;
///
/// Gets/Sets local variables of the current evaluation
///
@@ -110,7 +111,7 @@ namespace Spring.Expressions
///
/// The root context for this evaluation
/// dictionary of global variables used during this evaluation
- public EvaluationContext(object rootContext, IDictionary globalVariables)
+ public EvaluationContext(object rootContext, IDictionary globalVariables)
{
this.RootContext = rootContext;
this.ThisContext = rootContext;
@@ -175,7 +176,7 @@ namespace Spring.Expressions
/// Object to evaluate node against.
/// Expression variables map.
/// Node's value.
- public object GetValue(object context, IDictionary variables)
+ public object GetValue(object context, IDictionary variables)
{
EvaluationContext evalContext = new EvaluationContext(context, variables);
return Get(context, evalContext);
@@ -211,7 +212,7 @@ namespace Spring.Expressions
/// Object to evaluate node against.
/// Expression variables map.
/// New value for this node.
- public void SetValue(object context, IDictionary variables, object newValue)
+ public void SetValue(object context, IDictionary variables, object newValue)
{
EvaluationContext evalContext = new EvaluationContext(context, variables);
Set(context, evalContext, newValue);
diff --git a/src/Spring/Spring.Core/Expressions/ConstructorNode.cs b/src/Spring/Spring.Core/Expressions/ConstructorNode.cs
index a80e8db7..e5aae7c5 100644
--- a/src/Spring/Spring.Core/Expressions/ConstructorNode.cs
+++ b/src/Spring/Spring.Core/Expressions/ConstructorNode.cs
@@ -20,6 +20,7 @@
using System;
using System.Collections;
+using System.Collections.Generic;
using System.Reflection;
using System.Runtime.Serialization;
@@ -178,18 +179,18 @@ namespace Spring.Expressions
private static ConstructorInfo GetBestConstructor(Type type, object[] argValues)
{
- ConstructorInfo[] candidates = GetCandidateConstructors(type, argValues.Length);
- if (candidates.Length > 0)
+ IList candidates = GetCandidateConstructors(type, argValues.Length);
+ if (candidates.Count > 0)
{
return ReflectionUtils.GetConstructorByArgumentValues(candidates, argValues);
}
return null;
}
- private static ConstructorInfo[] GetCandidateConstructors(Type type, int argCount)
+ private static IList GetCandidateConstructors(Type type, int argCount)
{
ConstructorInfo[] ctors = type.GetConstructors(BindingFlags.Instance|BindingFlags.Public|BindingFlags.NonPublic);
- ArrayList matches = new ArrayList();
+ List matches = new List();
foreach (ConstructorInfo ctor in ctors)
{
@@ -208,7 +209,7 @@ namespace Spring.Expressions
}
}
- return (ConstructorInfo[]) matches.ToArray(typeof(ConstructorInfo));
+ return matches;
}
}
diff --git a/src/Spring/Spring.Core/Expressions/Expression.cs b/src/Spring/Spring.Core/Expressions/Expression.cs
index 4f42f3f6..da201685 100644
--- a/src/Spring/Spring.Core/Expressions/Expression.cs
+++ b/src/Spring/Spring.Core/Expressions/Expression.cs
@@ -20,6 +20,7 @@
using System;
using System.Collections;
+using System.Collections.Generic;
using System.IO;
using System.Reflection;
using System.Runtime.Serialization;
@@ -324,7 +325,7 @@ namespace Spring.Expressions
/// Context to evaluate expression against.
/// Expression variables map.
/// Value of the last node.
- internal PropertyInfo GetPropertyInfo( object context, IDictionary variables )
+ internal PropertyInfo GetPropertyInfo( object context, IDictionary variables )
{
if (this.getNumberOfChildren() > 0)
{
diff --git a/src/Spring/Spring.Core/Expressions/ExpressionEvaluator.cs b/src/Spring/Spring.Core/Expressions/ExpressionEvaluator.cs
index 97494cfa..c2e6cbaa 100644
--- a/src/Spring/Spring.Core/Expressions/ExpressionEvaluator.cs
+++ b/src/Spring/Spring.Core/Expressions/ExpressionEvaluator.cs
@@ -18,7 +18,7 @@
#endregion
-using System.Collections;
+using System.Collections.Generic;
namespace Spring.Expressions
{
@@ -34,7 +34,7 @@ namespace Spring.Expressions
/// Methods in this class parse expression on every invocation.
/// If you plan to reuse the same expression many times, you should prepare
/// the expression once using the static method,
- /// and then call to evaluate it.
+ /// and then call to evaluate it.
///
///
/// This can result in significant performance improvements as it avoids expression
@@ -65,7 +65,7 @@ namespace Spring.Expressions
/// Expression to evaluate.
/// Expression variables map.
/// Value of the last node in the expression.
- public static object GetValue(object root, string expression, IDictionary variables)
+ public static object GetValue(object root, string expression, IDictionary variables)
{
IExpression exp = Expression.Parse(expression);
return exp.GetValue(root, variables);
@@ -92,7 +92,7 @@ namespace Spring.Expressions
/// Expression to evaluate.
/// Expression variables map.
/// Value to set last node to.
- public static void SetValue(object root, string expression, IDictionary variables, object newValue)
+ public static void SetValue(object root, string expression, IDictionary variables, object newValue)
{
IExpression exp = Expression.Parse(expression);
exp.SetValue(root, variables, newValue);
diff --git a/src/Spring/Spring.Core/Expressions/IExpression.cs b/src/Spring/Spring.Core/Expressions/IExpression.cs
index 1d132fae..346baada 100644
--- a/src/Spring/Spring.Core/Expressions/IExpression.cs
+++ b/src/Spring/Spring.Core/Expressions/IExpression.cs
@@ -19,6 +19,7 @@
#endregion
using System.Collections;
+using System.Collections.Generic;
using System.ComponentModel;
namespace Spring.Expressions
@@ -49,7 +50,7 @@ namespace Spring.Expressions
/// Object to evaluate expression against.
/// Expression variables map.
/// Value of the expression.
- object GetValue(object context, IDictionary variables);
+ object GetValue(object context, IDictionary variables);
///
/// Sets expression value.
@@ -64,6 +65,6 @@ namespace Spring.Expressions
/// Object to evaluate expression against.
/// Expression variables map.
/// New value for the last node of the expression.
- void SetValue(object context, IDictionary variables, object newValue);
+ void SetValue(object context, IDictionary variables, object newValue);
}
}
\ No newline at end of file
diff --git a/src/Spring/Spring.Core/Expressions/IndexerNode.cs b/src/Spring/Spring.Core/Expressions/IndexerNode.cs
index 365ca141..66570388 100644
--- a/src/Spring/Spring.Core/Expressions/IndexerNode.cs
+++ b/src/Spring/Spring.Core/Expressions/IndexerNode.cs
@@ -20,6 +20,7 @@
using System;
using System.Collections;
+using System.Collections.Generic;
using System.Reflection;
using System.Runtime.Serialization;
using Spring.Core;
@@ -184,7 +185,7 @@ namespace Spring.Expressions
/// Context to resolve property against.
/// Expression variables map.
/// PropertyInfo for this node.
- internal PropertyInfo GetPropertyInfo(object context, IDictionary variables)
+ internal PropertyInfo GetPropertyInfo(object context, IDictionary variables)
{
lock (this)
{
diff --git a/src/Spring/Spring.Core/Expressions/MethodNode.cs b/src/Spring/Spring.Core/Expressions/MethodNode.cs
index 64f9a774..079b71d6 100644
--- a/src/Spring/Spring.Core/Expressions/MethodNode.cs
+++ b/src/Spring/Spring.Core/Expressions/MethodNode.cs
@@ -20,6 +20,7 @@
using System;
using System.Collections;
+using System.Collections.Generic;
using System.Reflection;
using System.Runtime.Serialization;
using Spring.Expressions.Processors;
@@ -110,7 +111,9 @@ namespace Spring.Expressions
// user-defined collection processor?
if (localCollectionProcessor == null && evalContext.Variables != null)
{
- localCollectionProcessor = evalContext.Variables[methodName] as ICollectionProcessor;
+ object temp;
+ evalContext.Variables.TryGetValue(methodName, out temp);
+ localCollectionProcessor = temp as ICollectionProcessor;
}
}
@@ -120,7 +123,9 @@ namespace Spring.Expressions
// user-defined extension method processor?
if (methodCallProcessor == null && evalContext.Variables != null)
{
- methodCallProcessor = evalContext.Variables[methodName] as IMethodCallProcessor;
+ object temp;
+ evalContext.Variables.TryGetValue(methodName, out temp);
+ methodCallProcessor = temp as IMethodCallProcessor;
}
}
@@ -229,8 +234,8 @@ namespace Spring.Expressions
catch (AmbiguousMatchException)
{
- MethodInfo[] overloads = GetCandidateMethods(type, methodName, bindingFlags, argValues.Length);
- if (overloads.Length > 0)
+ IList overloads = GetCandidateMethods(type, methodName, bindingFlags, argValues.Length);
+ if (overloads.Count > 0)
{
mi = ReflectionUtils.GetMethodByArgumentValues(overloads, argValues);
}
@@ -240,10 +245,10 @@ namespace Spring.Expressions
- private static MethodInfo[] GetCandidateMethods(Type type, string methodName, BindingFlags bindingFlags, int argCount)
+ private static IList GetCandidateMethods(Type type, string methodName, BindingFlags bindingFlags, int argCount)
{
MethodInfo[] methods = type.GetMethods(bindingFlags | BindingFlags.FlattenHierarchy);
- ArrayList matches = new ArrayList();
+ List matches = new List();
foreach (MethodInfo method in methods)
{
@@ -265,7 +270,7 @@ namespace Spring.Expressions
}
}
- return (MethodInfo[])matches.ToArray(typeof(MethodInfo));
+ return matches;
}
// used to calculate signature hash while caring for arg positions
diff --git a/src/Spring/Spring.Core/Expressions/NodeWithArguments.cs b/src/Spring/Spring.Core/Expressions/NodeWithArguments.cs
index c971e566..2ba27be7 100644
--- a/src/Spring/Spring.Core/Expressions/NodeWithArguments.cs
+++ b/src/Spring/Spring.Core/Expressions/NodeWithArguments.cs
@@ -20,6 +20,7 @@
using System;
using System.Collections;
+using System.Collections.Generic;
using System.Runtime.Serialization;
using Spring.Expressions.Parser.antlr.collections;
@@ -76,7 +77,7 @@ namespace Spring.Expressions
{
if (args == null)
{
- ArrayList argList = new ArrayList();
+ List argList = new List();
namedArgs = new Hashtable();
AST node = this.getFirstChild();
@@ -85,7 +86,7 @@ namespace Spring.Expressions
{
if (node.getFirstChild() is LambdaExpressionNode)
{
- argList.Add(node.getFirstChild());
+ argList.Add((BaseNode) node.getFirstChild());
}
else if (node is NamedArgumentNode)
{
@@ -93,12 +94,12 @@ namespace Spring.Expressions
}
else
{
- argList.Add(node);
+ argList.Add((BaseNode) node);
}
node = node.getNextSibling();
}
- args = (BaseNode[]) argList.ToArray(typeof (BaseNode));
+ args = argList.ToArray();
}
}
}
diff --git a/src/Spring/Spring.Core/Expressions/Processors/OrderByProcessor.cs b/src/Spring/Spring.Core/Expressions/Processors/OrderByProcessor.cs
index 97174c44..70eee788 100644
--- a/src/Spring/Spring.Core/Expressions/Processors/OrderByProcessor.cs
+++ b/src/Spring/Spring.Core/Expressions/Processors/OrderByProcessor.cs
@@ -20,6 +20,7 @@
using System;
using System.Collections;
+using System.Collections.Generic;
using Spring.Util;
namespace Spring.Expressions.Processors
@@ -57,7 +58,7 @@ namespace Spring.Expressions.Processors
private class LambdaComparer : IComparer
{
- private readonly Hashtable _variables;
+ private readonly Dictionary _variables;
private readonly IExpression _fn;
public LambdaComparer(LambdaExpressionNode lambdaExpression)
@@ -73,7 +74,7 @@ namespace Spring.Expressions.Processors
functionNode.addChild(y);
_fn = functionNode;
- _variables = new Hashtable();
+ _variables = new Dictionary();
_variables.Add( "compare", lambdaExpression );
}
diff --git a/src/Spring/Spring.Core/Globalization/AbstractLocalizer.cs b/src/Spring/Spring.Core/Globalization/AbstractLocalizer.cs
index 85a7d864..68e83dff 100644
--- a/src/Spring/Spring.Core/Globalization/AbstractLocalizer.cs
+++ b/src/Spring/Spring.Core/Globalization/AbstractLocalizer.cs
@@ -19,6 +19,7 @@
#endregion
using System.Collections;
+using System.Collections.Generic;
using System.Globalization;
using System.Threading;
@@ -72,7 +73,7 @@ namespace Spring.Globalization
AssertUtils.ArgumentNotNull(target, "target");
AssertUtils.ArgumentNotNull(culture, "culture");
- IList resources = GetResources(target, messageSource, culture);
+ IList resources = GetResources(target, messageSource, culture);
foreach (Resource resource in resources)
{
resource.Target.SetValue(target, null, resource.Value);
@@ -97,9 +98,9 @@ namespace Spring.Globalization
/// instance to retrieve resources from.
/// Resource locale.
/// A list of resources to apply.
- private IList GetResources(object target, IMessageSource messageSource, CultureInfo culture)
+ private IList GetResources(object target, IMessageSource messageSource, CultureInfo culture)
{
- IList resources = resourceCache.GetResources(target, culture);
+ IList resources = resourceCache.GetResources(target, culture);
if (resources == null)
{
@@ -117,7 +118,7 @@ namespace Spring.Globalization
/// instance to retrieve resources from.
/// Resource locale.
/// A list of resources to apply.
- protected abstract IList LoadResources(object target, IMessageSource messageSource, CultureInfo culture);
+ protected abstract IList LoadResources(object target, IMessageSource messageSource, CultureInfo culture);
}
}
\ No newline at end of file
diff --git a/src/Spring/Spring.Core/Globalization/AbstractResourceCache.cs b/src/Spring/Spring.Core/Globalization/AbstractResourceCache.cs
index 0f3aafe2..d448ee4c 100644
--- a/src/Spring/Spring.Core/Globalization/AbstractResourceCache.cs
+++ b/src/Spring/Spring.Core/Globalization/AbstractResourceCache.cs
@@ -19,6 +19,7 @@
#endregion
using System.Collections;
+using System.Collections.Generic;
using System.Globalization;
namespace Spring.Globalization
@@ -35,7 +36,7 @@ namespace Spring.Globalization
/// Target to get a list of resources for.
/// Resource culture.
/// A list of cached resources for the specified target object and culture.
- public IList GetResources(object target, CultureInfo culture)
+ public IList GetResources(object target, CultureInfo culture)
{
return GetResources(CreateCacheKey(target, culture));
}
@@ -47,7 +48,7 @@ namespace Spring.Globalization
/// Resource culture.
/// A list of resources to cache.
/// A list of cached resources for the specified target object and culture.
- public void PutResources(object target, CultureInfo culture, IList resources)
+ public void PutResources(object target, CultureInfo culture, IList resources)
{
PutResources(CreateCacheKey(target, culture), resources);
}
@@ -67,7 +68,7 @@ namespace Spring.Globalization
///
/// Cache key to use for lookup.
/// A list of cached resources for the specified target object and culture.
- protected abstract IList GetResources(string cacheKey);
+ protected abstract IList GetResources(string cacheKey);
///
/// Puts the list of resources in the cache.
@@ -75,7 +76,7 @@ namespace Spring.Globalization
/// Cache key to use for the specified resources.
/// A list of resources to cache.
/// A list of cached resources for the specified target object and culture.
- protected abstract void PutResources(string cacheKey, IList resources);
+ protected abstract void PutResources(string cacheKey, IList resources);
}
}
\ No newline at end of file
diff --git a/src/Spring/Spring.Core/Globalization/IResourceCache.cs b/src/Spring/Spring.Core/Globalization/IResourceCache.cs
index 7d431c1e..07bbe70a 100644
--- a/src/Spring/Spring.Core/Globalization/IResourceCache.cs
+++ b/src/Spring/Spring.Core/Globalization/IResourceCache.cs
@@ -19,6 +19,7 @@
#endregion
using System.Collections;
+using System.Collections.Generic;
using System.Globalization;
namespace Spring.Globalization
@@ -35,7 +36,7 @@ namespace Spring.Globalization
/// Target to get a list of resources for.
/// Resource culture.
/// A list of cached resources for the specified target object and culture.
- IList GetResources(object target, CultureInfo culture);
+ IList GetResources(object target, CultureInfo culture);
///
/// Puts the list of resources in the cache.
@@ -44,6 +45,6 @@ namespace Spring.Globalization
/// Resource culture.
/// A list of resources to cache.
/// A list of cached resources for the specified target object and culture.
- void PutResources(object target, CultureInfo culture, IList resources);
+ void PutResources(object target, CultureInfo culture, IList resources);
}
}
\ No newline at end of file
diff --git a/src/Spring/Spring.Core/Globalization/Localizers/ResourceSetLocalizer.cs b/src/Spring/Spring.Core/Globalization/Localizers/ResourceSetLocalizer.cs
index b67a5186..66385249 100644
--- a/src/Spring/Spring.Core/Globalization/Localizers/ResourceSetLocalizer.cs
+++ b/src/Spring/Spring.Core/Globalization/Localizers/ResourceSetLocalizer.cs
@@ -20,6 +20,7 @@
using System;
using System.Collections;
+using System.Collections.Generic;
using System.Globalization;
using System.Resources;
using Common.Logging;
@@ -60,10 +61,9 @@ namespace Spring.Globalization.Localizers
/// instance to retrieve resources from.
/// Resource locale.
/// A list of resources to apply.
- protected override IList LoadResources(object target, IMessageSource messageSource, CultureInfo culture)
+ protected override IList LoadResources(object target, IMessageSource messageSource, CultureInfo culture)
{
- IList resources;
- resources = new ArrayList();
+ IList resources = new List();
if (messageSource is ResourceSetMessageSource)
{
diff --git a/src/Spring/Spring.Core/Globalization/NullResourceCache.cs b/src/Spring/Spring.Core/Globalization/NullResourceCache.cs
index 3c1b23bf..505646c8 100644
--- a/src/Spring/Spring.Core/Globalization/NullResourceCache.cs
+++ b/src/Spring/Spring.Core/Globalization/NullResourceCache.cs
@@ -19,6 +19,7 @@
#endregion
using System.Collections;
+using System.Collections.Generic;
namespace Spring.Globalization
{
@@ -33,7 +34,7 @@ namespace Spring.Globalization
///
/// Cache key to use for lookup.
/// Always returns null.
- protected override IList GetResources(string cacheKey)
+ protected override IList GetResources(string cacheKey)
{
return null;
}
@@ -43,7 +44,7 @@ namespace Spring.Globalization
///
/// Cache key to use for the specified resources.
/// A list of resources to cache.
- protected override void PutResources(string cacheKey, IList resources)
+ protected override void PutResources(string cacheKey, IList resources)
{}
}
}
\ No newline at end of file
diff --git a/src/Spring/Spring.Core/Objects/Events/Support/EventRegistry.cs b/src/Spring/Spring.Core/Objects/Events/Support/EventRegistry.cs
index a3087afb..ff410cc1 100644
--- a/src/Spring/Spring.Core/Objects/Events/Support/EventRegistry.cs
+++ b/src/Spring/Spring.Core/Objects/Events/Support/EventRegistry.cs
@@ -22,6 +22,7 @@
using System;
using System.Collections;
+using System.Collections.Generic;
using System.Reflection;
#endregion
@@ -35,21 +36,21 @@ namespace Spring.Objects.Events.Support
/// Griffin Caprio
public class EventRegistry : IEventRegistry
{
- private readonly IList _publishers;
+ private readonly IList _publishers;
///
/// Creates a new instance of the EventRegistry class.
///
public EventRegistry()
{
- _publishers = new ArrayList();
+ _publishers = new List();
}
///
/// The list of event publishers.
///
/// The list of event publishers.
- protected IList Publishers
+ protected IList Publishers
{
get { return _publishers; }
}
diff --git a/src/Spring/Spring.Core/Objects/Factory/Attributes/RequiredAttributeObjectPostProcessor.cs b/src/Spring/Spring.Core/Objects/Factory/Attributes/RequiredAttributeObjectPostProcessor.cs
index caf4f148..2f822123 100644
--- a/src/Spring/Spring.Core/Objects/Factory/Attributes/RequiredAttributeObjectPostProcessor.cs
+++ b/src/Spring/Spring.Core/Objects/Factory/Attributes/RequiredAttributeObjectPostProcessor.cs
@@ -20,13 +20,11 @@
using System;
-using System.Collections;
+using System.Collections.Generic;
using System.Reflection;
using System.Text;
+
using Spring.Collections;
-using Spring.Objects;
-using Spring.Objects.Factory;
-using Spring.Objects.Factory.Attributes;
using Spring.Objects.Factory.Config;
using Spring.Util;
@@ -109,12 +107,11 @@ namespace Spring.Objects.Factory.Attributes
///
/// If a required property value has not been specified
/// in the configuration metadata.
- public override IPropertyValues PostProcessPropertyValues(IPropertyValues pvs, PropertyInfo[] pis, object objectInstance,
- string objectName)
+ public override IPropertyValues PostProcessPropertyValues(IPropertyValues pvs, IList pis, object objectInstance, string objectName)
{
if (!validatedObjectNames.Contains(objectName))
{
- ArrayList invalidProperties = new ArrayList();
+ List invalidProperties = new List();
foreach (PropertyInfo pi in pis)
{
@@ -126,7 +123,7 @@ namespace Spring.Objects.Factory.Attributes
if (invalidProperties.Count != 0)
{
throw new ObjectInitializationException(
- BuildExceptionMessage((string[]) invalidProperties.ToArray(typeof (string)), objectName));
+ BuildExceptionMessage(invalidProperties, objectName));
}
validatedObjectNames.Add(objectName);
}
@@ -156,9 +153,9 @@ namespace Spring.Objects.Factory.Attributes
/// The list of names of invalid properties.
/// Name of the object.
/// The exception message
- private string BuildExceptionMessage(string[] invalidProperties, ICloneable objectName)
+ private string BuildExceptionMessage(IList invalidProperties, ICloneable objectName)
{
- int size = invalidProperties.Length;
+ int size = invalidProperties.Count;
StringBuilder sb = new StringBuilder();
sb.Append(size == 1 ? "Property" : "Properties");
for (int i=0; i < size; i++)
diff --git a/src/Spring/Spring.Core/Objects/Factory/Config/CommandLineArgsVariableSource.cs b/src/Spring/Spring.Core/Objects/Factory/Config/CommandLineArgsVariableSource.cs
index 39df90a0..8065aa6c 100644
--- a/src/Spring/Spring.Core/Objects/Factory/Config/CommandLineArgsVariableSource.cs
+++ b/src/Spring/Spring.Core/Objects/Factory/Config/CommandLineArgsVariableSource.cs
@@ -19,8 +19,7 @@
#endregion
using System;
-using System.Collections;
-using System.Collections.Specialized;
+using System.Collections.Generic;
namespace Spring.Objects.Factory.Config
{
@@ -39,7 +38,7 @@ namespace Spring.Objects.Factory.Config
private string valueSeparator = DEFAULT_VALUE_SEPARATOR;
private string[] commandLineArgs;
- protected IDictionary arguments;
+ protected IDictionary arguments;
private object objectMonitor = new object();
@@ -103,7 +102,7 @@ namespace Spring.Objects.Factory.Config
{
InitArguments();
}
- return arguments.Contains(name);
+ return arguments.ContainsKey(name);
}
}
@@ -124,7 +123,9 @@ namespace Spring.Objects.Factory.Config
{
InitArguments();
}
- return (string) this.arguments[name];
+ string retValue;
+ arguments.TryGetValue(name, out retValue);
+ return retValue;
}
}
@@ -133,7 +134,7 @@ namespace Spring.Objects.Factory.Config
///
protected virtual void InitArguments()
{
- this.arguments = CollectionsUtil.CreateCaseInsensitiveHashtable(commandLineArgs.Length);
+ this.arguments = new Dictionary(StringComparer.OrdinalIgnoreCase);
foreach (string arg in commandLineArgs)
{
diff --git a/src/Spring/Spring.Core/Objects/Factory/Config/ConnectionStringsVariableSource.cs b/src/Spring/Spring.Core/Objects/Factory/Config/ConnectionStringsVariableSource.cs
index e8b6f20f..73deefd7 100644
--- a/src/Spring/Spring.Core/Objects/Factory/Config/ConnectionStringsVariableSource.cs
+++ b/src/Spring/Spring.Core/Objects/Factory/Config/ConnectionStringsVariableSource.cs
@@ -19,9 +19,9 @@
#endregion
using System;
-using System.Collections;
-using System.Collections.Specialized;
+using System.Collections.Generic;
using System.Configuration;
+
using Spring.Util;
namespace Spring.Objects.Factory.Config
@@ -53,7 +53,7 @@ namespace Spring.Objects.Factory.Config
[Serializable]
public class ConnectionStringsVariableSource : IVariableSource
{
- private Hashtable variables;
+ private Dictionary variables;
///
@@ -68,7 +68,7 @@ namespace Spring.Objects.Factory.Config
{
InitVariables();
}
- return variables.Contains(name);
+ return variables.ContainsKey(name);
}
///
@@ -86,7 +86,9 @@ namespace Spring.Objects.Factory.Config
{
InitVariables();
}
- return (string) variables[name];
+ string retValue;
+ variables.TryGetValue(name, out retValue);
+ return retValue;
}
///
@@ -95,7 +97,7 @@ namespace Spring.Objects.Factory.Config
///
private void InitVariables()
{
- variables = CollectionsUtil.CreateCaseInsensitiveHashtable();
+ variables = new Dictionary(StringComparer.OrdinalIgnoreCase);
ConnectionStringSettingsCollection settings = ConfigurationManager.ConnectionStrings;
foreach (ConnectionStringSettings setting in settings)
{
diff --git a/src/Spring/Spring.Core/Objects/Factory/Config/ConstructorArgumentValues.cs b/src/Spring/Spring.Core/Objects/Factory/Config/ConstructorArgumentValues.cs
index 6135da89..64f89f17 100644
--- a/src/Spring/Spring.Core/Objects/Factory/Config/ConstructorArgumentValues.cs
+++ b/src/Spring/Spring.Core/Objects/Factory/Config/ConstructorArgumentValues.cs
@@ -22,6 +22,7 @@
using System;
using System.Collections;
+using System.Collections.Generic;
using System.Globalization;
using Spring.Collections;
using Spring.Util;
@@ -83,9 +84,9 @@ namespace Spring.Objects.Factory.Config
#region Fields
private CultureInfo enUSCultureInfo = new CultureInfo("en-US", false);
- private IDictionary _indexedArgumentValues = new Hashtable();
- private IList _genericArgumentValues = new LinkedList();
- private IDictionary _namedArgumentValues = new Hashtable();
+ private IDictionary _indexedArgumentValues = new Dictionary();
+ private List _genericArgumentValues = new List();
+ private IDictionary _namedArgumentValues = new Dictionary();
#endregion
@@ -100,7 +101,7 @@ namespace Spring.Objects.Factory.Config
/// s
/// as values.
///
- public virtual IDictionary IndexedArgumentValues
+ public virtual IDictionary IndexedArgumentValues
{
get { return _indexedArgumentValues; }
}
@@ -114,7 +115,7 @@ namespace Spring.Objects.Factory.Config
/// s
/// as values.
///
- public virtual IDictionary NamedArgumentValues
+ public virtual IDictionary NamedArgumentValues
{
get { return _namedArgumentValues; }
}
@@ -126,7 +127,7 @@ namespace Spring.Objects.Factory.Config
/// A of
/// s.
///
- public virtual IList GenericArgumentValues
+ public virtual IList GenericArgumentValues
{
get { return _genericArgumentValues; }
@@ -175,19 +176,19 @@ namespace Spring.Objects.Factory.Config
{
if (other != null)
{
- foreach (object o in other.GenericArgumentValues)
+ foreach (ValueHolder o in other.GenericArgumentValues)
{
GenericArgumentValues.Add(o);
}
- foreach (DictionaryEntry entry in other.IndexedArgumentValues)
+ foreach (KeyValuePair entry in other.IndexedArgumentValues)
{
- ValueHolder vh = entry.Value as ValueHolder;
+ ValueHolder vh = entry.Value;
if (vh != null)
{
- AddOrMergeIndexedArgumentValues( (int) entry.Key, vh.Copy());
+ AddOrMergeIndexedArgumentValues( entry.Key, vh.Copy());
}
}
- foreach (DictionaryEntry entry in other.NamedArgumentValues)
+ foreach (KeyValuePair entry in other.NamedArgumentValues)
{
AddOrMergeNamedArgumentValues(entry.Key, entry.Value);
//NamedArgumentValues.Add(entry.Key, entry.Value);
@@ -195,9 +196,9 @@ namespace Spring.Objects.Factory.Config
}
}
- private void AddOrMergeNamedArgumentValues(object key, object newValue)
+ private void AddOrMergeNamedArgumentValues(string key, object newValue)
{
- if (_namedArgumentValues.Contains(key) )
+ if (_namedArgumentValues.ContainsKey(key) )
{
_namedArgumentValues[key] = newValue;
} else
@@ -208,9 +209,9 @@ namespace Spring.Objects.Factory.Config
private void AddOrMergeIndexedArgumentValues(int key, ValueHolder newValue)
{
- ValueHolder currentValue = _indexedArgumentValues[key] as ValueHolder;
+ ValueHolder currentValue;
IMergable mergable = newValue.Value as IMergable;
- if (currentValue != null && mergable != null )
+ if (_indexedArgumentValues.TryGetValue(key, out currentValue) && mergable != null )
{
if (mergable.MergeEnabled)
{
@@ -277,8 +278,8 @@ namespace Spring.Objects.Factory.Config
///
public virtual ValueHolder GetIndexedArgumentValue(int index, Type requiredType)
{
- ValueHolder valueHolder = (ValueHolder) IndexedArgumentValues[index];
- if (valueHolder != null)
+ ValueHolder valueHolder;
+ if (IndexedArgumentValues.TryGetValue(index, out valueHolder))
{
if (valueHolder.Type == null
|| requiredType.FullName.Equals(valueHolder.Type)
@@ -326,7 +327,7 @@ namespace Spring.Objects.Factory.Config
///
public bool ContainsNamedArgument(string argument)
{
- return NamedArgumentValues.Contains(GetCanonicalNamedArgument(argument));
+ return NamedArgumentValues.ContainsKey(GetCanonicalNamedArgument(argument));
}
///
diff --git a/src/Spring/Spring.Core/Objects/Factory/Config/DictionaryVariableSource.cs b/src/Spring/Spring.Core/Objects/Factory/Config/DictionaryVariableSource.cs
index 20840002..bdda3904 100644
--- a/src/Spring/Spring.Core/Objects/Factory/Config/DictionaryVariableSource.cs
+++ b/src/Spring/Spring.Core/Objects/Factory/Config/DictionaryVariableSource.cs
@@ -20,7 +20,7 @@
using System;
using System.Collections;
-using System.Collections.Specialized;
+using System.Collections.Generic;
namespace Spring.Objects.Factory.Config
{
@@ -28,9 +28,9 @@ namespace Spring.Objects.Factory.Config
/// A very simple, hashtable-based implementation of
///
/// Erich Eichinger
- public class DictionaryVariableSource : IVariableSource, IEnumerable
+ public class DictionaryVariableSource : IVariableSource, IEnumerable>
{
- private readonly Hashtable variables;
+ private readonly Dictionary variables;
///
/// Creates a new, empty variable source
@@ -95,11 +95,11 @@ namespace Spring.Objects.Factory.Config
{
if (ignoreCase)
{
- variables = CollectionsUtil.CreateCaseInsensitiveHashtable();
+ variables = new Dictionary(StringComparer.OrdinalIgnoreCase);
}
else
{
- variables = new Hashtable();
+ variables = new Dictionary();
}
if (dictionary != null)
@@ -140,16 +140,22 @@ namespace Spring.Objects.Factory.Config
///
public string ResolveVariable(string name)
{
- if (!variables.ContainsKey(name))
+ string value;
+ if (!variables.TryGetValue(name, out value))
{
throw new ArgumentException(string.Format("variable '{0}' cannot be resolved", name));
}
- return (string)variables[name];
+ return value;
+ }
+
+ IEnumerator> IEnumerable>.GetEnumerator()
+ {
+ return variables.GetEnumerator();
}
public IEnumerator GetEnumerator()
{
- return (variables as IEnumerable).GetEnumerator() ;
+ return variables.GetEnumerator();
}
}
}
\ No newline at end of file
diff --git a/src/Spring/Spring.Core/Objects/Factory/Config/EventValues.cs b/src/Spring/Spring.Core/Objects/Factory/Config/EventValues.cs
index 4c733e65..7d7107b1 100644
--- a/src/Spring/Spring.Core/Objects/Factory/Config/EventValues.cs
+++ b/src/Spring/Spring.Core/Objects/Factory/Config/EventValues.cs
@@ -22,6 +22,7 @@
using System;
using System.Collections;
+using System.Collections.Generic;
#endregion
@@ -38,8 +39,7 @@ namespace Spring.Objects.Factory.Config
///
/// The empty array of s.
///
- private static readonly IEventHandlerValue [] EmptyHandlers
- = new IEventHandlerValue [] {};
+ private static readonly IEventHandlerValue [] EmptyHandlers = new IEventHandlerValue [] {};
#endregion
#region Constructor (s) / Destructor
@@ -69,7 +69,7 @@ namespace Spring.Objects.Factory.Config
/// of
/// s.
///
- protected IDictionary EventHandlers
+ protected IDictionary> EventHandlers
{
get
{
@@ -81,7 +81,7 @@ namespace Spring.Objects.Factory.Config
/// Gets the of events
/// that have handlers associated with them.
///
- public ICollection Events
+ public ICollection Events
{
get
{
@@ -94,13 +94,16 @@ namespace Spring.Objects.Factory.Config
/// s for the supplied
/// event name.
///
- public ICollection this [string eventName]
+ public ICollection this [string eventName]
{
- get
+ get
{
- return EventHandlers.Contains (eventName) ?
- EventHandlers [eventName] as ICollection :
- EventValues.EmptyHandlers;
+ IList handlers;
+ if (!EventHandlers.TryGetValue(eventName, out handlers))
+ {
+ handlers = EventValues.EmptyHandlers;
+ }
+ return handlers;
}
}
#endregion
@@ -131,12 +134,13 @@ namespace Spring.Objects.Factory.Config
/// Adds the supplied handler to the collection of event handlers.
///
/// The handler to be added.
- public void AddHandler (IEventHandlerValue handler)
+ public void AddHandler (IEventHandlerValue handler)
{
- IList handlers = EventHandlers [handler.EventName] as IList;
- if (handlers == null)
+ IList handlers;
+
+ if (!EventHandlers.TryGetValue(handler.EventName, out handlers))
{
- handlers = new ArrayList ();
+ handlers = new List();
EventHandlers [handler.EventName] = handlers;
}
handlers.Add (handler);
@@ -144,7 +148,7 @@ namespace Spring.Objects.Factory.Config
#endregion
#region Fields
- private IDictionary _eventHandlers = new Hashtable();
+ private IDictionary> _eventHandlers = new Dictionary>();
#endregion
}
}
diff --git a/src/Spring/Spring.Core/Objects/Factory/Config/IInstantiationAwareObjectPostProcessor.cs b/src/Spring/Spring.Core/Objects/Factory/Config/IInstantiationAwareObjectPostProcessor.cs
index b9d5673c..f7a44bab 100644
--- a/src/Spring/Spring.Core/Objects/Factory/Config/IInstantiationAwareObjectPostProcessor.cs
+++ b/src/Spring/Spring.Core/Objects/Factory/Config/IInstantiationAwareObjectPostProcessor.cs
@@ -19,6 +19,7 @@
#endregion
using System;
+using System.Collections.Generic;
using System.Reflection;
namespace Spring.Objects.Factory.Config {
@@ -105,26 +106,25 @@ namespace Spring.Objects.Factory.Config {
/// invoked on this object instance.
bool PostProcessAfterInstantiation(object objectInstance, string objectName);
- ///
- /// Post-process the given property values before the factory applies them
- /// to the given object.
- ///
- /// Allows for checking whether all dependencies have been
- /// satisfied, for example based on a "Required" annotation on bean property setters.
- /// Also allows for replacing the property values to apply, typically through
- /// creating a new MutablePropertyValues instance based on the original PropertyValues,
- /// adding or removing specific values.
- ///
- ///
- /// The property values that the factory is about to apply (never null).
- /// he relevant property infos for the target object (with ignored
- /// dependency types - which the factory handles specifically - already filtered out)
- /// The object instance created, but whose properties have not yet
- /// been set.
- /// Name of the object.
- /// The actual property values to apply to the given object (can be the
- /// passed-in PropertyValues instances0 or null to skip property population.
- IPropertyValues PostProcessPropertyValues(IPropertyValues pvs, PropertyInfo[] pis, object objectInstance,
- string objectName);
+ ///
+ /// Post-process the given property values before the factory applies them
+ /// to the given object.
+ ///
+ /// Allows for checking whether all dependencies have been
+ /// satisfied, for example based on a "Required" annotation on bean property setters.
+ /// Also allows for replacing the property values to apply, typically through
+ /// creating a new MutablePropertyValues instance based on the original PropertyValues,
+ /// adding or removing specific values.
+ ///
+ ///
+ /// The property values that the factory is about to apply (never null).
+ /// he relevant property infos for the target object (with ignored
+ /// dependency types - which the factory handles specifically - already filtered out)
+ /// The object instance created, but whose properties have not yet
+ /// been set.
+ /// Name of the object.
+ /// The actual property values to apply to the given object (can be the
+ /// passed-in PropertyValues instances0 or null to skip property population.
+ IPropertyValues PostProcessPropertyValues(IPropertyValues pvs, IList pis, object objectInstance, string objectName);
}
}
diff --git a/src/Spring/Spring.Core/Objects/Factory/Config/IObjectDefinition.cs b/src/Spring/Spring.Core/Objects/Factory/Config/IObjectDefinition.cs
index f61d8f1f..81f19b3d 100644
--- a/src/Spring/Spring.Core/Objects/Factory/Config/IObjectDefinition.cs
+++ b/src/Spring/Spring.Core/Objects/Factory/Config/IObjectDefinition.cs
@@ -21,6 +21,7 @@
#region Imports
using System;
+using System.Collections.Generic;
#endregion
@@ -178,7 +179,7 @@ namespace Spring.Objects.Factory.Config
/// preparation on startup.
///
///
- string[] DependsOn { get; }
+ IList DependsOn { get; }
///
/// The name of the initializer method.
diff --git a/src/Spring/Spring.Core/Objects/Factory/Config/ISingletonObjectRegistry.cs b/src/Spring/Spring.Core/Objects/Factory/Config/ISingletonObjectRegistry.cs
index b2f0a4c7..e1019486 100644
--- a/src/Spring/Spring.Core/Objects/Factory/Config/ISingletonObjectRegistry.cs
+++ b/src/Spring/Spring.Core/Objects/Factory/Config/ISingletonObjectRegistry.cs
@@ -18,6 +18,8 @@
#endregion
+using System.Collections.Generic;
+
namespace Spring.Objects.Factory.Config
{
///
@@ -138,7 +140,7 @@ namespace Spring.Objects.Factory.Config
///
///
///
- string[] SingletonNames
+ IList SingletonNames
{
get;
}
diff --git a/src/Spring/Spring.Core/Objects/Factory/Config/InstantiationAwareObjectPostProcessorAdapter.cs b/src/Spring/Spring.Core/Objects/Factory/Config/InstantiationAwareObjectPostProcessorAdapter.cs
index d96f4557..2d357fad 100644
--- a/src/Spring/Spring.Core/Objects/Factory/Config/InstantiationAwareObjectPostProcessorAdapter.cs
+++ b/src/Spring/Spring.Core/Objects/Factory/Config/InstantiationAwareObjectPostProcessorAdapter.cs
@@ -19,6 +19,7 @@
#endregion
using System;
+using System.Collections.Generic;
using System.Reflection;
namespace Spring.Objects.Factory.Config
@@ -153,8 +154,7 @@ namespace Spring.Objects.Factory.Config
/// Name of the object.
/// The actual property values to apply to the given object (can be the
/// passed-in PropertyValues instances0 or null to skip property population.
- public virtual IPropertyValues PostProcessPropertyValues(IPropertyValues pvs, PropertyInfo[] pis, object objectInstance,
- string objectName)
+ public virtual IPropertyValues PostProcessPropertyValues(IPropertyValues pvs, IList pis, object objectInstance, string objectName)
{
return pvs;
}
diff --git a/src/Spring/Spring.Core/Objects/Factory/Config/ObjectDefinitionHolder.cs b/src/Spring/Spring.Core/Objects/Factory/Config/ObjectDefinitionHolder.cs
index 082842b5..4fa884b9 100644
--- a/src/Spring/Spring.Core/Objects/Factory/Config/ObjectDefinitionHolder.cs
+++ b/src/Spring/Spring.Core/Objects/Factory/Config/ObjectDefinitionHolder.cs
@@ -21,7 +21,8 @@
#region Imports
using System;
-using Spring.Objects.Factory.Config;
+using System.Collections.Generic;
+
using Spring.Objects.Factory.Xml;
using Spring.Util;
@@ -56,7 +57,7 @@ namespace Spring.Objects.Factory.Config
{
private IObjectDefinition objectDefinition;
private string objectName;
- private string[] aliases;
+ private IList aliases;
#region Constructor () / Destructor
@@ -87,11 +88,11 @@ namespace Spring.Objects.Factory.Config
/// Any aliases for the supplied
///
public ObjectDefinitionHolder(
- IObjectDefinition definition, string name, string[] aliases)
+ IObjectDefinition definition, string name, IList aliases)
{
this.objectDefinition = definition;
this.objectName = name;
- this.aliases = aliases == null ? StringUtils.EmptyStrings : aliases;
+ this.aliases = aliases ?? new List(0);
}
#endregion
@@ -126,7 +127,7 @@ namespace Spring.Objects.Factory.Config
/// array will be returned.
///
///
- public string[] Aliases
+ public IList Aliases
{
get { return aliases; }
}
diff --git a/src/Spring/Spring.Core/Objects/Factory/Config/ObjectDefinitionVisitor.cs b/src/Spring/Spring.Core/Objects/Factory/Config/ObjectDefinitionVisitor.cs
index d6ec6f27..31f23ce4 100644
--- a/src/Spring/Spring.Core/Objects/Factory/Config/ObjectDefinitionVisitor.cs
+++ b/src/Spring/Spring.Core/Objects/Factory/Config/ObjectDefinitionVisitor.cs
@@ -21,7 +21,8 @@
#region Imports
using System;
-using System.Collections;
+using System.Collections;
+using System.Collections.Generic;
using System.Collections.Specialized;
using Spring.Collections;
@@ -114,7 +115,7 @@ namespace Spring.Objects.Factory.Config
MutablePropertyValues pvs = objectDefinition.PropertyValues;
if (pvs != null)
{
- for (int j = 0; j < pvs.PropertyValues.Length; j++)
+ for (int j = 0; j < pvs.PropertyValues.Count; j++)
{
PropertyValue pv = pvs.PropertyValues[j];
object newVal = ResolveValue(pv.Value);
@@ -124,40 +125,40 @@ namespace Spring.Objects.Factory.Config
}
}
}
- }
-
- ///
- /// Visits the indexed constructor argument values, replacing string values using the
- /// specified IVariableSource.
- ///
- /// The indexed argument values.
- protected virtual void VisitIndexedArgumentValues(IDictionary ias)
+ }
+
+ ///
+ /// Visits the indexed constructor argument values, replacing string values using the
+ /// specified IVariableSource.
+ ///
+ /// The indexed argument values.
+ protected virtual void VisitIndexedArgumentValues(IDictionary ias)
{
foreach (ConstructorArgumentValues.ValueHolder valueHolder in ias.Values)
{
ConfigureConstructorArgument(valueHolder);
}
- }
-
- ///
- /// Visits the named constructor argument values, replacing string values using the
- /// specified IVariableSource.
- ///
- /// The named argument values.
- protected virtual void VisitNamedArgumentValues(IDictionary nav)
+ }
+
+ ///
+ /// Visits the named constructor argument values, replacing string values using the
+ /// specified IVariableSource.
+ ///
+ /// The named argument values.
+ protected virtual void VisitNamedArgumentValues(IDictionary nav)
{
foreach (ConstructorArgumentValues.ValueHolder valueHolder in nav.Values)
{
ConfigureConstructorArgument(valueHolder);
}
- }
-
- ///
- /// Visits the generic constructor argument values, replacing string values using
- /// the specified IVariableSource.
- ///
- /// The genreic argument values.
- protected virtual void VisitGenericArgumentValues(IList gav)
+ }
+
+ ///
+ /// Visits the generic constructor argument values, replacing string values using
+ /// the specified IVariableSource.
+ ///
+ /// The genreic argument values.
+ protected virtual void VisitGenericArgumentValues(ICollection gav)
{
foreach (ConstructorArgumentValues.ValueHolder valueHolder in gav)
{
diff --git a/src/Spring/Spring.Core/Objects/Factory/Config/PropertyPlaceholderConfigurer.cs b/src/Spring/Spring.Core/Objects/Factory/Config/PropertyPlaceholderConfigurer.cs
index 88ea1636..017d5f40 100644
--- a/src/Spring/Spring.Core/Objects/Factory/Config/PropertyPlaceholderConfigurer.cs
+++ b/src/Spring/Spring.Core/Objects/Factory/Config/PropertyPlaceholderConfigurer.cs
@@ -21,10 +21,12 @@
#region Imports
using System;
-using System.Collections;
+using System.Collections.Generic;
using System.Collections.Specialized;
using System.Globalization;
+
using Common.Logging;
+
using Spring.Collections;
#endregion
@@ -228,10 +230,10 @@ namespace Spring.Objects.Factory.Config
protected override void ProcessProperties(IConfigurableListableObjectFactory factory, NameValueCollection props)
{
PlaceholderResolveHandlerAdapter resolveAdapter = new PlaceholderResolveHandlerAdapter(this, props);
- ObjectDefinitionVisitor visitor = new ObjectDefinitionVisitor(new ObjectDefinitionVisitor.ResolveHandler(resolveAdapter.ParseAndResolveVariables));
+ ObjectDefinitionVisitor visitor = new ObjectDefinitionVisitor(resolveAdapter.ParseAndResolveVariables);
- string[] objectDefinitionNames = factory.GetObjectDefinitionNames();
- for (int i = 0; i < objectDefinitionNames.Length; ++i)
+ IList objectDefinitionNames = factory.GetObjectDefinitionNames();
+ for (int i = 0; i < objectDefinitionNames.Count; ++i)
{
string name = objectDefinitionNames[i];
IObjectDefinition definition = factory.GetObjectDefinition(name);
diff --git a/src/Spring/Spring.Core/Objects/Factory/Config/VariablePlaceholderConfigurer.cs b/src/Spring/Spring.Core/Objects/Factory/Config/VariablePlaceholderConfigurer.cs
index b38ff170..bbb18561 100644
--- a/src/Spring/Spring.Core/Objects/Factory/Config/VariablePlaceholderConfigurer.cs
+++ b/src/Spring/Spring.Core/Objects/Factory/Config/VariablePlaceholderConfigurer.cs
@@ -20,6 +20,7 @@
using System;
using System.Collections;
+using System.Collections.Generic;
using System.Globalization;
using Common.Logging;
using Spring.Collections;
@@ -245,8 +246,8 @@ namespace Spring.Objects.Factory.Config
TextProcessor tp = new TextProcessor(this, compositeVariableSource);
ObjectDefinitionVisitor visitor = new ObjectDefinitionVisitor(new ObjectDefinitionVisitor.ResolveHandler(tp.ParseAndResolveVariables));
- string[] objectDefinitionNames = factory.GetObjectDefinitionNames();
- for (int i = 0; i < objectDefinitionNames.Length; ++i)
+ IList objectDefinitionNames = factory.GetObjectDefinitionNames();
+ for (int i = 0; i < objectDefinitionNames.Count; ++i)
{
string name = objectDefinitionNames[i];
IObjectDefinition definition = factory.GetObjectDefinition( name );
diff --git a/src/Spring/Spring.Core/Objects/Factory/IListableObjectFactory.cs b/src/Spring/Spring.Core/Objects/Factory/IListableObjectFactory.cs
index 2911d715..c071a342 100644
--- a/src/Spring/Spring.Core/Objects/Factory/IListableObjectFactory.cs
+++ b/src/Spring/Spring.Core/Objects/Factory/IListableObjectFactory.cs
@@ -22,6 +22,7 @@
using System;
using System.Collections;
+using System.Collections.Generic;
#endregion
@@ -85,141 +86,141 @@ namespace Spring.Objects.Factory
///
int ObjectDefinitionCount { get; }
-
- ///
- /// Return the names of all objects defined in this factory.
- ///
- ///
- /// The names of all objects defined in this factory, or an empty array if none
- /// are defined.
- ///
- string[] GetObjectDefinitionNames();
- ///
- /// Return the names of objects matching the given
- /// (including subclasses), judging from the object definitions.
- ///
- ///
- ///
- /// Does consider objects created by s,
- /// or rather it considers the type of objects created by
- /// (which means that
- /// s will be instantiated).
- ///
- ///
- /// Does not consider any hierarchy this factory may participate in.
- ///
- ///
- ///
- /// The (class or interface) to match, or
- /// for all object names.
- ///
- ///
- /// The names of all objects defined in this factory, or an empty array if none
- /// are defined.
- ///
- string[] GetObjectNamesForType(Type type);
+ ///
+ /// Return the names of all objects defined in this factory.
+ ///
+ ///
+ /// The names of all objects defined in this factory, or an empty array if none
+ /// are defined.
+ ///
+ IList GetObjectDefinitionNames();
+
+ ///
+ /// Return the names of objects matching the given
+ /// (including subclasses), judging from the object definitions.
+ ///
+ ///
+ ///
+ /// Does consider objects created by s,
+ /// or rather it considers the type of objects created by
+ /// (which means that
+ /// s will be instantiated).
+ ///
+ ///
+ /// Does not consider any hierarchy this factory may participate in.
+ ///
+ ///
+ ///
+ /// The (class or interface) to match, or
+ /// for all object names.
+ ///
+ ///
+ /// The names of all objects defined in this factory, or an empty array if none
+ /// are defined.
+ ///
+ IList GetObjectNamesForType(Type type);
- ///
- /// Return the names of objects matching the given
- /// (including subclasses), judging from the object definitions.
- ///
- ///
- ///
- /// Does consider objects created by s,
- /// or rather it considers the type of objects created by
- /// (which means that
- /// s will be instantiated).
- ///
- ///
- /// Does not consider any hierarchy this factory may participate in.
- ///
- ///
- ///
- /// The (class or interface) to match, or
- /// for all object names.
- ///
- ///
- /// The names of all objects defined in this factory, or an empty array if none
- /// are defined.
- ///
- string[] GetObjectNamesForType();
+ ///
+ /// Return the names of objects matching the given
+ /// (including subclasses), judging from the object definitions.
+ ///
+ ///
+ ///
+ /// Does consider objects created by s,
+ /// or rather it considers the type of objects created by
+ /// (which means that
+ /// s will be instantiated).
+ ///
+ ///
+ /// Does not consider any hierarchy this factory may participate in.
+ ///
+ ///
+ ///
+ /// The (class or interface) to match, or
+ /// for all object names.
+ ///
+ ///
+ /// The names of all objects defined in this factory, or an empty array if none
+ /// are defined.
+ ///
+ IList GetObjectNames();
- ///
- /// Return the names of objects matching the given
- /// (including subclasses), judging from the object definitions.
- ///
- ///
- ///
- /// Does consider objects created by s,
- /// or rather it considers the type of objects created by
- /// (which means that
- /// s will be instantiated).
- ///
- ///
- /// Does not consider any hierarchy this factory may participate in.
- /// Use
- /// to include beans in ancestor factories too.
- /// <p>Note: Does <i>not</i> ignore singleton objects that have been registered
- /// by other means than bean definitions.
- ///
- ///
- ///
- /// The (class or interface) to match, or
- /// for all object names.
- ///
- ///
- /// Whether to include prototype objects too or just singletons (also applies to
- /// s).
- ///
- ///
- /// Whether to include s too
- /// or just normal objects.
- ///
- ///
- /// The names of all objects defined in this factory, or an empty array if none
- /// are defined.
- ///
- string[] GetObjectNamesForType(Type type, bool includePrototypes, bool includeFactoryObjects);
+ ///
+ /// Return the names of objects matching the given
+ /// (including subclasses), judging from the object definitions.
+ ///
+ ///
+ ///
+ /// Does consider objects created by s,
+ /// or rather it considers the type of objects created by
+ /// (which means that
+ /// s will be instantiated).
+ ///
+ ///
+ /// Does not consider any hierarchy this factory may participate in.
+ /// Use
+ /// to include beans in ancestor factories too.
+ /// <p>Note: Does <i>not</i> ignore singleton objects that have been registered
+ /// by other means than bean definitions.
+ ///
+ ///
+ ///
+ /// The (class or interface) to match, or
+ /// for all object names.
+ ///
+ ///
+ /// Whether to include prototype objects too or just singletons (also applies to
+ /// s).
+ ///
+ ///
+ /// Whether to include s too
+ /// or just normal objects.
+ ///
+ ///
+ /// The names of all objects defined in this factory, or an empty array if none
+ /// are defined.
+ ///
+ IList GetObjectNamesForType(Type type, bool includePrototypes, bool includeFactoryObjects);
- ///
- /// Return the names of objects matching the given
- /// (including subclasses), judging from the object definitions.
- ///
- ///
- ///
- /// Does consider objects created by s,
- /// or rather it considers the type of objects created by
- /// (which means that
- /// s will be instantiated).
- ///
- ///
- /// Does not consider any hierarchy this factory may participate in.
- /// Use
- /// to include beans in ancestor factories too.
- /// <p>Note: Does <i>not</i> ignore singleton objects that have been registered
- /// by other means than bean definitions.
- ///
- ///
- ///
- /// The (class or interface) to match, or
- /// for all object names.
- ///
- ///
- /// Whether to include prototype objects too or just singletons (also applies to
- /// s).
- ///
- ///
- /// Whether to include s too
- /// or just normal objects.
- ///
- ///
- /// The names of all objects defined in this factory, or an empty array if none
- /// are defined.
- ///
- string[] GetObjectNamesForType(bool includePrototypes, bool includeFactoryObjects);
+ ///
+ /// Return the names of objects matching the given
+ /// (including subclasses), judging from the object definitions.
+ ///
+ ///
+ ///
+ /// Does consider objects created by s,
+ /// or rather it considers the type of objects created by
+ /// (which means that
+ /// s will be instantiated).
+ ///
+ ///
+ /// Does not consider any hierarchy this factory may participate in.
+ /// Use
+ /// to include beans in ancestor factories too.
+ /// <p>Note: Does <i>not</i> ignore singleton objects that have been registered
+ /// by other means than bean definitions.
+ ///
+ ///
+ ///
+ /// The (class or interface) to match, or
+ /// for all object names.
+ ///
+ ///
+ /// Whether to include prototype objects too or just singletons (also applies to
+ /// s).
+ ///
+ ///
+ /// Whether to include s too
+ /// or just normal objects.
+ ///
+ ///
+ /// The names of all objects defined in this factory, or an empty array if none
+ /// are defined.
+ ///
+ IList GetObjectNames(bool includePrototypes, bool includeFactoryObjects);
///
/// Return the object instances that match the given object
@@ -248,7 +249,7 @@ namespace Spring.Objects.Factory
///
/// If the objects could not be created.
///
- IDictionary GetObjectsOfType(Type type);
+ IDictionary GetObjectsOfType(Type type);
///
/// Return the object instances that match the given object
@@ -277,7 +278,7 @@ namespace Spring.Objects.Factory
///
/// If the objects could not be created.
///
- IDictionary GetObjectsOfType();
+ IDictionary GetObjects();
///
/// Return the object instances that match the given object
@@ -305,35 +306,35 @@ namespace Spring.Objects.Factory
///
/// If the objects could not be created.
///
- IDictionary GetObjectsOfType(Type type, bool includePrototypes, bool includeFactoryObjects);
+ IDictionary GetObjectsOfType(Type type, bool includePrototypes, bool includeFactoryObjects);
- ///
- /// Return the object instances that match the given object
- /// (including subclasses), judging from either object
- /// definitions or the value of
- /// in the case of
- /// s.
- ///
- ///
- /// The (class or interface) to match.
- ///
- ///
- /// Whether to include prototype objects too or just singletons (also applies to
- /// s).
- ///
- ///
- /// Whether to include s too
- /// or just normal objects.
- ///
- ///
- /// A of the matching objects,
- /// containing the object names as keys and the corresponding object instances
- /// as values.
- ///
- ///
- /// If the objects could not be created.
- ///
- IDictionary GetObjectsOfType(bool includePrototypes, bool includeFactoryObjects);
+ ///
+ /// Return the object instances that match the given object
+ /// (including subclasses), judging from either object
+ /// definitions or the value of
+ /// in the case of
+ /// s.
+ ///
+ ///
+ /// The (class or interface) to match.
+ ///
+ ///
+ /// Whether to include prototype objects too or just singletons (also applies to
+ /// s).
+ ///
+ ///
+ /// Whether to include s too
+ /// or just normal objects.
+ ///
+ ///
+ /// A of the matching objects,
+ /// containing the object names as keys and the corresponding object instances
+ /// as values.
+ ///
+ ///
+ /// If the objects could not be created.
+ ///
+ IDictionary GetObjects(bool includePrototypes, bool includeFactoryObjects);
///
/// Return an instance (possibly shared or independent) of the given object name.
diff --git a/src/Spring/Spring.Core/Objects/Factory/IObjectFactory.cs b/src/Spring/Spring.Core/Objects/Factory/IObjectFactory.cs
index dbfaadae..aff582d0 100644
--- a/src/Spring/Spring.Core/Objects/Factory/IObjectFactory.cs
+++ b/src/Spring/Spring.Core/Objects/Factory/IObjectFactory.cs
@@ -21,6 +21,7 @@
#region Imports
using System;
+using System.Collections.Generic;
#endregion
@@ -209,21 +210,21 @@ namespace Spring.Objects.Factory
/// True if an object with the given name is defined.
bool ContainsObject(string name);
- ///
- /// Return the aliases for the given object name, if defined.
- ///
- ///
- ///
- /// Will ask the parent factory if the object cannot be found in this factory
- /// instance.
- ///
- ///
- /// The object name to check for aliases.
- /// The aliases, or an empty array if none.
- ///
- /// If there's no such object definition.
- ///
- string[] GetAliases(string name);
+ ///
+ /// Return the aliases for the given object name, if defined.
+ ///
+ ///
+ ///
+ /// Will ask the parent factory if the object cannot be found in this factory
+ /// instance.
+ ///
+ ///
+ /// The object name to check for aliases.
+ /// The aliases, or an empty array if none.
+ ///
+ /// If there's no such object definition.
+ ///
+ IList GetAliases(string name);
#if !MONO
///
diff --git a/src/Spring/Spring.Core/Objects/Factory/ObjectFactoryUtils.cs b/src/Spring/Spring.Core/Objects/Factory/ObjectFactoryUtils.cs
index e38561d7..eee5e85b 100644
--- a/src/Spring/Spring.Core/Objects/Factory/ObjectFactoryUtils.cs
+++ b/src/Spring/Spring.Core/Objects/Factory/ObjectFactoryUtils.cs
@@ -21,9 +21,8 @@
#region Imports
using System;
-using System.Collections;
-using Spring.Collections;
-using Spring.Core;
+using System.Collections.Generic;
+
using Spring.Util;
#endregion
@@ -112,7 +111,7 @@ namespace Spring.Objects.Factory
///
public static int CountObjectsIncludingAncestors(IListableObjectFactory factory)
{
- return ObjectNamesIncludingAncestors(factory).Length;
+ return ObjectNamesIncludingAncestors(factory).Count;
}
///
@@ -120,7 +119,7 @@ namespace Spring.Objects.Factory
///
/// The object factory.
/// The array of object names, or an empty array if none.
- public static string[] ObjectNamesIncludingAncestors(IListableObjectFactory factory)
+ public static IList ObjectNamesIncludingAncestors(IListableObjectFactory factory)
{
return ObjectNamesForTypeIncludingAncestors(factory, typeof(object));
}
@@ -160,17 +159,17 @@ namespace Spring.Objects.Factory
///
/// The array of object names, or an empty array if none.
///
- public static string[] ObjectNamesForTypeIncludingAncestors(
+ public static IList ObjectNamesForTypeIncludingAncestors(
IListableObjectFactory factory, Type type,
bool includePrototypes, bool includeFactoryObjects)
{
- ArrayList result = new ArrayList();
+ List result = new List();
result.AddRange(factory.GetObjectNamesForType(type, includePrototypes, includeFactoryObjects));
IListableObjectFactory pof = GetParentListableObjectFactoryIfAny(factory);
if (pof != null)
{
IHierarchicalObjectFactory hof = (IHierarchicalObjectFactory)factory;
- string[] parentsResult = ObjectNamesForTypeIncludingAncestors(pof, type, includePrototypes, includeFactoryObjects);
+ IList parentsResult = ObjectNamesForTypeIncludingAncestors(pof, type, includePrototypes, includeFactoryObjects);
foreach (string objectName in parentsResult)
{
if (!result.Contains(objectName) && !hof.ContainsLocalObject(objectName))
@@ -179,7 +178,7 @@ namespace Spring.Objects.Factory
}
}
}
- return (string[])result.ToArray(typeof(string));
+ return result;
}
///
@@ -210,16 +209,16 @@ namespace Spring.Objects.Factory
///
/// The array of object names, or an empty array if none.
///
- public static string[] ObjectNamesForTypeIncludingAncestors(
+ public static IList ObjectNamesForTypeIncludingAncestors(
IListableObjectFactory factory, Type type)
{
- ArrayList result = new ArrayList();
+ List result = new List();
result.AddRange(factory.GetObjectNamesForType(type));
IListableObjectFactory pof = GetParentListableObjectFactoryIfAny(factory);
if (pof != null)
{
IHierarchicalObjectFactory hof = (IHierarchicalObjectFactory)factory;
- string[] parentsResult = ObjectNamesForTypeIncludingAncestors(pof, type);
+ IList parentsResult = ObjectNamesForTypeIncludingAncestors(pof, type);
foreach (string objectName in parentsResult)
{
if (!result.Contains(objectName) && !hof.ContainsLocalObject(objectName))
@@ -228,7 +227,7 @@ namespace Spring.Objects.Factory
}
}
}
- return (string[])result.ToArray(typeof(string));
+ return result;
}
///
@@ -259,12 +258,12 @@ namespace Spring.Objects.Factory
/// The of object instances, or an
/// empty if none.
///
- public static IDictionary ObjectsOfTypeIncludingAncestors(
+ public static IDictionary ObjectsOfTypeIncludingAncestors(
IListableObjectFactory factory, Type type,
bool includePrototypes, bool includeFactoryObjects)
{
- Hashtable result = new Hashtable();
- foreach (DictionaryEntry entry in
+ Dictionary result = new Dictionary();
+ foreach (KeyValuePair entry in
factory.GetObjectsOfType(type, includePrototypes, includeFactoryObjects))
{
result.Add(entry.Key, entry.Value);
@@ -273,7 +272,7 @@ namespace Spring.Objects.Factory
if (pof != null)
{
IHierarchicalObjectFactory hof = (IHierarchicalObjectFactory)factory;
- IDictionary parentResult = ObjectsOfTypeIncludingAncestors(pof, type, includePrototypes, includeFactoryObjects);
+ IDictionary parentResult = ObjectsOfTypeIncludingAncestors(pof, type, includePrototypes, includeFactoryObjects);
foreach (string objectName in parentResult.Keys)
{
if (!result.ContainsKey(objectName) && !hof.ContainsLocalObject(objectName))
@@ -319,7 +318,7 @@ namespace Spring.Objects.Factory
IListableObjectFactory factory, Type type,
bool includePrototypes, bool includeFactoryObjects)
{
- IDictionary objectsOfType = ObjectsOfTypeIncludingAncestors(factory, type, includePrototypes, includeFactoryObjects);
+ IDictionary objectsOfType = ObjectsOfTypeIncludingAncestors(factory, type, includePrototypes, includeFactoryObjects);
return GrabTheOnlyObject(objectsOfType, type);
}
@@ -355,7 +354,7 @@ namespace Spring.Objects.Factory
public static object ObjectOfType(IListableObjectFactory factory, Type type,
bool includePrototypes, bool includeFactoryObjects)
{
- IDictionary objectsOfType = factory.GetObjectsOfType(type, includePrototypes, includeFactoryObjects);
+ IDictionary objectsOfType = factory.GetObjectsOfType(type, includePrototypes, includeFactoryObjects);
return GrabTheOnlyObject(objectsOfType, type);
}
@@ -464,7 +463,7 @@ namespace Spring.Objects.Factory
return null;
}
- private static object GrabTheOnlyObject(IDictionary objectsOfType, Type type)
+ private static object GrabTheOnlyObject(IDictionary objectsOfType, Type type)
{
if (objectsOfType.Count == 1)
{
diff --git a/src/Spring/Spring.Core/Objects/Factory/Support/AbstractAutowireCapableObjectFactory.cs b/src/Spring/Spring.Core/Objects/Factory/Support/AbstractAutowireCapableObjectFactory.cs
index 764c9860..e7af9d00 100644
--- a/src/Spring/Spring.Core/Objects/Factory/Support/AbstractAutowireCapableObjectFactory.cs
+++ b/src/Spring/Spring.Core/Objects/Factory/Support/AbstractAutowireCapableObjectFactory.cs
@@ -22,17 +22,14 @@
using System;
using System.Collections;
-using System.Collections.Specialized;
+using System.Collections.Generic;
using System.Globalization;
using System.Reflection;
-using System.Runtime.Remoting;
+
using Common.Logging;
+
using Spring.Collections;
-using Spring.Core;
-using Spring.Core.TypeConversion;
using Spring.Core.TypeResolution;
-using Spring.Expressions;
-using Spring.Objects;
using Spring.Objects.Factory.Config;
using Spring.Util;
@@ -352,15 +349,15 @@ namespace Spring.Objects.Factory.Support
///
protected void ApplyPropertyValues(string name, RootObjectDefinition definition, IObjectWrapper wrapper, IPropertyValues properties)
{
- if (properties == null || properties.PropertyValues.Length == 0)
+ if (properties == null || properties.PropertyValues.Count == 0)
{
return;
}
ObjectDefinitionValueResolver valueResolver = CreateValueResolver();
MutablePropertyValues deepCopy = new MutablePropertyValues(properties);
- PropertyValue[] copiedProperties = deepCopy.PropertyValues;
- for (int i = 0; i < copiedProperties.Length; ++i)
+ IList copiedProperties = deepCopy.PropertyValues;
+ for (int i = 0; i < copiedProperties.Count; ++i)
{
PropertyValue copiedProperty = copiedProperties[i];
//(string name, RootObjectDefinition definition, string argumentName, object argumentValue)
@@ -503,7 +500,7 @@ namespace Spring.Objects.Factory.Support
if (wrapper == null)
{
- if (properties.PropertyValues.Length > 0)
+ if (properties.PropertyValues.Count > 0)
{
throw new ObjectCreationException(definition.ResourceDescription,
name, "Cannot apply property values to null instance.");
@@ -537,7 +534,7 @@ namespace Spring.Objects.Factory.Support
if (hasInstAwareOpps || needsDepCheck)
{
- PropertyInfo[] filteredPropInfo = FilterPropertyInfoForDependencyCheck(wrapper);
+ IList filteredPropInfo = FilterPropertyInfoForDependencyCheck(wrapper);
if (hasInstAwareOpps)
{
foreach (IObjectPostProcessor processor in ObjectPostProcessors)
@@ -701,7 +698,7 @@ namespace Spring.Objects.Factory.Support
{
// look for a matching type
Type requiredType = wrapper.GetPropertyType(propertyName);
- IDictionary matchingObjects = FindMatchingObjects(requiredType);
+ IDictionary matchingObjects = FindMatchingObjects(requiredType);
if (matchingObjects != null && matchingObjects.Count == 1)
{
properties.Add(propertyName, ObjectUtils.EnumerateFirstElement(matchingObjects.Values));
@@ -837,7 +834,7 @@ namespace Spring.Objects.Factory.Support
protected internal override object InstantiateObject(string name, RootObjectDefinition definition, object[] arguments, bool allowEagerCaching, bool suppressConfigure)
{
// guarantee the initialization of objects that the current one depends on..
- if (definition.DependsOn != null && definition.DependsOn.Length > 0)
+ if (definition.DependsOn != null && definition.DependsOn.Count > 0)
{
foreach (string dependant in definition.DependsOn)
{
@@ -1158,7 +1155,7 @@ namespace Spring.Objects.Factory.Support
return;
}
- PropertyInfo[] filteredPropInfo = FilterPropertyInfoForDependencyCheck(wrapper);
+ IList filteredPropInfo = FilterPropertyInfoForDependencyCheck(wrapper);
if (HasInstantiationAwareBeanPostProcessors)
{
foreach (IObjectPostProcessor processor in ObjectPostProcessors)
@@ -1180,12 +1177,12 @@ namespace Spring.Objects.Factory.Support
CheckDependencies(name, definition, filteredPropInfo, properties);
}
- private void CheckDependencies(string name, IConfigurableObjectDefinition definition, PropertyInfo[] filteredPropInfo, IPropertyValues properties)
+ private void CheckDependencies(string name, IConfigurableObjectDefinition definition, IList filteredPropInfo, IPropertyValues properties)
{
DependencyCheckingMode dependencyCheck = definition.DependencyCheck;
- PropertyInfo[] unsatisfiedDependencies = AutowireUtils.GetUnsatisfiedDependencies(filteredPropInfo, properties, dependencyCheck);
+ IList unsatisfiedDependencies = AutowireUtils.GetUnsatisfiedDependencies(filteredPropInfo, properties, dependencyCheck);
- if (unsatisfiedDependencies.Length > 0)
+ if (unsatisfiedDependencies.Count > 0)
{
throw new UnsatisfiedDependencyException(definition.ResourceDescription, name, unsatisfiedDependencies[0].Name,
"Set this property value or disable dependency checking for this object.");
@@ -1198,25 +1195,25 @@ namespace Spring.Objects.Factory.Support
///
/// The object wrapper the object was created with.
/// The filtered PropertyInfos
- private PropertyInfo[] FilterPropertyInfoForDependencyCheck(IObjectWrapper wrapper)
+ private IList FilterPropertyInfoForDependencyCheck(IObjectWrapper wrapper)
{
lock (filteredPropertyDescriptorsCache)
{
- PropertyInfo[] filtered = (PropertyInfo[])filteredPropertyDescriptorsCache[wrapper.WrappedType];
- if (filtered == null)
+ IList filtered;
+ if (!filteredPropertyDescriptorsCache.TryGetValue(wrapper.WrappedType, out filtered))
{
- ArrayList list = new ArrayList(wrapper.GetPropertyInfos());
+ List list = new List(wrapper.GetPropertyInfos());
for (int i = list.Count - 1; i >= 0; i--)
{
- PropertyInfo pi = (PropertyInfo)list[i];
+ PropertyInfo pi = list[i];
if (IsExcludedFromDependencyCheck(pi))
{
list.RemoveAt(i);
}
}
- filtered = (PropertyInfo[])list.ToArray(typeof(PropertyInfo));
+ filtered = list;
filteredPropertyDescriptorsCache.Add(wrapper.WrappedType, filtered);
}
return filtered;
@@ -1464,7 +1461,7 @@ namespace Spring.Objects.Factory.Support
///
private void DestroyDependantObjects(string name)
{
- string[] dependingObjects = GetDependingObjectNames(name);
+ IList dependingObjects = GetDependingObjectNames(name);
foreach (string doName in dependingObjects)
{
DestroySingleton(doName);
@@ -1747,7 +1744,7 @@ namespace Spring.Objects.Factory.Support
///
///
///
- /// The of the objects to look up.
+ /// The of the objects to look up.
///
///
/// An of object names and object
@@ -1757,7 +1754,7 @@ namespace Spring.Objects.Factory.Support
///
/// In case of errors.
///
- protected abstract IDictionary FindMatchingObjects(Type requiredType);
+ protected abstract IDictionary FindMatchingObjects(Type requiredType);
///
/// Return the names of the objects that depend on the given object.
@@ -1772,7 +1769,7 @@ namespace Spring.Objects.Factory.Support
///
/// In case of errors.
///
- protected abstract string[] GetDependingObjectNames(string name);
+ protected abstract IList GetDependingObjectNames(string name);
///
/// Injects dependencies into the supplied instance
@@ -2083,7 +2080,7 @@ namespace Spring.Objects.Factory.Support
///
/// Cache of filtered PropertyInfos: object Type -> PropertyInfo array
///
- private IDictionary filteredPropertyDescriptorsCache = new Hashtable();
+ private IDictionary> filteredPropertyDescriptorsCache = new Dictionary>();
///
/// Dependency interfaces to ignore on dependency check and autowire, as Set of
diff --git a/src/Spring/Spring.Core/Objects/Factory/Support/AbstractObjectDefinition.cs b/src/Spring/Spring.Core/Objects/Factory/Support/AbstractObjectDefinition.cs
index ee48e420..e12ba0ae 100644
--- a/src/Spring/Spring.Core/Objects/Factory/Support/AbstractObjectDefinition.cs
+++ b/src/Spring/Spring.Core/Objects/Factory/Support/AbstractObjectDefinition.cs
@@ -21,11 +21,11 @@
#region Imports
using System;
-using System.Collections;
+using System.Collections.Generic;
using System.Globalization;
using System.Reflection;
using System.Text;
-using Spring.Core;
+
using Spring.Core.TypeResolution;
using Spring.Objects.Factory.Config;
using Spring.Util;
@@ -134,9 +134,8 @@ namespace Spring.Objects.Factory.Support
InitMethodName = other.InitMethodName;
DestroyMethodName = other.DestroyMethodName;
- DependsOn = new string[other.DependsOn.Length];
IsAutowireCandidate = other.IsAutowireCandidate;
- Array.Copy(other.DependsOn, DependsOn, other.DependsOn.Length);
+ DependsOn = new List(other.DependsOn);
FactoryMethodName = other.FactoryMethodName;
FactoryObjectName = other.FactoryObjectName;
AutowireMode = other.AutowireMode;
@@ -523,10 +522,10 @@ namespace Spring.Objects.Factory.Support
/// preparation on startup.
///
///
- public string[] DependsOn
+ public IList DependsOn
{
get { return dependsOn; }
- set { dependsOn = value == null ? StringUtils.EmptyStrings : value; }
+ set { dependsOn = value ?? StringUtils.EmptyStrings; }
}
///
@@ -738,14 +737,14 @@ namespace Spring.Objects.Factory.Support
{
FactoryMethodName = other.FactoryMethodName;
}
- if (ArrayUtils.HasLength(other.DependsOn))
+ if (other.DependsOn != null && other.DependsOn.Count > 0)
{
- ArrayList deps = new ArrayList(other.DependsOn);
- if (ArrayUtils.HasLength(DependsOn))
+ List deps = new List(other.DependsOn);
+ if (DependsOn != null && DependsOn.Count > 0)
{
deps.AddRange(DependsOn);
}
- DependsOn = (string[]) deps.ToArray(typeof(string));
+ DependsOn = deps;
}
AutowireMode = other.AutowireMode;
ResourceDescription = other.ResourceDescription;
@@ -810,7 +809,7 @@ namespace Spring.Objects.Factory.Support
private object objectType;
private AutoWiringMode autowireMode = AutoWiringMode.No;
private DependencyCheckingMode dependencyCheck = DependencyCheckingMode.None;
- private string[] dependsOn;
+ private IList dependsOn;
private bool autowireCandidate = true;
private string initMethodName = null;
private string destroyMethodName = null;
diff --git a/src/Spring/Spring.Core/Objects/Factory/Support/AbstractObjectFactory.cs b/src/Spring/Spring.Core/Objects/Factory/Support/AbstractObjectFactory.cs
index ad19745b..446336bd 100644
--- a/src/Spring/Spring.Core/Objects/Factory/Support/AbstractObjectFactory.cs
+++ b/src/Spring/Spring.Core/Objects/Factory/Support/AbstractObjectFactory.cs
@@ -22,9 +22,10 @@
using System;
using System.Collections;
+using System.Collections.Generic;
using System.Collections.Specialized;
using System.ComponentModel;
-using System.Runtime.Serialization;
+
using Common.Logging;
using Spring.Collections;
@@ -34,6 +35,7 @@ using Spring.Objects.Factory.Config;
using Spring.Threading;
using Spring.Util;
using System.Threading;
+using System.Linq;
#endregion
@@ -140,7 +142,7 @@ namespace Spring.Objects.Factory.Support
///
/// Cache of singleton objects created by s: FactoryObject name -> product
///
- private readonly Hashtable factoryObjectProductCache = new Hashtable();
+ private readonly Dictionary factoryObjectProductCache = new Dictionary();
#region Constructor (s) / Destructor
@@ -904,7 +906,7 @@ namespace Spring.Objects.Factory.Support
if (rod == null)
{
- resultInstance = factoryObjectProductCache[canonicalName];
+ factoryObjectProductCache.TryGetValue(canonicalName, out resultInstance);
}
if (resultInstance == null)
@@ -926,10 +928,9 @@ namespace Spring.Objects.Factory.Support
if (factory.IsSingleton && ContainsSingleton(canonicalName))
{
- lock (factoryObjectProductCache.SyncRoot)
+ lock (factoryObjectProductCache)
{
- resultInstance = factoryObjectProductCache[canonicalName];
- if (resultInstance == null)
+ if (!factoryObjectProductCache.TryGetValue(canonicalName, out resultInstance))
{
resultInstance = GetObjectFromFactoryObject(factory, canonicalName, rod);
if (resultInstance != null)
@@ -1209,11 +1210,11 @@ namespace Spring.Objects.Factory.Support
/// The names of objects in the singleton cache that match the given
/// object type (including subclasses), or an empty array if none.
///
- public virtual string[] GetSingletonNames(Type type)
+ public virtual IList GetSingletonNames(Type type)
{
lock (singletonCache)
{
- ArrayList matches = new ArrayList();
+ List matches = new List();
foreach (string name in singletonCache.Keys)
{
object singletonObject = singletonCache[name];
@@ -1223,7 +1224,7 @@ namespace Spring.Objects.Factory.Support
matches.Add(name);
}
}
- return (string[])matches.ToArray(typeof(string));
+ return matches;
}
}
@@ -1446,12 +1447,12 @@ namespace Spring.Objects.Factory.Support
///
///
/// The names of the objects in the singleton cache.
- public virtual string[] GetSingletonNames()
+ public virtual IList GetSingletonNames()
{
lock (singletonCache)
{
- ICollection keys = singletonCache.Keys;
- return (string[])new ArrayList(keys).ToArray(typeof(string));
+ IEnumerable keys = singletonCache.Keys.Cast();
+ return new List(keys);
}
}
@@ -1613,14 +1614,14 @@ namespace Spring.Objects.Factory.Support
private bool hasDestructionAwareBeanPostProcessors;
private bool caseSensitive;
- private IDictionary aliasMap;
- private IDictionary singletonCache;
- private IDictionary singletonLocks;
+ private OrderedDictionary aliasMap;
+ private OrderedDictionary singletonCache;
+ private OrderedDictionary singletonLocks;
///
/// Set of registered singletons, containing the bean names in registration order
///
- private ISet registeredSingletons = new HashedSet();
+ private HashSet registeredSingletons = new HashSet();
private readonly IDictionary singletonsInCreation;
@@ -1813,7 +1814,7 @@ namespace Spring.Objects.Factory.Support
/// Return the aliases for the given object name, if defined.
///
/// .
- public string[] GetAliases(string name)
+ public IList GetAliases(string name)
{
string objectName = TransformedObjectName(name);
// check if object actually exists in this object factory...
@@ -1821,18 +1822,18 @@ namespace Spring.Objects.Factory.Support
if (isInSingletonCache || ContainsObjectDefinition(objectName))
{
// if found, gather aliases...
- ArrayList matches = new ArrayList();
+ List matches = new List();
lock (aliasMap)
{
foreach (DictionaryEntry aliasEntry in aliasMap)
{
if (0 == string.Compare((string)aliasEntry.Value, objectName, !this.IsCaseSensitive))
{
- matches.Add(aliasEntry.Key);
+ matches.Add((string) aliasEntry.Key);
}
}
}
- return (string[])matches.ToArray(typeof(string));
+ return matches;
}
// not found, so check parent...
@@ -2532,7 +2533,7 @@ namespace Spring.Objects.Factory.Support
///
///
///
- public string[] SingletonNames
+ public IList SingletonNames
{
get
{
diff --git a/src/Spring/Spring.Core/Objects/Factory/Support/AutowireUtils.cs b/src/Spring/Spring.Core/Objects/Factory/Support/AutowireUtils.cs
index 3ad46d96..b68e6747 100644
--- a/src/Spring/Spring.Core/Objects/Factory/Support/AutowireUtils.cs
+++ b/src/Spring/Spring.Core/Objects/Factory/Support/AutowireUtils.cs
@@ -22,11 +22,12 @@
using System;
using System.Collections;
+using System.Collections.Generic;
using System.Reflection;
+
using Spring.Collections;
using Spring.Core;
using Spring.Objects.Factory.Config;
-using Spring.Objects.Support;
using Spring.Util;
#endregion
@@ -354,9 +355,9 @@ namespace Spring.Objects.Factory.Support
/// Returns the list of that are not satisfied by .
///
/// the filtered list. Is never null
- public static PropertyInfo[] GetUnsatisfiedDependencies(PropertyInfo[] propertyInfos, IPropertyValues properties, DependencyCheckingMode dependencyCheck)
+ public static IList GetUnsatisfiedDependencies(IList propertyInfos, IPropertyValues properties, DependencyCheckingMode dependencyCheck)
{
- ArrayList unsatisfiedDependenciesList = new ArrayList();
+ List unsatisfiedDependenciesList = new List();
foreach (PropertyInfo property in propertyInfos)
{
if (property.CanWrite && properties.GetPropertyValue(property.Name) == null)
@@ -370,7 +371,7 @@ namespace Spring.Objects.Factory.Support
}
}
}
- return (PropertyInfo[])unsatisfiedDependenciesList.ToArray(typeof(PropertyInfo));
+ return unsatisfiedDependenciesList;
}
}
}
\ No newline at end of file
diff --git a/src/Spring/Spring.Core/Objects/Factory/Support/ConstructorResolver.cs b/src/Spring/Spring.Core/Objects/Factory/Support/ConstructorResolver.cs
index 2d7ba754..979f966e 100644
--- a/src/Spring/Spring.Core/Objects/Factory/Support/ConstructorResolver.cs
+++ b/src/Spring/Spring.Core/Objects/Factory/Support/ConstructorResolver.cs
@@ -20,6 +20,7 @@
using System;
using System.Collections;
+using System.Collections.Generic;
using System.Globalization;
using System.Reflection;
using Common.Logging;
@@ -30,6 +31,8 @@ using Spring.Core.TypeResolution;
using Spring.Objects.Factory.Config;
using Spring.Util;
+using System.Linq;
+
namespace Spring.Objects.Factory.Support
{
///
@@ -306,12 +309,12 @@ namespace Spring.Objects.Factory.Support
}
GenericArgumentsHolder genericArgsInfo = new GenericArgumentsHolder(definition.FactoryMethodName);
- MethodInfo[] factoryMethodCandidates = FindMethods(genericArgsInfo.GenericMethodName, expectedArgCount, isStatic, factoryClass);
+ IList factoryMethodCandidates = FindMethods(genericArgsInfo.GenericMethodName, expectedArgCount, isStatic, factoryClass);
bool autowiring = (definition.AutowireMode == AutoWiringMode.Constructor);
// try all matching methods to see if they match the constructor arguments...
- for (int i = 0; i < factoryMethodCandidates.Length; i++)
+ for (int i = 0; i < factoryMethodCandidates.Count; i++)
{
MethodInfo factoryMethodCandidate = factoryMethodCandidates[i];
if (genericArgsInfo.ContainsGenericArguments)
@@ -540,7 +543,7 @@ namespace Spring.Objects.Factory.Support
// ObjectDefinitionValueResolver valueResolver = new ObjectDefinitionValueResolver(objectFactory);
int minNrOfArgs = cargs.ArgumentCount;
- foreach (DictionaryEntry entry in cargs.IndexedArgumentValues)
+ foreach (KeyValuePair entry in cargs.IndexedArgumentValues)
{
int index = Convert.ToInt32(entry.Key);
if (index < 0)
@@ -552,8 +555,7 @@ namespace Spring.Objects.Factory.Support
{
minNrOfArgs = index + 1;
}
- ConstructorArgumentValues.ValueHolder valueHolder =
- (ConstructorArgumentValues.ValueHolder)entry.Value;
+ ConstructorArgumentValues.ValueHolder valueHolder = entry.Value;
string argName = "constructor argument with index " + index;
object resolvedValue =
valueResolver.ResolveValueIfNecessary(objectName, definition, argName, valueHolder.Value);
@@ -575,9 +577,9 @@ namespace Spring.Objects.Factory.Support
AssemblyQualifiedName
: null);
}
- foreach (DictionaryEntry namedArgumentEntry in definition.ConstructorArgumentValues.NamedArgumentValues)
+ foreach (KeyValuePair namedArgumentEntry in definition.ConstructorArgumentValues.NamedArgumentValues)
{
- string argumentName = (string)namedArgumentEntry.Key;
+ string argumentName = namedArgumentEntry.Key;
string syntheticArgumentName = "constructor argument with name " + argumentName;
ConstructorArgumentValues.ValueHolder valueHolder =
(ConstructorArgumentValues.ValueHolder)namedArgumentEntry.Value;
@@ -610,16 +612,14 @@ namespace Spring.Objects.Factory.Support
/// methods exposed on the
/// that match the supplied criteria.
///
- private static MethodInfo[] FindMethods(string methodName, int expectedArgumentCount, bool isStatic, Type searchType)
+ private static IList FindMethods(string methodName, int expectedArgumentCount, bool isStatic, Type searchType)
{
ComposedCriteria methodCriteria = new ComposedCriteria();
methodCriteria.Add(new MethodNameMatchCriteria(methodName));
methodCriteria.Add(new MethodParametersCountCriteria(expectedArgumentCount));
BindingFlags methodFlags = BindingFlags.Public | BindingFlags.IgnoreCase | (isStatic ? BindingFlags.Static : BindingFlags.Instance);
- MemberInfo[] methods =
- searchType.FindMembers(MemberTypes.Method, methodFlags, new MemberFilter(new CriteriaMemberFilter().FilterMemberByCriteria),
- methodCriteria);
- return (MethodInfo[])ArrayList.Adapter(methods).ToArray(typeof(MethodInfo));
+ MemberInfo[] methods = searchType.FindMembers(MemberTypes.Method, methodFlags, new CriteriaMemberFilter().FilterMemberByCriteria, methodCriteria);
+ return methods.Cast().ToArray();
}
internal class ArgumentsHolder
{
diff --git a/src/Spring/Spring.Core/Objects/Factory/Support/DefaultListableObjectFactory.cs b/src/Spring/Spring.Core/Objects/Factory/Support/DefaultListableObjectFactory.cs
index 522ced09..8092101f 100644
--- a/src/Spring/Spring.Core/Objects/Factory/Support/DefaultListableObjectFactory.cs
+++ b/src/Spring/Spring.Core/Objects/Factory/Support/DefaultListableObjectFactory.cs
@@ -22,14 +22,14 @@
using System;
using System.Collections;
+using System.Collections.Generic;
using System.Collections.Specialized;
using System.Globalization;
-using System.Reflection;
+
using Common.Logging;
-using Spring.Collections;
+
using Spring.Core;
using Spring.Core.TypeConversion;
-using Spring.Objects.Factory;
using Spring.Objects.Factory.Config;
using Spring.Util;
@@ -112,13 +112,14 @@ namespace Spring.Objects.Factory.Support
public DefaultListableObjectFactory(bool caseSensitive, IObjectFactory parentFactory)
: base(caseSensitive, parentFactory)
{
+ AllowObjectDefinitionOverriding = true;
if (caseSensitive)
{
- objectDefinitionMap = new Hashtable();
+ objectDefinitionMap = new Dictionary();
}
else
{
- objectDefinitionMap = new CaseInsensitiveHashtable(); //CollectionsUtil.CreateCaseInsensitiveHashtable();
+ objectDefinitionMap = new Dictionary(StringComparer.OrdinalIgnoreCase);
}
}
@@ -146,11 +147,7 @@ namespace Spring.Objects.Factory.Support
/// is the registration of an object definition
/// under the same name as an existing object definition is allowed.
///
- public bool AllowObjectDefinitionOverriding
- {
- get { return allowObjectDefinitionOverriding; }
- set { allowObjectDefinitionOverriding = value; }
- }
+ public bool AllowObjectDefinitionOverriding { get; set; }
///
@@ -185,7 +182,7 @@ namespace Spring.Objects.Factory.Support
///
///
///
- /// The type of the objects to look up.
+ /// The type of the objects to look up.
///
///
/// An of object names and object
@@ -195,7 +192,7 @@ namespace Spring.Objects.Factory.Support
///
/// In case of errors.
///
- protected override IDictionary FindMatchingObjects(Type requiredType)
+ protected override IDictionary FindMatchingObjects(Type requiredType)
{
return ObjectFactoryUtils.ObjectsOfTypeIncludingAncestors(
this, requiredType, true, true);
@@ -220,19 +217,18 @@ namespace Spring.Objects.Factory.Support
///
/// In case of errors.
///
- protected override string[] GetDependingObjectNames(string objectName)
+ protected override IList GetDependingObjectNames(string objectName)
{
- ArrayList dependingObjectNames = new ArrayList();
- string[] allObjectDefinitionNames = GetObjectDefinitionNames();
+ List dependingObjectNames = new List();
+ IList allObjectDefinitionNames = GetObjectDefinitionNames();
foreach (string name in allObjectDefinitionNames)
{
if (ContainsObjectDefinition(name))
{
- RootObjectDefinition rod
- = GetMergedObjectDefinition(name, false);
+ RootObjectDefinition rod = GetMergedObjectDefinition(name, false);
if (rod.DependsOn != null)
{
- IList dependsOn = new ArrayList(rod.DependsOn);
+ HashSet dependsOn = new HashSet(rod.DependsOn);
if (dependsOn.Contains(objectName))
{
#region Instrumentation
@@ -252,7 +248,7 @@ namespace Spring.Objects.Factory.Support
}
}
}
- return (string[])dependingObjectNames.ToArray(typeof(string));
+ return dependingObjectNames;
}
///
@@ -310,21 +306,15 @@ namespace Spring.Objects.Factory.Support
///
private readonly ILog log = LogManager.GetLogger(typeof(DefaultListableObjectFactory));
- ///
- /// Whether to allow re-registration of a different definition with the
- /// same name.
- ///
- private bool allowObjectDefinitionOverriding = true;
-
///
/// The mapping of object definition objects, keyed by object name.
///
- private readonly IDictionary objectDefinitionMap;
+ private readonly IDictionary objectDefinitionMap;
///
/// List of object definition names, in registration order.
///
- private readonly IList objectDefinitionNames = new ArrayList();
+ private readonly List objectDefinitionNames = new List();
///
/// Resolver to use for checking if an object definition is an autowire candidate
@@ -366,7 +356,7 @@ namespace Spring.Objects.Factory.Support
///
public override bool ContainsObjectDefinition(string name)
{
- return objectDefinitionMap.Contains(name);
+ return objectDefinitionMap.ContainsKey(name);
}
///
@@ -400,8 +390,8 @@ namespace Spring.Objects.Factory.Support
ex);
}
}
- object oldObjectDefinition = objectDefinitionMap[name];
- if (oldObjectDefinition != null)
+ IObjectDefinition oldObjectDefinition;
+ if (objectDefinitionMap.TryGetValue(name, out oldObjectDefinition))
{
if (!AllowObjectDefinitionOverriding)
{
@@ -460,7 +450,7 @@ namespace Spring.Objects.Factory.Support
int definitionCount = objectDefinitionNames.Count;
for (int i = 0; i < definitionCount; i++)
{
- string name = (string)objectDefinitionNames[i];
+ string name = objectDefinitionNames[i];
if (!ContainsSingleton(name) && ContainsObjectDefinition(name))
{
RootObjectDefinition definition
@@ -585,8 +575,8 @@ namespace Spring.Objects.Factory.Support
}
name = TransformedObjectName(name);
- IObjectDefinition definition = (IObjectDefinition)objectDefinitionMap[name];
- if (definition == null)
+ IObjectDefinition definition;
+ if (!objectDefinitionMap.TryGetValue(name, out definition))
{
if (!includeAncestors || ParentObjectFactory == null)
{
@@ -613,9 +603,9 @@ namespace Spring.Objects.Factory.Support
/// are defined.
///
///
- public string[] GetObjectDefinitionNames()
+ public IList GetObjectDefinitionNames()
{
- return (string[])((ArrayList)objectDefinitionNames).ToArray(typeof(string));
+ return objectDefinitionNames;
}
///
@@ -631,9 +621,9 @@ namespace Spring.Objects.Factory.Support
/// are defined.
///
///
- public string[] GetObjectDefinitionNames(Type type)
+ public IList GetObjectDefinitionNames(Type type)
{
- ArrayList matches = new ArrayList();
+ List matches = new List();
foreach (string name in objectDefinitionNames)
{
if (IsObjectDefinitionTypeMatch(name, type))
@@ -641,7 +631,7 @@ namespace Spring.Objects.Factory.Support
matches.Add(name);
}
}
- return (string[])matches.ToArray(typeof(string));
+ return matches;
}
///
@@ -657,7 +647,7 @@ namespace Spring.Objects.Factory.Support
/// are defined.
///
///
- public string[] GetObjectNamesForType(Type type)
+ public IList GetObjectNamesForType(Type type)
{
return GetObjectNamesForType(type, true, true);
}
@@ -685,7 +675,7 @@ namespace Spring.Objects.Factory.Support
/// The names of all objects defined in this factory, or an empty array if none
/// are defined.
///
- public string[] GetObjectNamesForType()
+ public IList GetObjectNames()
{
return GetObjectNamesForType(typeof (T));
}
@@ -711,11 +701,10 @@ namespace Spring.Objects.Factory.Support
/// are defined.
///
///
- public string[] GetObjectNamesForType(
- Type type, bool includePrototypes, bool includeFactoryObjects)
+ public IList GetObjectNamesForType(Type type, bool includePrototypes, bool includeFactoryObjects)
{
- IList objectNames = DoGetObjectNamesForType(type, includePrototypes, includeFactoryObjects);
- return (string[])ArrayList.Adapter(objectNames).ToArray(typeof(string));
+ List objectNames = DoGetObjectNamesForType(type, includePrototypes, includeFactoryObjects);
+ return objectNames;
}
///
@@ -753,7 +742,7 @@ namespace Spring.Objects.Factory.Support
/// The names of all objects defined in this factory, or an empty array if none
/// are defined.
///
- public string[] GetObjectNamesForType(bool includePrototypes, bool includeFactoryObjects)
+ public IList GetObjectNames(bool includePrototypes, bool includeFactoryObjects)
{
return GetObjectNamesForType(typeof (T), includePrototypes, includeFactoryObjects);
}
@@ -777,7 +766,7 @@ namespace Spring.Objects.Factory.Support
/// If the objects could not be created.
///
///
- public IDictionary GetObjectsOfType(Type type)
+ public IDictionary GetObjectsOfType(Type type)
{
return GetObjectsOfType(type, true, true);
}
@@ -809,9 +798,11 @@ namespace Spring.Objects.Factory.Support
///
/// If the objects could not be created.
///
- public IDictionary GetObjectsOfType()
+ public IDictionary GetObjects()
{
- return GetObjectsOfType(typeof (T));
+ Dictionary result = new Dictionary();
+ DoGetObjectsOfType(typeof (T), true, true, result);
+ return result;
}
///
@@ -838,21 +829,26 @@ namespace Spring.Objects.Factory.Support
/// If any of the objects could not be created.
///
///
- public IDictionary GetObjectsOfType(
- Type type, bool includePrototypes, bool includeFactoryObjects)
+ public IDictionary GetObjectsOfType(Type type, bool includePrototypes, bool includeFactoryObjects)
{
- IDictionary result = new Hashtable();
- IList objectNames = DoGetObjectNamesForType(type, includePrototypes, includeFactoryObjects);
+ Dictionary result = new Dictionary();
+ DoGetObjectsOfType(type, includePrototypes, includeFactoryObjects, result);
+ return result;
+ }
+
+ private void DoGetObjectsOfType(Type type, bool includePrototypes, bool includeFactoryObjects, IDictionary resultCollector)
+ {
+ IList objectNames = DoGetObjectNamesForType(type, includePrototypes, includeFactoryObjects);
foreach (string objectName in objectNames)
{
try
{
- result.Add(objectName, GetObject(objectName));
+ resultCollector.Add(objectName, GetObject(objectName));
}
catch (ObjectCreationException ex)
{
if (ex.InnerException != null
- && ex.GetBaseException().GetType().Equals(typeof(ObjectCurrentlyInCreationException)))
+ && ex.GetBaseException().GetType().Equals(typeof (ObjectCurrentlyInCreationException)))
{
// ignoring this is ok... it indicates a circular reference when autowiring
// constructors; we want to find matches other than the currently
@@ -860,9 +856,9 @@ namespace Spring.Objects.Factory.Support
if (log.IsDebugEnabled)
{
log.Debug(string.Format(
- CultureInfo.InvariantCulture,
- "Ignoring match to currently created object '{0}'.",
- objectName), ex);
+ CultureInfo.InvariantCulture,
+ "Ignoring match to currently created object '{0}'.",
+ objectName), ex);
}
}
else
@@ -871,7 +867,6 @@ namespace Spring.Objects.Factory.Support
}
}
}
- return result;
}
///
@@ -885,12 +880,12 @@ namespace Spring.Objects.Factory.Support
/// The (class or interface) to match.
///
///
- /// Whether to include prototype objects too or just singletons (also applies to
- /// s).
+ /// Whether to include prototype objects too or just singletons (also applies to
+ /// s).
///
///
- /// Whether to include s too
- /// or just normal objects.
+ /// Whether to include s too
+ /// or just normal objects.
///
///
/// A of the matching objects,
@@ -900,9 +895,11 @@ namespace Spring.Objects.Factory.Support
///
/// If the objects could not be created.
///
- public IDictionary GetObjectsOfType(bool includePrototypes, bool includeFactoryObjects)
+ public IDictionary GetObjects(bool includePrototypes, bool includeFactoryObjects)
{
- return GetObjectsOfType(typeof (T), includePrototypes, includeFactoryObjects);
+ Dictionary result = new Dictionary();
+ DoGetObjectsOfType(typeof (T), includePrototypes, includeFactoryObjects, result);
+ return result;
}
///
@@ -936,13 +933,13 @@ namespace Spring.Objects.Factory.Support
///
public T GetObject()
{
- string[] objectNamesForType = GetObjectNamesForType(typeof(T));
- if ((objectNamesForType == null) || (objectNamesForType.Length == 0))
+ IList objectNamesForType = GetObjectNamesForType(typeof(T));
+ if ((objectNamesForType == null) || (objectNamesForType.Count == 0))
{
throw new NoSuchObjectDefinitionException(typeof(T).FullName, "Requested Type not Defined in the Context.");
}
- if (objectNamesForType.Length > 1)
+ if (objectNamesForType.Count > 1)
{
throw new ObjectDefinitionStoreException(string.Format("More than one definition for {0} found in the Context.", typeof(T).FullName));
}
@@ -974,10 +971,10 @@ namespace Spring.Objects.Factory.Support
/// If any of the objects could not be created.
///
///
- protected IList DoGetObjectNamesForType(Type type, bool includeNonSingletons, bool allowEagerInit)
+ protected List DoGetObjectNamesForType(Type type, bool includeNonSingletons, bool allowEagerInit)
{
- IList result = new ArrayList();
- string[] objectNames = GetObjectDefinitionNames();
+ List result = new List();
+ IList objectNames = GetObjectDefinitionNames();
foreach (string s in objectNames)
{
string objectName = s;
@@ -1035,7 +1032,7 @@ namespace Spring.Objects.Factory.Support
}
// check singletons too, to catch manually registered singletons...
- string[] singletonNames = GetSingletonNames();
+ IList singletonNames = GetSingletonNames();
foreach (string s in singletonNames)
{
string objectName = s;
@@ -1172,9 +1169,9 @@ namespace Spring.Objects.Factory.Support
private IDictionary FindAutowireCandidates(string objectName, Type requiredType, DependencyDescriptor descriptor)
{
- string[] candidateNames =
+ IList candidateNames =
ObjectFactoryUtils.ObjectNamesForTypeIncludingAncestors(this, requiredType, true, descriptor.Eager);
- IDictionary result = new OrderedDictionary(candidateNames.Length);
+ IDictionary result = new OrderedDictionary(candidateNames.Count);
foreach (DictionaryEntry entry in resolvableDependencies)
{
@@ -1189,7 +1186,7 @@ namespace Spring.Objects.Factory.Support
}
}
}
- for (int i = 0; i < candidateNames.Length; i++)
+ for (int i = 0; i < candidateNames.Count; i++)
{
string candidateName = candidateNames[i];
if (!candidateName.Equals(objectName) && IsAutowireCandidate(candidateName, descriptor))
diff --git a/src/Spring/Spring.Core/Objects/Factory/Support/IConfigurableObjectDefinition.cs b/src/Spring/Spring.Core/Objects/Factory/Support/IConfigurableObjectDefinition.cs
index 008684c2..35429241 100644
--- a/src/Spring/Spring.Core/Objects/Factory/Support/IConfigurableObjectDefinition.cs
+++ b/src/Spring/Spring.Core/Objects/Factory/Support/IConfigurableObjectDefinition.cs
@@ -21,6 +21,8 @@
#region Imports
using System;
+using System.Collections.Generic;
+
using Spring.Objects.Factory.Config;
#endregion
@@ -159,7 +161,7 @@ namespace Spring.Objects.Factory.Support
/// preparation on startup.
///
///
- new string[] DependsOn { get; set; }
+ new IList DependsOn { get; set; }
///
/// The name of the initializer method.
diff --git a/src/Spring/Spring.Core/Objects/Factory/Support/IObjectDefinitionRegistry.cs b/src/Spring/Spring.Core/Objects/Factory/Support/IObjectDefinitionRegistry.cs
index e80a6de7..25ca92cc 100644
--- a/src/Spring/Spring.Core/Objects/Factory/Support/IObjectDefinitionRegistry.cs
+++ b/src/Spring/Spring.Core/Objects/Factory/Support/IObjectDefinitionRegistry.cs
@@ -20,6 +20,8 @@
#region Imports
+using System.Collections.Generic;
+
using Spring.Objects.Factory;
using Spring.Objects.Factory.Config;
@@ -69,7 +71,7 @@ namespace Spring.Objects.Factory.Support
/// The names of all objects defined in this registry, or an empty array
/// if none defined
///
- string [] GetObjectDefinitionNames ();
+ IList GetObjectDefinitionNames ();
///
/// Check if this registry contains a object definition with the given name.
@@ -126,25 +128,25 @@ namespace Spring.Objects.Factory.Support
/// If the object definition is invalid.
///
void RegisterObjectDefinition (string name, IObjectDefinition definition);
-
- ///
- /// Return the aliases for the given object name, if defined.
- ///
- /// the object name to check for aliases
- ///
- ///
- ///
- /// Will ask the parent factory if the object cannot be found in this
- /// factory instance.
- ///
- ///
- ///
- /// The aliases, or an empty array if none.
- ///
- ///
- /// If there's no such object definition.
- ///
- string [] GetAliases (string name);
+
+ ///
+ /// Return the aliases for the given object name, if defined.
+ ///
+ /// the object name to check for aliases
+ ///
+ ///
+ ///
+ /// Will ask the parent factory if the object cannot be found in this
+ /// factory instance.
+ ///
+ ///
+ ///
+ /// The aliases, or an empty array if none.
+ ///
+ ///
+ /// If there's no such object definition.
+ ///
+ IList GetAliases (string name);
///
/// Given a object name, create an alias. We typically use this method to
diff --git a/src/Spring/Spring.Core/Objects/Factory/Support/ObjectDefinitionBuilder.cs b/src/Spring/Spring.Core/Objects/Factory/Support/ObjectDefinitionBuilder.cs
index 7cf022c6..49e80bae 100644
--- a/src/Spring/Spring.Core/Objects/Factory/Support/ObjectDefinitionBuilder.cs
+++ b/src/Spring/Spring.Core/Objects/Factory/Support/ObjectDefinitionBuilder.cs
@@ -20,7 +20,8 @@
#region Imports
using System;
-using System.Collections;
+using System.Collections;
+using System.Collections.Generic;
using Spring.Objects.Factory.Config;
#endregion
@@ -392,11 +393,11 @@ namespace Spring.Objects.Factory.Support
objectDefinition.DependsOn = new string[] {objectName};
}
else
- {
- ArrayList arrayList = new ArrayList();
+ {
+ List arrayList = new List();
arrayList.AddRange(objectDefinition.DependsOn);
arrayList.AddRange(new string[]{ objectName});
- objectDefinition.DependsOn = (string[])arrayList.ToArray(typeof(string));
+ objectDefinition.DependsOn = arrayList;
}
return this;
}
diff --git a/src/Spring/Spring.Core/Objects/Factory/Support/ObjectDefinitionReaderUtils.cs b/src/Spring/Spring.Core/Objects/Factory/Support/ObjectDefinitionReaderUtils.cs
index 878cb901..613e33b4 100644
--- a/src/Spring/Spring.Core/Objects/Factory/Support/ObjectDefinitionReaderUtils.cs
+++ b/src/Spring/Spring.Core/Objects/Factory/Support/ObjectDefinitionReaderUtils.cs
@@ -21,9 +21,9 @@
#region Imports
using System;
-using System.Text;
+using System.Collections.Generic;
using System.Text.RegularExpressions;
-using Spring.Objects.Factory;
+
using Spring.Objects.Factory.Config;
using Spring.Objects.Factory.Xml;
using Spring.Objects.Support;
@@ -96,8 +96,8 @@ namespace Spring.Objects.Factory.Support
AssertUtils.ArgumentNotNull(registry, "registry");
registry.RegisterObjectDefinition(objectDefinition.ObjectName, objectDefinition.ObjectDefinition);
- string[] aliases = objectDefinition.Aliases;
- for (int i = 0; i < aliases.Length; ++i)
+ IList aliases = objectDefinition.Aliases;
+ for (int i = 0; i < aliases.Count; ++i)
{
string alias = aliases[i];
registry.RegisterAlias(objectDefinition.ObjectName, alias);
diff --git a/src/Spring/Spring.Core/Objects/Factory/Support/ObjectDefinitionValueResolver.cs b/src/Spring/Spring.Core/Objects/Factory/Support/ObjectDefinitionValueResolver.cs
index 3d2fbd48..114dc6d3 100644
--- a/src/Spring/Spring.Core/Objects/Factory/Support/ObjectDefinitionValueResolver.cs
+++ b/src/Spring/Spring.Core/Objects/Factory/Support/ObjectDefinitionValueResolver.cs
@@ -20,6 +20,7 @@
using System;
using System.Collections;
+using System.Collections.Generic;
using System.Collections.Specialized;
using System.Globalization;
using System.Runtime.Remoting;
@@ -166,7 +167,7 @@ namespace Spring.Objects.Factory.Support
{
ExpressionHolder expHolder = (ExpressionHolder)argumentValue;
object context = null;
- IDictionary variables = null;
+ IDictionary variables = null;
if (expHolder.Properties != null)
{
@@ -180,9 +181,18 @@ namespace Spring.Objects.Factory.Support
? null
: ResolveValueIfNecessary(name, definition, "Variables",
variablesProperty.Value));
+ if (vars is IDictionary)
+ {
+ variables = (IDictionary)vars;
+ }
if (vars is IDictionary)
{
- variables = (IDictionary)vars;
+ IDictionary temp = (IDictionary) vars;
+ variables = new Dictionary(temp.Count);
+ foreach (DictionaryEntry entry in temp)
+ {
+ variables.Add((string) entry.Key, entry.Value);
+ }
}
else
{
@@ -190,7 +200,7 @@ namespace Spring.Objects.Factory.Support
}
}
- if (variables == null) variables = CollectionsUtil.CreateCaseInsensitiveHashtable();
+ if (variables == null) variables = new Dictionary(StringComparer.OrdinalIgnoreCase);
// add 'this' objectfactory reference to variables
variables.Add(Expression.ReservedVariableNames.CurrentObjectFactory, objectFactory);
@@ -199,8 +209,7 @@ namespace Spring.Objects.Factory.Support
else if (argumentValue is IManagedCollection)
{
resolvedValue =
- ((IManagedCollection)argumentValue).Resolve(name, definition, argumentName,
- new ManagedCollectionElementResolver(ResolveValueIfNecessary));
+ ((IManagedCollection)argumentValue).Resolve(name, definition, argumentName, ResolveValueIfNecessary);
}
else if (argumentValue is TypedStringValue)
{
diff --git a/src/Spring/Spring.Core/Objects/Factory/Support/StaticListableObjectFactory.cs b/src/Spring/Spring.Core/Objects/Factory/Support/StaticListableObjectFactory.cs
index 98ead8fd..445fbd52 100644
--- a/src/Spring/Spring.Core/Objects/Factory/Support/StaticListableObjectFactory.cs
+++ b/src/Spring/Spring.Core/Objects/Factory/Support/StaticListableObjectFactory.cs
@@ -20,7 +20,8 @@
using System;
using System.Collections;
-using Spring.Objects.Factory;
+using System.Collections.Generic;
+
using Spring.Objects.Factory.Config;
using Spring.Util;
@@ -56,7 +57,7 @@ namespace Spring.Objects.Factory.Support
///
/// Map from object name to object instance.
///
- private Hashtable objects = new Hashtable();
+ private Dictionary objects = new Dictionary();
///
/// Determine whether this object factory treats object names case-sensitive or not.
@@ -497,7 +498,7 @@ namespace Spring.Objects.Factory.Support
///
/// If there's no such object definition.
///
- public string[] GetAliases(string name)
+ public IList GetAliases(string name)
{
return StringUtils.EmptyStrings;
}
@@ -550,10 +551,10 @@ namespace Spring.Objects.Factory.Support
/// The names of all objects defined in this factory, or an empty array if none
/// are defined.
///
- public string[] GetObjectDefinitionNames()
+ public IList GetObjectDefinitionNames()
{
- ArrayList names = new ArrayList(objects.Keys);
- return (string[])names.ToArray(typeof(string));
+ List names = new List(objects.Keys);
+ return names;
}
///
@@ -574,9 +575,9 @@ namespace Spring.Objects.Factory.Support
/// The names of all objects defined in this factory, or an empty array if none
/// are defined.
///
- public string[] GetObjectDefinitionNames(Type type)
+ public IList GetObjectDefinitionNames(Type type)
{
- ArrayList matches = new ArrayList();
+ List matches = new List();
foreach (string name in objects.Keys)
{
Type t = objects[name].GetType();
@@ -585,7 +586,7 @@ namespace Spring.Objects.Factory.Support
matches.Add(name);
}
}
- return (string[])matches.ToArray(typeof(string));
+ return matches;
}
///
@@ -611,7 +612,7 @@ namespace Spring.Objects.Factory.Support
/// The names of all objects defined in this factory, or an empty array if none
/// are defined.
///
- public string[] GetObjectNamesForType(Type type)
+ public IList GetObjectNamesForType(Type type)
{
return GetObjectNamesForType(type, true, true);
}
@@ -639,7 +640,7 @@ namespace Spring.Objects.Factory.Support
/// The names of all objects defined in this factory, or an empty array if none
/// are defined.
///
- public string[] GetObjectNamesForType()
+ public IList GetObjectNames()
{
return GetObjectNamesForType(typeof(T));
}
@@ -673,11 +674,10 @@ namespace Spring.Objects.Factory.Support
/// are defined.
///
///
- public string[] GetObjectNamesForType(
- Type type, bool includePrototypes, bool includeFactoryObjects)
+ public IList GetObjectNamesForType(Type type, bool includePrototypes, bool includeFactoryObjects)
{
bool isFactoryType = (type != null && typeof(IFactoryObject).IsAssignableFrom(type));
- IList matches = new ArrayList();
+ List matches = new List();
foreach (string name in objects.Keys)
{
object instance = objects[name];
@@ -700,7 +700,7 @@ namespace Spring.Objects.Factory.Support
}
}
}
- return (string[])ArrayList.Adapter(matches).ToArray(typeof(string));
+ return matches;
}
///
@@ -738,7 +738,7 @@ namespace Spring.Objects.Factory.Support
/// The names of all objects defined in this factory, or an empty array if none
/// are defined.
///
- public string[] GetObjectNamesForType(bool includePrototypes, bool includeFactoryObjects)
+ public IList GetObjectNames(bool includePrototypes, bool includeFactoryObjects)
{
return GetObjectNamesForType(typeof(T), includePrototypes, includeFactoryObjects);
}
@@ -783,7 +783,7 @@ namespace Spring.Objects.Factory.Support
///
/// If the objects could not be created.
///
- public IDictionary GetObjectsOfType(Type type)
+ public IDictionary GetObjectsOfType(Type type)
{
return GetObjectsOfType(type, true, true);
}
@@ -815,9 +815,11 @@ namespace Spring.Objects.Factory.Support
///
/// If the objects could not be created.
///
- public IDictionary GetObjectsOfType()
+ public IDictionary GetObjects()
{
- return GetObjectsOfType(typeof(T));
+ Dictionary collector = new Dictionary();
+ DoGetObjectsOfType(typeof(T), true, true, collector);
+ return collector;
}
///
@@ -846,10 +848,16 @@ namespace Spring.Objects.Factory.Support
///
/// If the objects could not be created.
///
- public IDictionary GetObjectsOfType(Type type, bool includePrototypes, bool includeFactoryObjects)
+ public IDictionary GetObjectsOfType(Type type, bool includePrototypes, bool includeFactoryObjects)
+ {
+ Dictionary collector = new Dictionary();
+ DoGetObjectsOfType(type, includeFactoryObjects, includePrototypes, collector);
+ return collector;
+ }
+
+ private void DoGetObjectsOfType(Type type, bool includeFactoryObjects, bool includePrototypes, IDictionary collector)
{
bool isFactoryType = (type != null && typeof(IFactoryObject).IsAssignableFrom(type));
- IDictionary matches = new Hashtable();
foreach (string name in objects.Keys)
{
object instance = objects[name];
@@ -864,7 +872,7 @@ namespace Spring.Objects.Factory.Support
object createdObject = GetObject(name);
if (type.IsInstanceOfType(createdObject))
{
- matches[name] = createdObject;
+ collector[name] = createdObject;
}
}
}
@@ -872,15 +880,14 @@ namespace Spring.Objects.Factory.Support
{
if (isFactoryType)
{
- matches[ObjectFactoryUtils.BuildFactoryObjectName(name)] = instance;
+ collector[ObjectFactoryUtils.BuildFactoryObjectName(name)] = instance;
}
else
{
- matches[name] = instance;
+ collector[name] = instance;
}
}
}
- return matches;
}
///
@@ -894,12 +901,12 @@ namespace Spring.Objects.Factory.Support
/// The (class or interface) to match.
///
///
- /// Whether to include prototype objects too or just singletons (also applies to
- /// s).
+ /// Whether to include prototype objects too or just singletons (also applies to
+ /// s).
///
///
- /// Whether to include s too
- /// or just normal objects.
+ /// Whether to include s too
+ /// or just normal objects.
///
///
/// A of the matching objects,
@@ -909,9 +916,11 @@ namespace Spring.Objects.Factory.Support
///
/// If the objects could not be created.
///
- public IDictionary GetObjectsOfType(bool includePrototypes, bool includeFactoryObjects)
+ public IDictionary GetObjects(bool includePrototypes, bool includeFactoryObjects)
{
- return GetObjectsOfType(typeof(T), includePrototypes, includeFactoryObjects);
+ Dictionary collector = new Dictionary();
+ DoGetObjectsOfType(typeof(T), includeFactoryObjects, includePrototypes, collector);
+ return collector;
}
///
@@ -945,13 +954,13 @@ namespace Spring.Objects.Factory.Support
///
public T GetObject()
{
- string[] objectNamesForType = GetObjectNamesForType(typeof(T));
- if ((objectNamesForType == null) || (objectNamesForType.Length == 0))
+ IList objectNamesForType = GetObjectNamesForType(typeof(T));
+ if ((objectNamesForType == null) || (objectNamesForType.Count == 0))
{
throw new NoSuchObjectDefinitionException(typeof(T).FullName, "Requested Type not Defined in the Context.");
}
- if (objectNamesForType.Length > 1)
+ if (objectNamesForType.Count > 1)
{
throw new ObjectDefinitionStoreException(string.Format("More than one definition for {0} found in the Context.", typeof(T).FullName));
}
diff --git a/src/Spring/Spring.Core/Objects/Factory/Xml/NamespaceParserSupport.cs b/src/Spring/Spring.Core/Objects/Factory/Xml/NamespaceParserSupport.cs
index 7278f2cf..86294bc3 100644
--- a/src/Spring/Spring.Core/Objects/Factory/Xml/NamespaceParserSupport.cs
+++ b/src/Spring/Spring.Core/Objects/Factory/Xml/NamespaceParserSupport.cs
@@ -18,7 +18,7 @@
#endregion
-using System.Collections;
+using System.Collections.Generic;
using System.Xml;
using Spring.Objects.Factory.Config;
using Spring.Util;
@@ -37,7 +37,7 @@ namespace Spring.Objects.Factory.Xml
public abstract class NamespaceParserSupport : INamespaceParser
{
- private readonly IDictionary objectParsers = new Hashtable();
+ private readonly IDictionary objectParsers = new Dictionary();
#region IXmlObjectDefinitionParser Members
@@ -94,8 +94,8 @@ namespace Spring.Objects.Factory.Xml
private IObjectDefinitionParser FindParserForElement(XmlElement element, ParserContext parserContext)
{
- IObjectDefinitionParser parser = objectParsers[element.LocalName] as IObjectDefinitionParser;
- if (parser == null)
+ IObjectDefinitionParser parser;
+ if (!objectParsers.TryGetValue(element.LocalName, out parser))
{
parserContext.ReaderContext.ReportException(element, "unknown object name", "Cannot locate IObjectDefinitionParser for element ["
+ element.LocalName + "]");
diff --git a/src/Spring/Spring.Core/Objects/Factory/Xml/ObjectDefinitionParserHelper.cs b/src/Spring/Spring.Core/Objects/Factory/Xml/ObjectDefinitionParserHelper.cs
index 20b68990..d4a64c38 100644
--- a/src/Spring/Spring.Core/Objects/Factory/Xml/ObjectDefinitionParserHelper.cs
+++ b/src/Spring/Spring.Core/Objects/Factory/Xml/ObjectDefinitionParserHelper.cs
@@ -19,12 +19,12 @@
#endregion
using System;
-using System.Collections;
+using System.Collections.Generic;
using System.Globalization;
-using System.Reflection;
using System.Xml;
+
using Common.Logging;
-using Spring.Collections;
+
using Spring.Objects.Factory.Config;
using Spring.Objects.Factory.Support;
using Spring.Util;
@@ -55,7 +55,7 @@ namespace Spring.Objects.Factory.Xml
private readonly ObjectsNamespaceParser objectsNamespaceParser;
- private readonly ISet usedNames = new HashedSet();
+ private readonly HashSet usedNames = new HashSet();
#endregion
@@ -258,7 +258,7 @@ namespace Spring.Objects.Factory.Xml
{
string id = GetAttributeValue(element, ObjectDefinitionConstants.IdAttribute);
string nameAttr = GetAttributeValue(element, ObjectDefinitionConstants.NameAttribute);
- ArrayList aliases = new ArrayList();
+ List aliases = new List();
if (StringUtils.HasText(nameAttr))
{
aliases.AddRange(GetObjectNames(nameAttr));
@@ -274,7 +274,7 @@ namespace Spring.Objects.Factory.Xml
aliases.RemoveAt(0);
if (log.IsDebugEnabled)
{
- log.Debug(string.Format("No XML 'id' specified using '{0}' as object name and '{1}' as aliases", objectName, string.Join(",", (string[]) aliases.ToArray(typeof(string)))));
+ log.Debug(string.Format("No XML 'id' specified using '{0}' as object name and '{1}' as aliases", objectName, string.Join(",", aliases.ToArray())));
}
}
}
@@ -322,8 +322,8 @@ namespace Spring.Objects.Factory.Xml
#endregion
}
- string[] aliasesArray = (string[])aliases.ToArray(typeof(string));
- return CreateObjectDefinitionHolder(element, definition, objectName, aliasesArray);
+
+ return CreateObjectDefinitionHolder(element, definition, objectName, aliases);
}
return null;
}
@@ -334,9 +334,9 @@ namespace Spring.Objects.Factory.Xml
///
/// This method may be used as a last resort to post-process an object definition before it gets added to the registry.
///
- protected virtual ObjectDefinitionHolder CreateObjectDefinitionHolder(XmlElement element, IConfigurableObjectDefinition definition, string objectName, string[] aliasesArray)
+ protected virtual ObjectDefinitionHolder CreateObjectDefinitionHolder(XmlElement element, IConfigurableObjectDefinition definition, string objectName, IList aliases)
{
- return new ObjectDefinitionHolder(definition, objectName, aliasesArray);
+ return new ObjectDefinitionHolder(definition, objectName, aliases);
}
///
@@ -351,7 +351,7 @@ namespace Spring.Objects.Factory.Xml
/// the currently processed element.
/// the containing object definition, may be null
/// the new object name to be used.
- protected virtual string PostProcessObjectNameAndAliases(string objectName, ArrayList aliases, XmlElement element, IObjectDefinition containingDefinition)
+ protected virtual string PostProcessObjectNameAndAliases(string objectName, List aliases, XmlElement element, IObjectDefinition containingDefinition)
{
if (!StringUtils.HasText(objectName) && aliases.Count == 0)
{
@@ -367,7 +367,7 @@ namespace Spring.Objects.Factory.Xml
///
/// Validate that the specified object name and aliases have not been used already.
///
- protected virtual void CheckNameUniqueness(string objectName, ArrayList aliases, XmlElement element)
+ protected virtual void CheckNameUniqueness(string objectName, List aliases, XmlElement element)
{
string foundName = null;
@@ -385,7 +385,10 @@ namespace Spring.Objects.Factory.Xml
}
this.usedNames.Add(objectName);
- this.usedNames.AddAll(aliases);
+ foreach (string alias in aliases)
+ {
+ this.usedNames.Add(alias);
+ }
}
///
diff --git a/src/Spring/Spring.Core/Objects/Factory/Xml/ObjectsNamespaceParser.cs b/src/Spring/Spring.Core/Objects/Factory/Xml/ObjectsNamespaceParser.cs
index 49380724..4f2a34a8 100644
--- a/src/Spring/Spring.Core/Objects/Factory/Xml/ObjectsNamespaceParser.cs
+++ b/src/Spring/Spring.Core/Objects/Factory/Xml/ObjectsNamespaceParser.cs
@@ -22,16 +22,15 @@
using System;
using System.Collections;
+using System.Collections.Generic;
using System.Collections.Specialized;
using System.Globalization;
using System.IO;
-using System.Text;
using System.Xml;
-using System.Xml.Schema;
+
using Common.Logging;
using Spring.Collections;
-using Spring.Core;
using Spring.Core.IO;
using Spring.Core.TypeResolution;
using Spring.Objects.Factory.Config;
@@ -407,7 +406,7 @@ namespace Spring.Objects.Factory.Xml
/// A calculated object definition id.
///
[Obsolete("This method will be dropped, override ObjectDefinitionParserHelper.PostProcessObjectNameAndAliases instead", false)]
- protected internal virtual string CalculateId(XmlElement element, ArrayList aliases)
+ protected internal virtual string CalculateId(XmlElement element, List aliases)
{
return null;
}
diff --git a/src/Spring/Spring.Core/Objects/IPropertyValues.cs b/src/Spring/Spring.Core/Objects/IPropertyValues.cs
index 34416d06..f9876ac3 100644
--- a/src/Spring/Spring.Core/Objects/IPropertyValues.cs
+++ b/src/Spring/Spring.Core/Objects/IPropertyValues.cs
@@ -21,6 +21,7 @@
#region Imports
using System.Collections;
+using System.Collections.Generic;
#endregion
@@ -41,7 +42,7 @@ namespace Spring.Objects
/// An array of the objects held
/// in this object.
///
- PropertyValue [] PropertyValues
+ IList PropertyValues
{
get;
}
diff --git a/src/Spring/Spring.Core/Objects/MutablePropertyValues.cs b/src/Spring/Spring.Core/Objects/MutablePropertyValues.cs
index 5f7b989b..4583bd74 100644
--- a/src/Spring/Spring.Core/Objects/MutablePropertyValues.cs
+++ b/src/Spring/Spring.Core/Objects/MutablePropertyValues.cs
@@ -22,6 +22,7 @@
using System;
using System.Collections;
+using System.Collections.Generic;
using System.Globalization;
using System.Text;
using Spring.Util;
@@ -53,7 +54,7 @@ namespace Spring.Objects
///
/// The list of objects.
///
- private IList propertyValuesList = new ArrayList();
+ private List propertyValuesList = new List();
#endregion
@@ -69,8 +70,8 @@ namespace Spring.Objects
/// s can be added with the various
/// overloaded ,
/// ,
- /// ,
- /// and
+ /// ,
+ /// and
/// methods.
///
///
@@ -95,7 +96,7 @@ namespace Spring.Objects
{
if (other != null)
{
- AddAll (other.PropertyValues);
+ AddAll(other.PropertyValues);
}
}
@@ -107,7 +108,7 @@ namespace Spring.Objects
/// The with property values
/// keyed by property name, which must be a .
///
- public MutablePropertyValues (IDictionary map)
+ public MutablePropertyValues (IDictionary map)
{
AddAll (map);
}
@@ -119,9 +120,9 @@ namespace Spring.Objects
///
/// Property to retrieve the array of property values.
///
- public PropertyValue[] PropertyValues
+ public IList PropertyValues
{
- get { return (PropertyValue[]) ArrayList.Adapter (propertyValuesList).ToArray (typeof (PropertyValue)); }
+ get { return propertyValuesList; }
}
#endregion
@@ -153,7 +154,7 @@ namespace Spring.Objects
{
for (int i = 0; i < propertyValuesList.Count; ++i)
{
- PropertyValue currentPv = (PropertyValue) propertyValuesList [i];
+ PropertyValue currentPv = propertyValuesList [i];
if (currentPv.Name.Equals (pv.Name))
{
pv = MergeIfRequired(pv, currentPv);
@@ -195,13 +196,13 @@ namespace Spring.Objects
/// The map of property values, the keys of which must be
/// s.
///
- public void AddAll (IDictionary map)
+ public void AddAll (IDictionary map)
{
if (map != null)
{
- foreach (string key in map.Keys)
+ foreach (KeyValuePair pair in map)
{
- Add (new PropertyValue (key, map [key]));
+ Add (new PropertyValue (pair.Key, pair.Value));
}
}
}
@@ -213,7 +214,7 @@ namespace Spring.Objects
///
/// The list of s to be added.
///
- public void AddAll (IList values)
+ public void AddAll(IList values)
{
if (values != null)
{
@@ -356,10 +357,10 @@ namespace Spring.Objects
///
public override string ToString ()
{
- PropertyValue[] pvs = PropertyValues;
+ IList pvs = PropertyValues;
StringBuilder sb
= new StringBuilder (
- "MutablePropertyValues: length=").Append (pvs.Length).Append ("; ");
+ "MutablePropertyValues: length=").Append (pvs.Count).Append ("; ");
sb.Append (StringUtils.ArrayToDelimitedString (pvs, ","));
return sb.ToString ();
}
diff --git a/src/Spring/Spring.Core/Objects/ObjectWrapper.cs b/src/Spring/Spring.Core/Objects/ObjectWrapper.cs
index 56a5ce3b..21548822 100644
--- a/src/Spring/Spring.Core/Objects/ObjectWrapper.cs
+++ b/src/Spring/Spring.Core/Objects/ObjectWrapper.cs
@@ -20,6 +20,7 @@
using System;
using System.Collections;
+using System.Collections.Generic;
using System.ComponentModel;
using System.Reflection;
using System.Text;
@@ -331,7 +332,7 @@ namespace Spring.Objects
///
public virtual void SetPropertyValues(IPropertyValues propertyValues, bool ignoreUnknown)
{
- ArrayList propertyAccessExceptions = new ArrayList();
+ List propertyAccessExceptions = new List();
foreach (PropertyValue pv in propertyValues)
{
try
@@ -374,8 +375,7 @@ namespace Spring.Objects
// if we encountered individual exceptions, throw the composite exception...
if (propertyAccessExceptions.Count > 0)
{
- throw new PropertyAccessExceptionsException(this,
- (PropertyAccessException[]) propertyAccessExceptions.ToArray(typeof(PropertyAccessException)));
+ throw new PropertyAccessExceptionsException(this, propertyAccessExceptions.ToArray());
}
}
diff --git a/src/Spring/Spring.Core/Objects/PropertyAccessExceptionsException.cs b/src/Spring/Spring.Core/Objects/PropertyAccessExceptionsException.cs
index 817e6d28..3a167f59 100644
--- a/src/Spring/Spring.Core/Objects/PropertyAccessExceptionsException.cs
+++ b/src/Spring/Spring.Core/Objects/PropertyAccessExceptionsException.cs
@@ -102,10 +102,7 @@ namespace Spring.Objects
: base(string.Empty)
{
_objectWrapper = objectWrapper;
- _propertyAccessExceptions
- = propertyAccessExceptions == null ?
- EmptyPropertyAccessExceptions :
- propertyAccessExceptions;
+ _propertyAccessExceptions = propertyAccessExceptions ?? EmptyPropertyAccessExceptions;
}
///
diff --git a/src/Spring/Spring.Core/Objects/Support/MethodInvoker.cs b/src/Spring/Spring.Core/Objects/Support/MethodInvoker.cs
index b257cd45..3d935005 100644
--- a/src/Spring/Spring.Core/Objects/Support/MethodInvoker.cs
+++ b/src/Spring/Spring.Core/Objects/Support/MethodInvoker.cs
@@ -22,6 +22,7 @@
using System;
using System.Collections;
+using System.Collections.Generic;
using System.Globalization;
using System.Reflection;
@@ -330,7 +331,7 @@ namespace Spring.Objects.Support
// lets slot in all of the named arguments first...
ParameterInfo[] parameters = _methodObject.GetParameters();
// lets figure out the index og each of the method parameters...
- IDictionary argumentNamesToIndexes = new Hashtable();
+ IDictionary argumentNamesToIndexes = new Dictionary();
for (int i = 0; i < parameters.Length; ++i)
{
ParameterInfo parameter = parameters[i];
@@ -341,7 +342,7 @@ namespace Spring.Objects.Support
{
string argumentName = ((string) namedArgument.Key).ToLower(CultureInfo.InvariantCulture);
object argumentValue = namedArgument.Value;
- if (!argumentNamesToIndexes.Contains(argumentName))
+ if (!argumentNamesToIndexes.ContainsKey(argumentName))
{
// whoa (Nelly); the named argument does not exist on the method...
throw new ArgumentException(string.Format(
@@ -358,7 +359,7 @@ namespace Spring.Objects.Support
}
// and then fill in any remaining blanks with the plain vanilla arguments...
int plainVanillaIndex = 0;
- int[] sortedIndexes = (int[]) new ArrayList(argumentNamesToIndexes.Values).ToArray(typeof (int));
+ int[] sortedIndexes = new List(argumentNamesToIndexes.Values).ToArray();
Array.Sort(sortedIndexes);
foreach (int argumentIndex in sortedIndexes)
{
@@ -431,8 +432,7 @@ namespace Spring.Objects.Support
new MemberFilter(new CriteriaMemberFilter().FilterMemberByCriteria),
searchCriteria);
- if (matchingMethods == null
- || matchingMethods.Length == 0)
+ if (matchingMethods.Length == 0)
{
throw new MissingMethodException(targetType.Name, TargetMethod);
}
diff --git a/src/Spring/Spring.Core/Proxy/AbstractProxyTypeBuilder.cs b/src/Spring/Spring.Core/Proxy/AbstractProxyTypeBuilder.cs
index 3fac325c..ea861e29 100644
--- a/src/Spring/Spring.Core/Proxy/AbstractProxyTypeBuilder.cs
+++ b/src/Spring/Spring.Core/Proxy/AbstractProxyTypeBuilder.cs
@@ -22,6 +22,7 @@
using System;
using System.Collections;
+using System.Collections.Generic;
using System.Reflection;
using System.Reflection.Emit;
using System.Runtime.Serialization;
@@ -61,7 +62,7 @@ namespace Spring.Proxy
private string _name;
private Type _targetType;
private Type _baseType = typeof (object);
- private Type[] _interfaces;
+ private IList _interfaces;
private bool _proxyTargetAttributes = true;
private IList _typeAttributes = new ArrayList();
private IDictionary _memberAttributes = new Hashtable();
@@ -125,7 +126,7 @@ namespace Spring.Proxy
/// The default value of this property is all the interfaces
/// implemented or inherited by the target type.
///
- public Type[] Interfaces
+ public IList Interfaces
{
get
{
@@ -348,8 +349,7 @@ namespace Spring.Proxy
{
ArrayList attributes = new ArrayList();
- if (this.ProxyTargetAttributes &&
- !type.Equals(typeof(object)))
+ if (this.ProxyTargetAttributes && !type.Equals(typeof(object)))
{
// add attributes that apply to the target type
attributes.AddRange(ReflectionUtils.GetCustomAttributes(type));
@@ -470,8 +470,7 @@ namespace Spring.Proxy
object[] attrs = paramInfo.GetCustomAttributes(false);
try
{
- System.Collections.Generic.IList attrsData =
- CustomAttributeData.GetCustomAttributes(paramInfo);
+ IList attrsData = CustomAttributeData.GetCustomAttributes(paramInfo);
if (attrs.Length != attrsData.Count)
{
@@ -643,7 +642,7 @@ namespace Spring.Proxy
IProxyMethodBuilder proxyMethodBuilder, Type intf,
Type targetType, bool proxyVirtualMethods)
{
- IDictionary methodMap = new Hashtable();
+ Dictionary methodMap = new Dictionary();
InterfaceMapping mapping = GetInterfaceMapping(targetType, intf);
@@ -773,8 +772,7 @@ namespace Spring.Proxy
protected virtual void InheritType(TypeBuilder typeBuilder,
IProxyMethodBuilder proxyMethodBuilder, Type type, bool declaredMembersOnly)
{
- IDictionary methodMap = new Hashtable();
- IList finalMethods = new ArrayList();
+ IDictionary methodMap = new Dictionary();
BindingFlags bindingFlags = BindingFlags.Public | BindingFlags.Instance | BindingFlags.NonPublic;
if (declaredMembersOnly)
@@ -816,10 +814,12 @@ namespace Spring.Proxy
/// The property to proxy.
/// The implemented methods map.
protected virtual void ImplementProperty(
- TypeBuilder typeBuilder, Type type, PropertyInfo property, IDictionary methodMap)
+ TypeBuilder typeBuilder, Type type, PropertyInfo property, IDictionary methodMap)
{
- MethodBuilder getMethod = methodMap["get_" + property.Name] as MethodBuilder;
- MethodBuilder setMethod = methodMap["set_" + property.Name] as MethodBuilder;
+ MethodBuilder getMethod;
+ methodMap.TryGetValue("get_" + property.Name, out getMethod);
+ MethodBuilder setMethod;
+ methodMap.TryGetValue("set_" + property.Name, out setMethod);
if (getMethod != null || setMethod != null)
{
@@ -842,18 +842,19 @@ namespace Spring.Proxy
}
}
- ///
- /// Implements the specified event.
- ///
- /// The type builder to use.
- /// The type the event is defined on.
- /// The event to proxy.
- /// The implemented methods map.
- protected virtual void ImplementEvent(
- TypeBuilder typeBuilder, Type type, EventInfo evt, IDictionary methodMap)
+ ///
+ /// Implements the specified event.
+ ///
+ /// The type builder to use.
+ /// The type the event is defined on.
+ /// The event to proxy.
+ /// The implemented methods map.
+ protected virtual void ImplementEvent(TypeBuilder typeBuilder, Type type, EventInfo evt, IDictionary methodMap)
{
- MethodBuilder addOnMethod = methodMap["add_" + evt.Name] as MethodBuilder;
- MethodBuilder removeOnMethod = methodMap["remove_" + evt.Name] as MethodBuilder;
+ MethodBuilder addOnMethod;
+ methodMap.TryGetValue("add_" + evt.Name, out addOnMethod);
+ MethodBuilder removeOnMethod;
+ methodMap.TryGetValue("remove_" + evt.Name, out removeOnMethod);
if (addOnMethod != null && removeOnMethod != null)
{
@@ -872,24 +873,24 @@ namespace Spring.Proxy
#endregion
- ///
- /// Returns an array of s that represent
- /// the proxiable interfaces.
- ///
- ///
- /// An interface is proxiable if it's not marked with the
- /// .
- ///
- ///
- /// The array of interfaces from which
- /// we want to get the proxiable interfaces.
- ///
- ///
- /// An array containing the interface s.
- ///
- protected virtual Type[] GetProxiableInterfaces(Type[] interfaces)
+ ///
+ /// Returns an array of s that represent
+ /// the proxiable interfaces.
+ ///
+ ///
+ /// An interface is proxiable if it's not marked with the
+ /// .
+ ///
+ ///
+ /// The array of interfaces from which
+ /// we want to get the proxiable interfaces.
+ ///
+ ///
+ /// An array containing the interface s.
+ ///
+ protected virtual IList GetProxiableInterfaces(IList interfaces)
{
- ArrayList proxiableInterfaces = new ArrayList();
+ List proxiableInterfaces = new List();
foreach(Type intf in interfaces)
{
@@ -913,7 +914,7 @@ namespace Spring.Proxy
}
}
- return (Type[]) proxiableInterfaces.ToArray(typeof(Type));
+ return proxiableInterfaces;
}
///
diff --git a/src/Spring/Spring.Core/Proxy/CompositionProxyTypeBuilder.cs b/src/Spring/Spring.Core/Proxy/CompositionProxyTypeBuilder.cs
index 9a0059ff..8e9ad773 100644
--- a/src/Spring/Spring.Core/Proxy/CompositionProxyTypeBuilder.cs
+++ b/src/Spring/Spring.Core/Proxy/CompositionProxyTypeBuilder.cs
@@ -102,7 +102,7 @@ namespace Spring.Proxy
///
public override Type BuildProxyType()
{
- if (Interfaces == null || Interfaces.Length == 0)
+ if (Interfaces == null || Interfaces.Count == 0)
{
throw new ArgumentException(
"Composition proxy target must implement at least one interface.");
diff --git a/src/Spring/Spring.Core/Proxy/IProxyTypeBuilder.cs b/src/Spring/Spring.Core/Proxy/IProxyTypeBuilder.cs
index f2cf8e2b..a88e8e6e 100644
--- a/src/Spring/Spring.Core/Proxy/IProxyTypeBuilder.cs
+++ b/src/Spring/Spring.Core/Proxy/IProxyTypeBuilder.cs
@@ -22,6 +22,7 @@
using System;
using System.Collections;
+using System.Collections.Generic;
#endregion
@@ -60,7 +61,7 @@ namespace Spring.Proxy
///
/// Gets or sets the list of interfaces proxy should implement.
///
- Type[] Interfaces { get; set; }
+ IList Interfaces { get; set; }
///
/// Should we proxy target attributes?
diff --git a/src/Spring/Spring.Core/Reflection/Dynamic/DynamicConstructor.cs b/src/Spring/Spring.Core/Reflection/Dynamic/DynamicConstructor.cs
index 14bf3ab9..53f2702c 100644
--- a/src/Spring/Spring.Core/Reflection/Dynamic/DynamicConstructor.cs
+++ b/src/Spring/Spring.Core/Reflection/Dynamic/DynamicConstructor.cs
@@ -20,7 +20,7 @@
#region Imports
-using System.Collections;
+using System.Collections.Generic;
using System.Reflection;
using Spring.Util;
@@ -65,15 +65,15 @@ namespace Spring.Reflection.Dynamic
#region Generated Function Cache
- private static readonly IDictionary constructorCache = new Hashtable();
+ private static readonly IDictionary constructorCache = new Dictionary();
///
/// Obtains cached constructor info or creates a new entry, if none is found.
///
private static ConstructorDelegate GetOrCreateDynamicConstructor(ConstructorInfo constructorInfo)
{
- ConstructorDelegate method = (ConstructorDelegate)constructorCache[constructorInfo];
- if (method == null)
+ ConstructorDelegate method;
+ if (!constructorCache.TryGetValue(constructorInfo, out method))
{
method = DynamicReflectionManager.CreateConstructor(constructorInfo);
lock (constructorCache)
diff --git a/src/Spring/Spring.Core/Reflection/Dynamic/DynamicField.cs b/src/Spring/Spring.Core/Reflection/Dynamic/DynamicField.cs
index 2ad5de97..c362d373 100644
--- a/src/Spring/Spring.Core/Reflection/Dynamic/DynamicField.cs
+++ b/src/Spring/Spring.Core/Reflection/Dynamic/DynamicField.cs
@@ -20,7 +20,7 @@
#region Imports
-using System.Collections;
+using System.Collections.Generic;
using System.Reflection;
using Spring.Util;
@@ -76,7 +76,7 @@ namespace Spring.Reflection.Dynamic
#region Cache
- private static readonly IDictionary fieldCache = new Hashtable();
+ private static readonly IDictionary fieldCache = new Dictionary();
///
/// Holds cached Getter/Setter delegates for a Field
@@ -98,8 +98,8 @@ namespace Spring.Reflection.Dynamic
///
private static DynamicFieldCacheEntry GetOrCreateDynamicField(FieldInfo field)
{
- DynamicFieldCacheEntry fieldInfo = (DynamicFieldCacheEntry)fieldCache[field];
- if (fieldInfo == null)
+ DynamicFieldCacheEntry fieldInfo;
+ if (!fieldCache.TryGetValue(field, out fieldInfo))
{
fieldInfo = new DynamicFieldCacheEntry(DynamicReflectionManager.CreateFieldGetter(field), DynamicReflectionManager.CreateFieldSetter(field));
lock (fieldCache)
diff --git a/src/Spring/Spring.Core/Reflection/Dynamic/DynamicProperty.cs b/src/Spring/Spring.Core/Reflection/Dynamic/DynamicProperty.cs
index 563f686f..d4198631 100644
--- a/src/Spring/Spring.Core/Reflection/Dynamic/DynamicProperty.cs
+++ b/src/Spring/Spring.Core/Reflection/Dynamic/DynamicProperty.cs
@@ -20,9 +20,11 @@
#region Imports
-using System.Collections;
+using System.Collections.Generic;
using System.Reflection;
+
using Common.Logging;
+
using Spring.Util;
#endregion
@@ -103,7 +105,7 @@ namespace Spring.Reflection.Dynamic
#region Cache
- private static readonly IDictionary propertyCache = new Hashtable();
+ private static readonly IDictionary propertyCache = new Dictionary();
///
/// Holds cached Getter/Setter delegates for a Property
@@ -125,8 +127,8 @@ namespace Spring.Reflection.Dynamic
///
private static DynamicPropertyCacheEntry GetOrCreateDynamicProperty(PropertyInfo property)
{
- DynamicPropertyCacheEntry propertyInfo = (DynamicPropertyCacheEntry)propertyCache[property];
- if (propertyInfo == null)
+ DynamicPropertyCacheEntry propertyInfo;
+ if (!propertyCache.TryGetValue(property, out propertyInfo))
{
propertyInfo = new DynamicPropertyCacheEntry(DynamicReflectionManager.CreatePropertyGetter(property), DynamicReflectionManager.CreatePropertySetter(property));
lock (propertyCache)
diff --git a/src/Spring/Spring.Core/Reflection/Dynamic/DynamicReflectionManager.cs b/src/Spring/Spring.Core/Reflection/Dynamic/DynamicReflectionManager.cs
index 19300dce..5a8fc56a 100644
--- a/src/Spring/Spring.Core/Reflection/Dynamic/DynamicReflectionManager.cs
+++ b/src/Spring/Spring.Core/Reflection/Dynamic/DynamicReflectionManager.cs
@@ -22,6 +22,7 @@
using System;
using System.Collections;
+using System.Collections.Generic;
using System.Diagnostics;
using System.Reflection;
using System.Reflection.Emit;
@@ -126,27 +127,32 @@ namespace Spring.Reflection.Dynamic
///
/// Cache for dynamic property types.
///
- private readonly static IDictionary propertyCache = new Hashtable();
+ private readonly static IDictionary propertyCache = new Dictionary();
+ private readonly static object propertyCacheLock = new object();
///
/// Cache for dynamic field types.
///
- private readonly static IDictionary fieldCache = new Hashtable();
+ private readonly static IDictionary fieldCache = new Dictionary();
+ private readonly static object fieldCacheLock = new object();
///
/// Cache for dynamic indexer types.
///
- private readonly static IDictionary indexerCache = new Hashtable();
+ private readonly static IDictionary indexerCache = new Dictionary();
+ private readonly static object indexerCacheLock = new object();
///
/// Cache for dynamic method types.
///
- private readonly static IDictionary methodCache = new Hashtable();
+ private readonly static IDictionary methodCache = new Dictionary();
+ private readonly static object methodCacheLock = new object();
///
/// Cache for dynamic constructor types.
///
- private readonly static IDictionary constructorCache = new Hashtable();
+ private readonly static IDictionary constructorCache = new Dictionary();
+ private readonly static object constructorCacheLock = new object();
#endregion
@@ -175,10 +181,10 @@ namespace Spring.Reflection.Dynamic
/// An for the given property info.
internal static IDynamicProperty GetDynamicProperty(PropertyInfo property, CreatePropertyCallback createCallback)
{
- lock (propertyCache.SyncRoot)
+ lock (propertyCacheLock)
{
- IDynamicProperty dynamicProperty = (IDynamicProperty)propertyCache[property];
- if (dynamicProperty == null)
+ IDynamicProperty dynamicProperty;
+ if (!propertyCache.TryGetValue(property, out dynamicProperty))
{
dynamicProperty = createCallback(property);
propertyCache[property] = dynamicProperty;
@@ -195,10 +201,10 @@ namespace Spring.Reflection.Dynamic
/// An for the given field info.
internal static IDynamicField GetDynamicField(FieldInfo field, CreateFieldCallback createCallback)
{
- lock (fieldCache.SyncRoot)
+ lock (fieldCacheLock)
{
- IDynamicField dynamicField = (IDynamicField)fieldCache[field];
- if (dynamicField == null)
+ IDynamicField dynamicField;
+ if (!fieldCache.TryGetValue(field, out dynamicField))
{
dynamicField = createCallback(field);
fieldCache[field] = dynamicField;
@@ -215,10 +221,10 @@ namespace Spring.Reflection.Dynamic
/// An for the given indexer.
internal static IDynamicIndexer GetDynamicIndexer(PropertyInfo indexer, CreateIndexerCallback createCallback)
{
- lock (indexerCache.SyncRoot)
+ lock (indexerCacheLock)
{
- IDynamicIndexer dynamicIndexer = (IDynamicIndexer)indexerCache[indexer];
- if (dynamicIndexer == null)
+ IDynamicIndexer dynamicIndexer;
+ if (!indexerCache.TryGetValue(indexer, out dynamicIndexer))
{
dynamicIndexer = createCallback(indexer);
indexerCache[indexer] = dynamicIndexer;
@@ -235,10 +241,10 @@ namespace Spring.Reflection.Dynamic
/// An for the given method.
internal static IDynamicMethod GetDynamicMethod(MethodInfo method, CreateMethodCallback createCallback)
{
- lock (methodCache.SyncRoot)
+ lock (methodCacheLock)
{
- IDynamicMethod dynamicMethod = (IDynamicMethod)methodCache[method];
- if (dynamicMethod == null)
+ IDynamicMethod dynamicMethod;
+ if (!methodCache.TryGetValue(method, out dynamicMethod))
{
dynamicMethod = createCallback(method);
methodCache[method] = dynamicMethod;
@@ -255,10 +261,10 @@ namespace Spring.Reflection.Dynamic
/// An for the given constructor.
internal static IDynamicConstructor GetDynamicConstructor(ConstructorInfo constructor, CreateConstructorCallback createCallback)
{
- lock (constructorCache.SyncRoot)
+ lock (constructorCacheLock)
{
- IDynamicConstructor dynamicConstructor = (IDynamicConstructor)constructorCache[constructor];
- if (dynamicConstructor == null)
+ IDynamicConstructor dynamicConstructor;
+ if (!constructorCache.TryGetValue(constructor, out dynamicConstructor))
{
dynamicConstructor = createCallback(constructor);
constructorCache[constructor] = dynamicConstructor;
diff --git a/src/Spring/Spring.Core/Spring.Core.2008.csproj b/src/Spring/Spring.Core/Spring.Core.2008.csproj
index dae1a802..41e0f086 100644
--- a/src/Spring/Spring.Core/Spring.Core.2008.csproj
+++ b/src/Spring/Spring.Core/Spring.Core.2008.csproj
@@ -93,6 +93,9 @@
+
+ 3.5
+
diff --git a/src/Spring/Spring.Core/Util/EventUtils.cs b/src/Spring/Spring.Core/Util/EventUtils.cs
index 5b2e822e..6d897724 100644
--- a/src/Spring/Spring.Core/Util/EventUtils.cs
+++ b/src/Spring/Spring.Core/Util/EventUtils.cs
@@ -19,9 +19,10 @@
#endregion
using System;
-using System.Collections;
+using System.Collections.Generic;
using System.Diagnostics;
using System.Reflection;
+
using Common.Logging;
namespace Spring.Util
@@ -34,11 +35,11 @@ namespace Spring.Util
{
protected class EventExceptionsCollector : IEventExceptionsCollector
{
- private readonly Hashtable _eventExceptions;
+ private readonly Dictionary _eventExceptions;
public EventExceptionsCollector()
{
- _eventExceptions = new Hashtable();
+ _eventExceptions = new Dictionary();
}
public bool HasExceptions
@@ -46,19 +47,24 @@ namespace Spring.Util
get { return _eventExceptions.Count > 0; }
}
- public Delegate[] Sources
+ public IList Sources
{
- get { return (Delegate[]) CollectionUtils.ToArray(_eventExceptions.Keys, typeof(Delegate)); }
+ get { return new List(_eventExceptions.Keys); }
}
- public Exception[] Exceptions
+ public IList Exceptions
{
- get { return (Exception[]) CollectionUtils.ToArray(_eventExceptions.Values, typeof (Exception)); }
+ get { return new List(_eventExceptions.Values); }
}
public Exception this[Delegate source]
{
- get { return (Exception) _eventExceptions[source]; }
+ get
+ {
+ Exception exception;
+ _eventExceptions.TryGetValue(source, out exception);
+ return exception;
+ }
}
public void Add(Delegate source, Exception exception)
diff --git a/src/Spring/Spring.Core/Util/IEventExceptionsCollector.cs b/src/Spring/Spring.Core/Util/IEventExceptionsCollector.cs
index bf6cc365..710f1cf6 100644
--- a/src/Spring/Spring.Core/Util/IEventExceptionsCollector.cs
+++ b/src/Spring/Spring.Core/Util/IEventExceptionsCollector.cs
@@ -1,12 +1,13 @@
using System;
+using System.Collections.Generic;
namespace Spring.Util
{
public interface IEventExceptionsCollector
{
bool HasExceptions { get; }
- Delegate[] Sources { get;}
- Exception[] Exceptions { get; }
+ IList Sources { get;}
+ IList Exceptions { get; }
Exception this[Delegate source] { get; }
}
}
\ No newline at end of file
diff --git a/src/Spring/Spring.Core/Util/ReflectionUtils.cs b/src/Spring/Spring.Core/Util/ReflectionUtils.cs
index 604dc8f1..a10f64bd 100644
--- a/src/Spring/Spring.Core/Util/ReflectionUtils.cs
+++ b/src/Spring/Spring.Core/Util/ReflectionUtils.cs
@@ -386,7 +386,7 @@ namespace Spring.Util
///
/// If more than 1 matching methods are found in the list.
///
- public static MethodInfo GetMethodByArgumentValues(MethodInfo[] methods, object[] argValues)
+ public static MethodInfo GetMethodByArgumentValues(IEnumerable methods, object[] argValues) where T : MethodBase
{
return (MethodInfo)GetMethodBaseByArgumentValues("method", methods, argValues);
}
@@ -401,8 +401,7 @@ namespace Spring.Util
///
/// If more than 1 matching methods are found in the list.
///
- private static MethodBase GetMethodBaseByArgumentValues(string methodTypeName, MethodBase[] methods,
- object[] argValues)
+ private static MethodBase GetMethodBaseByArgumentValues(string methodTypeName, IEnumerable methods, object[] argValues) where T : MethodBase
{
MethodBase match = null;
int matchCount = 0;
@@ -490,7 +489,7 @@ namespace Spring.Util
///
/// If more than 1 matching methods are found in the list.
///
- public static ConstructorInfo GetConstructorByArgumentValues(ConstructorInfo[] methods, object[] argValues)
+ public static ConstructorInfo GetConstructorByArgumentValues(IList methods, object[] argValues) where T : MethodBase
{
return (ConstructorInfo)GetMethodBaseByArgumentValues("constructor", methods, argValues);
}
@@ -540,7 +539,7 @@ namespace Spring.Util
///
/// If is .
///
- public static Type[] ToInterfaceArray(Type intf)
+ public static IList ToInterfaceArray(Type intf)
{
AssertUtils.ArgumentNotNull(intf, "intf");
@@ -552,10 +551,10 @@ namespace Spring.Util
intf.FullName));
}
- ArrayList interfaces = new ArrayList(intf.GetInterfaces());
+ List interfaces = new List(intf.GetInterfaces());
interfaces.Add(intf);
- return (Type[])interfaces.ToArray(typeof(Type));
+ return interfaces;
}
///
@@ -942,9 +941,9 @@ namespace Spring.Util
{
}
- IList getSetProps = new ArrayList();
+ IList getSetProps = new List();
IList getSetValues = new ArrayList();
- IList readOnlyProps = new ArrayList();
+ IList readOnlyProps = new List();
IList readOnlyValues = new ArrayList();
foreach (PropertyInfo pi in type.GetProperties(BindingFlags.Instance | BindingFlags.Public))
{
@@ -976,7 +975,7 @@ namespace Spring.Util
if (readOnlyProps.Count == 1)
{
- PropertyInfo pi = readOnlyProps[0] as PropertyInfo;
+ PropertyInfo pi = readOnlyProps[0];
ConstructorInfo ciTemp = type.GetConstructor(new Type[1] { pi.PropertyType });
if (ciTemp != null)
{
@@ -1234,8 +1233,7 @@ namespace Spring.Util
object[] attrs = member.GetCustomAttributes(false);
try
{
- System.Collections.Generic.IList attrsData =
- CustomAttributeData.GetCustomAttributes(member);
+ IList attrsData = CustomAttributeData.GetCustomAttributes(member);
if (attrs.Length != attrsData.Count)
{
@@ -1461,10 +1459,10 @@ namespace Spring.Util
if (type.IsInterface)
{
- ArrayList interfaces = new ArrayList();
+ List interfaces = new List();
interfaces.Add(type);
interfaces.AddRange(type.GetInterfaces());
- return (Type[])interfaces.ToArray(typeof(Type));
+ return interfaces.ToArray();
}
else
{
@@ -1596,19 +1594,22 @@ namespace Spring.Util
private delegate void MemberwiseCopyHandler(object a, object b);
- private static readonly Hashtable s_handlerCache = new Hashtable();
+ private static readonly Dictionary s_handlerCache = new Dictionary();
private static MemberwiseCopyHandler GetImpl(Type type)
{
- MemberwiseCopyHandler handler = s_handlerCache[type] as MemberwiseCopyHandler;
- if (handler != null)
+ MemberwiseCopyHandler handler;
+ if (s_handlerCache.TryGetValue(type, out handler))
+ {
return handler;
+ }
lock (s_handlerCache)
{
- handler = s_handlerCache[type] as MemberwiseCopyHandler;
- if (handler != null)
+ if (s_handlerCache.TryGetValue(type, out handler))
+ {
return handler;
+ }
FieldInfo[] fields = GetFields(type);
SecurityCritical.ExecutePrivileged(new PermissionSet(PermissionState.Unrestricted), delegate
@@ -1646,25 +1647,25 @@ namespace Spring.Util
private const BindingFlags FIELDBINDINGS =
BindingFlags.Instance | BindingFlags.DeclaredOnly | BindingFlags.Public | BindingFlags.NonPublic;
- private static readonly Hashtable s_fieldCache = new Hashtable();
+ private static readonly Dictionary s_fieldCache = new Dictionary();
private static FieldInfo[] GetFields(Type type)
{
lock (s_fieldCache)
{
- FieldInfo[] fields = (FieldInfo[])s_fieldCache[type];
- if (fields == null)
+ FieldInfo[] fields;
+ if (!s_fieldCache.TryGetValue(type, out fields))
{
- ArrayList fieldList = new ArrayList();
+ List fieldList = new List();
CollectFieldsRecursive(type, fieldList);
- fields = (FieldInfo[])fieldList.ToArray(typeof(FieldInfo));
+ fields = fieldList.ToArray();
s_fieldCache[type] = fields;
}
return fields;
}
}
- private static void CollectFieldsRecursive(Type type, ArrayList fieldList)
+ private static void CollectFieldsRecursive(Type type, List fieldList)
{
if (type == typeof(object))
return;
@@ -1689,8 +1690,8 @@ namespace Spring.Util
private Type type;
private ArrayList constructorArgs;
- private ArrayList namedProperties;
- private ArrayList propertyValues;
+ private List namedProperties;
+ private List propertyValues;
#endregion
@@ -1724,8 +1725,8 @@ namespace Spring.Util
}
this.type = attributeType;
this.constructorArgs = new ArrayList(constructorArgs);
- this.namedProperties = new ArrayList();
- this.propertyValues = new ArrayList();
+ this.namedProperties = new List();
+ this.propertyValues = new List();
}
#endregion
@@ -1776,8 +1777,8 @@ namespace Spring.Util
if (namedProperties.Count > 0)
{
- PropertyInfo[] npArray = (PropertyInfo[])this.namedProperties.ToArray(typeof(PropertyInfo));
- object[] pvArray = (object[])this.propertyValues.ToArray(typeof(object));
+ PropertyInfo[] npArray = this.namedProperties.ToArray();
+ object[] pvArray = this.propertyValues.ToArray();
return new CustomAttributeBuilder(ci, caArray, npArray, pvArray);
}
else
diff --git a/src/Spring/Spring.Core/Util/StringUtils.cs b/src/Spring/Spring.Core/Util/StringUtils.cs
index bc0a85e7..a37c72a9 100644
--- a/src/Spring/Spring.Core/Util/StringUtils.cs
+++ b/src/Spring/Spring.Core/Util/StringUtils.cs
@@ -22,6 +22,7 @@
using System;
using System.Collections;
+using System.Collections.Generic;
using System.Globalization;
using System.Text;
@@ -148,7 +149,7 @@ namespace Spring.Util
{
return new string[0];
}
- if (delimiters==null || delimiters.Length==0)
+ if (string.IsNullOrEmpty(delimiters))
{
return new string[] { s };
}
@@ -164,7 +165,7 @@ namespace Spring.Util
int[] delimiterPositions = new int[s.Length];
int count = MakeDelimiterPositionList(s, delimiterChars, quoteChars, delimiterPositions);
- ArrayList tokens = new ArrayList(count+1);
+ List tokens = new List(count+1);
int startIndex = 0;
for (int ixSep = 0; ixSep < count; ixSep++)
{
@@ -200,7 +201,7 @@ namespace Spring.Util
}
}
- return (string[])tokens.ToArray(typeof(string));
+ return tokens.ToArray();
}
private static int MakeDelimiterPositionList(string s, char[] delimiters, string quoteChars, int[] delimiterPositions)
@@ -324,8 +325,8 @@ namespace Spring.Util
/// The delimiter to use (probably a ',').
///
/// The delimited string representation.
- public static string CollectionToDelimitedString(
- ICollection c, string delimiter)
+ public static string CollectionToDelimitedString(
+ IEnumerable c, string delimiter)
{
if (c == null)
{
@@ -353,8 +354,7 @@ namespace Spring.Util
/// The to display.
///
/// The delimited string representation.
- public static string CollectionToCommaDelimitedString(
- ICollection collection)
+ public static string CollectionToCommaDelimitedString(IEnumerable collection)
{
return CollectionToDelimitedString(collection, ",");
}
@@ -368,7 +368,7 @@ namespace Spring.Util
/// will be called on each
/// element).
///
- public static string ArrayToCommaDelimitedString(object[] source)
+ public static string ArrayToCommaDelimitedString(IEnumerable source)
{
return ArrayToDelimitedString(source, ",");
}
@@ -385,8 +385,7 @@ namespace Spring.Util
///
/// The delimiter to use (probably a ',').
///
- public static string ArrayToDelimitedString(
- object[] source, string delimiter)
+ public static string ArrayToDelimitedString(IEnumerable source, string delimiter)
{
if (source == null)
{
@@ -534,9 +533,9 @@ namespace Spring.Util
/// If any of the expressions in the supplied
/// is empty (${}).
///
- public static IList GetAntExpressions(string text)
+ public static IList GetAntExpressions(string text)
{
- IList expressions = new ArrayList();
+ List expressions = new List();
if (StringUtils.HasText(text))
{
int start = text.IndexOf(AntExpressionPrefix);
diff --git a/src/Spring/Spring.Core/Validation/Actions/ErrorMessageAction.cs b/src/Spring/Spring.Core/Validation/Actions/ErrorMessageAction.cs
index 9a282b48..d32560a5 100644
--- a/src/Spring/Spring.Core/Validation/Actions/ErrorMessageAction.cs
+++ b/src/Spring/Spring.Core/Validation/Actions/ErrorMessageAction.cs
@@ -20,7 +20,7 @@
using System;
using System.Collections;
-
+using System.Collections.Generic;
using Spring.Expressions;
using Spring.Util;
@@ -69,7 +69,7 @@ namespace Spring.Validation.Actions
/// Validation context.
/// Additional context parameters.
/// Validation errors container.
- protected override void OnInvalid(object validationContext, IDictionary contextParams, IValidationErrors errors)
+ protected override void OnInvalid(object validationContext, IDictionary contextParams, IValidationErrors errors)
{
ErrorMessage error = CreateErrorMessage(validationContext, contextParams);
foreach (string provider in this.providers)
@@ -84,7 +84,7 @@ namespace Spring.Validation.Actions
/// Validation context to resolve message parameters against.
/// Additional context parameters.
/// Resolved error message
- private ErrorMessage CreateErrorMessage(object validationContext, IDictionary contextParams)
+ private ErrorMessage CreateErrorMessage(object validationContext, IDictionary contextParams)
{
if (messageParams != null && messageParams.Length > 0)
{
@@ -104,7 +104,7 @@ namespace Spring.Validation.Actions
/// Validation context to resolve parameters against.
/// Additional context parameters.
/// Resolved message parameters.
- private object[] ResolveMessageParameters(IList messageParams, object validationContext, IDictionary contextParams)
+ private object[] ResolveMessageParameters(IList messageParams, object validationContext, IDictionary contextParams)
{
object[] parameters = new object[messageParams.Count];
for (int i = 0; i < messageParams.Count; i++)
diff --git a/src/Spring/Spring.Core/Validation/Actions/ExceptionAction.cs b/src/Spring/Spring.Core/Validation/Actions/ExceptionAction.cs
index 26c43c87..25597675 100644
--- a/src/Spring/Spring.Core/Validation/Actions/ExceptionAction.cs
+++ b/src/Spring/Spring.Core/Validation/Actions/ExceptionAction.cs
@@ -20,6 +20,7 @@
using System;
using System.Collections;
+using System.Collections.Generic;
using Common.Logging;
using Spring.Expressions;
using Spring.Util;
@@ -71,7 +72,7 @@ namespace Spring.Validation.Actions
/// Validation context.
/// Additional context parameters.
/// Validation errors container.
- protected override void OnInvalid(object validationContext, IDictionary contextParams, IValidationErrors errors)
+ protected override void OnInvalid(object validationContext, IDictionary contextParams, IValidationErrors errors)
{
if (throwsExpression != null)
{
diff --git a/src/Spring/Spring.Core/Validation/Actions/ExpressionAction.cs b/src/Spring/Spring.Core/Validation/Actions/ExpressionAction.cs
index 36a23f43..9b2eb392 100644
--- a/src/Spring/Spring.Core/Validation/Actions/ExpressionAction.cs
+++ b/src/Spring/Spring.Core/Validation/Actions/ExpressionAction.cs
@@ -19,7 +19,7 @@
#endregion
using System.Collections;
-
+using System.Collections.Generic;
using Spring.Expressions;
namespace Spring.Validation.Actions
@@ -87,7 +87,7 @@ namespace Spring.Validation.Actions
/// Validation context.
/// Additional context parameters.
/// Validation errors container.
- protected override void OnValid(object validationContext, IDictionary contextParams, IValidationErrors errors)
+ protected override void OnValid(object validationContext, IDictionary contextParams, IValidationErrors errors)
{
if (Valid != null)
{
@@ -101,7 +101,7 @@ namespace Spring.Validation.Actions
/// Validation context.
/// Additional context parameters.
/// Validation errors container.
- protected override void OnInvalid(object validationContext, IDictionary contextParams, IValidationErrors errors)
+ protected override void OnInvalid(object validationContext, IDictionary contextParams, IValidationErrors errors)
{
if (Invalid != null)
{
diff --git a/src/Spring/Spring.Core/Validation/AnyValidatorGroup.cs b/src/Spring/Spring.Core/Validation/AnyValidatorGroup.cs
index c2c18442..ce8f8c87 100644
--- a/src/Spring/Spring.Core/Validation/AnyValidatorGroup.cs
+++ b/src/Spring/Spring.Core/Validation/AnyValidatorGroup.cs
@@ -19,6 +19,7 @@
#endregion
using System.Collections;
+using System.Collections.Generic;
using Spring.Expressions;
namespace Spring.Validation
@@ -77,11 +78,11 @@ namespace Spring.Validation
///
/// Validates the specified object.
///
- /// The object to validate.
/// Additional context parameters.
/// instance to add error messages to.
+ /// The object to validate.
/// True if validation was successful, False otherwise.
- protected override bool ValidateGroup(IDictionary contextParams, IValidationErrors errors, object validationContext)
+ protected override bool ValidateGroup(IDictionary contextParams, IValidationErrors errors, object validationContext)
{
// capture errors in separate collection to only add them to the error collector in case of errors
ValidationErrors tmpErrors = new ValidationErrors();
diff --git a/src/Spring/Spring.Core/Validation/BaseSimpleValidator.cs b/src/Spring/Spring.Core/Validation/BaseSimpleValidator.cs
index 2be336ab..719f5e01 100644
--- a/src/Spring/Spring.Core/Validation/BaseSimpleValidator.cs
+++ b/src/Spring/Spring.Core/Validation/BaseSimpleValidator.cs
@@ -19,6 +19,7 @@
#endregion
using System.Collections;
+using System.Collections.Generic;
using Spring.Expressions;
namespace Spring.Validation
@@ -85,7 +86,7 @@ namespace Spring.Validation
/// Additional context parameters.
/// instance to add error messages to.
/// True if validation was successful, False otherwise.
- public override bool Validate(object validationContext, IDictionary contextParams, IValidationErrors errors)
+ public override bool Validate(object validationContext, IDictionary contextParams, IValidationErrors errors)
{
bool valid = true;
@@ -111,7 +112,7 @@ namespace Spring.Validation
/// Root context to use for expression evaluation.
/// Additional context parameters.
/// Result of the test expression evaluation, or validation context if test is null.
- protected object EvaluateTest(object rootContext, IDictionary contextParams)
+ protected object EvaluateTest(object rootContext, IDictionary contextParams)
{
if (Test == null)
{
diff --git a/src/Spring/Spring.Core/Validation/BaseValidationAction.cs b/src/Spring/Spring.Core/Validation/BaseValidationAction.cs
index 991fd189..1dca2164 100644
--- a/src/Spring/Spring.Core/Validation/BaseValidationAction.cs
+++ b/src/Spring/Spring.Core/Validation/BaseValidationAction.cs
@@ -20,7 +20,7 @@
using System;
using System.Collections;
-
+using System.Collections.Generic;
using Spring.Expressions;
namespace Spring.Validation
@@ -77,7 +77,7 @@ namespace Spring.Validation
/// Validation context.
/// Additional context parameters.
/// Validation errors container.
- public virtual void Execute(bool isValid, object validationContext, IDictionary contextParams, IValidationErrors errors)
+ public virtual void Execute(bool isValid, object validationContext, IDictionary contextParams, IValidationErrors errors)
{
if (EvaluateWhen(validationContext, contextParams))
{
@@ -102,7 +102,7 @@ namespace Spring.Validation
/// Validation context.
/// Additional context parameters.
/// Validation errors container.
- protected virtual void OnValid(object validationContext, IDictionary contextParams, IValidationErrors errors)
+ protected virtual void OnValid(object validationContext, IDictionary contextParams, IValidationErrors errors)
{}
///
@@ -111,7 +111,7 @@ namespace Spring.Validation
/// Validation context.
/// Additional context parameters.
/// Validation errors container.
- protected virtual void OnInvalid(object validationContext, IDictionary contextParams, IValidationErrors errors)
+ protected virtual void OnInvalid(object validationContext, IDictionary contextParams, IValidationErrors errors)
{}
// CLOVER:ON
@@ -126,7 +126,7 @@ namespace Spring.Validation
/// Root context to use for expression evaluation.
/// Additional context parameters.
/// True if the condition is true, False otherwise.
- protected bool EvaluateWhen(object rootContext, IDictionary contextParams)
+ protected bool EvaluateWhen(object rootContext, IDictionary contextParams)
{
if (When == null)
{
diff --git a/src/Spring/Spring.Core/Validation/BaseValidator.cs b/src/Spring/Spring.Core/Validation/BaseValidator.cs
index db8a4a11..b20a5ec0 100644
--- a/src/Spring/Spring.Core/Validation/BaseValidator.cs
+++ b/src/Spring/Spring.Core/Validation/BaseValidator.cs
@@ -19,7 +19,7 @@
#endregion
using System;
-using System.Collections;
+using System.Collections.Generic;
using Spring.Expressions;
namespace Spring.Validation
@@ -40,7 +40,7 @@ namespace Spring.Validation
{
#region Fields
- private IList actions = new ArrayList();
+ private IList actions = new List();
private IExpression when;
@@ -89,7 +89,7 @@ namespace Spring.Validation
/// Gets or sets the validation actions.
///
/// The actions that should be executed after validation.
- public IList Actions
+ public IList Actions
{
get { return actions; }
set { actions = value; }
@@ -115,7 +115,7 @@ namespace Spring.Validation
/// Additional context parameters.
/// instance to add error messages to.
/// True if validation was successful, False otherwise.
- public abstract bool Validate(object validationContext, IDictionary contextParams, IValidationErrors errors);
+ public abstract bool Validate(object validationContext, IDictionary contextParams, IValidationErrors errors);
#region Helper Methods
@@ -125,7 +125,7 @@ namespace Spring.Validation
/// Root context to use for expression evaluation.
/// Additional context parameters.
/// True if the condition is true, False otherwise.
- protected bool EvaluateWhen(object rootContext, IDictionary contextParams)
+ protected bool EvaluateWhen(object rootContext, IDictionary contextParams)
{
if (When == null)
{
@@ -142,7 +142,7 @@ namespace Spring.Validation
/// Validation context.
/// Additional context parameters.
/// Validation errors container.
- protected void ProcessActions(bool isValid, object validationContext, IDictionary contextParams, IValidationErrors errors)
+ protected void ProcessActions(bool isValid, object validationContext, IDictionary contextParams, IValidationErrors errors)
{
if (actions != null && actions.Count > 0)
{
diff --git a/src/Spring/Spring.Core/Validation/BaseValidatorGroup.cs b/src/Spring/Spring.Core/Validation/BaseValidatorGroup.cs
index dc49d600..575760fa 100644
--- a/src/Spring/Spring.Core/Validation/BaseValidatorGroup.cs
+++ b/src/Spring/Spring.Core/Validation/BaseValidatorGroup.cs
@@ -19,6 +19,7 @@
#endregion
using System.Collections;
+using System.Collections.Generic;
using Spring.Expressions;
namespace Spring.Validation
@@ -87,7 +88,7 @@ namespace Spring.Validation
/// Additional context parameters.
/// instance to add error messages to.
/// True if validation was successful, False otherwise.
- public override bool Validate(object validationContext, IDictionary contextParams, IValidationErrors errors)
+ public override bool Validate(object validationContext, IDictionary contextParams, IValidationErrors errors)
{
if (EvaluateWhen(validationContext, contextParams))
{
@@ -102,10 +103,10 @@ namespace Spring.Validation
///
/// Actual implementation how to validate the specified object.
///
- /// The object to validate.
/// Additional context parameters.
/// instance to add error messages to.
+ /// The object to validate.
/// True if validation was successful, False otherwise.
- protected abstract bool ValidateGroup(IDictionary contextParams, IValidationErrors errors, object validationContext);
+ protected abstract bool ValidateGroup(IDictionary contextParams, IValidationErrors errors, object validationContext);
}
}
\ No newline at end of file
diff --git a/src/Spring/Spring.Core/Validation/CollectionValidator.cs b/src/Spring/Spring.Core/Validation/CollectionValidator.cs
index 9554d65c..07e5d110 100644
--- a/src/Spring/Spring.Core/Validation/CollectionValidator.cs
+++ b/src/Spring/Spring.Core/Validation/CollectionValidator.cs
@@ -20,6 +20,7 @@
using System;
using System.Collections;
+using System.Collections.Generic;
using Spring.Expressions;
namespace Spring.Validation
@@ -159,7 +160,7 @@ namespace Spring.Validation
/// Additional context parameters.
/// instance to add error messages to.
/// True if validation was successful, False otherwise.
- public override bool Validate(object validationContext, IDictionary contextParams, IValidationErrors errors)
+ public override bool Validate(object validationContext, IDictionary contextParams, IValidationErrors errors)
{
if (Context != null)
{
@@ -177,11 +178,11 @@ namespace Spring.Validation
///
/// Actual implementation how to validate the specified object.
///
- /// The object to validate.
/// Additional context parameters.
/// instance to add error messages to.
+ /// The object to validate.
/// True if validation was successful, False otherwise.
- protected override bool ValidateGroup(IDictionary contextParams, IValidationErrors errors, object validationContext)
+ protected override bool ValidateGroup(IDictionary contextParams, IValidationErrors errors, object validationContext)
{
bool valid = true;
IEnumerable collectionToValidate = (validationContext is IDictionary
diff --git a/src/Spring/Spring.Core/Validation/Config/ValidationNamespaceParser.cs b/src/Spring/Spring.Core/Validation/Config/ValidationNamespaceParser.cs
index 98f36076..ea017e08 100644
--- a/src/Spring/Spring.Core/Validation/Config/ValidationNamespaceParser.cs
+++ b/src/Spring/Spring.Core/Validation/Config/ValidationNamespaceParser.cs
@@ -21,18 +21,16 @@
#region Imports
using System;
-using System.Collections;
+using System.Collections.Generic;
using System.Xml;
using Spring.Core.TypeResolution;
-using Spring.Context.Support;
using Spring.Expressions;
using Spring.Objects;
using Spring.Objects.Factory;
using Spring.Objects.Factory.Config;
using Spring.Objects.Factory.Support;
using Spring.Objects.Factory.Xml;
-using Spring.Threading;
using Spring.Util;
#endregion
@@ -251,7 +249,7 @@ namespace Spring.Validation.Config
{
string messageId = GetAttributeValue(message, MessageConstants.IdAttribute);
string[] providers = GetAttributeValue(message, MessageConstants.ProvidersAttribute).Split(',');
- ArrayList parameters = new ArrayList();
+ List parameters = new List();
foreach (XmlElement param in message.ChildNodes)
{
@@ -272,7 +270,7 @@ namespace Spring.Validation.Config
}
if (parameters.Count > 0)
{
- properties.Add("Parameters", parameters.ToArray(typeof(IExpression)));
+ properties.Add("Parameters", parameters.ToArray());
}
IConfigurableObjectDefinition action =
diff --git a/src/Spring/Spring.Core/Validation/ExclusiveValidatorGroup.cs b/src/Spring/Spring.Core/Validation/ExclusiveValidatorGroup.cs
index b1c10760..4b1d80c0 100644
--- a/src/Spring/Spring.Core/Validation/ExclusiveValidatorGroup.cs
+++ b/src/Spring/Spring.Core/Validation/ExclusiveValidatorGroup.cs
@@ -19,6 +19,7 @@
#endregion
using System.Collections;
+using System.Collections.Generic;
using Spring.Expressions;
namespace Spring.Validation
@@ -78,11 +79,11 @@ namespace Spring.Validation
///
/// Actual implementation how to validate the specified object.
///
- /// The object to validate.
/// Additional context parameters.
/// instance to add error messages to.
+ /// The object to validate.
/// True if validation was successful, False otherwise.
- protected override bool ValidateGroup(IDictionary contextParams, IValidationErrors errors, object validationContext)
+ protected override bool ValidateGroup(IDictionary contextParams, IValidationErrors errors, object validationContext)
{
ValidationErrors tmpErrors = new ValidationErrors();
bool valid = false;
diff --git a/src/Spring/Spring.Core/Validation/IValidationAction.cs b/src/Spring/Spring.Core/Validation/IValidationAction.cs
index 764d7917..26895cc7 100644
--- a/src/Spring/Spring.Core/Validation/IValidationAction.cs
+++ b/src/Spring/Spring.Core/Validation/IValidationAction.cs
@@ -21,7 +21,7 @@
#region Imports
using System.Collections;
-
+using System.Collections.Generic;
using Spring.Validation.Actions;
#endregion
@@ -51,6 +51,6 @@ namespace Spring.Validation
/// Validation context.
/// Additional context parameters.
/// Validation errors container.
- void Execute(bool isValid, object validationContext, IDictionary contextParams, IValidationErrors errors);
+ void Execute(bool isValid, object validationContext, IDictionary contextParams, IValidationErrors errors);
}
}
\ No newline at end of file
diff --git a/src/Spring/Spring.Core/Validation/IValidationErrors.cs b/src/Spring/Spring.Core/Validation/IValidationErrors.cs
index 9ec469ed..010b4b0a 100644
--- a/src/Spring/Spring.Core/Validation/IValidationErrors.cs
+++ b/src/Spring/Spring.Core/Validation/IValidationErrors.cs
@@ -1,4 +1,5 @@
using System.Collections;
+using System.Collections.Generic;
using Spring.Context;
namespace Spring.Validation
@@ -24,7 +25,7 @@ namespace Spring.Validation
///
/// Gets the list of all error providers.
///
- IList Providers { get; }
+ IList Providers { get; }
///
/// Adds the supplied to this
@@ -68,7 +69,7 @@ namespace Spring.Validation
///
/// A list of all s for the supplied lookup .
///
- IList GetErrors(string provider);
+ IList GetErrors(string provider);
///
/// Gets the list of resolved error messages for the supplied lookup .
@@ -84,6 +85,6 @@ namespace Spring.Validation
///
/// A list of resolved error messages for the supplied lookup .
///
- IList GetResolvedErrors(string provider, IMessageSource messageSource);
+ IList GetResolvedErrors(string provider, IMessageSource messageSource);
}
}
\ No newline at end of file
diff --git a/src/Spring/Spring.Core/Validation/IValidator.cs b/src/Spring/Spring.Core/Validation/IValidator.cs
index 6b7db546..538ffeba 100644
--- a/src/Spring/Spring.Core/Validation/IValidator.cs
+++ b/src/Spring/Spring.Core/Validation/IValidator.cs
@@ -21,6 +21,7 @@
#region Imports
using System.Collections;
+using System.Collections.Generic;
#endregion
@@ -69,13 +70,13 @@ namespace Spring.Validation
/// The object to validate.
/// Additional context parameters.
///
- /// The instance to add any error
- /// messages to in the case of validation failure.
+ /// The instance to add any error
+ /// messages to in the case of validation failure.
///
///
/// if validation was successful.
///
- bool Validate(object validationContext, IDictionary contextParams, IValidationErrors errors);
+ bool Validate(object validationContext, IDictionary contextParams, IValidationErrors errors);
}
}
\ No newline at end of file
diff --git a/src/Spring/Spring.Core/Validation/ValidationErrors.cs b/src/Spring/Spring.Core/Validation/ValidationErrors.cs
index fac5089d..f7367951 100644
--- a/src/Spring/Spring.Core/Validation/ValidationErrors.cs
+++ b/src/Spring/Spring.Core/Validation/ValidationErrors.cs
@@ -21,7 +21,7 @@
#region Imports
using System;
-using System.Collections;
+using System.Collections.Generic;
using System.Xml;
using System.Xml.Schema;
using System.Xml.Serialization;
@@ -91,18 +91,18 @@ namespace Spring.Validation
reader.Read();
while (reader.Name == "Provider")
{
- object key = reader.GetAttribute("Id");
+ string key = reader.GetAttribute("Id");
reader.Read();
while (reader.Name == "ErrorMessage")
{
XmlSerializer xs = new XmlSerializer(typeof(ErrorMessage));
- object value = xs.Deserialize(reader);
+ ErrorMessage value = (ErrorMessage) xs.Deserialize(reader);
- IList mapValue = (IList)errorMap[key];
+ List mapValue;
- if (mapValue == null)
+ if (!errorMap.TryGetValue(key, out mapValue))
{
- mapValue = new ArrayList();
+ mapValue = new List();
errorMap[key] = mapValue;
}
@@ -122,17 +122,16 @@ namespace Spring.Validation
///
public void WriteXml(XmlWriter writer)
{
- foreach (DictionaryEntry entry in errorMap)
+ foreach (KeyValuePair> entry in errorMap)
{
writer.WriteStartElement("Provider");
- writer.WriteAttributeString("Id", entry.Key as String);
+ writer.WriteAttributeString("Id", entry.Key);
if (entry.Value != null)
{
- ArrayList errorsList = (ArrayList)entry.Value;
- foreach (object o in errorsList)
+ IList errorsList = entry.Value;
+ foreach (ErrorMessage error in errorsList)
{
- ErrorMessage error = (ErrorMessage)o;
XmlSerializer xs = new XmlSerializer(typeof(ErrorMessage));
xs.Serialize(writer, error);
}
@@ -164,9 +163,9 @@ namespace Spring.Validation
///
/// Gets the list of all providers.
///
- public IList Providers
+ public IList Providers
{
- get { return new ArrayList(this.errorMap.Keys); }
+ get { return new List(this.errorMap.Keys); }
}
///
@@ -186,10 +185,10 @@ namespace Spring.Validation
AssertUtils.ArgumentNotNull(provider, "provider");
AssertUtils.ArgumentNotNull(message, "errorMessage");
- IList errors = (IList) errorMap[provider];
- if (errors == null)
+ List errors;
+ if (!errorMap.TryGetValue(provider, out errors))
{
- errors = new ArrayList();
+ errors = new List();
errorMap[provider] = errors;
}
errors.Add(message);
@@ -214,15 +213,15 @@ namespace Spring.Validation
{
foreach(string provider in errorsToMerge.Providers)
{
- ArrayList errList = (ArrayList) this.errorMap[provider];
- IList other = errorsToMerge.GetErrors(provider);
- if (errList == null)
+ List errList;
+ List other = new List(errorsToMerge.GetErrors(provider));
+ if (!errorMap.TryGetValue(provider, out errList))
{
this.errorMap[provider] = other;
}
else
{
- errList.AddRange((IList) other);
+ errList.AddRange(other);
}
}
// foreach (DictionaryEntry errorEntry in errorsToMerge.errorMap)
@@ -253,10 +252,11 @@ namespace Spring.Validation
///
/// A list of all s for the supplied lookup .
///
- public IList GetErrors(string provider)
+ public IList GetErrors(string provider)
{
- IList errors = (IList) errorMap[provider];
- return errors == null ? ObjectUtils.EmptyObjects : errors;
+ List errors;
+ errorMap.TryGetValue(provider, out errors);
+ return errors ?? new List(0);
}
///
@@ -273,14 +273,13 @@ namespace Spring.Validation
///
/// A list of resolved error messages for the supplied lookup .
///
- public IList GetResolvedErrors(string provider, IMessageSource messageSource)
+ public IList GetResolvedErrors(string provider, IMessageSource messageSource)
{
AssertUtils.ArgumentNotNull(provider, "provider");
- IList messages = new ArrayList();
- IList errors = (IList) errorMap[provider];
-
- if (errors != null)
+ IList messages = new List();
+ List errors;
+ if (errorMap.TryGetValue(provider, out errors))
{
foreach (ErrorMessage error in errors)
{
@@ -295,7 +294,7 @@ namespace Spring.Validation
#region Data members
- private readonly IDictionary errorMap = new Hashtable();
+ private readonly IDictionary> errorMap = new Dictionary>();
#endregion
}
diff --git a/src/Spring/Spring.Core/Validation/ValidatorGroup.cs b/src/Spring/Spring.Core/Validation/ValidatorGroup.cs
index bc12c485..d2b07660 100644
--- a/src/Spring/Spring.Core/Validation/ValidatorGroup.cs
+++ b/src/Spring/Spring.Core/Validation/ValidatorGroup.cs
@@ -19,6 +19,7 @@
#endregion
using System.Collections;
+using System.Collections.Generic;
using Spring.Expressions;
namespace Spring.Validation
@@ -70,11 +71,11 @@ namespace Spring.Validation
///
/// Actual implementation how to validate the specified object.
///
- /// The object to validate.
/// Additional context parameters.
/// instance to add error messages to.
+ /// The object to validate.
/// True if validation was successful, False otherwise.
- protected override bool ValidateGroup(IDictionary contextParams, IValidationErrors errors, object validationContext)
+ protected override bool ValidateGroup(IDictionary contextParams, IValidationErrors errors, object validationContext)
{
bool valid = true;
foreach (IValidator validator in this.Validators)
diff --git a/src/Spring/Spring.Core/Validation/ValidatorReference.cs b/src/Spring/Spring.Core/Validation/ValidatorReference.cs
index 67bac40d..41f182b1 100644
--- a/src/Spring/Spring.Core/Validation/ValidatorReference.cs
+++ b/src/Spring/Spring.Core/Validation/ValidatorReference.cs
@@ -19,7 +19,7 @@
#endregion
using System.Collections;
-
+using System.Collections.Generic;
using Spring.Expressions;
using Spring.Objects.Factory;
using System;
@@ -136,7 +136,7 @@ namespace Spring.Validation
/// Additional context parameters.
/// instance to add error messages to.
/// True if validation was successful, False otherwise.
- public bool Validate(object validationContext, IDictionary contextParams, IValidationErrors errors)
+ public bool Validate(object validationContext, IDictionary contextParams, IValidationErrors errors)
{
bool valid = true;
diff --git a/src/Spring/Spring.Data.NHibernate/Data/NHibernate/Bytecode/ObjectsFactory.cs b/src/Spring/Spring.Data.NHibernate/Data/NHibernate/Bytecode/ObjectsFactory.cs
index 209a8a95..21c44914 100644
--- a/src/Spring/Spring.Data.NHibernate/Data/NHibernate/Bytecode/ObjectsFactory.cs
+++ b/src/Spring/Spring.Data.NHibernate/Data/NHibernate/Bytecode/ObjectsFactory.cs
@@ -21,6 +21,7 @@
#region Imports
using System;
+using System.Collections.Generic;
using NHibernate.Bytecode;
@@ -53,8 +54,8 @@ namespace Spring.Data.NHibernate.Bytecode
/// A reference to the created object.
public object CreateInstance(Type type)
{
- string[] namesForType = listableObjectFactory.GetObjectNamesForType(type);
- return namesForType.Length > 0 ? listableObjectFactory.GetObject(namesForType[0], type) : Activator.CreateInstance(type);
+ IList namesForType = listableObjectFactory.GetObjectNamesForType(type);
+ return namesForType.Count > 0 ? listableObjectFactory.GetObject(namesForType[0], type) : Activator.CreateInstance(type);
}
///
@@ -64,8 +65,8 @@ namespace Spring.Data.NHibernate.Bytecode
/// A reference to the created object
public object CreateInstance(Type type, bool nonPublic)
{
- string[] namesForType = listableObjectFactory.GetObjectNamesForType(type);
- return namesForType.Length > 0 ? listableObjectFactory.GetObject(namesForType[0], type) : Activator.CreateInstance(type);
+ IList namesForType = listableObjectFactory.GetObjectNamesForType(type);
+ return namesForType.Count > 0 ? listableObjectFactory.GetObject(namesForType[0], type) : Activator.CreateInstance(type);
}
///
diff --git a/src/Spring/Spring.Data.NHibernate/Data/NHibernate/Bytecode/ReflectionOptimizer.cs b/src/Spring/Spring.Data.NHibernate/Data/NHibernate/Bytecode/ReflectionOptimizer.cs
index eb4c93e3..e8f48e86 100644
--- a/src/Spring/Spring.Data.NHibernate/Data/NHibernate/Bytecode/ReflectionOptimizer.cs
+++ b/src/Spring/Spring.Data.NHibernate/Data/NHibernate/Bytecode/ReflectionOptimizer.cs
@@ -21,6 +21,7 @@
#region Imports
using System;
+using System.Collections.Generic;
using NHibernate.Properties;
@@ -57,8 +58,8 @@ namespace Spring.Data.NHibernate.Bytecode
/// The new instance.
public override object CreateInstance()
{
- string[] namesForType = listableObjectFactory.GetObjectNamesForType(mappedType);
- if (namesForType.Length > 0)
+ IList namesForType = listableObjectFactory.GetObjectNamesForType(mappedType);
+ if (namesForType.Count > 0)
{
return listableObjectFactory.GetObject(namesForType[0], mappedType);
}
diff --git a/src/Spring/Spring.Data.NHibernate/Data/NHibernate/LocalSessionFactoryObject.cs b/src/Spring/Spring.Data.NHibernate/Data/NHibernate/LocalSessionFactoryObject.cs
index a374db6b..bbd96cbc 100644
--- a/src/Spring/Spring.Data.NHibernate/Data/NHibernate/LocalSessionFactoryObject.cs
+++ b/src/Spring/Spring.Data.NHibernate/Data/NHibernate/LocalSessionFactoryObject.cs
@@ -89,7 +89,7 @@ namespace Spring.Data.NHibernate
private string[] configFilenames;
- private IDictionary hibernateProperties;
+ private IDictionary hibernateProperties;
private IDbProvider dbProvider;
@@ -223,13 +223,13 @@ namespace Spring.Data.NHibernate
/// provider settings and use a Spring-set IDbProvider instead.
///
///
- public IDictionary HibernateProperties
+ public IDictionary HibernateProperties
{
get
{
if (hibernateProperties == null)
{
- hibernateProperties = new Hashtable();
+ hibernateProperties = new Dictionary();
}
return hibernateProperties;
}
@@ -506,7 +506,7 @@ namespace Spring.Data.NHibernate
{
// Register specified Hibernate type definitions.
IDictionary typedProperties = new Dictionary();
- foreach (DictionaryEntry entry in hibernateProperties)
+ foreach (KeyValuePair