diff --git a/License.txt b/License.txt index 94bd1306..b94199d0 100644 --- a/License.txt +++ b/License.txt @@ -1 +1 @@ -License: http://stack72.mit-license.org/ +License: http://stack72.mit-license.org/ \ No newline at end of file diff --git a/README.md b/README.md index 1e6c5bf7..852a2c1f 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,7 @@ *.NET Library to access TeamCity via their REST API. -For more information on TeamCity visit: +For more information on TeamCity visit: http://www.jetbrains.com/teamcity ##Releases @@ -64,6 +64,8 @@ There are many tasks that the TeamCity API can do for us. TeamCitySharp groups t * Agents * VcsRoots * Changes +* Triggered +* LastChange * BuildArtifacts * Statistics * Investigations @@ -98,7 +100,8 @@ Each area has its own list of methods available List AllRunningBuild(); List RetrieveEntireBuildChainFrom(string buildConfigId); List RetrieveEntireBuildChainTo(string buildConfigId); - List NextBuilds(string buildid, int count = 100); + List NextBuilds(string buildId, int count = 100, List param); + List AffectedProject(string productId, int count = 100, List param); ###Projects @@ -231,4 +234,4 @@ Thanks to the following contributors: * Philipp Dolder * Mark deVilliers * Marc-Andre Vezeau (@exfo) -* Bassem Mawassi (@exfo) +* Bassem Mawassi (@exfo) diff --git a/TeamCitySharp.sln b/TeamCitySharp.sln index f368ed68..a8c4971d 100644 --- a/TeamCitySharp.sln +++ b/TeamCitySharp.sln @@ -1,6 +1,6 @@  -Microsoft Visual Studio Solution File, Format Version 12.00 -# Visual Studio 2012 +Microsoft Visual Studio Solution File, Format Version 14.00 +# Visual Studio 2015 Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Tests", "Tests", "{263F35DD-20C1-4209-B121-E962C9328C70}" EndProject Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "TeamCitySharp.IntegrationTests", "src\Tests\IntegrationTests\TeamCitySharp.IntegrationTests.csproj", "{BA409A09-CC7B-4A71-A3D4-FE27234A721B}" diff --git a/packages/EasyHttp.1.6.80.0/EasyHttp.1.6.80.0.nupkg b/packages/EasyHttp.1.6.80.0/EasyHttp.1.6.80.0.nupkg deleted file mode 100644 index a932596d..00000000 Binary files a/packages/EasyHttp.1.6.80.0/EasyHttp.1.6.80.0.nupkg and /dev/null differ diff --git a/packages/EasyHttp.1.6.80.0/lib/net40/EasyHttp.dll b/packages/EasyHttp.1.6.80.0/lib/net40/EasyHttp.dll deleted file mode 100644 index 8d189cf4..00000000 Binary files a/packages/EasyHttp.1.6.80.0/lib/net40/EasyHttp.dll and /dev/null differ diff --git a/packages/EasyHttp.1.6.80.0/lib/net40/EasyHttp.pdb b/packages/EasyHttp.1.6.80.0/lib/net40/EasyHttp.pdb deleted file mode 100644 index 12a3ed54..00000000 Binary files a/packages/EasyHttp.1.6.80.0/lib/net40/EasyHttp.pdb and /dev/null differ diff --git a/packages/FakeItEasy.1.25.3/FakeItEasy.1.25.3.nupkg b/packages/FakeItEasy.1.25.3/FakeItEasy.1.25.3.nupkg deleted file mode 100644 index b6e54120..00000000 Binary files a/packages/FakeItEasy.1.25.3/FakeItEasy.1.25.3.nupkg and /dev/null differ diff --git a/packages/FakeItEasy.1.25.3/lib/net35/FakeItEasy.dll b/packages/FakeItEasy.1.25.3/lib/net35/FakeItEasy.dll deleted file mode 100644 index 0584b79c..00000000 Binary files a/packages/FakeItEasy.1.25.3/lib/net35/FakeItEasy.dll and /dev/null differ diff --git a/packages/FakeItEasy.1.25.3/lib/net35/FakeItEasy.xml b/packages/FakeItEasy.1.25.3/lib/net35/FakeItEasy.xml deleted file mode 100644 index 92e5bd4b..00000000 --- a/packages/FakeItEasy.1.25.3/lib/net35/FakeItEasy.xml +++ /dev/null @@ -1,3859 +0,0 @@ - - - - FakeItEasy - - - - - Provides methods for generating fake objects. - - - - - Creates a fake object of the type T. - - The type of fake object to create. - A fake object. - - - - Creates a fake object of the type T. - - The type of fake object to create. - A lambda where options for the built fake object can be specified. - A fake object. - - - - Creates a collection of fakes of the specified type. - - The type of fakes to create. - The number of fakes in the collection. - A collection of fake objects of the specified type. - - - - Gets a dummy object of the specified type. The value of a dummy object - should be irrelevant. Dummy objects should not be configured. - - The type of dummy to return. - A dummy object of the specified type. - Dummies of the specified type can not be created. - - - - Gets a value indicating whether the two objects are equal. - - The first object to compare. - The second object to compare. - True if the two objects are equal. - - - - Gets a value indicating whether the two objects are the same reference. - - The object A. - The object B. - True if the objects are the same reference. - - - - Configures a call to a faked object. - - An expression where the configured member is called. - A configuration object. - - - - Gets a configuration object allowing for further configuration of - any call to the specified faked object. - - - The fake to configure. - - - A configuration object. - - - - - Configures a call to a faked object. - - The type of member on the faked object to configure. - An expression where the configured member is called. - A configuration object. - - - - Provides an API entry point for constraining arguments of fake object calls. - - The type of argument to validate. - - - - Gets an argument constraint object that will be used to constrain a method call argument. - - - - - Gets a constraint that considers any value of an argument as valid. - - This is a shortcut for the "Ignored"-property. - - - - Gets a constraint that considers any value of an argument as valid. - - - - - Provides configuration for any (not a specific) call on a faked object. - - - - - Gets a configuration object allowing for further configuration of - any call to the specified faked object. - - The faked object to configure. - A configuration object. - - - - Gets a value indicating whether the two objects are equal. - - The first object to compare. - The second object to compare. - True if the two objects are equal. - - - - Gets a value indicating whether the two objects are the same reference. - - The object A. - The object B. - True if the objects are the same reference. - - - - A collection of method arguments. - - - - - The arguments this collection contains. - - - - - Initializes a new instance of the class. - - The arguments. - The argument names. - - - - Initializes a new instance of the class. - - The arguments. - The method. - - - - Returns an enumerator that iterates through the collection or arguments. - - - A that can be used to iterate through the collection. - - - - - Gets the argument at the specified index. - - The type of the argument to get. - The index of the argument. - The argument at the specified index. - - - - Gets the argument with the specified name. - - The type of the argument to get. - The name of the argument. - The argument with the specified name. - - - - Gets an empty ArgumentList. - - - - - Gets the number of arguments in the list. - - - - - Gets the names of the arguments in the list. - - - - - Gets the argument at the specified index. - - The index of the argument to get. - The argument at the specified index. - - - - Provides validation extensions for . - - - - - Constrains an argument so that it must be null (Nothing in VB). - - The type of the argument. - The constraint manager to match the constraint. - A dummy argument value. - - - - Constrains the string argument to contain the specified text. - - The constraint manager to match the constraint. - The string the argument string should contain. - A dummy argument value. - - - - Constrains the sequence so that it must contain the specified value. - - The constraint manager to match the constraint. - The value the collection should contain. - The type of sequence. - A dummy argument value. - - - - Constrains the string so that it must start with the specified value. - - The constraint manager to match the constraint. - The value the string should start with. - A dummy argument value. - - - - Constrains the string so that it must end with the specified value. - - The constraint manager to match the constraint. - The value the string should end with. - A dummy argument value. - - - - Constrains the string so that it must be null or empty. - - The constraint manager to match the constraint. - A dummy argument value. - - - - Constrains argument value so that it must be greater than the specified value. - - The constraint manager to match the constraint. - The value the string should start with. - The type of argument to constrain. - A dummy argument value. - - - - The tested argument collection should contain the same elements as the - as the specified collection. - - The constraint manager to match the constraint. - The sequence to test against. - The type of argument to constrain. - A dummy argument value. - - - - Tests that the IEnumerable contains no items. - - The type of argument. - The constraint manager to match the constraint. - A dummy argument value. - - - - Tests that the passed in argument is equal to the specified value. - - The type of the argument. - The constraint manager to match the constraint. - The value to compare to. - A dummy argument value. - - - - Tests that the passed in argument is the same instance (reference) as the specified value. - - The type of the argument. - The constraint manager to match the constraint. - The reference to compare to. - A dummy argument value. - - - - Constrains the argument to be of the specified type. - - The type of argument in the method signature. - The constraint manager. - The type to constrain the argument with. - A dummy value. - - - - Constrains the argument with a predicate. - - - The constraint manager. - - - The predicate that should constrain the argument. - - - A human readable description of the constraint. - - - The type of argument in the method signature. - - - A dummy argument value. - - - - - Constrains the argument with a predicate. - - - The constraint manager. - - - The predicate that should constrain the argument. - - - A human readable description of the constraint format string. - - - Arguments for the format string. - - - The type of argument in the method signature. - - - A dummy argument value. - - - - - Constrains the argument with a predicate. - - - The constraint manager. - - - The predicate that should constrain the argument. - - - The type of argument in the method signature. - - - A dummy argument value. - - - - - Constrains the argument to be not null (Nothing in VB) and to match - the specified predicate. - - The type of the argument to constrain. - The constraint manager. - The predicate that constrains non null values. - An action that writes a description of the constraint - to the output. - A dummy argument value. - - - - Provides extension methods for . - - - - - Specifies that a call to the configured call should be applied no matter what arguments - are used in the call to the faked object. - - The type of the interface. - The configuration. - A configuration object. - - - - Provides string formatting for arguments of type T when written in call lists. - - The type of the arguments which will be formatted by this instance. - - - - Provides string formatting for arguments when written in - call lists. - - - - - Gets a string representing the specified argument value. - - The argument value to get as a string. - A string representation of the value. - - - - Gets the type of arguments this formatter works on. - - - - - Gets the priority of the formatter, when two formatters are - registered for the same type the one with the highest - priority is used. - - - - - Gets a string representing the specified argument value. - - The argument value to get as a string. - A string representation of the value. - - - - Gets a string representing the specified argument value. - - The argument value to get as a string. - A string representation of the value. - - - - Gets the type of arguments this formatter works on. - - - - - Gets the priority of the formatter, when two formatters are - registered for the same type the one with the highest - priority is used. - - - - - Provides extension methods for . - - - - - Asserts that the specified call must have happened once or more. - - The configuration to assert on. - - - - Asserts that the specified call has not happened. - - The configuration to assert on. - - - - Provides extension methods for . - - - - - Executes the specified action when a matching call is being made. This overload can also be used to fake calls with arguments when they don't need to be accessed. - - The type of fake object. - The configuration that is extended. - The to invoke. - The fake object. - - - - Executes the specified action when a matching call is being made. - - The configuration that is extended. - The to invoke. - The type of fake object. - Type of the first argument of the faked method call. - The signatures of the faked method and the do not match. - The fake object. - - - - Executes the specified action when a matching call is being made. - - The configuration that is extended. - The to invoke. - The type of fake object. - Type of the first argument of the faked method call. - Type of the second argument of the faked method call. - The signatures of the faked method and the do not match. - The fake object. - - - - Executes the specified action when a matching call is being made. - - The configuration that is extended. - The to invoke. - The type of fake object. - Type of the first argument of the faked method call. - Type of the second argument of the faked method call. - Type of the third argument of the faked method call. - The signatures of the faked method and the do not match. - The fake object. - - - - Executes the specified action when a matching call is being made. - - The configuration that is extended. - The to invoke. - The type of fake object. - Type of the first argument of the faked method call. - Type of the second argument of the faked method call. - Type of the third argument of the faked method call. - Type of the fourth argument of the faked method call. - The signatures of the faked method and the do not match. - The fake object. - - - - Provides extension methods for . - - - - - Filters to contain only the calls that matches the call specification. - - The type of fake the call is made on. - The calls to filter. - The call to match on. - A collection of the calls that matches the call specification. - - - - Provides the base for rules that can be built using the FakeConfiguration. - - - - - Represents a call rule that has a description of the calls the - rule is applicable to. - - - - - Allows for intercepting call to a fake object and - act upon them. - - - - - Gets whether this interceptor is applicable to the specified - call, if true is returned the Apply-method of the interceptor will - be called. - - The call to check for applicability. - True if the interceptor is applicable. - - - - Applies an action to the call, might set a return value or throw - an exception. - - The call to apply the interceptor to. - - - - Gets the number of times this call rule is valid, if it's set - to null its infinitely valid. - - - - - Writes a description of calls the rule is applicable to. - - The writer. - - - - Gets if this rule is applicable to the specified call. - - The call to validate. - True if the rule applies to the call. - - - - Writes a description of calls the rule is applicable to. - - The writer to write the description to. - - - - Gets or sets an action that is called by the Apply method to apply this - rule to a fake object call. - - - - - Gets a collection of actions that should be invoked when the configured - call is made. - - - - - Gets or sets a function that provides values to apply to output and reference variables. - - - - - Gets or sets a value indicating whether the base method of the fake object call should be - called when the fake object call is made. - - - - - Gets or sets the number of times the configured rule should be used. - - - - - Gets a description of calls the rule is applicable to. - - - - - - Configuration for any call to a faked object. - - - - - Provides a way to configure predicates for when a call should be applied. - - The type of fake object that is going to be configured.. - - - - Applies a predicate to constrain which calls will be considered for interception. - - A predicate for a fake object call. - An action that writes a description of the predicate - to the output. - The configuration object. - - - - Provides configuration methods for methods that does not have a return value and - allows the use to specify validations for arguments. - - - - - Provides configuration methods for methods that does not have a return value. - - - - - Configuration that lets the developer specify that an exception should be - thrown by a fake object call. - - - - - Hides standard Object members to make fluent interfaces - easier to read. Found in the source of Autofac: - Based on blog post here: - - - - - - Hides the ToString-method. - - A string representation of the implementing object. - - - - Determines whether the specified is equal to this instance. - - The to compare with this instance. - - true if the specified is equal to this instance; otherwise, false. - - - - - Returns a hash code for this instance. - - - A hash code for this instance, suitable for use in hashing algorithms and data structures like a hash table. - - - - - Gets the type. - - The exact runtime type of the current instance. - - - - Throws the specified exception when the currently configured - call gets called. - - A function that creates the exception to throw. - Configuration object. - - - - Configuration for callbacks of fake object calls. - - The type of interface to return. - - - - Executes the specified action when a matching call is being made. - - The action to invoke. - A configuration object. - - - - Configuration that lets you specify that a fake object call should call it's base method. - - - - - When the configured method or methods are called the call - will be delegated to the base method of the faked method. - - A configuration object. - The fake object is of an abstract type or an interface - and no base method exists. - - - - Lets the developer configure output values of out and ref parameters. - - - - - Specifies a function used to produce output values for out and ref parameters. - The values should appear in the same order as the out and ref parameters in the configured call. - Any non out and ref parameters are ignored. - The function will be called each time this call is made and can return different values. - - A function that produces the output values. - A configuration object. - - - - Allows the developer to assert on a call that's configured. - - - - - Asserts that the configured call has happened the number of times - constrained by the repeatConstraint parameter. - - A constraint for how many times the call - must have happened. - The call has not been called a number of times - that passes the repeat constraint. - - - - Configures the specified call to do nothing when called. - - A configuration object. - - - - Provides configurations to validate arguments of a fake object call. - - The type of interface to return. - - - - Configures the call to be accepted when the specified predicate returns true. - - The argument predicate. - A configuration object. - - - - Matches calls that has the return type specified in the generic type parameter. - - The return type of the members to configure. - A configuration object. - - - - Manages registration of a set of components in a DictionaryContainer. - - - - - Registers the components of this module. - - The container to register components in. - - - - A factory that creates instances of the RecordingCallRuleType. - - - - - Creates the specified fake object. - - The type of the fake. - The fake object the rule belongs to. - The rule that's being recorded. - A RecordingCallRule instance. - - - - A factory responsible for creating start configuration for fake objects. - - - - - Creates a start configuration for the specified fake object that fakes the - specified type. - - The type of the fake object. - The fake object to configure. - A configuration object. - - - - An exception that can be thrown when something goes wrong with the configuration - of a fake object. - - - - - Initializes a new instance of the class. - - - - - Initializes a new instance of the class. - - The message. - - - - Initializes a new instance of the class. - - The message. - The inner exception. - - - - Initializes a new instance of the class. - - The that holds the serialized object data about the exception being thrown. - The that contains contextual information about the source or destination. - - The parameter is null. - - - The class name is null or is zero (0). - - - - - Handles the configuration of fake object given an expression specifying - a call on a faked object. - - - - - Lets you set up expectations and configure repeat for the configured call. - - - - - Provides configuration for method calls that has a return value. - - - - - Specifies the number of times for the configured event. - - The number of times to repeat. - - - - A combination of the IAfterCallSpecifiedConfiguration and IOutAndRefParametersConfiguration - interfaces. - - - - - Aggregate of IReturnValueArgumentValidationConfiguration<T> and IWhereConfiguration<IAnyCallConfigurationWithReturnTypeSpecified<T>>. - - The type of fake object that is configured. - - - - Configures a call that returns a value and allows the use to - specify validations for arguments. - - The type of the member. - - - - Configures a call that returns a value. - - The type of the member. - - - - Specifies a function used to produce a return value when the configured call is made. - The function will be called each time this call is made and can return different values - each time. - - A function that produces the return value. - A configuration object. - - - - Configurations for when a configured call is recorded. - - - - - Provides configuration from VisualBasic. - - - - - Provides methods for configuring a fake object. - - The type of fake object. - - - - Configures the behavior of the fake object when a call that matches the specified - call happens. - - The type of the return value of the member. - An expression that specifies the calls to configure. - A configuration object. - - - - Configures the behavior of the fake object when a call that matches the specified - call happens. - - An expression that specifies the calls to configure. - A configuration object. - - - - Configures the behavior of the fake object when a call is made to any method on the - object. - - A configuration object. - - - - A call rule that has been recorded. - - - - - A call rule that "sits and waits" for the next call, when - that call occurs the recorded rule is added for that call. - - The type of the fake. - - - - Provides access to a set of calls and a call matcher for these calls. - - - - - Provides access to a call matcher. - - - - - Gets a call predicate that can be used to check if a fake object call matches - the specified constraint. - - - - - Gets the set of calls. - - - - - Represents a delegate that creates a configuration object from - a fake object and the rule to build. - - The rule that's being built. - The fake object the rule is for. - A configuration object. - - - - Represents a predicate that matches a fake object call. - - - - - Gets a value indicating whether the call matches the predicate. - - The call to match. - True if the call matches the predicate. - - - - Provides configuration of faked objects. - - - - - Gets a configuration for the specified faked object. - - The type of the fake. - The faked object to configure. - A configuration object. - The specified object is not a faked object. - The fakedObject parameter was null. - - - - Represents an argument and a dummy value to use for that argument. - - - - - Initializes a new instance of the class. - - A value indicating if the dummy value was successfully resolved. - The type of argument. - The resolved value. - - - - Gets a value indicating whether a dummy argument value was successfully - resolved. - - - - - Gets the type of the argument. - - - - - Gets the resolved value. - - - - - Holds a formatter as well as the distance between a type to be formatted - and the type for which the formatted is registered. - - - - - Determines whether an assembly references FakeItEasy. - - The assembly to check. - Whether or not the assembly references FakeItEasy. - - - - Gets the simple name of the assembly. Can be used in Silverlight solutions. - - The assembly. - The simple name of the assembly. - - - - Locate an implementation. - - - Will search the app domain for a concrete implementation, - and if it can't find one will use the . - - - - - Scans app domain assemblies looking for a concrete implementation of - that is not the . - Otherwise, the first matching type is instantiated and returned, or an - instance of DefaultBootstrapper is used if no other implementation is found. - - An instance of the first non-default IBootstrapper implementation found, - or a DefaultBootstrapper. - - - - Keeps track of metadata for interceptions. - - - - - Gets whether the rule has been called the number of times specified or not. - - True if the rule has not been called the number of times specified. - - - - Gets or sets the number of times the rule has been used. - - - - - Gets or sets the rule this metadata object is tracking. - - - - - Manages attaching of argument constraints. - - The type of argument to constrain. - - - - Constrains the argument with a predicate. - - The predicate that should constrain the argument. - An action that will be write a description of the constraint. - A dummy argument value. - - - - Inverts the logic of the matches method. - - - - - Validates an argument, checks that it's valid in a specific fake call. - - - - - Writes a description of the argument constraint to the specified writer. - - - The writer. - - - - - Gets whether the argument is valid. - - The argument to validate. - True if the argument is valid. - - - - Default implementation of . - - - - - Attaches a fake manager to the proxy so that intercepted - calls can be configured. - - - - - Gets the fake manager associated with the proxy. - - The proxy to get the manager from. - A fake manager. - - - - Tags a proxy object, so that it can accessed later by . - - The proxy to tag. - The fake manager. - - - - Gets the fake manager associated with the proxy. - - The proxy to get the manager from. - A fake manager. - - - - Represents an object that can be tagged with another object. When implemented - by a proxy returned from an FakeItEasy uses the tag - to store a reference to the that handles that proxy. - - - - - Gets or sets the tag. - - - - - The default implementation of the IFakeObjectCallFormatter interface. - - - - - Provides string formatting for fake object calls. - - - - - Gets a human readable description of the specified - fake object call. - - The call to get a description for. - A description of the call. - - - - Gets a human readable description of the specified - fake object call. - - The call to get a description for. - A description of the call. - - - - Handles configuring of fake objects to delegate all their calls to a wrapped instance. - - - - - Manages configuration of fake objects to wrap instances. - - - - - Configures the specified faked object to wrap the specified instance. - - The faked object to configure. - The instance to wrap. - The recorder to use, null if no recording should be made. - - - - Configures the specified faked object to wrap the specified instance. - - The faked object to configure. - The instance to wrap. - The recorder to use, null if no recording should be made. - - - - A fake object container where delegates can be registered that are used to - resolve fake objects. - - - - - A container that can create fake objects. - - - - - Handles global configuration of fake object. - - - - - Applies base configuration to a fake object. - - The type the fake object represents. - The fake object to configure. - - - - Creates a dummy object of the specified type using the specified arguments if it's - supported by the container, returns a value indicating if it's supported or not. - - The type of dummy object to create. - The dummy object that was created if the method returns true. - True if a dummy object can be created. - - - - Initializes a new instance of the class. - Creates a new instance of the DelegateFakeObjectContainer. - - - - - Creates a fake object of the specified type using the specified arguments if it's - supported by the container, returns a value indicating if it's supported or not. - - The type of dummy object to create. - The fake object that was created if the method returns true. - True if a fake object can be created. - - - - Configures the fake. - - The type of fake. - The fake object. - - - - Registers the specified fake delegate. - - The type of the return value of the method that encapsulates. - The fake delegate. - - - - A IFakeObjectContainer implementation that uses MEF to load IFakeDefinitions and - IFakeConfigurations. - - - - - Initializes a new instance of the class. - - The dummy definitions. - The fake configurators. - - - - Creates a fake object of the specified type using the specified arguments if it's - supported by the container, returns a value indicating if it's supported or not. - - The type of fake object to create. - The fake object that was created if the method returns true. - True if a fake object can be created. - - - - Applies base configuration to a fake object. - - The type the fake object represents. - The fake object to configure. - - - - An exception that is thrown when there was an error creating a fake object. - - - - - Initializes a new instance of the class. - - - - - Initializes a new instance of the class. - - The message. - - - - Initializes a new instance of the class. - - The message. - The inner exception. - - - - Initializes a new instance of the class. - - The that holds the serialized object data about the exception being thrown. - The that contains contextual information about the source or destination. - - The parameter is null. - - - The class name is null or is zero (0). - - - - Auto fake property rule. - - The central point in the API for proxied fake objects handles interception - of fake object calls by using a set of rules. User defined rules can be inserted - by using the AddRule-method. - - Event rule. - Object member rule. - Property behavior rule. - Property setter rule. - - - - Represents the target of intercepted calls of a fake proxy. An implementation of this interface receives calls, gets its arguments - and can provide return values. - - - - - Processes an intercepted call of a fake proxy. - - The call information (like which method has been called, its arguments, ...). - - - - Initializes a new instance of the class. - - The faked type. - The faked proxy object. - - - - Adds a call rule to the fake object. - - The rule to add. - - - - Adds a call rule last in the list of user rules, meaning it has the lowest priority possible. - - The rule to add. - - - - Removes the specified rule for the fake object. - - The rule to remove. - - - - Adds an interception listener to the manager. - - The listener to add. - - - - Removes any specified user rules. - - - - - Gets the faked proxy object. - - - - - Gets the faked type. - - - - - Gets the interceptions that are currently registered with the fake object. - - - - - Gets a collection of all the calls made to the fake object within the current scope. - - - - - A delegate responsible for creating FakeObject instances. - - The faked type. - The faked proxy object. - An instance of . - - - - Represents a call to a fake object at interception time. - - - - - Represents a fake object call that can be edited. - - - - - Represents a call to a fake object. - - - - - Gets the method that's called. - - - - - Gets the arguments used in the call. - - - - - Gets the faked object the call is performed on. - - - - - Sets the return value of the call. - - The return value to set. - - - - Calls the base method of the faked type. - - - - - Sets the value of the argument at the specified index in the parameters list. - - The index of the argument to set the value of. - The value to set to the argument. - - - - Freezes the call so that it can no longer be modified. - - A completed fake object call. - - - - Sets that the call should not be recorded by the fake manager. - - - - - Attempts to preserve the stack trace of an existing exception when rethrown via throw or throw ex. - - Nicked from - http://weblogs.asp.net/fmarguerie/archive/2008/01/02/rethrowing-exceptions-and-preserving-the-full-call-stack-trace.aspx. - If reduced trust context (for example) precludes - invoking internal members on , the stack trace will not be preserved. - - The exception whose stack trace needs preserving. - - - - Implementation of , which returns a as "call processor" lazily (on - the first call of or ). - - - Note that we just need to serialize the + the lock (an "empty", *new* object will be deserialized) - because doesn't require serializability before the first call of or - (see remarks section of ). - - - - - The responsibility of this interface is to instantiate a new and to fully initialize it (e.g. - applying the initial configuration). This should happen one time on the first call of or - . - - - - Note that the implementation of this interface must be thread-safe and guarantee the one-time-initialization property when accessing - the interface methods concurrently (could happen when using this provider in spawned threads in a proxy base constructor). - - - An implementation of this interface should also be serializable and the deserialized object should behave like the original one - *after* it has been initialized (i.e. after the first call of or ) because - we don't need to serialize a fake before it has been initialized (returned to the user). - - - - - - Create and initialize a new for . - - The corresponding proxy object of the new . - The created . - - - - Ensures that the is initialized (and can be used via the proxy's tag later on). - - The corresponding proxy object of the new . - - - - Represents a scope for fake objects, calls configured within a scope - are only valid within that scope. Only calls made within a scope - are accessible from within a scope so for example asserts will only - assert on those calls done within the scope. - - - - - Provides access to all calls made to fake objects within a scope. - Scopes calls so that only calls made within the scope are visible. - - - - - Creates a new scope and sets it as the current scope. - - The created scope. - - - - Creates a new scope and sets it as the current scope, using the specified - container as the container for the new scope. - - The container to use for the new scope. - The created scope. - - - - Closes the scope. - - - - - Adds an intercepted call to the current scope. - - The fake object. - The call that is intercepted. - - - - Adds a fake object call to the current scope. - - The fake object. - The rule to add. - - - - Represents a completed call to a fake object. - - - - - Gets the value set to be returned from the call. - - - - - Used by the event raising rule of fake objects to get the event arguments used in - a call to Raise.With. - - - - - Gets the sender of the event. - - - - - Gets the event arguments of the event. - - - - - Represents a listener for fake object calls, can be plugged into a - FakeManager instance to listen to all intercepted calls. - - The OnBeforeCallIntercepted method will be invoked before the OnBeforeCallIntercepted method of any - previously added listener. The OnAfterCallIntercepted method will be invoked after the OnAfterCallIntercepted - method of any previously added listener. - - - - Called when the interception begins but before any call rules - has been applied. - - The intercepted call. - - - - Called when the interception has been completed and rules has been - applied. - - The intercepted call. - The rule that was applied to the call. - - - - Provides a set of types that are available. - - - - - Gets a collection of available types. - - The available types. - - - - Handles comparisons of instances of . - - - - - Gets a value indicating whether the two instances of would invoke the same method - if invoked on an instance of the target type. - - The type of target for invocation. - The first . - The second . - True if the same method would be invoked. - - - - A null implementation for the IFakeObjectContainer interface. - - - - - Always returns false and sets the fakeObject to null. - - The type of dummy object to create. - Output variable for the fake object that will always be set to null. - Always return false. - - - - Applies base configuration to a fake object. - - The type the fake object represents. - The fake object to configure. - - - - Provides access to all types in: - - FakeItEasy, - assemblies loaded into the current that reference FakeItEasy and - assemblies whose paths are supplied to the constructor, that also reference FakeItEasy. - - - - - - Loads the available types into the . - - - The full paths to assemblies from which to load types, - as well as assemblies loaded into the current . - - - - - Gets a collection of available types. - - The available types. - - - - Provides instances from type catalogues. - - - - - Gets an instance per type in the catalogue that is a descendant - of the specified type. - - The type of instances to get. - A sequence of instances of the specified type. - - - - A call rule that applies to any call and just delegates the - call to the wrapped object. - - - - - Initializes a new instance of the class. - Creates a new instance. - - - The object to wrap. - - - - - Gets whether this interceptor is applicable to the specified - call, if true is returned the Apply-method of the interceptor will - be called. - - The call to check for applicability. - True if the interceptor is applicable. - - - - Applies an action to the call, might set a return value or throw - an exception. - - The call to apply the interceptor to. - - - - Gets the number of times this call rule is valid, if it's set - to null its infinitely valid. - - - - - - An interface to be implemented by classes that can generate proxies for FakeItEasy. - - - - - Generates a proxy of the specified type and returns a result object containing information - about the success of the generation and the proxy if it was generated. - - The type of proxy to generate. - Interfaces to be implemented by the proxy. - Arguments to pass to the constructor of the type in . - The custom attribute builders. - The call processor provider. - A result containing the generated proxy. - - - - Generates a proxy of the specified type and returns a result object containing information - about the success of the generation and the proxy if it was generated. - - The type of proxy to generate. - Interfaces to be implemented by the proxy. - Arguments to pass to the constructor of the type in . - The call processor provider. - A result containing the generated proxy. - - - - Gets a value indicating whether the specified member can be intercepted by the proxy generator. - - The member to test. - The instance the method will be called on. - The reason the method can not be intercepted. - True if the member can be intercepted. - - - - An adapter that adapts an to a . - - - - - Initializes a new instance of the class. - - The invocation. - - - - Freezes the call so that it can no longer be modified. - - A completed fake object call. - - - - Calls the base method, should not be used with interface types. - - - - - Sets the specified value to the argument at the specified index. - - The index of the argument to set the value to. - The value to set to the argument. - - - - Sets the return value of the call. - - The return value. - - - - Returns a description of the call. - - - A that represents this instance. - - - - - Gets a human readable description of the call. - - - - - - Gets the value set to be returned from the call. - - - - - Gets the method that's called. - - - - - Gets the arguments used in the call. - - - - - Gets the faked object the call is performed on. - - - - - A strongly-typed resource class, for looking up localized strings, etc. - - - - - Returns the cached ResourceManager instance used by this class. - - - - - Overrides the current thread's CurrentUICulture property for all - resource lookups using this strongly typed resource class. - - - - - Looks up a localized string similar to No constructor matches the passed arguments for constructor.. - - - - - Looks up a localized string similar to Arguments for constructor specified for interface type.. - - - - - Looks up a localized string similar to The type of proxy "{0}" is sealed.. - - - - - Looks up a localized string similar to The type of proxy must be an interface or a class but it was {0}.. - - - - - Looks up a localized string similar to No usable default constructor was found on the type {0}.. - - - - - The default implementation of the IFakeAndDummyManager interface. - - - - - Handles the creation of fake and dummy objects. - - - - - Creates a dummy of the specified type. - - The type of dummy to create. - The created dummy. - The current IProxyGenerator is not able to generate a fake of the specified type and - the current IFakeObjectContainer does not contain the specified type. - - - - Creates a fake object of the specified type. - - The type of fake object to generate. - Options for building the fake object. - A fake object. - The current IProxyGenerator is not able to generate a fake of the specified type. - - - - Tries to create a dummy of the specified type. - - The type of dummy to create. - Outputs the result dummy when creation is successful. - A value indicating whether the creation was successful. - - - - Tries to create a fake object of the specified type. - - The type of fake to create. - Options for the creation of the fake. - The created fake object when creation is successful. - A value indicating whether the creation was successful. - - - - Default implementation of the IFakeCreator-interface. - - - - - A facade used by the public API for testability. - - - - - Creates a fake object of the specified type. - - The type of fake to create. - Options for the created fake object. - The created fake object. - Was unable to generate the fake in the current configuration. - - - - Creates a dummy object, this can be a fake object or an object resolved - from the current IFakeObjectContainer. - - The type of dummy to create. - The created dummy. - Was unable to generate the fake in the current configuration and - no dummy was registered in the container for the specified type.. - - - - Creates a collection of fakes of the specified type. - - The type of fakes to create. - The number of fakes in the collection. - A collection of fake objects of the specified type. - - - - Initializes a new instance of the class. - - The fake and dummy manager. - - - - Creates a fake object of the specified type. - - The type of fake to create. - Options for the created fake object. - The created fake object. - Was unable to generate the fake in the current configuration. - - - - Creates a collection of fakes of the specified type. - - The type of fakes to create. - The number of fakes in the collection. - - A collection of fake objects of the specified type. - - - - - Creates a dummy object, this can be a fake object or an object resolved - from the current IFakeObjectContainer. - - The type of dummy to create. - The created dummy. - Was unable to generate the fake in the current configuration and - no dummy was registered in the container for the specified type.. - - - - Provides options for fake wrappers. - - The type of the fake object generated. - - - - Provides options for generating fake object. - - The type of fake object generated. - - - - Specifies arguments for the constructor of the faked class. - - The arguments to pass to the constructor of the faked class. - Options object. - - - - Specifies arguments for the constructor of the faked class by giving an expression with the call to - the desired constructor using the arguments to be passed to the constructor. - - The constructor call to use when creating a class proxy. - Options object. - - - - Specifies that the fake should delegate calls to the specified instance. - - The object to delegate calls to. - Options object. - - - - Specifies that the fake should be created with these additional attributes. - - The attributes to build into the proxy. - Options object. - - - - Sets up the fake to implement the specified interface in addition to the - originally faked class. - - The type of interface to implement. - Options object. - The specified type is not an interface. - The specified type is null. - - - - Specifies an action that should be run over the fake object - once it's created. - - An action to perform. - Options object. - - - - Specifies a fake recorder to use. - - The recorder to use. - Options object. - - - - Initializes a new instance of the class. - - The container. - The fake object creator. - - - - Contains the result of a call to TryCreateProxy of IProxyGenerator. - - - - - Initializes a new instance of the class. - Creates a new instance representing a failed proxy - generation attempt. - - - The reason the proxy generation failed. - - - - - Initializes a new instance of the class. - Creates a new instance representing a failed proxy - generation attempt due to an exception being caught. - - - The reason the proxy generation failed. - - - The exception thrown from the creation attempt. - - - - - Initializes a new instance of the class. - Creates a new instance representing a successful proxy - generation. - - - The proxy that was generated. - - - - - Gets a value indicating whether the proxy was successfully created. - - - - - Gets the generated proxy when it was successfully created. - - - - - Gets the reason for failure when the generation was not successful. - - - - - The default bootstrapper, used to initialize FakeItEasy unless another - implementation of is present in the assemblies - loaded in the app domain. - - - - - Bootstrapper for FakeItEasy. - - - When FakeItEasy is initialized, it scans the executing app domain for implementations - of this interface. If any are found, one will be instantiated and used to bootstrap - FakeItEasy. If no implementations are found, then a - will be used. - The recommended way to implement IBootstrapper is to extend DefaultBootstrapper - and override selected methods. - - - - - Provides a list of assembly file names to scan for extension points, such as - s, s, and - s. - - A list of absolute paths pointing to assemblies to scan for extension points. - - - - When overridden in a derived class, provides a custom list of assembly file - names to scan for extension points, such as - s, s, and - s. - - - An empty list, but may be overridden to provide a list of absolute paths - to assemblies to scan for extension points. - - - - - Represents a text writer that writes to the output. - - - - - Writes the specified value to the output. - - The value to write. - The writer for method chaining. - - - - Formats the specified argument value as a string and writes - it to the output. - - The value to write. - The writer for method chaining. - - - - Indents the writer. - - A disposable that will unindent the writer when disposed. - - - - Represents a definition of how a fake object of the type T should - be created. - - The type of fake. - - - - Represents a definition of how dummies of the specified type should be created. - - - - - Creates the fake. - - The fake object. - - - - Gets the type of fake object the definition is for. - - - - - Creates the dummy. - - The dummy object. - - - - Creates the dummy. - - The dummy object. - - - - Gets the type the definition is for. - - For type. - - - - Provides extension methods for generic usage of . - - - - - Gets an enumerable of tuples where the first value of each tuple is a value - from the first collection and the second value of each tuple is the value at the same position - from the second collection. - - The type of values in the first collection. - The type of values in the second collection. - The first of the collections to combine. - The second of the collections to combine. - An enumerable of tuples. - - - - Joins the collection to a string. - - The type of items in the collection. - The items to join. - A function that converts from an item to a string value. - Separator to insert between each item. - A string representation of the collection. - - - - Gets a dictionary containing the first element from the sequence that has a key specified by the key selector. - - The type of items in the sequence. - The type of the key. - The sequence. - The key selector. - A dictionary. - - - - A strongly-typed resource class, for looking up localized strings, etc. - - - - - Returns the cached ResourceManager instance used by this class. - - - - - Overrides the current thread's CurrentUICulture property for all - resource lookups using this strongly typed resource class. - - - - - Looks up a localized string similar to The Apply method of the ExpressionInterceptor may no be called before the Applicator property has been set.. - - - - - Looks up a localized string similar to The specified argument name does not exist in the ArgumentList.. - - - - - Looks up a localized string similar to Arguments for constructor was specified when generating proxy of interface type.. - - - - - Looks up a localized string similar to An argument validation was not configured correctly.. - - - - - Looks up a localized string similar to The method '{0}' was called too few times, expected #{1} times but was called #{2} times.. - - - - - Looks up a localized string similar to The method '{0}' was called too many times, expected #{1} times but was called #{2} times.. - - - - - Looks up a localized string similar to Can not create fake of the type '{0}', it's not registered in the current container and the current IProxyGenerator can not generate the fake. - - The following constructors failed: - {1}. - - - - - Looks up a localized string similar to Error when accessing FakeObject, the specified argument is of the type '{0}' which is not faked.. - - - - - Looks up a localized string similar to An ExpressionCallMatcher can only be created for expressions that represents a method call or a property getter.. - - - - - Looks up a localized string similar to - - The current proxy generator failed to create a proxy with the specified arguments for the constructor: - - Reason for failure: - - {0} - - . - - - - - Looks up a localized string similar to FakeItEasy failed to create fake object of type "{0}". - - 1. The type is not registered in the current IFakeObjectContainer. - 2. The current IProxyGenerator failed to generate a proxy for the following reason: - - {1}. - - - - - Looks up a localized string similar to Unable to create fake object.. - - - - - Looks up a localized string similar to The fake manager was initialized for a different proxy.. - - - - - Looks up a localized string similar to Only abstract classes can be faked using the A.Fake-method that takes an enumerable of objects as arguments for constructor, use the overload that takes an expression instead.. - - - - - Looks up a localized string similar to The member accessor expression must be a lambda expression with a MethodCallExpression or MemberAccessExpression as its body.. - - - - - Looks up a localized string similar to The specified method can not be configured since it can not be intercepted by the current IProxyGenerator.. - - - - - Looks up a localized string similar to The method of the call did not match the method of the recorded call, the recorded sequence is no longer valid.. - - - - - Looks up a localized string similar to No constructor matching the specified arguments was found on the type {0}.. - - - - - Looks up a localized string similar to Can not generate fake object for the class since no usable default constructor was found, specify a constructor call.. - - - - - Looks up a localized string similar to All the recorded calls has been applied, the recorded sequence is no longer valid.. - - - - - Looks up a localized string similar to Only expression of the type ExpressionType.New (constructor calls) are accepted.. - - - - - Looks up a localized string similar to The Now-method on the event raise is not meant to be called directly, only use it to register to an event on a fake object that you want to be raised.. - - - - - Looks up a localized string similar to The number of values for out and ref parameters specified does not match the number of out and ref parameters in the call.. - - - - - Looks up a localized string similar to A scope for ordered assertions is already opened, close that scope before opening another one.. - - - - - Looks up a localized string similar to The specified call is not made on a fake object.. - - - - - Looks up a localized string similar to The current fake proxy generator can not create proxies of the type {0}.. - - - - - Looks up a localized string similar to FakeItEasy was unable to create dummy of type "{0}", register it in the current IFakeObjectContainer to enable this.. - - - - - Looks up a localized string similar to Expected to find call {0} the number of times specified by the predicate '{1}' but found it {2} times among the calls:. - - - - - Looks up a localized string similar to The number of argument names does not match the number of arguments.. - - - - - Provides the extension methods for . - - - - - Throws the specified exception when the currently configured - call gets called. - - The configuration to use. - The exception to throw when a call that matches is invoked. - Configuration object. - - - - Throws the specified exception when the currently configured - call gets called. - - The configuration to use. - A function that returns the exception to throw when invoked. - Configuration object. - - - - Throws the specified exception when the currently configured - call gets called. - - The configuration to use. - A function that returns the exception to throw when invoked. - Type of the first argument of the faked method call. - Configuration object. - The signatures of the faked method and the do not match. - - - - Throws the specified exception when the currently configured - call gets called. - - The configuration to use. - A function that returns the exception to throw when invoked. - Type of the first argument of the faked method call. - Type of the second argument of the faked method call. - Configuration object. - The signatures of the faked method and the do not match. - - - - Throws the specified exception when the currently configured - call gets called. - - The configuration to use. - A function that returns the exception to throw when invoked. - Type of the first argument of the faked method call. - Type of the second argument of the faked method call. - Type of the third argument of the faked method call. - Configuration object. - The signatures of the faked method and the do not match. - - - - Throws the specified exception when the currently configured - call gets called. - - The configuration to use. - A function that returns the exception to throw when invoked. - Type of the first argument of the faked method call. - Type of the second argument of the faked method call. - Type of the third argument of the faked method call. - Type of the fourth argument of the faked method call. - Configuration object. - The signatures of the faked method and the do not match. - - - - Throws the specified exception when the currently configured - call gets called. - - The configuration to use. - The type of exception to throw. - Configuration object. - - - - An exception thrown when an expectation is not met (when asserting on fake object calls). - - - - - Initializes a new instance of the class. - - - - - Initializes a new instance of the class. - - The message. - - - - Initializes a new instance of the class. - - The message. - The inner exception. - - - - Initializes a new instance of the class. - - The that holds the serialized object data about the exception being thrown. - The that contains contextual information about the source or destination. - - The parameter is null. - - - The class name is null or is zero (0). - - - - - Provides extension methods for . - - - - - Evaluates an expression by compiling it into a delegate and invoking the delegate. - - The expression to be evaluated. - The value returned from the delegate compiled from the expression. - - - - An object that may provide argument values, for example as implicitly-defined values for - methods' out parameters. - - - - - Gets the value that was used when specifying the constraint. - Used for implicit assignment of out parameter values, not for matching. - Since the called method has no access to the incoming parameter value, - there's no use in accepting or rejecting calls based on the - incoming parameter value. - - - - - Initializes a new instance of the class by - wrapping an existing . - - The original constraint, which will be used for argument validation. - The value to be used when implicitly assigning values to a call's ref parameter. - - - - Gets the value that was used when specifying the constraint. - Used for implicit assignment of ref parameter values. - - - - - Represents a class that can parse a lambda expression - that represents a method or property call. - - - - - Parses the specified expression. - - The expression to parse. - The parsed expression. - - - - Handles the matching of fake object calls to expressions. - - - - - Initializes a new instance of the class. - - The call specification. - The constraint factory. - The method info manager to use. - A parser to use to parse call expressions. - - - - Matches the specified call against the expression. - - The call to match. - True if the call is matched by the expression. - - - - Gets a description of the call. - - Description of the call. - - - - Gets a human readable description of calls that will be matched by this - matcher. - - - - - An implementation of the interface that uses - expressions for evaluating if the rule is applicable to a specific call. - - - - - Initializes a new instance of the class. - - The expression matcher to use. - - - - Returns a that represents this instance. - - - A that represents this instance. - - - - - Handles the instantiation of ExpressionCallRule instance. - - An expression specifying the call. - A rule instance. - - - - Manages breaking call specification expression into their various parts. - - - - - Manages breaking call specification expression into their various parts. - - - - - Gets the fake object an expression is called on. - - The call expression. - The FakeManager instance that manages the faked object the call is made on. - The fakeObjectCall is null. - The specified expression is not an expression where a call is made to a faked object. - - - - Gets the fake object an expression is called on. - - The call expression. - A FakeObject. - The fakeObjectCall is null. - The specified expression is not an expression where a call is made to a faked object. - - - - Provides extension methods for configuring and asserting on faked objects - without going through the static methods of the Fake-class. - - - - - Configures the behavior of the fake object when a call that matches the specified - call happens. - - The type of fake object to configure. - The type of the return value of the member. - The faked object to configure. - An expression that specifies the calls to configure. - A configuration object. - - - - Configures the behavior of the fake object when a call that matches the specified - call happens. - - The faked object to configure. - The type of fake object to configure. - An expression that specifies the calls to configure. - A configuration object. - - - - Configures the behavior of the fake object when a call is made to any method on the - object. - - The type of the fake. - The faked object. - A configuration object. - - - - Provides an extension method for configuring fake objects. - - - - - Gets an object that provides a fluent interface syntax for configuring - the fake object. - - The type of the fake object. - The fake object to configure. - A configuration object. - The fakedObject was null. - The object passed in is not a faked object. - - - - Provides static methods for accessing fake objects. - - - - - Gets the fake object that manages the faked object. - - The faked object to get the manager object for. - The fake object manager. - - - - Creates a new scope and sets it as the current scope. When inside a scope the - getting the calls made to a fake will return only the calls within that scope and when - asserting that calls were made, the calls must have been made within that scope. - - The created scope. - - - - Creates a new scope and sets it as the current scope. When inside a scope the - getting the calls made to a fake will return only the calls within that scope and when - asserting that calls were made, the calls must have been made within that scope. - - The container to use within the specified scope. - The created scope. - - - - Gets a value indicating whether the two objects are equal. - - The first object to compare. - The second object to compare. - True if the two objects are equal. - - - - Gets a value indicating whether the two objects are the same reference. - - The object A. - The object B. - True if the objects are the same reference. - - - - Gets all the calls made to the specified fake object. - - The faked object. - A collection containing the calls to the object. - The object passed in is not a faked object. - - - - Clears the configuration of the faked object. - - The faked object to clear the configuration of. - - - - Sets a new fake to each property or field that is tagged with the FakeAttribute in the specified - fixture. - - The object to initialize. - - - - Represents a fake object that provides an API for configuring a faked object, exposed by the - FakedObject-property. - - The type of the faked object. - - - - Initializes a new instance of the class. - Creates a new fake object. - - - - - Initializes a new instance of the class. - Creates a new fake object using the specified options. - - - Options used to create the fake object. - - - - - Configures calls to the specified member. - - An expression specifying the call to configure. - A configuration object. - - - - Configures calls to the specified member. - - The type of value the member returns. - An expression specifying the call to configure. - A configuration object. - - - - Configures any call to the fake object. - - A configuration object. - - - - Gets the faked object. - - - - - Gets all calls made to the faked object. - - - - - Used to tag fields and properties that will be initialized through the - Fake.Initialize-method. - - - - - Provides the base implementation for the IFakeConfigurator-interface. - - The type of fakes the configurator can configure. - - - - Provides configurations for fake objects of a specific type. - - - - - Applies the configuration for the specified fake object. - - The fake object to configure. - - - - Gets the type the instance provides configuration for. - - - - - Configures the fake. - - The fake object. - - - - Applies the configuration for the specified fake object. - - The fake object to configure. - - - - Asserts the type of the that fake is of correct. - - The fake object. - - - - Gets the type the instance provides configuration for. - - - - - - Provides extension methods for . - - - - - Gets the argument at the specified index in the arguments collection - for the call. - - The type of the argument to get. - The call to get the argument from. - The index of the argument. - The value of the argument with the specified index. - - - - Gets the argument with the specified name in the arguments collection - for the call. - - The type of the argument to get. - The call to get the argument from. - The name of the argument. - The value of the argument with the specified name. - - - - Writes the calls in the collection to the specified output writer. - - The type of the calls. - The calls to write. - The writer to write the calls to. - - - - Writes all calls in the collection to the console. - - The type of the calls. - The calls to write. - - - - Gets the description of a call to a fake object. - - The call to describe. - A description of the call. - - - - Provides extension methods for . - - - - - Makes the fake strict, this means that any call to the fake - that has not been explicitly configured will throw an exception. - - The type of fake object. - The configuration. - A configuration object. - - - - Makes the fake default to calling base methods, so long as they aren't abstract. - - The type of fake object. - The configuration. - A configuration object. - - - - Provides methods for guarding method arguments. - - - - - Throws an exception if the specified argument is null. - - The argument. - Name of the argument. - The specified argument was null. - - - - When applied to a parameter, this attribute provides an indication to code analysis that the argument has been null checked. - - - - - Provides access to the file system. - - - - - Opens the specified file in the specified mode. - - The full path and name of the file to open. - The mode to open the file in. - A stream for reading and writing the file. - - - - Gets a value indicating whether the specified file exists. - - The path and name of the file to check. - True if the file exists. - - - - Creates a file with the specified name. - - The name of the file to create. - - - - A simple implementation of an IoC container. - - - - - The dictionary that stores the registered services. - - - - - Initializes a new instance of the class. - - - - - Resolves an instance of the specified component type. - - Type of the component. - An instance of the component type. - - - - Registers the specified resolver. - - The type of component to register. - The resolver. - - - - Registers the specified resolver as a singleton. - - The type of component to register. - The resolver. - - - - Provides properties and methods to specify repeat. - - - - - Specifies the number of times as repeat. - - The number of times expected. - A Repeated instance. - - - - Specifies once as the repeat. - - - - - Specifies twice as the repeat. - - - - - Provides extension methods for . - - - - - Lets you specify options for the next call to a fake object. - - - - - Specifies options for the next call to the specified fake object. The next call will - be recorded as a call configuration. - - The type of the faked object. - The faked object to configure. - A call configuration object. - - - - Provides functionality for making ordered assertions on fakes. - - - - - Creates a scope that changes the behavior on asserts so that all asserts within - the scope must be to calls in the specified collection of calls. Calls must have happened - in the order that the asserts are specified or the asserts will fail. - - The calls to assert among. - A disposable used to close the scope. - - - - Provides extension methods for . - - - - - Specifies output values for out and ref parameters. The values should appear - in the same order as the out and ref parameters in the configured call. - Any non out and ref parameters are ignored. - The function will be called each time this call is made and can return different values. - - The configuration to extend. - The values. - A configuration object. - - - - Specifies a function used to produce output values for out and ref parameters. - The values should appear in the same order as the out and ref parameters in the configured call. - Any non out and ref parameters are ignored. - The function will be called each time this call is made and can return different values. - - Type of the first argument of the faked method call. - The configuration to extend. - A function that produces the output values. - A configuration object. - - The signatures of the faked method and the do not match. - - - - - Specifies a function used to produce output values for out and ref parameters. - The values should appear in the same order as the out and ref parameters in the configured call. - Any non out and ref parameters are ignored. - The function will be called each time this call is made and can return different values. - - Type of the first argument of the faked method call. - Type of the second argument of the faked method call. - The configuration to extend. - A function that produces the output values. - A configuration object. - - The signatures of the faked method and the do not match. - - - - - Specifies a function used to produce output values for out and ref parameters. - The values should appear in the same order as the out and ref parameters in the configured call. - Any non out and ref parameters are ignored. - The function will be called each time this call is made and can return different values. - - Type of the first argument of the faked method call. - Type of the second argument of the faked method call. - Type of the third argument of the faked method call. - The configuration to extend. - A function that produces the output values. - A configuration object. - - The signatures of the faked method and the do not match. - - - - - Specifies a function used to produce output values for out and ref parameters. - The values should appear in the same order as the out and ref parameters in the configured call. - Any non out and ref parameters are ignored. - The function will be called each time this call is made and can return different values. - - Type of the first argument of the faked method call. - Type of the second argument of the faked method call. - Type of the third argument of the faked method call. - Type of the fourth argument of the faked method call. - The configuration to extend. - A function that produces the output values. - A configuration object. - - The signatures of the faked method and the do not match. - - - - - Provides extensions for . - - - - - Writes a new line to the writer. - - The writer to write to. - The writer. - - - - Writes the format string to the writer. - - The writer to write to. - The format string to write. - Replacements for the format string. - The writer. - - - - Writes the specified object to the writer (using the ToString-method of the object). - - The writer to write to. - The value to write to the writer. - The writer. - - - - Allows the developer to raise an event on a faked object. - - - - - Raises an event on a faked object by attaching the event handler produced by the method - to the event that is to be raised. - - The type of the event args. - The sender of the event. - The instance containing the event data. - A Raise(TEventArgs)-object that exposes the event handler to attach. - - - - Raises an event on a faked object by attaching the event handler produced by the method - to the event that is to be raised. - - The type of the event arguments. - The instance containing the event data. - - A Raise(TEventArgs)-object that exposes the event handler to attach. - - - - - Raises an event with empty event arguments on a faked object by attaching the event handler produced by the method - to the event that is to be raised. - - - A Raise(TEventArgs)-object that exposes the event handler to attach. - - - - - A class exposing an event handler to attach to an event of a faked object - in order to raise that event. - - The type of the event args. - - - - Converts a raiser into an - - The raiser to convert. - The new event handler - - - - Converts a raiser into an - - The raiser to convert. - The new event handler - - - - Register this event handler to an event on a faked object in order to raise that event. - - The sender of the event. - Event args for the event. - - - - Register this event handler to an event on a faked object in order to raise that event. - - The sender of the event. - Event args for the event. - - - - Gets a generic event handler to attach to the event to raise. - - - - - Provides methods for creating recorders for self initializing fakes. - - - - - Gets a recorder that records to and loads calls from the specified file. - - The file to use for recording. - A recorder instance. - - - - Provides extensions for . - - - - - Specifies NumberOfTimes(1) to the repeat configuration. - - The configuration to set repeat 1 to. - - - - Specifies NumberOfTimes(2) to the repeat configuration. - - The configuration to set repeat 2 to. - - - - Provides syntax for specifying the number of times a call must have been repeated when asserting on - fake object calls. - - A.CallTo(() => foo.Bar()).Assert(Happened.Once.Exactly); - - - - Specifies that a call must have been repeated a number of times - that is validated by the specified repeatValidation argument. - - A predicate that specifies the number of times - a call must have been made. - A Repeated-instance. - - - - When implemented gets a value indicating if the repeat is matched - by the Happened-instance. - - The repeat of a call. - True if the repeat is a match. - - - - Asserts that a call has not happened at all. - - - - - The call must have happened exactly the number of times that is specified in the next step. - - - - - The call must have happened any number of times greater than or equal to the number of times that is specified - in the next step. - - - - - The call must have happened any number of times less than or equal to the number of times that is specified - in the next step. - - - - - Provides extension methods for . - - - - - Specifies the value to return when the configured call is made. - - The type of the return value. - The configuration to extend. - The value to return. - A configuration object. - - - - Specifies a function used to produce a return value when the configured call is made. - The function will be called each time this call is made and can return different values - each time. - - The type of the return value. - The configuration to extend. - A function that produces the return value. - A configuration object. - - - - Specifies a function used to produce a return value when the configured call is made. - The function will be called each time this call is made and can return different values - each time. - - The type of the return value. - Type of the first argument of the faked method call. - The configuration to extend. - A function that produces the return value. - A configuration object. - The signatures of the faked method and the do not match. - - - - Specifies a function used to produce a return value when the configured call is made. - The function will be called each time this call is made and can return different values - each time. - - The configuration to extend. - A function that produces the return value. - The type of the return value. - Type of the first argument of the faked method call. - Type of the second argument of the faked method call. - A configuration object. - The signatures of the faked method and the do not match. - - - - Specifies a function used to produce a return value when the configured call is made. - The function will be called each time this call is made and can return different values - each time. - - The configuration to extend. - A function that produces the return value. - The type of the return value. - Type of the first argument of the faked method call. - Type of the second argument of the faked method call. - Type of the third argument of the faked method call. - A configuration object. - The signatures of the faked method and the do not match. - - - - Specifies a function used to produce a return value when the configured call is made. - The function will be called each time this call is made and can return different values - each time. - - The configuration to extend. - A function that produces the return value. - The type of the return value. - Type of the first argument of the faked method call. - Type of the second argument of the faked method call. - Type of the third argument of the faked method call. - Type of the fourth argument of the faked method call. - A configuration object. - The signatures of the faked method and the do not match. - - - - Configures the call to return the next value from the specified sequence each time it's called. - After the sequence has been exhausted, the call will revert to the previously configured behavior. - - The type of return value. - The call configuration to extend. - The values to return in sequence. - - - - Handles the registration of root dependencies in an IoC-container. - - - - - Registers the dependencies. - - The container to register the dependencies in. - - - - DTO for recorded calls. - - - - - Initializes a new instance of the class. - - The method. - The output arguments. - The return value. - - - - Gets the method that was called. - - The method. - - - - Gets the output arguments of the call. - - The output arguments. - - - - Gets the return value of the call. - - The return value. - - - - Represents storage for recorded calls for self initializing - fakes. - - - - - Loads the recorded calls for the specified recording. - - The recorded calls for the recording with the specified id. - - - - Saves the specified calls as the recording with the specified id, - overwriting any previous recording. - - The calls to save. - - - - Initializes a new instance of the class. - - Name of the file. - The file system. - - - - Loads the recorded calls for the specified recording. - - - The recorded calls for the recording with the specified id. - - - - - Saves the specified calls as the recording with the specified id, - overwriting any previous recording. - - The calls to save. - - - - A factory responsible for creating instances of FileStorage. - - The file name of the storage. - A FileStorage instance. - - - - An interface for recorders that provides stored responses for self initializing fakes. - - - - - Applies the call if the call has been recorded. - - The call to apply to from recording. - - - - Records the specified call. - - The call to record. - - - - Gets a value indicating whether the recorder is currently recording. - - - - - An exception that can be thrown when recording for self initialized - fakes fails or when playback fails. - - - - - Initializes a new instance of the class. - - - - - Initializes a new instance of the class. - - The message. - - - - Initializes a new instance of the class. - - The message. - The inner exception. - - - - Initializes a new instance of the class. - - The that holds the serialized object data about the exception being thrown. - The that contains contextual information about the source or destination. - - The parameter is null. - - - The class name is null or is zero (0). - - - - - Manages the applying of recorded calls and recording of new calls when - using self initialized fakes. - - - - - Initializes a new instance of the class. - - The storage. - - - - Applies the call if the call has been recorded. - - The call to apply to from recording. - - - - Records the specified call. - - The call to record. - - - - Saves all recorded calls to the storage. - - - - - Gets a value indicating whether the recorder is currently recording. - - - - - - Represents a factory responsible for creating recording manager - instances. - - The storage the manager should use. - A RecordingManager instance. - - - - A call rule use for self initializing fakes, delegates call to - be applied by the recorder. - - - - - Initializes a new instance of the class. - - The wrapped rule. - The recorder. - - - - Gets whether this interceptor is applicable to the specified - call, if true is returned the Apply-method of the interceptor will - be called. - - The call to check for applicability. - True if the interceptor is applicable. - - - - Applies an action to the call, might set a return value or throw - an exception. - - The call to apply the interceptor to. - - - - Gets the number of times this call rule is valid, if it's set - to null its infinitely valid. - - - - - - An attribute that can be applied to code that should be fixed because there's a - code smell. - - - - - Gets or sets the description of the smell. - - - - - Provides extension methods for . - - - - - Provides extension methods for . - - - - - Replaces the format item in a specified System.String with the text equivalent - of the value of a corresponding System.Object instance in a specified array using - invariant culture as . - - A composite format string. - An array containing zero or more objects to format. - The formatted string. - - - - Provides extension methods for . - - - - - Used to tag fields and properties that will be initialized as a SUT through the Fake.Initialize-method. - - - - - Provides helper methods for checking the value producer signature against call signatures. - - - - - Provides extension methods for . - - - - - Applies a predicate to constrain which calls will be considered for interception. - - The return type of the where method. - The configuration object to extend. - A predicate for a fake object call. - The configuration object. - - - diff --git a/packages/FakeItEasy.1.25.3/lib/net40/FakeItEasy.dll b/packages/FakeItEasy.1.25.3/lib/net40/FakeItEasy.dll deleted file mode 100644 index 55c58e90..00000000 Binary files a/packages/FakeItEasy.1.25.3/lib/net40/FakeItEasy.dll and /dev/null differ diff --git a/packages/FakeItEasy.1.25.3/lib/net40/FakeItEasy.xml b/packages/FakeItEasy.1.25.3/lib/net40/FakeItEasy.xml deleted file mode 100644 index f9ce817b..00000000 --- a/packages/FakeItEasy.1.25.3/lib/net40/FakeItEasy.xml +++ /dev/null @@ -1,3934 +0,0 @@ - - - - FakeItEasy - - - - - Provides methods for generating fake objects. - - - - - Creates a fake object of the type T. - - The type of fake object to create. - A fake object. - - - - Creates a fake object of the type T. - - The type of fake object to create. - A lambda where options for the built fake object can be specified. - A fake object. - - - - Creates a collection of fakes of the specified type. - - The type of fakes to create. - The number of fakes in the collection. - A collection of fake objects of the specified type. - - - - Gets a dummy object of the specified type. The value of a dummy object - should be irrelevant. Dummy objects should not be configured. - - The type of dummy to return. - A dummy object of the specified type. - Dummies of the specified type can not be created. - - - - Gets a value indicating whether the two objects are equal. - - The first object to compare. - The second object to compare. - True if the two objects are equal. - - - - Gets a value indicating whether the two objects are the same reference. - - The object A. - The object B. - True if the objects are the same reference. - - - - Configures a call to a faked object. - - An expression where the configured member is called. - A configuration object. - - - - Gets a configuration object allowing for further configuration of - any call to the specified faked object. - - - The fake to configure. - - - A configuration object. - - - - - Configures a call to a faked object. - - The type of member on the faked object to configure. - An expression where the configured member is called. - A configuration object. - - - - Provides configuration for any (not a specific) call on a faked object. - - - - - Gets a configuration object allowing for further configuration of - any call to the specified faked object. - - The faked object to configure. - A configuration object. - - - - Gets a value indicating whether the two objects are equal. - - The first object to compare. - The second object to compare. - True if the two objects are equal. - - - - Gets a value indicating whether the two objects are the same reference. - - The object A. - The object B. - True if the objects are the same reference. - - - - Provides string formatting for arguments of type T when written in call lists. - - The type of the arguments which will be formatted by this instance. - - - - Provides string formatting for arguments when written in - call lists. - - - - - Gets a string representing the specified argument value. - - The argument value to get as a string. - A string representation of the value. - - - - Gets the type of arguments this formatter works on. - - - - - Gets the priority of the formatter, when two formatters are - registered for the same type the one with the highest - priority is used. - - - - - Gets a string representing the specified argument value. - - The argument value to get as a string. - A string representation of the value. - - - - Gets a string representing the specified argument value. - - The argument value to get as a string. - A string representation of the value. - - - - Gets the type of arguments this formatter works on. - - - - - Gets the priority of the formatter, when two formatters are - registered for the same type the one with the highest - priority is used. - - - - - Provides the base for rules that can be built using the FakeConfiguration. - - - - - Represents a call rule that has a description of the calls the - rule is applicable to. - - - - - Allows for intercepting call to a fake object and - act upon them. - - - - - Gets whether this interceptor is applicable to the specified - call, if true is returned the Apply-method of the interceptor will - be called. - - The call to check for applicability. - True if the interceptor is applicable. - - - - Applies an action to the call, might set a return value or throw - an exception. - - The call to apply the interceptor to. - - - - Gets the number of times this call rule is valid, if it's set - to null its infinitely valid. - - - - - Writes a description of calls the rule is applicable to. - - The writer. - - - - Gets if this rule is applicable to the specified call. - - The call to validate. - True if the rule applies to the call. - - - - Writes a description of calls the rule is applicable to. - - The writer to write the description to. - - - - Gets or sets an action that is called by the Apply method to apply this - rule to a fake object call. - - - - - Gets a collection of actions that should be invoked when the configured - call is made. - - - - - Gets or sets a function that provides values to apply to output and reference variables. - - - - - Gets or sets a value indicating whether the base method of the fake object call should be - called when the fake object call is made. - - - - - Gets or sets the number of times the configured rule should be used. - - - - - Gets a description of calls the rule is applicable to. - - - - - - Aggregate of IReturnValueArgumentValidationConfiguration<T> and IWhereConfiguration<IAnyCallConfigurationWithReturnTypeSpecified<T>>. - - The type of fake object that is configured. - - - - Configures a call that returns a value and allows the use to - specify validations for arguments. - - The type of the member. - - - - Configures a call that returns a value. - - The type of the member. - - - - Configuration that lets the developer specify that an exception should be - thrown by a fake object call. - - - - - Hides standard Object members to make fluent interfaces - easier to read. Found in the source of Autofac: - Based on blog post here: - - - - - - Hides the ToString-method. - - A string representation of the implementing object. - - - - Determines whether the specified is equal to this instance. - - The to compare with this instance. - - true if the specified is equal to this instance; otherwise, false. - - - - - Returns a hash code for this instance. - - - A hash code for this instance, suitable for use in hashing algorithms and data structures like a hash table. - - - - - Gets the type. - - The exact runtime type of the current instance. - - - - Throws the specified exception when the currently configured - call gets called. - - A function that creates the exception to throw. - Configuration object. - - - - Configuration for callbacks of fake object calls. - - The type of interface to return. - - - - Executes the specified action when a matching call is being made. - - The action to invoke. - A configuration object. - - - - Allows the developer to assert on a call that's configured. - - - - - Asserts that the configured call has happened the number of times - constrained by the repeatConstraint parameter. - - A constraint for how many times the call - must have happened. - The call has not been called a number of times - that passes the repeat constraint. - - - - Configuration that lets you specify that a fake object call should call it's base method. - - - - - When the configured method or methods are called the call - will be delegated to the base method of the faked method. - - A configuration object. - The fake object is of an abstract type or an interface - and no base method exists. - - - - Specifies a function used to produce a return value when the configured call is made. - The function will be called each time this call is made and can return different values - each time. - - A function that produces the return value. - A configuration object. - - - - Provides configurations to validate arguments of a fake object call. - - The type of interface to return. - - - - Configures the call to be accepted when the specified predicate returns true. - - The argument predicate. - A configuration object. - - - - Provides a way to configure predicates for when a call should be applied. - - The type of fake object that is going to be configured.. - - - - Applies a predicate to constrain which calls will be considered for interception. - - A predicate for a fake object call. - An action that writes a description of the predicate - to the output. - The configuration object. - - - - Provides an API entry point for constraining arguments of fake object calls. - - The type of argument to validate. - - - - Gets an argument constraint object that will be used to constrain a method call argument. - - - - - Gets a constraint that considers any value of an argument as valid. - - This is a shortcut for the "Ignored"-property. - - - - Gets a constraint that considers any value of an argument as valid. - - - - - Determines whether an assembly references FakeItEasy. - - The assembly to check. - Whether or not the assembly references FakeItEasy. - - - - Gets the simple name of the assembly. Can be used in Silverlight solutions. - - The assembly. - The simple name of the assembly. - - - - Locate an implementation. - - - Will search the app domain for a concrete implementation, - and if it can't find one will use the . - - - - - Scans app domain assemblies looking for a concrete implementation of - that is not the . - Otherwise, the first matching type is instantiated and returned, or an - instance of DefaultBootstrapper is used if no other implementation is found. - - An instance of the first non-default IBootstrapper implementation found, - or a DefaultBootstrapper. - - - - Represents the target of intercepted calls of a fake proxy. An implementation of this interface receives calls, gets its arguments - and can provide return values. - - - - - Processes an intercepted call of a fake proxy. - - The call information (like which method has been called, its arguments, ...). - - - - Implementation of , which returns a as "call processor" lazily (on - the first call of or ). - - - Note that we just need to serialize the + the lock (an "empty", *new* object will be deserialized) - because doesn't require serializability before the first call of or - (see remarks section of ). - - - - - The responsibility of this interface is to instantiate a new and to fully initialize it (e.g. - applying the initial configuration). This should happen one time on the first call of or - . - - - - Note that the implementation of this interface must be thread-safe and guarantee the one-time-initialization property when accessing - the interface methods concurrently (could happen when using this provider in spawned threads in a proxy base constructor). - - - An implementation of this interface should also be serializable and the deserialized object should behave like the original one - *after* it has been initialized (i.e. after the first call of or ) because - we don't need to serialize a fake before it has been initialized (returned to the user). - - - - - - Create and initialize a new for . - - The corresponding proxy object of the new . - The created . - - - - Ensures that the is initialized (and can be used via the proxy's tag later on). - - The corresponding proxy object of the new . - - - - The default bootstrapper, used to initialize FakeItEasy unless another - implementation of is present in the assemblies - loaded in the app domain. - - - - - Bootstrapper for FakeItEasy. - - - When FakeItEasy is initialized, it scans the executing app domain for implementations - of this interface. If any are found, one will be instantiated and used to bootstrap - FakeItEasy. If no implementations are found, then a - will be used. - The recommended way to implement IBootstrapper is to extend DefaultBootstrapper - and override selected methods. - - - - - Provides a list of assembly file names to scan for extension points, such as - s, s, and - s. - - A list of absolute paths pointing to assemblies to scan for extension points. - - - - When overridden in a derived class, provides a custom list of assembly file - names to scan for extension points, such as - s, s, and - s. - - - An empty list, but may be overridden to provide a list of absolute paths - to assemblies to scan for extension points. - - - - - An object that may provide argument values, for example as implicitly-defined values for - methods' out parameters. - - - - - Validates an argument, checks that it's valid in a specific fake call. - - - - - Writes a description of the argument constraint to the specified writer. - - - The writer. - - - - - Gets whether the argument is valid. - - The argument to validate. - True if the argument is valid. - - - - Gets the value that was used when specifying the constraint. - Used for implicit assignment of out parameter values, not for matching. - Since the called method has no access to the incoming parameter value, - there's no use in accepting or rejecting calls based on the - incoming parameter value. - - - - - Initializes a new instance of the class by - wrapping an existing . - - The original constraint, which will be used for argument validation. - The value to be used when implicitly assigning values to a call's ref parameter. - - - - Gets the value that was used when specifying the constraint. - Used for implicit assignment of ref parameter values. - - - - - Provides extension methods for . - - - - - Provides extension methods for . - - - - - Specifies output values for out and ref parameters. The values should appear - in the same order as the out and ref parameters in the configured call. - Any non out and ref parameters are ignored. - The function will be called each time this call is made and can return different values. - - The configuration to extend. - The values. - A configuration object. - - - - Specifies a function used to produce output values for out and ref parameters. - The values should appear in the same order as the out and ref parameters in the configured call. - Any non out and ref parameters are ignored. - The function will be called each time this call is made and can return different values. - - Type of the first argument of the faked method call. - The configuration to extend. - A function that produces the output values. - A configuration object. - - The signatures of the faked method and the do not match. - - - - - Specifies a function used to produce output values for out and ref parameters. - The values should appear in the same order as the out and ref parameters in the configured call. - Any non out and ref parameters are ignored. - The function will be called each time this call is made and can return different values. - - Type of the first argument of the faked method call. - Type of the second argument of the faked method call. - The configuration to extend. - A function that produces the output values. - A configuration object. - - The signatures of the faked method and the do not match. - - - - - Specifies a function used to produce output values for out and ref parameters. - The values should appear in the same order as the out and ref parameters in the configured call. - Any non out and ref parameters are ignored. - The function will be called each time this call is made and can return different values. - - Type of the first argument of the faked method call. - Type of the second argument of the faked method call. - Type of the third argument of the faked method call. - The configuration to extend. - A function that produces the output values. - A configuration object. - - The signatures of the faked method and the do not match. - - - - - Specifies a function used to produce output values for out and ref parameters. - The values should appear in the same order as the out and ref parameters in the configured call. - Any non out and ref parameters are ignored. - The function will be called each time this call is made and can return different values. - - Type of the first argument of the faked method call. - Type of the second argument of the faked method call. - Type of the third argument of the faked method call. - Type of the fourth argument of the faked method call. - The configuration to extend. - A function that produces the output values. - A configuration object. - - The signatures of the faked method and the do not match. - - - - - Provides extension methods for . - - - - - Provides extension methods for . - - - - - Provides extension methods for . - - - - - Replaces the format item in a specified System.String with the text equivalent - of the value of a corresponding System.Object instance in a specified array using - invariant culture as . - - A composite format string. - An array containing zero or more objects to format. - The formatted string. - - - - Provides extension methods for . - - - - - Specifies the value to return when the configured call is made. - - The type of the return value. - The configuration to extend. - The value to return. - A configuration object. - - - - Specifies the of the which is returned when the configured call is made. - The returned from the configured call will have a of . - - The type of the result produced by the . - The configuration to extend. - The of the . - A configuration object. - - - - Specifies a function used to produce a return value when the configured call is made. - The function will be called each time this call is made and can return different values - each time. - - The type of the return value. - The configuration to extend. - A function that produces the return value. - A configuration object. - - - - Specifies a function used to produce the of the which is returned when the configured call is made. - The function will be called each time the configured call is made and can return different values each time. - The returned from the configured call will have a of . - - The type of the result produced by the . - The configuration to extend. - A function that produces the of the . - A configuration object. - - - - Specifies a function used to produce a return value when the configured call is made. - The function will be called each time this call is made and can return different values - each time. - - The type of the return value. - Type of the first argument of the faked method call. - The configuration to extend. - A function that produces the return value. - A configuration object. - The signatures of the faked method and the do not match. - - - - Specifies a function used to produce the of the which is returned when the configured call is made. - The function will be called each time the configured call is made and can return different values each time. - The returned from the configured call will have a of . - - The type of the result produced by the . - Type of the first argument of the faked method call. - The configuration to extend. - A function that produces the of the . - A configuration object. - The signatures of the faked method and the do not match. - - - - Specifies a function used to produce a return value when the configured call is made. - The function will be called each time this call is made and can return different values - each time. - - The configuration to extend. - A function that produces the return value. - The type of the return value. - Type of the first argument of the faked method call. - Type of the second argument of the faked method call. - A configuration object. - The signatures of the faked method and the do not match. - - - - Specifies a function used to produce the of the which is returned when the configured call is made. - The function will be called each time the configured call is made and can return different values each time. - The returned from the configured call will have a of . - - The type of the result produced by the . - Type of the first argument of the faked method call. - Type of the second argument of the faked method call. - The configuration to extend. - A function that produces the of the . - A configuration object. - The signatures of the faked method and the do not match. - - - - Specifies a function used to produce a return value when the configured call is made. - The function will be called each time this call is made and can return different values - each time. - - The configuration to extend. - A function that produces the return value. - The type of the return value. - Type of the first argument of the faked method call. - Type of the second argument of the faked method call. - Type of the third argument of the faked method call. - A configuration object. - The signatures of the faked method and the do not match. - - - - Specifies a function used to produce the of the which is returned when the configured call is made. - The function will be called each time the configured call is made and can return different values each time. - The returned from the configured call will have a of . - - The type of the result produced by the . - Type of the first argument of the faked method call. - Type of the second argument of the faked method call. - Type of the third argument of the faked method call. - The configuration to extend. - A function that produces the of the . - A configuration object. - The signatures of the faked method and the do not match. - - - - Specifies a function used to produce a return value when the configured call is made. - The function will be called each time this call is made and can return different values - each time. - - The configuration to extend. - A function that produces the return value. - The type of the return value. - Type of the first argument of the faked method call. - Type of the second argument of the faked method call. - Type of the third argument of the faked method call. - Type of the fourth argument of the faked method call. - A configuration object. - The signatures of the faked method and the do not match. - - - - Specifies a function used to produce the of the which is returned when the configured call is made. - The function will be called each time the configured call is made and can return different values each time. - The returned from the configured call will have a of . - - The type of the result produced by the . - Type of the first argument of the faked method call. - Type of the second argument of the faked method call. - Type of the third argument of the faked method call. - Type of the fourth argument of the faked method call. - The configuration to extend. - A function that produces the of the . - A configuration object. - The signatures of the faked method and the do not match. - - - - Configures the call to return the next value from the specified sequence each time it's called. - After the sequence has been exhausted, the call will revert to the previously configured behavior. - - The type of return value. - The call configuration to extend. - The values to return in sequence. - - - - Configures the call to return a with a of - the next value from the specified sequence each time it's called. - After the sequence has been exhausted, the call will revert to the previously configured behavior. - Each returned from the configured call will have a of . - - The type of the result produced by each . - The call configuration to extend. - The values to use for the of each in sequence. - - - - Provides extension methods for . - - - - - Specifies that a call to the configured call should be applied no matter what arguments - are used in the call to the faked object. - - The type of the interface. - The configuration. - A configuration object. - - - - Provides extension methods for . - - - - - Asserts that the specified call must have happened once or more. - - The configuration to assert on. - - - - Asserts that the specified call has not happened. - - The configuration to assert on. - - - - Provides the extension methods for . - - - - - Throws the specified exception when the currently configured - call gets called. - - The configuration to use. - The exception to throw when a call that matches is invoked. - Configuration object. - - - - Throws the specified exception when the currently configured - call gets called. - - The configuration to use. - A function that returns the exception to throw when invoked. - Configuration object. - - - - Throws the specified exception when the currently configured - call gets called. - - The configuration to use. - A function that returns the exception to throw when invoked. - Type of the first argument of the faked method call. - Configuration object. - The signatures of the faked method and the do not match. - - - - Throws the specified exception when the currently configured - call gets called. - - The configuration to use. - A function that returns the exception to throw when invoked. - Type of the first argument of the faked method call. - Type of the second argument of the faked method call. - Configuration object. - The signatures of the faked method and the do not match. - - - - Throws the specified exception when the currently configured - call gets called. - - The configuration to use. - A function that returns the exception to throw when invoked. - Type of the first argument of the faked method call. - Type of the second argument of the faked method call. - Type of the third argument of the faked method call. - Configuration object. - The signatures of the faked method and the do not match. - - - - Throws the specified exception when the currently configured - call gets called. - - The configuration to use. - A function that returns the exception to throw when invoked. - Type of the first argument of the faked method call. - Type of the second argument of the faked method call. - Type of the third argument of the faked method call. - Type of the fourth argument of the faked method call. - Configuration object. - The signatures of the faked method and the do not match. - - - - Throws the specified exception when the currently configured - call gets called. - - The configuration to use. - The type of exception to throw. - Configuration object. - - - - Provides extension methods for . - - - - - Executes the specified action when a matching call is being made. This overload can also be used to fake calls with arguments when they don't need to be accessed. - - The type of fake object. - The configuration that is extended. - The to invoke. - The fake object. - - - - Executes the specified action when a matching call is being made. - - The configuration that is extended. - The to invoke. - The type of fake object. - Type of the first argument of the faked method call. - The signatures of the faked method and the do not match. - The fake object. - - - - Executes the specified action when a matching call is being made. - - The configuration that is extended. - The to invoke. - The type of fake object. - Type of the first argument of the faked method call. - Type of the second argument of the faked method call. - The signatures of the faked method and the do not match. - The fake object. - - - - Executes the specified action when a matching call is being made. - - The configuration that is extended. - The to invoke. - The type of fake object. - Type of the first argument of the faked method call. - Type of the second argument of the faked method call. - Type of the third argument of the faked method call. - The signatures of the faked method and the do not match. - The fake object. - - - - Executes the specified action when a matching call is being made. - - The configuration that is extended. - The to invoke. - The type of fake object. - Type of the first argument of the faked method call. - Type of the second argument of the faked method call. - Type of the third argument of the faked method call. - Type of the fourth argument of the faked method call. - The signatures of the faked method and the do not match. - The fake object. - - - - Provides extension methods for . - - - - - Applies a predicate to constrain which calls will be considered for interception. - - The return type of the where method. - The configuration object to extend. - A predicate for a fake object call. - The configuration object. - - - - Provides extension methods for . - - - - - Makes the fake strict, this means that any call to the fake - that has not been explicitly configured will throw an exception. - - The type of fake object. - The configuration. - A configuration object. - - - - Makes the fake default to calling base methods, so long as they aren't abstract. - - The type of fake object. - The configuration. - A configuration object. - - - - Provides extension methods for . - - - - - Gets the argument at the specified index in the arguments collection - for the call. - - The type of the argument to get. - The call to get the argument from. - The index of the argument. - The value of the argument with the specified index. - - - - Gets the argument with the specified name in the arguments collection - for the call. - - The type of the argument to get. - The call to get the argument from. - The name of the argument. - The value of the argument with the specified name. - - - - Writes the calls in the collection to the specified output writer. - - The type of the calls. - The calls to write. - The writer to write the calls to. - - - - Writes all calls in the collection to the console. - - The type of the calls. - The calls to write. - - - - Gets the description of a call to a fake object. - - The call to describe. - A description of the call. - - - - Provides extensions for . - - - - - Specifies NumberOfTimes(1) to the repeat configuration. - - The configuration to set repeat 1 to. - - - - Specifies NumberOfTimes(2) to the repeat configuration. - - The configuration to set repeat 2 to. - - - - A strongly-typed resource class, for looking up localized strings, etc. - - - - - Returns the cached ResourceManager instance used by this class. - - - - - Overrides the current thread's CurrentUICulture property for all - resource lookups using this strongly typed resource class. - - - - - Looks up a localized string similar to The Apply method of the ExpressionInterceptor may no be called before the Applicator property has been set.. - - - - - Looks up a localized string similar to The specified argument name does not exist in the ArgumentList.. - - - - - Looks up a localized string similar to Arguments for constructor was specified when generating proxy of interface type.. - - - - - Looks up a localized string similar to An argument validation was not configured correctly.. - - - - - Looks up a localized string similar to The method '{0}' was called too few times, expected #{1} times but was called #{2} times.. - - - - - Looks up a localized string similar to The method '{0}' was called too many times, expected #{1} times but was called #{2} times.. - - - - - Looks up a localized string similar to Can not create fake of the type '{0}', it's not registered in the current container and the current IProxyGenerator can not generate the fake. - - The following constructors failed: - {1}. - - - - - Looks up a localized string similar to Error when accessing FakeObject, the specified argument is of the type '{0}' which is not faked.. - - - - - Looks up a localized string similar to An ExpressionCallMatcher can only be created for expressions that represents a method call or a property getter.. - - - - - Looks up a localized string similar to - - The current proxy generator failed to create a proxy with the specified arguments for the constructor: - - Reason for failure: - - {0} - - . - - - - - Looks up a localized string similar to FakeItEasy failed to create fake object of type "{0}". - - 1. The type is not registered in the current IFakeObjectContainer. - 2. The current IProxyGenerator failed to generate a proxy for the following reason: - - {1}. - - - - - Looks up a localized string similar to Unable to create fake object.. - - - - - Looks up a localized string similar to The fake manager was initialized for a different proxy.. - - - - - Looks up a localized string similar to Only abstract classes can be faked using the A.Fake-method that takes an enumerable of objects as arguments for constructor, use the overload that takes an expression instead.. - - - - - Looks up a localized string similar to The member accessor expression must be a lambda expression with a MethodCallExpression or MemberAccessExpression as its body.. - - - - - Looks up a localized string similar to The specified method can not be configured since it can not be intercepted by the current IProxyGenerator.. - - - - - Looks up a localized string similar to The method of the call did not match the method of the recorded call, the recorded sequence is no longer valid.. - - - - - Looks up a localized string similar to No constructor matching the specified arguments was found on the type {0}.. - - - - - Looks up a localized string similar to Can not generate fake object for the class since no usable default constructor was found, specify a constructor call.. - - - - - Looks up a localized string similar to All the recorded calls has been applied, the recorded sequence is no longer valid.. - - - - - Looks up a localized string similar to Only expression of the type ExpressionType.New (constructor calls) are accepted.. - - - - - Looks up a localized string similar to The Now-method on the event raise is not meant to be called directly, only use it to register to an event on a fake object that you want to be raised.. - - - - - Looks up a localized string similar to The number of values for out and ref parameters specified does not match the number of out and ref parameters in the call.. - - - - - Looks up a localized string similar to A scope for ordered assertions is already opened, close that scope before opening another one.. - - - - - Looks up a localized string similar to The specified call is not made on a fake object.. - - - - - Looks up a localized string similar to The current fake proxy generator can not create proxies of the type {0}.. - - - - - Looks up a localized string similar to FakeItEasy was unable to create dummy of type "{0}", register it in the current IFakeObjectContainer to enable this.. - - - - - Looks up a localized string similar to Expected to find call {0} the number of times specified by the predicate '{1}' but found it {2} times among the calls:. - - - - - Looks up a localized string similar to The number of argument names does not match the number of arguments.. - - - - - A class exposing an event handler to attach to an event of a faked object - in order to raise that event. - - The type of the event args. - - - - Used by the event raising rule of fake objects to get the event arguments used in - a call to Raise.With. - - - - - Gets the sender of the event. - - - - - Gets the event arguments of the event. - - - - - Converts a raiser into an - - The raiser to convert. - The new event handler - - - - Converts a raiser into an - - The raiser to convert. - The new event handler - - - - Register this event handler to an event on a faked object in order to raise that event. - - The sender of the event. - Event args for the event. - - - - Register this event handler to an event on a faked object in order to raise that event. - - The sender of the event. - Event args for the event. - - - - Gets a generic event handler to attach to the event to raise. - - - - - Represents a fake object that provides an API for configuring a faked object, exposed by the - FakedObject-property. - - The type of the faked object. - - - - Provides methods for configuring a fake object. - - The type of fake object. - - - - Configures the behavior of the fake object when a call that matches the specified - call happens. - - The type of the return value of the member. - An expression that specifies the calls to configure. - A configuration object. - - - - Configures the behavior of the fake object when a call that matches the specified - call happens. - - An expression that specifies the calls to configure. - A configuration object. - - - - Configures the behavior of the fake object when a call is made to any method on the - object. - - A configuration object. - - - - Initializes a new instance of the class. - Creates a new fake object. - - - - - Initializes a new instance of the class. - Creates a new fake object using the specified options. - - - Options used to create the fake object. - - - - - Configures calls to the specified member. - - An expression specifying the call to configure. - A configuration object. - - - - Configures calls to the specified member. - - The type of value the member returns. - An expression specifying the call to configure. - A configuration object. - - - - Configures any call to the fake object. - - A configuration object. - - - - Gets the faked object. - - - - - Gets all calls made to the faked object. - - - - - Provides access to all types in: - - FakeItEasy, - assemblies loaded into the current that reference FakeItEasy and - assemblies whose paths are supplied to the constructor, that also reference FakeItEasy. - - - - - - Provides a set of types that are available. - - - - - Gets a collection of available types. - - The available types. - - - - Loads the available types into the . - - - The full paths to assemblies from which to load types, - as well as assemblies loaded into the current . - - - - - Gets a collection of available types. - - The available types. - - - - Configuration for any call to a faked object. - - - - - Provides configuration methods for methods that does not have a return value and - allows the use to specify validations for arguments. - - - - - Provides configuration methods for methods that does not have a return value. - - - - - Lets the developer configure output values of out and ref parameters. - - - - - Specifies a function used to produce output values for out and ref parameters. - The values should appear in the same order as the out and ref parameters in the configured call. - Any non out and ref parameters are ignored. - The function will be called each time this call is made and can return different values. - - A function that produces the output values. - A configuration object. - - - - Configures the specified call to do nothing when called. - - A configuration object. - - - - Matches calls that has the return type specified in the generic type parameter. - - The return type of the members to configure. - A configuration object. - - - - Manages registration of a set of components in a DictionaryContainer. - - - - - Registers the components of this module. - - The container to register components in. - - - - A factory that creates instances of the RecordingCallRuleType. - - - - - Creates the specified fake object. - - The type of the fake. - The fake object the rule belongs to. - The rule that's being recorded. - A RecordingCallRule instance. - - - - A factory responsible for creating start configuration for fake objects. - - - - - Creates a start configuration for the specified fake object that fakes the - specified type. - - The type of the fake object. - The fake object to configure. - A configuration object. - - - - An exception that can be thrown when something goes wrong with the configuration - of a fake object. - - - - - Initializes a new instance of the class. - - - - - Initializes a new instance of the class. - - The message. - - - - Initializes a new instance of the class. - - The message. - The inner exception. - - - - Initializes a new instance of the class. - - The that holds the serialized object data about the exception being thrown. - The that contains contextual information about the source or destination. - - The parameter is null. - - - The class name is null or is zero (0). - - - - - Handles the configuration of fake object given an expression specifying - a call on a faked object. - - - - - Lets you set up expectations and configure repeat for the configured call. - - - - - Provides configuration for method calls that has a return value. - - - - - Specifies the number of times for the configured event. - - The number of times to repeat. - - - - A combination of the IAfterCallSpecifiedConfiguration and IOutAndRefParametersConfiguration - interfaces. - - - - - Configurations for when a configured call is recorded. - - - - - Provides configuration from VisualBasic. - - - - - A call rule that has been recorded. - - - - - A call rule that "sits and waits" for the next call, when - that call occurs the recorded rule is added for that call. - - The type of the fake. - - - - Provides access to a set of calls and a call matcher for these calls. - - - - - Provides access to a call matcher. - - - - - Gets a call predicate that can be used to check if a fake object call matches - the specified constraint. - - - - - Gets the set of calls. - - - - - Represents a delegate that creates a configuration object from - a fake object and the rule to build. - - The rule that's being built. - The fake object the rule is for. - A configuration object. - - - - Represents a predicate that matches a fake object call. - - - - - Gets a value indicating whether the call matches the predicate. - - The call to match. - True if the call matches the predicate. - - - - Represents an argument and a dummy value to use for that argument. - - - - - Initializes a new instance of the class. - - A value indicating if the dummy value was successfully resolved. - The type of argument. - The resolved value. - - - - Gets a value indicating whether a dummy argument value was successfully - resolved. - - - - - Gets the type of the argument. - - - - - Gets the resolved value. - - - - - Holds a formatter as well as the distance between a type to be formatted - and the type for which the formatted is registered. - - - - - Keeps track of metadata for interceptions. - - - - - Gets whether the rule has been called the number of times specified or not. - - True if the rule has not been called the number of times specified. - - - - Gets or sets the number of times the rule has been used. - - - - - Gets or sets the rule this metadata object is tracking. - - - - - Manages attaching of argument constraints. - - The type of argument to constrain. - - - - Constrains the argument with a predicate. - - The predicate that should constrain the argument. - An action that will be write a description of the constraint. - A dummy argument value. - - - - Inverts the logic of the matches method. - - - - - Default implementation of . - - - - - Attaches a fake manager to the proxy so that intercepted - calls can be configured. - - - - - Gets the fake manager associated with the proxy. - - The proxy to get the manager from. - A fake manager. - - - - Tags a proxy object, so that it can accessed later by . - - The proxy to tag. - The fake manager. - - - - Gets the fake manager associated with the proxy. - - The proxy to get the manager from. - A fake manager. - - - - Represents an object that can be tagged with another object. When implemented - by a proxy returned from an FakeItEasy uses the tag - to store a reference to the that handles that proxy. - - - - - Gets or sets the tag. - - - - - The default implementation of the IFakeObjectCallFormatter interface. - - - - - Provides string formatting for fake object calls. - - - - - Gets a human readable description of the specified - fake object call. - - The call to get a description for. - A description of the call. - - - - Gets a human readable description of the specified - fake object call. - - The call to get a description for. - A description of the call. - - - - Handles configuring of fake objects to delegate all their calls to a wrapped instance. - - - - - Manages configuration of fake objects to wrap instances. - - - - - Configures the specified faked object to wrap the specified instance. - - The faked object to configure. - The instance to wrap. - The recorder to use, null if no recording should be made. - - - - Configures the specified faked object to wrap the specified instance. - - The faked object to configure. - The instance to wrap. - The recorder to use, null if no recording should be made. - - - - A fake object container where delegates can be registered that are used to - resolve fake objects. - - - - - A container that can create fake objects. - - - - - Handles global configuration of fake object. - - - - - Applies base configuration to a fake object. - - The type the fake object represents. - The fake object to configure. - - - - Creates a dummy object of the specified type using the specified arguments if it's - supported by the container, returns a value indicating if it's supported or not. - - The type of dummy object to create. - The dummy object that was created if the method returns true. - True if a dummy object can be created. - - - - Initializes a new instance of the class. - Creates a new instance of the DelegateFakeObjectContainer. - - - - - Creates a fake object of the specified type using the specified arguments if it's - supported by the container, returns a value indicating if it's supported or not. - - The type of dummy object to create. - The fake object that was created if the method returns true. - True if a fake object can be created. - - - - Configures the fake. - - The type of fake. - The fake object. - - - - Registers the specified fake delegate. - - The type of the return value of the method that encapsulates. - The fake delegate. - - - - A IFakeObjectContainer implementation that uses MEF to load IFakeDefinitions and - IFakeConfigurations. - - - - - Initializes a new instance of the class. - - The dummy definitions. - The fake configurators. - - - - Creates a fake object of the specified type using the specified arguments if it's - supported by the container, returns a value indicating if it's supported or not. - - The type of fake object to create. - The fake object that was created if the method returns true. - True if a fake object can be created. - - - - Applies base configuration to a fake object. - - The type the fake object represents. - The fake object to configure. - - - - An exception that is thrown when there was an error creating a fake object. - - - - - Initializes a new instance of the class. - - - - - Initializes a new instance of the class. - - The message. - - - - Initializes a new instance of the class. - - The message. - The inner exception. - - - - Initializes a new instance of the class. - - The that holds the serialized object data about the exception being thrown. - The that contains contextual information about the source or destination. - - The parameter is null. - - - The class name is null or is zero (0). - - - - Auto fake property rule. - - The central point in the API for proxied fake objects handles interception - of fake object calls by using a set of rules. User defined rules can be inserted - by using the AddRule-method. - - Event rule. - Object member rule. - Property behavior rule. - Property setter rule. - - - - Initializes a new instance of the class. - - The faked type. - The faked proxy object. - - - - Adds a call rule to the fake object. - - The rule to add. - - - - Adds a call rule last in the list of user rules, meaning it has the lowest priority possible. - - The rule to add. - - - - Removes the specified rule for the fake object. - - The rule to remove. - - - - Adds an interception listener to the manager. - - The listener to add. - - - - Removes any specified user rules. - - - - - Gets the faked proxy object. - - - - - Gets the faked type. - - - - - Gets the interceptions that are currently registered with the fake object. - - - - - Gets a collection of all the calls made to the fake object within the current scope. - - - - - A delegate responsible for creating FakeObject instances. - - The faked type. - The faked proxy object. - An instance of . - - - - Represents a call to a fake object at interception time. - - - - - Represents a fake object call that can be edited. - - - - - Represents a call to a fake object. - - - - - Gets the method that's called. - - - - - Gets the arguments used in the call. - - - - - Gets the faked object the call is performed on. - - - - - Sets the return value of the call. - - The return value to set. - - - - Calls the base method of the faked type. - - - - - Sets the value of the argument at the specified index in the parameters list. - - The index of the argument to set the value of. - The value to set to the argument. - - - - Freezes the call so that it can no longer be modified. - - A completed fake object call. - - - - Sets that the call should not be recorded by the fake manager. - - - - - Attempts to preserve the stack trace of an existing exception when rethrown via throw or throw ex. - - Nicked from - http://weblogs.asp.net/fmarguerie/archive/2008/01/02/rethrowing-exceptions-and-preserving-the-full-call-stack-trace.aspx. - If reduced trust context (for example) precludes - invoking internal members on , the stack trace will not be preserved. - - The exception whose stack trace needs preserving. - - - - Represents a scope for fake objects, calls configured within a scope - are only valid within that scope. Only calls made within a scope - are accessible from within a scope so for example asserts will only - assert on those calls done within the scope. - - - - - Provides access to all calls made to fake objects within a scope. - Scopes calls so that only calls made within the scope are visible. - - - - - Creates a new scope and sets it as the current scope. - - The created scope. - - - - Creates a new scope and sets it as the current scope, using the specified - container as the container for the new scope. - - The container to use for the new scope. - The created scope. - - - - Closes the scope. - - - - - Adds an intercepted call to the current scope. - - The fake object. - The call that is intercepted. - - - - Adds a fake object call to the current scope. - - The fake object. - The rule to add. - - - - Represents a listener for fake object calls, can be plugged into a - FakeManager instance to listen to all intercepted calls. - - The OnBeforeCallIntercepted method will be invoked before the OnBeforeCallIntercepted method of any - previously added listener. The OnAfterCallIntercepted method will be invoked after the OnAfterCallIntercepted - method of any previously added listener. - - - - Called when the interception begins but before any call rules - has been applied. - - The intercepted call. - - - - Called when the interception has been completed and rules has been - applied. - - The intercepted call. - The rule that was applied to the call. - - - - An interface to be implemented by classes that can generate proxies for FakeItEasy. - - - - - Generates a proxy of the specified type and returns a result object containing information - about the success of the generation and the proxy if it was generated. - - The type of proxy to generate. - Interfaces to be implemented by the proxy. - Arguments to pass to the constructor of the type in . - The custom attribute builders. - The call processor provider. - A result containing the generated proxy. - - - - Generates a proxy of the specified type and returns a result object containing information - about the success of the generation and the proxy if it was generated. - - The type of proxy to generate. - Interfaces to be implemented by the proxy. - Arguments to pass to the constructor of the type in . - The call processor provider. - A result containing the generated proxy. - - - - Gets a value indicating whether the specified member can be intercepted by the proxy generator. - - The member to test. - The instance the method will be called on. - The reason the method can not be intercepted. - True if the member can be intercepted. - - - - Represents a completed call to a fake object. - - - - - Gets the value set to be returned from the call. - - - - - Represents a text writer that writes to the output. - - - - - Writes the specified value to the output. - - The value to write. - The writer for method chaining. - - - - Formats the specified argument value as a string and writes - it to the output. - - The value to write. - The writer for method chaining. - - - - Indents the writer. - - A disposable that will unindent the writer when disposed. - - - - Provides instances from type catalogues. - - - - - Gets an instance per type in the catalogue that is a descendant - of the specified type. - - The type of instances to get. - A sequence of instances of the specified type. - - - - Handles comparisons of instances of . - - - - - Gets a value indicating whether the two instances of would invoke the same method - if invoked on an instance of the target type. - - The type of target for invocation. - The first . - The second . - True if the same method would be invoked. - - - - A null implementation for the IFakeObjectContainer interface. - - - - - Always returns false and sets the fakeObject to null. - - The type of dummy object to create. - Output variable for the fake object that will always be set to null. - Always return false. - - - - Applies base configuration to a fake object. - - The type the fake object represents. - The fake object to configure. - - - - A call rule that applies to any call and just delegates the - call to the wrapped object. - - - - - Initializes a new instance of the class. - Creates a new instance. - - - The object to wrap. - - - - - Gets whether this interceptor is applicable to the specified - call, if true is returned the Apply-method of the interceptor will - be called. - - The call to check for applicability. - True if the interceptor is applicable. - - - - Applies an action to the call, might set a return value or throw - an exception. - - The call to apply the interceptor to. - - - - Gets the number of times this call rule is valid, if it's set - to null its infinitely valid. - - - - - - An adapter that adapts an to a . - - - - - Initializes a new instance of the class. - - The invocation. - - - - Freezes the call so that it can no longer be modified. - - A completed fake object call. - - - - Calls the base method, should not be used with interface types. - - - - - Sets the specified value to the argument at the specified index. - - The index of the argument to set the value to. - The value to set to the argument. - - - - Sets the return value of the call. - - The return value. - - - - Returns a description of the call. - - - A that represents this instance. - - - - - Gets a human readable description of the call. - - - - - - Gets the value set to be returned from the call. - - - - - Gets the method that's called. - - - - - Gets the arguments used in the call. - - - - - Gets the faked object the call is performed on. - - - - - A strongly-typed resource class, for looking up localized strings, etc. - - - - - Returns the cached ResourceManager instance used by this class. - - - - - Overrides the current thread's CurrentUICulture property for all - resource lookups using this strongly typed resource class. - - - - - Looks up a localized string similar to No constructor matches the passed arguments for constructor.. - - - - - Looks up a localized string similar to Arguments for constructor specified for interface type.. - - - - - Looks up a localized string similar to The type of proxy "{0}" is sealed.. - - - - - Looks up a localized string similar to The type of proxy must be an interface or a class but it was {0}.. - - - - - Looks up a localized string similar to No usable default constructor was found on the type {0}.. - - - - - The default implementation of the IFakeAndDummyManager interface. - - - - - Handles the creation of fake and dummy objects. - - - - - Creates a dummy of the specified type. - - The type of dummy to create. - The created dummy. - The current IProxyGenerator is not able to generate a fake of the specified type and - the current IFakeObjectContainer does not contain the specified type. - - - - Creates a fake object of the specified type. - - The type of fake object to generate. - Options for building the fake object. - A fake object. - The current IProxyGenerator is not able to generate a fake of the specified type. - - - - Tries to create a dummy of the specified type. - - The type of dummy to create. - Outputs the result dummy when creation is successful. - A value indicating whether the creation was successful. - - - - Tries to create a fake object of the specified type. - - The type of fake to create. - Options for the creation of the fake. - The created fake object when creation is successful. - A value indicating whether the creation was successful. - - - - Default implementation of the IFakeCreator-interface. - - - - - A facade used by the public API for testability. - - - - - Creates a fake object of the specified type. - - The type of fake to create. - Options for the created fake object. - The created fake object. - Was unable to generate the fake in the current configuration. - - - - Creates a dummy object, this can be a fake object or an object resolved - from the current IFakeObjectContainer. - - The type of dummy to create. - The created dummy. - Was unable to generate the fake in the current configuration and - no dummy was registered in the container for the specified type.. - - - - Creates a collection of fakes of the specified type. - - The type of fakes to create. - The number of fakes in the collection. - A collection of fake objects of the specified type. - - - - Initializes a new instance of the class. - - The fake and dummy manager. - - - - Creates a fake object of the specified type. - - The type of fake to create. - Options for the created fake object. - The created fake object. - Was unable to generate the fake in the current configuration. - - - - Creates a collection of fakes of the specified type. - - The type of fakes to create. - The number of fakes in the collection. - - A collection of fake objects of the specified type. - - - - - Creates a dummy object, this can be a fake object or an object resolved - from the current IFakeObjectContainer. - - The type of dummy to create. - The created dummy. - Was unable to generate the fake in the current configuration and - no dummy was registered in the container for the specified type.. - - - - Provides options for fake wrappers. - - The type of the fake object generated. - - - - Provides options for generating fake object. - - The type of fake object generated. - - - - Specifies arguments for the constructor of the faked class. - - The arguments to pass to the constructor of the faked class. - Options object. - - - - Specifies arguments for the constructor of the faked class by giving an expression with the call to - the desired constructor using the arguments to be passed to the constructor. - - The constructor call to use when creating a class proxy. - Options object. - - - - Specifies that the fake should delegate calls to the specified instance. - - The object to delegate calls to. - Options object. - - - - Specifies that the fake should be created with these additional attributes. - - The attributes to build into the proxy. - Options object. - - - - Sets up the fake to implement the specified interface in addition to the - originally faked class. - - The type of interface to implement. - Options object. - The specified type is not an interface. - The specified type is null. - - - - Specifies an action that should be run over the fake object - once it's created. - - An action to perform. - Options object. - - - - Specifies a fake recorder to use. - - The recorder to use. - Options object. - - - - Initializes a new instance of the class. - - The container. - The fake object creator. - - - - Contains the result of a call to TryCreateProxy of IProxyGenerator. - - - - - Initializes a new instance of the class. - Creates a new instance representing a failed proxy - generation attempt. - - - The reason the proxy generation failed. - - - - - Initializes a new instance of the class. - Creates a new instance representing a failed proxy - generation attempt due to an exception being caught. - - - The reason the proxy generation failed. - - - The exception thrown from the creation attempt. - - - - - Initializes a new instance of the class. - Creates a new instance representing a successful proxy - generation. - - - The proxy that was generated. - - - - - Gets a value indicating whether the proxy was successfully created. - - - - - Gets the generated proxy when it was successfully created. - - - - - Gets the reason for failure when the generation was not successful. - - - - - Represents a class that can parse a lambda expression - that represents a method or property call. - - - - - Parses the specified expression. - - The expression to parse. - The parsed expression. - - - - Handles the matching of fake object calls to expressions. - - - - - Initializes a new instance of the class. - - The call specification. - The constraint factory. - The method info manager to use. - A parser to use to parse call expressions. - - - - Matches the specified call against the expression. - - The call to match. - True if the call is matched by the expression. - - - - Gets a description of the call. - - Description of the call. - - - - Gets a human readable description of calls that will be matched by this - matcher. - - - - - An implementation of the interface that uses - expressions for evaluating if the rule is applicable to a specific call. - - - - - Initializes a new instance of the class. - - The expression matcher to use. - - - - Returns a that represents this instance. - - - A that represents this instance. - - - - - Handles the instantiation of ExpressionCallRule instance. - - An expression specifying the call. - A rule instance. - - - - Manages breaking call specification expression into their various parts. - - - - - Manages breaking call specification expression into their various parts. - - - - - Gets the fake object an expression is called on. - - The call expression. - The FakeManager instance that manages the faked object the call is made on. - The fakeObjectCall is null. - The specified expression is not an expression where a call is made to a faked object. - - - - Gets the fake object an expression is called on. - - The call expression. - A FakeObject. - The fakeObjectCall is null. - The specified expression is not an expression where a call is made to a faked object. - - - - Provides extension methods for configuring and asserting on faked objects - without going through the static methods of the Fake-class. - - - - - Configures the behavior of the fake object when a call that matches the specified - call happens. - - The type of fake object to configure. - The type of the return value of the member. - The faked object to configure. - An expression that specifies the calls to configure. - A configuration object. - - - - Configures the behavior of the fake object when a call that matches the specified - call happens. - - The faked object to configure. - The type of fake object to configure. - An expression that specifies the calls to configure. - A configuration object. - - - - Configures the behavior of the fake object when a call is made to any method on the - object. - - The type of the fake. - The faked object. - A configuration object. - - - - Provides an extension method for configuring fake objects. - - - - - Gets an object that provides a fluent interface syntax for configuring - the fake object. - - The type of the fake object. - The fake object to configure. - A configuration object. - The fakedObject was null. - The object passed in is not a faked object. - - - - Used to tag fields and properties that will be initialized through the - Fake.Initialize-method. - - - - - A simple implementation of an IoC container. - - - - - The dictionary that stores the registered services. - - - - - Initializes a new instance of the class. - - - - - Resolves an instance of the specified component type. - - Type of the component. - An instance of the component type. - - - - Registers the specified resolver. - - The type of component to register. - The resolver. - - - - Registers the specified resolver as a singleton. - - The type of component to register. - The resolver. - - - - Provides properties and methods to specify repeat. - - - - - Specifies the number of times as repeat. - - The number of times expected. - A Repeated instance. - - - - Specifies once as the repeat. - - - - - Specifies twice as the repeat. - - - - - Provides functionality for making ordered assertions on fakes. - - - - - Creates a scope that changes the behavior on asserts so that all asserts within - the scope must be to calls in the specified collection of calls. Calls must have happened - in the order that the asserts are specified or the asserts will fail. - - The calls to assert among. - A disposable used to close the scope. - - - - Provides extension methods for . - - - - - Filters to contain only the calls that matches the call specification. - - The type of fake the call is made on. - The calls to filter. - The call to match on. - A collection of the calls that matches the call specification. - - - - Provides the base implementation for the IFakeConfigurator-interface. - - The type of fakes the configurator can configure. - - - - Provides configurations for fake objects of a specific type. - - - - - Applies the configuration for the specified fake object. - - The fake object to configure. - - - - Gets the type the instance provides configuration for. - - - - - Configures the fake. - - The fake object. - - - - Applies the configuration for the specified fake object. - - The fake object to configure. - - - - Asserts the type of the that fake is of correct. - - The fake object. - - - - Gets the type the instance provides configuration for. - - - - - - Represents a definition of how a fake object of the type T should - be created. - - The type of fake. - - - - Represents a definition of how dummies of the specified type should be created. - - - - - Creates the fake. - - The fake object. - - - - Gets the type of fake object the definition is for. - - - - - Creates the dummy. - - The dummy object. - - - - Creates the dummy. - - The dummy object. - - - - Gets the type the definition is for. - - For type. - - - - Provides validation extensions for . - - - - - Constrains an argument so that it must be null (Nothing in VB). - - The type of the argument. - The constraint manager to match the constraint. - A dummy argument value. - - - - Constrains the string argument to contain the specified text. - - The constraint manager to match the constraint. - The string the argument string should contain. - A dummy argument value. - - - - Constrains the sequence so that it must contain the specified value. - - The constraint manager to match the constraint. - The value the collection should contain. - The type of sequence. - A dummy argument value. - - - - Constrains the string so that it must start with the specified value. - - The constraint manager to match the constraint. - The value the string should start with. - A dummy argument value. - - - - Constrains the string so that it must end with the specified value. - - The constraint manager to match the constraint. - The value the string should end with. - A dummy argument value. - - - - Constrains the string so that it must be null or empty. - - The constraint manager to match the constraint. - A dummy argument value. - - - - Constrains argument value so that it must be greater than the specified value. - - The constraint manager to match the constraint. - The value the string should start with. - The type of argument to constrain. - A dummy argument value. - - - - The tested argument collection should contain the same elements as the - as the specified collection. - - The constraint manager to match the constraint. - The sequence to test against. - The type of argument to constrain. - A dummy argument value. - - - - Tests that the IEnumerable contains no items. - - The type of argument. - The constraint manager to match the constraint. - A dummy argument value. - - - - Tests that the passed in argument is equal to the specified value. - - The type of the argument. - The constraint manager to match the constraint. - The value to compare to. - A dummy argument value. - - - - Tests that the passed in argument is the same instance (reference) as the specified value. - - The type of the argument. - The constraint manager to match the constraint. - The reference to compare to. - A dummy argument value. - - - - Constrains the argument to be of the specified type. - - The type of argument in the method signature. - The constraint manager. - The type to constrain the argument with. - A dummy value. - - - - Constrains the argument with a predicate. - - - The constraint manager. - - - The predicate that should constrain the argument. - - - A human readable description of the constraint. - - - The type of argument in the method signature. - - - A dummy argument value. - - - - - Constrains the argument with a predicate. - - - The constraint manager. - - - The predicate that should constrain the argument. - - - A human readable description of the constraint format string. - - - Arguments for the format string. - - - The type of argument in the method signature. - - - A dummy argument value. - - - - - Constrains the argument with a predicate. - - - The constraint manager. - - - The predicate that should constrain the argument. - - - The type of argument in the method signature. - - - A dummy argument value. - - - - - Constrains the argument to be not null (Nothing in VB) and to match - the specified predicate. - - The type of the argument to constrain. - The constraint manager. - The predicate that constrains non null values. - An action that writes a description of the constraint - to the output. - A dummy argument value. - - - - Provides extensions for . - - - - - Writes a new line to the writer. - - The writer to write to. - The writer. - - - - Writes the format string to the writer. - - The writer to write to. - The format string to write. - Replacements for the format string. - The writer. - - - - Writes the specified object to the writer (using the ToString-method of the object). - - The writer to write to. - The value to write to the writer. - The writer. - - - - Provides syntax for specifying the number of times a call must have been repeated when asserting on - fake object calls. - - A.CallTo(() => foo.Bar()).Assert(Happened.Once.Exactly); - - - - Specifies that a call must have been repeated a number of times - that is validated by the specified repeatValidation argument. - - A predicate that specifies the number of times - a call must have been made. - A Repeated-instance. - - - - When implemented gets a value indicating if the repeat is matched - by the Happened-instance. - - The repeat of a call. - True if the repeat is a match. - - - - Asserts that a call has not happened at all. - - - - - The call must have happened exactly the number of times that is specified in the next step. - - - - - The call must have happened any number of times greater than or equal to the number of times that is specified - in the next step. - - - - - The call must have happened any number of times less than or equal to the number of times that is specified - in the next step. - - - - - Provides methods for creating recorders for self initializing fakes. - - - - - Gets a recorder that records to and loads calls from the specified file. - - The file to use for recording. - A recorder instance. - - - - Provides access to the file system. - - - - - Opens the specified file in the specified mode. - - The full path and name of the file to open. - The mode to open the file in. - A stream for reading and writing the file. - - - - Gets a value indicating whether the specified file exists. - - The path and name of the file to check. - True if the file exists. - - - - Creates a file with the specified name. - - The name of the file to create. - - - - Provides extension methods for . - - - - - Evaluates an expression by compiling it into a delegate and invoking the delegate. - - The expression to be evaluated. - The value returned from the delegate compiled from the expression. - - - - An exception thrown when an expectation is not met (when asserting on fake object calls). - - - - - Initializes a new instance of the class. - - - - - Initializes a new instance of the class. - - The message. - - - - Initializes a new instance of the class. - - The message. - The inner exception. - - - - Initializes a new instance of the class. - - The that holds the serialized object data about the exception being thrown. - The that contains contextual information about the source or destination. - - The parameter is null. - - - The class name is null or is zero (0). - - - - - Provides helper methods for checking the value producer signature against call signatures. - - - - - A collection of method arguments. - - - - - The arguments this collection contains. - - - - - Initializes a new instance of the class. - - The arguments. - The argument names. - - - - Initializes a new instance of the class. - - The arguments. - The method. - - - - Returns an enumerator that iterates through the collection or arguments. - - - A that can be used to iterate through the collection. - - - - - Gets the argument at the specified index. - - The type of the argument to get. - The index of the argument. - The argument at the specified index. - - - - Gets the argument with the specified name. - - The type of the argument to get. - The name of the argument. - The argument with the specified name. - - - - Gets an empty ArgumentList. - - - - - Gets the number of arguments in the list. - - - - - Gets the names of the arguments in the list. - - - - - Gets the argument at the specified index. - - The index of the argument to get. - The argument at the specified index. - - - - Provides methods for guarding method arguments. - - - - - Throws an exception if the specified argument is null. - - The argument. - Name of the argument. - The specified argument was null. - - - - When applied to a parameter, this attribute provides an indication to code analysis that the argument has been null checked. - - - - - Provides static methods for accessing fake objects. - - - - - Gets the fake object that manages the faked object. - - The faked object to get the manager object for. - The fake object manager. - - - - Creates a new scope and sets it as the current scope. When inside a scope the - getting the calls made to a fake will return only the calls within that scope and when - asserting that calls were made, the calls must have been made within that scope. - - The created scope. - - - - Creates a new scope and sets it as the current scope. When inside a scope the - getting the calls made to a fake will return only the calls within that scope and when - asserting that calls were made, the calls must have been made within that scope. - - The container to use within the specified scope. - The created scope. - - - - Gets a value indicating whether the two objects are equal. - - The first object to compare. - The second object to compare. - True if the two objects are equal. - - - - Gets a value indicating whether the two objects are the same reference. - - The object A. - The object B. - True if the objects are the same reference. - - - - Gets all the calls made to the specified fake object. - - The faked object. - A collection containing the calls to the object. - The object passed in is not a faked object. - - - - Clears the configuration of the faked object. - - The faked object to clear the configuration of. - - - - Sets a new fake to each property or field that is tagged with the FakeAttribute in the specified - fixture. - - The object to initialize. - - - - Allows the developer to raise an event on a faked object. - - - - - Raises an event on a faked object by attaching the event handler produced by the method - to the event that is to be raised. - - The type of the event args. - The sender of the event. - The instance containing the event data. - A Raise(TEventArgs)-object that exposes the event handler to attach. - - - - Raises an event on a faked object by attaching the event handler produced by the method - to the event that is to be raised. - - The type of the event arguments. - The instance containing the event data. - - A Raise(TEventArgs)-object that exposes the event handler to attach. - - - - - Raises an event with empty event arguments on a faked object by attaching the event handler produced by the method - to the event that is to be raised. - - - A Raise(TEventArgs)-object that exposes the event handler to attach. - - - - - Handles the registration of root dependencies in an IoC-container. - - - - - Registers the dependencies. - - The container to register the dependencies in. - - - - DTO for recorded calls. - - - - - Initializes a new instance of the class. - - The method. - The output arguments. - The return value. - - - - Gets the method that was called. - - The method. - - - - Gets the output arguments of the call. - - The output arguments. - - - - Gets the return value of the call. - - The return value. - - - - Represents storage for recorded calls for self initializing - fakes. - - - - - Loads the recorded calls for the specified recording. - - The recorded calls for the recording with the specified id. - - - - Saves the specified calls as the recording with the specified id, - overwriting any previous recording. - - The calls to save. - - - - Initializes a new instance of the class. - - Name of the file. - The file system. - - - - Loads the recorded calls for the specified recording. - - - The recorded calls for the recording with the specified id. - - - - - Saves the specified calls as the recording with the specified id, - overwriting any previous recording. - - The calls to save. - - - - A factory responsible for creating instances of FileStorage. - - The file name of the storage. - A FileStorage instance. - - - - An interface for recorders that provides stored responses for self initializing fakes. - - - - - Applies the call if the call has been recorded. - - The call to apply to from recording. - - - - Records the specified call. - - The call to record. - - - - Gets a value indicating whether the recorder is currently recording. - - - - - An exception that can be thrown when recording for self initialized - fakes fails or when playback fails. - - - - - Initializes a new instance of the class. - - - - - Initializes a new instance of the class. - - The message. - - - - Initializes a new instance of the class. - - The message. - The inner exception. - - - - Initializes a new instance of the class. - - The that holds the serialized object data about the exception being thrown. - The that contains contextual information about the source or destination. - - The parameter is null. - - - The class name is null or is zero (0). - - - - - Manages the applying of recorded calls and recording of new calls when - using self initialized fakes. - - - - - Initializes a new instance of the class. - - The storage. - - - - Applies the call if the call has been recorded. - - The call to apply to from recording. - - - - Records the specified call. - - The call to record. - - - - Saves all recorded calls to the storage. - - - - - Gets a value indicating whether the recorder is currently recording. - - - - - - Represents a factory responsible for creating recording manager - instances. - - The storage the manager should use. - A RecordingManager instance. - - - - A call rule use for self initializing fakes, delegates call to - be applied by the recorder. - - - - - Initializes a new instance of the class. - - The wrapped rule. - The recorder. - - - - Gets whether this interceptor is applicable to the specified - call, if true is returned the Apply-method of the interceptor will - be called. - - The call to check for applicability. - True if the interceptor is applicable. - - - - Applies an action to the call, might set a return value or throw - an exception. - - The call to apply the interceptor to. - - - - Gets the number of times this call rule is valid, if it's set - to null its infinitely valid. - - - - - - Provides extension methods for generic usage of . - - - - - Gets an enumerable of tuples where the first value of each tuple is a value - from the first collection and the second value of each tuple is the value at the same position - from the second collection. - - The type of values in the first collection. - The type of values in the second collection. - The first of the collections to combine. - The second of the collections to combine. - An enumerable of tuples. - - - - Joins the collection to a string. - - The type of items in the collection. - The items to join. - A function that converts from an item to a string value. - Separator to insert between each item. - A string representation of the collection. - - - - Gets a dictionary containing the first element from the sequence that has a key specified by the key selector. - - The type of items in the sequence. - The type of the key. - The sequence. - The key selector. - A dictionary. - - - - An attribute that can be applied to code that should be fixed because there's a - code smell. - - - - - Gets or sets the description of the smell. - - - - - Lets you specify options for the next call to a fake object. - - - - - Specifies options for the next call to the specified fake object. The next call will - be recorded as a call configuration. - - The type of the faked object. - The faked object to configure. - A call configuration object. - - - - Used to tag fields and properties that will be initialized as a SUT through the Fake.Initialize-method. - - - - diff --git a/packages/FakeItEasy.1.25.3/lib/sl50/FakeItEasy.dll b/packages/FakeItEasy.1.25.3/lib/sl50/FakeItEasy.dll deleted file mode 100644 index 415c7eec..00000000 Binary files a/packages/FakeItEasy.1.25.3/lib/sl50/FakeItEasy.dll and /dev/null differ diff --git a/packages/FakeItEasy.1.25.3/lib/sl50/FakeItEasy.xml b/packages/FakeItEasy.1.25.3/lib/sl50/FakeItEasy.xml deleted file mode 100644 index e5b003ca..00000000 --- a/packages/FakeItEasy.1.25.3/lib/sl50/FakeItEasy.xml +++ /dev/null @@ -1,3668 +0,0 @@ - - - - FakeItEasy - - - - - Provides methods for generating fake objects. - - - - - Creates a fake object of the type T. - - The type of fake object to create. - A fake object. - - - - Creates a fake object of the type T. - - The type of fake object to create. - A lambda where options for the built fake object can be specified. - A fake object. - - - - Creates a collection of fakes of the specified type. - - The type of fakes to create. - The number of fakes in the collection. - A collection of fake objects of the specified type. - - - - Gets a dummy object of the specified type. The value of a dummy object - should be irrelevant. Dummy objects should not be configured. - - The type of dummy to return. - A dummy object of the specified type. - Dummies of the specified type can not be created. - - - - Gets a value indicating whether the two objects are equal. - - The first object to compare. - The second object to compare. - True if the two objects are equal. - - - - Gets a value indicating whether the two objects are the same reference. - - The object A. - The object B. - True if the objects are the same reference. - - - - Configures a call to a faked object. - - An expression where the configured member is called. - A configuration object. - - - - Gets a configuration object allowing for further configuration of - any call to the specified faked object. - - - The fake to configure. - - - A configuration object. - - - - - Configures a call to a faked object. - - The type of member on the faked object to configure. - An expression where the configured member is called. - A configuration object. - - - - Provides an API entry point for constraining arguments of fake object calls. - - The type of argument to validate. - - - - Gets an argument constraint object that will be used to constrain a method call argument. - - - - - Gets a constraint that considers any value of an argument as valid. - - This is a shortcut for the "Ignored"-property. - - - - Gets a constraint that considers any value of an argument as valid. - - - - - Provides configuration for any (not a specific) call on a faked object. - - - - - Gets a configuration object allowing for further configuration of - any call to the specified faked object. - - The faked object to configure. - A configuration object. - - - - Gets a value indicating whether the two objects are equal. - - The first object to compare. - The second object to compare. - True if the two objects are equal. - - - - Gets a value indicating whether the two objects are the same reference. - - The object A. - The object B. - True if the objects are the same reference. - - - - A collection of method arguments. - - - - - The arguments this collection contains. - - - - - Initializes a new instance of the class. - - The arguments. - The argument names. - - - - Initializes a new instance of the class. - - The arguments. - The method. - - - - Returns an enumerator that iterates through the collection or arguments. - - - A that can be used to iterate through the collection. - - - - - Gets the argument at the specified index. - - The type of the argument to get. - The index of the argument. - The argument at the specified index. - - - - Gets the argument with the specified name. - - The type of the argument to get. - The name of the argument. - The argument with the specified name. - - - - Gets an empty ArgumentList. - - - - - Gets the number of arguments in the list. - - - - - Gets the names of the arguments in the list. - - - - - Gets the argument at the specified index. - - The index of the argument to get. - The argument at the specified index. - - - - Provides validation extensions for . - - - - - Constrains an argument so that it must be null (Nothing in VB). - - The type of the argument. - The constraint manager to match the constraint. - A dummy argument value. - - - - Constrains the string argument to contain the specified text. - - The constraint manager to match the constraint. - The string the argument string should contain. - A dummy argument value. - - - - Constrains the sequence so that it must contain the specified value. - - The constraint manager to match the constraint. - The value the collection should contain. - The type of sequence. - A dummy argument value. - - - - Constrains the string so that it must start with the specified value. - - The constraint manager to match the constraint. - The value the string should start with. - A dummy argument value. - - - - Constrains the string so that it must end with the specified value. - - The constraint manager to match the constraint. - The value the string should end with. - A dummy argument value. - - - - Constrains the string so that it must be null or empty. - - The constraint manager to match the constraint. - A dummy argument value. - - - - Constrains argument value so that it must be greater than the specified value. - - The constraint manager to match the constraint. - The value the string should start with. - The type of argument to constrain. - A dummy argument value. - - - - The tested argument collection should contain the same elements as the - as the specified collection. - - The constraint manager to match the constraint. - The sequence to test against. - The type of argument to constrain. - A dummy argument value. - - - - Tests that the IEnumerable contains no items. - - The type of argument. - The constraint manager to match the constraint. - A dummy argument value. - - - - Tests that the passed in argument is equal to the specified value. - - The type of the argument. - The constraint manager to match the constraint. - The value to compare to. - A dummy argument value. - - - - Tests that the passed in argument is the same instance (reference) as the specified value. - - The type of the argument. - The constraint manager to match the constraint. - The reference to compare to. - A dummy argument value. - - - - Constrains the argument to be of the specified type. - - The type of argument in the method signature. - The constraint manager. - The type to constrain the argument with. - A dummy value. - - - - Constrains the argument with a predicate. - - - The constraint manager. - - - The predicate that should constrain the argument. - - - A human readable description of the constraint. - - - The type of argument in the method signature. - - - A dummy argument value. - - - - - Constrains the argument with a predicate. - - - The constraint manager. - - - The predicate that should constrain the argument. - - - A human readable description of the constraint format string. - - - Arguments for the format string. - - - The type of argument in the method signature. - - - A dummy argument value. - - - - - Constrains the argument with a predicate. - - - The constraint manager. - - - The predicate that should constrain the argument. - - - The type of argument in the method signature. - - - A dummy argument value. - - - - - Constrains the argument to be not null (Nothing in VB) and to match - the specified predicate. - - The type of the argument to constrain. - The constraint manager. - The predicate that constrains non null values. - An action that writes a description of the constraint - to the output. - A dummy argument value. - - - - Provides extension methods for . - - - - - Specifies that a call to the configured call should be applied no matter what arguments - are used in the call to the faked object. - - The type of the interface. - The configuration. - A configuration object. - - - - Provides extension methods for . - - - - - Asserts that the specified call must have happened once or more. - - The configuration to assert on. - - - - Asserts that the specified call has not happened. - - The configuration to assert on. - - - - Provides extension methods for . - - - - - Executes the specified action when a matching call is being made. This overload can also be used to fake calls with arguments when they don't need to be accessed. - - The type of fake object. - The configuration that is extended. - The to invoke. - The fake object. - - - - Executes the specified action when a matching call is being made. - - The configuration that is extended. - The to invoke. - The type of fake object. - Type of the first argument of the faked method call. - The signatures of the faked method and the do not match. - The fake object. - - - - Executes the specified action when a matching call is being made. - - The configuration that is extended. - The to invoke. - The type of fake object. - Type of the first argument of the faked method call. - Type of the second argument of the faked method call. - The signatures of the faked method and the do not match. - The fake object. - - - - Executes the specified action when a matching call is being made. - - The configuration that is extended. - The to invoke. - The type of fake object. - Type of the first argument of the faked method call. - Type of the second argument of the faked method call. - Type of the third argument of the faked method call. - The signatures of the faked method and the do not match. - The fake object. - - - - Executes the specified action when a matching call is being made. - - The configuration that is extended. - The to invoke. - The type of fake object. - Type of the first argument of the faked method call. - Type of the second argument of the faked method call. - Type of the third argument of the faked method call. - Type of the fourth argument of the faked method call. - The signatures of the faked method and the do not match. - The fake object. - - - - Provides extension methods for . - - - - - Filters to contain only the calls that matches the call specification. - - The type of fake the call is made on. - The calls to filter. - The call to match on. - A collection of the calls that matches the call specification. - - - - Gets the simple name of the assembly. Can be used in Silverlight solutions. - - The assembly. - The simple name of the assembly. - - - - Implementation of , which returns a as "call processor" lazily (on - the first call of or ). - - - Note that we just need to serialize the + the lock (an "empty", *new* object will be deserialized) - because doesn't require serializability before the first call of or - (see remarks section of ). - - - - - The responsibility of this interface is to instantiate a new and to fully initialize it (e.g. - applying the initial configuration). This should happen one time on the first call of or - . - - - - Note that the implementation of this interface must be thread-safe and guarantee the one-time-initialization property when accessing - the interface methods concurrently (could happen when using this provider in spawned threads in a proxy base constructor). - - - An implementation of this interface should also be serializable and the deserialized object should behave like the original one - *after* it has been initialized (i.e. after the first call of or ) because - we don't need to serialize a fake before it has been initialized (returned to the user). - - - - - - Create and initialize a new for . - - The corresponding proxy object of the new . - The created . - - - - Ensures that the is initialized (and can be used via the proxy's tag later on). - - The corresponding proxy object of the new . - - - - Represents the target of intercepted calls of a fake proxy. An implementation of this interface receives calls, gets its arguments - and can provide return values. - - - - - Processes an intercepted call of a fake proxy. - - The call information (like which method has been called, its arguments, ...). - - - - Provides extension methods for generic usage of . - - - - - Gets an enumerable of tuples where the first value of each tuple is a value - from the first collection and the second value of each tuple is the value at the same position - from the second collection. - - The type of values in the first collection. - The type of values in the second collection. - The first of the collections to combine. - The second of the collections to combine. - An enumerable of tuples. - - - - Joins the collection to a string. - - The type of items in the collection. - The items to join. - A function that converts from an item to a string value. - Separator to insert between each item. - A string representation of the collection. - - - - Gets a dictionary containing the first element from the sequence that has a key specified by the key selector. - - The type of items in the sequence. - The type of the key. - The sequence. - The key selector. - A dictionary. - - - - Provides the extension methods for . - - - - - Throws the specified exception when the currently configured - call gets called. - - The configuration to use. - The exception to throw when a call that matches is invoked. - Configuration object. - - - - Throws the specified exception when the currently configured - call gets called. - - The configuration to use. - A function that returns the exception to throw when invoked. - Configuration object. - - - - Throws the specified exception when the currently configured - call gets called. - - The configuration to use. - A function that returns the exception to throw when invoked. - Type of the first argument of the faked method call. - Configuration object. - The signatures of the faked method and the do not match. - - - - Throws the specified exception when the currently configured - call gets called. - - The configuration to use. - A function that returns the exception to throw when invoked. - Type of the first argument of the faked method call. - Type of the second argument of the faked method call. - Configuration object. - The signatures of the faked method and the do not match. - - - - Throws the specified exception when the currently configured - call gets called. - - The configuration to use. - A function that returns the exception to throw when invoked. - Type of the first argument of the faked method call. - Type of the second argument of the faked method call. - Type of the third argument of the faked method call. - Configuration object. - The signatures of the faked method and the do not match. - - - - Throws the specified exception when the currently configured - call gets called. - - The configuration to use. - A function that returns the exception to throw when invoked. - Type of the first argument of the faked method call. - Type of the second argument of the faked method call. - Type of the third argument of the faked method call. - Type of the fourth argument of the faked method call. - Configuration object. - The signatures of the faked method and the do not match. - - - - Throws the specified exception when the currently configured - call gets called. - - The configuration to use. - The type of exception to throw. - Configuration object. - - - - Provides extension methods for . - - - - - Evaluates an expression by compiling it into a delegate and invoking the delegate. - - The expression to be evaluated. - The value returned from the delegate compiled from the expression. - - - - An object that may provide argument values, for example as implicitly-defined values for - methods' out parameters. - - - - - Validates an argument, checks that it's valid in a specific fake call. - - - - - Writes a description of the argument constraint to the specified writer. - - - The writer. - - - - - Gets whether the argument is valid. - - The argument to validate. - True if the argument is valid. - - - - Gets the value that was used when specifying the constraint. - Used for implicit assignment of out parameter values, not for matching. - Since the called method has no access to the incoming parameter value, - there's no use in accepting or rejecting calls based on the - incoming parameter value. - - - - - Initializes a new instance of the class by - wrapping an existing . - - The original constraint, which will be used for argument validation. - The value to be used when implicitly assigning values to a call's ref parameter. - - - - Gets the value that was used when specifying the constraint. - Used for implicit assignment of ref parameter values. - - - - - Provides extension methods for configuring and asserting on faked objects - without going through the static methods of the Fake-class. - - - - - Configures the behavior of the fake object when a call that matches the specified - call happens. - - The type of fake object to configure. - The type of the return value of the member. - The faked object to configure. - An expression that specifies the calls to configure. - A configuration object. - - - - Configures the behavior of the fake object when a call that matches the specified - call happens. - - The faked object to configure. - The type of fake object to configure. - An expression that specifies the calls to configure. - A configuration object. - - - - Configures the behavior of the fake object when a call is made to any method on the - object. - - The type of the fake. - The faked object. - A configuration object. - - - - Provides an extension method for configuring fake objects. - - - - - Gets an object that provides a fluent interface syntax for configuring - the fake object. - - The type of the fake object. - The fake object to configure. - A configuration object. - The fakedObject was null. - The object passed in is not a faked object. - - - - Provides extension methods for . - - - - - Gets the argument at the specified index in the arguments collection - for the call. - - The type of the argument to get. - The call to get the argument from. - The index of the argument. - The value of the argument with the specified index. - - - - Gets the argument with the specified name in the arguments collection - for the call. - - The type of the argument to get. - The call to get the argument from. - The name of the argument. - The value of the argument with the specified name. - - - - Writes the calls in the collection to the specified output writer. - - The type of the calls. - The calls to write. - The writer to write the calls to. - - - - Writes all calls in the collection to the console. - - The type of the calls. - The calls to write. - - - - Gets the description of a call to a fake object. - - The call to describe. - A description of the call. - - - - Provides extension methods for . - - - - - Makes the fake strict, this means that any call to the fake - that has not been explicitly configured will throw an exception. - - The type of fake object. - The configuration. - A configuration object. - - - - Makes the fake default to calling base methods, so long as they aren't abstract. - - The type of fake object. - The configuration. - A configuration object. - - - - Provides extension methods for . - - - - - Provides extension methods for . - - - - - Specifies output values for out and ref parameters. The values should appear - in the same order as the out and ref parameters in the configured call. - Any non out and ref parameters are ignored. - The function will be called each time this call is made and can return different values. - - The configuration to extend. - The values. - A configuration object. - - - - Specifies a function used to produce output values for out and ref parameters. - The values should appear in the same order as the out and ref parameters in the configured call. - Any non out and ref parameters are ignored. - The function will be called each time this call is made and can return different values. - - Type of the first argument of the faked method call. - The configuration to extend. - A function that produces the output values. - A configuration object. - - The signatures of the faked method and the do not match. - - - - - Specifies a function used to produce output values for out and ref parameters. - The values should appear in the same order as the out and ref parameters in the configured call. - Any non out and ref parameters are ignored. - The function will be called each time this call is made and can return different values. - - Type of the first argument of the faked method call. - Type of the second argument of the faked method call. - The configuration to extend. - A function that produces the output values. - A configuration object. - - The signatures of the faked method and the do not match. - - - - - Specifies a function used to produce output values for out and ref parameters. - The values should appear in the same order as the out and ref parameters in the configured call. - Any non out and ref parameters are ignored. - The function will be called each time this call is made and can return different values. - - Type of the first argument of the faked method call. - Type of the second argument of the faked method call. - Type of the third argument of the faked method call. - The configuration to extend. - A function that produces the output values. - A configuration object. - - The signatures of the faked method and the do not match. - - - - - Specifies a function used to produce output values for out and ref parameters. - The values should appear in the same order as the out and ref parameters in the configured call. - Any non out and ref parameters are ignored. - The function will be called each time this call is made and can return different values. - - Type of the first argument of the faked method call. - Type of the second argument of the faked method call. - Type of the third argument of the faked method call. - Type of the fourth argument of the faked method call. - The configuration to extend. - A function that produces the output values. - A configuration object. - - The signatures of the faked method and the do not match. - - - - - Provides extensions for . - - - - - Writes a new line to the writer. - - The writer to write to. - The writer. - - - - Writes the format string to the writer. - - The writer to write to. - The format string to write. - Replacements for the format string. - The writer. - - - - Writes the specified object to the writer (using the ToString-method of the object). - - The writer to write to. - The value to write to the writer. - The writer. - - - - Provides extensions for . - - - - - Specifies NumberOfTimes(1) to the repeat configuration. - - The configuration to set repeat 1 to. - - - - Specifies NumberOfTimes(2) to the repeat configuration. - - The configuration to set repeat 2 to. - - - - Provides extension methods for . - - - - - Specifies the value to return when the configured call is made. - - The type of the return value. - The configuration to extend. - The value to return. - A configuration object. - - - - Specifies a function used to produce a return value when the configured call is made. - The function will be called each time this call is made and can return different values - each time. - - The type of the return value. - The configuration to extend. - A function that produces the return value. - A configuration object. - - - - Specifies a function used to produce a return value when the configured call is made. - The function will be called each time this call is made and can return different values - each time. - - The type of the return value. - Type of the first argument of the faked method call. - The configuration to extend. - A function that produces the return value. - A configuration object. - The signatures of the faked method and the do not match. - - - - Specifies a function used to produce a return value when the configured call is made. - The function will be called each time this call is made and can return different values - each time. - - The configuration to extend. - A function that produces the return value. - The type of the return value. - Type of the first argument of the faked method call. - Type of the second argument of the faked method call. - A configuration object. - The signatures of the faked method and the do not match. - - - - Specifies a function used to produce a return value when the configured call is made. - The function will be called each time this call is made and can return different values - each time. - - The configuration to extend. - A function that produces the return value. - The type of the return value. - Type of the first argument of the faked method call. - Type of the second argument of the faked method call. - Type of the third argument of the faked method call. - A configuration object. - The signatures of the faked method and the do not match. - - - - Specifies a function used to produce a return value when the configured call is made. - The function will be called each time this call is made and can return different values - each time. - - The configuration to extend. - A function that produces the return value. - The type of the return value. - Type of the first argument of the faked method call. - Type of the second argument of the faked method call. - Type of the third argument of the faked method call. - Type of the fourth argument of the faked method call. - A configuration object. - The signatures of the faked method and the do not match. - - - - Configures the call to return the next value from the specified sequence each time it's called. - After the sequence has been exhausted, the call will revert to the previously configured behavior. - - The type of return value. - The call configuration to extend. - The values to return in sequence. - - - - Provides extension methods for . - - - - - Provides extension methods for . - - - - - Replaces the format item in a specified System.String with the text equivalent - of the value of a corresponding System.Object instance in a specified array using - invariant culture as . - - A composite format string. - An array containing zero or more objects to format. - The formatted string. - - - - Provides extension methods for . - - - - - Provides extension methods for . - - - - - Applies a predicate to constrain which calls will be considered for interception. - - The return type of the where method. - The configuration object to extend. - A predicate for a fake object call. - The configuration object. - - - - Provides string formatting for arguments of type T when written in call lists. - - The type of the arguments which will be formatted by this instance. - - - - Provides string formatting for arguments when written in - call lists. - - - - - Gets a string representing the specified argument value. - - The argument value to get as a string. - A string representation of the value. - - - - Gets the type of arguments this formatter works on. - - - - - Gets the priority of the formatter, when two formatters are - registered for the same type the one with the highest - priority is used. - - - - - Gets a string representing the specified argument value. - - The argument value to get as a string. - A string representation of the value. - - - - Gets a string representing the specified argument value. - - The argument value to get as a string. - A string representation of the value. - - - - Gets the type of arguments this formatter works on. - - - - - Gets the priority of the formatter, when two formatters are - registered for the same type the one with the highest - priority is used. - - - - - Provides the base for rules that can be built using the FakeConfiguration. - - - - - Represents a call rule that has a description of the calls the - rule is applicable to. - - - - - Allows for intercepting call to a fake object and - act upon them. - - - - - Gets whether this interceptor is applicable to the specified - call, if true is returned the Apply-method of the interceptor will - be called. - - The call to check for applicability. - True if the interceptor is applicable. - - - - Applies an action to the call, might set a return value or throw - an exception. - - The call to apply the interceptor to. - - - - Gets the number of times this call rule is valid, if it's set - to null its infinitely valid. - - - - - Writes a description of calls the rule is applicable to. - - The writer. - - - - Gets if this rule is applicable to the specified call. - - The call to validate. - True if the rule applies to the call. - - - - Writes a description of calls the rule is applicable to. - - The writer to write the description to. - - - - Gets or sets an action that is called by the Apply method to apply this - rule to a fake object call. - - - - - Gets a collection of actions that should be invoked when the configured - call is made. - - - - - Gets or sets a function that provides values to apply to output and reference variables. - - - - - Gets or sets a value indicating whether the base method of the fake object call should be - called when the fake object call is made. - - - - - Gets or sets the number of times the configured rule should be used. - - - - - Gets a description of calls the rule is applicable to. - - - - - - Configuration for any call to a faked object. - - - - - Provides a way to configure predicates for when a call should be applied. - - The type of fake object that is going to be configured.. - - - - Applies a predicate to constrain which calls will be considered for interception. - - A predicate for a fake object call. - An action that writes a description of the predicate - to the output. - The configuration object. - - - - Provides configuration methods for methods that does not have a return value and - allows the use to specify validations for arguments. - - - - - Provides configuration methods for methods that does not have a return value. - - - - - Configuration that lets the developer specify that an exception should be - thrown by a fake object call. - - - - - Hides standard Object members to make fluent interfaces - easier to read. Found in the source of Autofac: - Based on blog post here: - - - - - - Hides the ToString-method. - - A string representation of the implementing object. - - - - Determines whether the specified is equal to this instance. - - The to compare with this instance. - - true if the specified is equal to this instance; otherwise, false. - - - - - Returns a hash code for this instance. - - - A hash code for this instance, suitable for use in hashing algorithms and data structures like a hash table. - - - - - Gets the type. - - The exact runtime type of the current instance. - - - - Throws the specified exception when the currently configured - call gets called. - - A function that creates the exception to throw. - Configuration object. - - - - Configuration for callbacks of fake object calls. - - The type of interface to return. - - - - Executes the specified action when a matching call is being made. - - The action to invoke. - A configuration object. - - - - Configuration that lets you specify that a fake object call should call it's base method. - - - - - When the configured method or methods are called the call - will be delegated to the base method of the faked method. - - A configuration object. - The fake object is of an abstract type or an interface - and no base method exists. - - - - Lets the developer configure output values of out and ref parameters. - - - - - Specifies a function used to produce output values for out and ref parameters. - The values should appear in the same order as the out and ref parameters in the configured call. - Any non out and ref parameters are ignored. - The function will be called each time this call is made and can return different values. - - A function that produces the output values. - A configuration object. - - - - Allows the developer to assert on a call that's configured. - - - - - Asserts that the configured call has happened the number of times - constrained by the repeatConstraint parameter. - - A constraint for how many times the call - must have happened. - The call has not been called a number of times - that passes the repeat constraint. - - - - Configures the specified call to do nothing when called. - - A configuration object. - - - - Provides configurations to validate arguments of a fake object call. - - The type of interface to return. - - - - Configures the call to be accepted when the specified predicate returns true. - - The argument predicate. - A configuration object. - - - - Matches calls that has the return type specified in the generic type parameter. - - The return type of the members to configure. - A configuration object. - - - - Manages registration of a set of components in a DictionaryContainer. - - - - - Registers the components of this module. - - The container to register components in. - - - - A factory that creates instances of the RecordingCallRuleType. - - - - - Creates the specified fake object. - - The type of the fake. - The fake object the rule belongs to. - The rule that's being recorded. - A RecordingCallRule instance. - - - - A factory responsible for creating start configuration for fake objects. - - - - - Creates a start configuration for the specified fake object that fakes the - specified type. - - The type of the fake object. - The fake object to configure. - A configuration object. - - - - An exception that can be thrown when something goes wrong with the configuration - of a fake object. - - - - - Initializes a new instance of the class. - - - - - Initializes a new instance of the class. - - The message. - - - - Initializes a new instance of the class. - - The message. - The inner exception. - - - - Handles the configuration of fake object given an expression specifying - a call on a faked object. - - - - - Lets you set up expectations and configure repeat for the configured call. - - - - - Provides configuration for method calls that has a return value. - - - - - Specifies the number of times for the configured event. - - The number of times to repeat. - - - - A combination of the IAfterCallSpecifiedConfiguration and IOutAndRefParametersConfiguration - interfaces. - - - - - Aggregate of IReturnValueArgumentValidationConfiguration<T> and IWhereConfiguration<IAnyCallConfigurationWithReturnTypeSpecified<T>>. - - The type of fake object that is configured. - - - - Configures a call that returns a value and allows the use to - specify validations for arguments. - - The type of the member. - - - - Configures a call that returns a value. - - The type of the member. - - - - Specifies a function used to produce a return value when the configured call is made. - The function will be called each time this call is made and can return different values - each time. - - A function that produces the return value. - A configuration object. - - - - Configurations for when a configured call is recorded. - - - - - Provides configuration from VisualBasic. - - - - - Provides methods for configuring a fake object. - - The type of fake object. - - - - Configures the behavior of the fake object when a call that matches the specified - call happens. - - The type of the return value of the member. - An expression that specifies the calls to configure. - A configuration object. - - - - Configures the behavior of the fake object when a call that matches the specified - call happens. - - An expression that specifies the calls to configure. - A configuration object. - - - - Configures the behavior of the fake object when a call is made to any method on the - object. - - A configuration object. - - - - A call rule that has been recorded. - - - - - A call rule that "sits and waits" for the next call, when - that call occurs the recorded rule is added for that call. - - The type of the fake. - - - - Provides access to a set of calls and a call matcher for these calls. - - - - - Provides access to a call matcher. - - - - - Gets a call predicate that can be used to check if a fake object call matches - the specified constraint. - - - - - Gets the set of calls. - - - - - Represents a delegate that creates a configuration object from - a fake object and the rule to build. - - The rule that's being built. - The fake object the rule is for. - A configuration object. - - - - Represents a predicate that matches a fake object call. - - - - - Gets a value indicating whether the call matches the predicate. - - The call to match. - True if the call matches the predicate. - - - - Provides configuration of faked objects. - - - - - Gets a configuration for the specified faked object. - - The type of the fake. - The faked object to configure. - A configuration object. - The specified object is not a faked object. - The fakedObject parameter was null. - - - - Represents an argument and a dummy value to use for that argument. - - - - - Initializes a new instance of the class. - - A value indicating if the dummy value was successfully resolved. - The type of argument. - The resolved value. - - - - Gets a value indicating whether a dummy argument value was successfully - resolved. - - - - - Gets the type of the argument. - - - - - Gets the resolved value. - - - - - Holds a formatter as well as the distance between a type to be formatted - and the type for which the formatted is registered. - - - - - Keeps track of metadata for interceptions. - - - - - Gets whether the rule has been called the number of times specified or not. - - True if the rule has not been called the number of times specified. - - - - Gets or sets the number of times the rule has been used. - - - - - Gets or sets the rule this metadata object is tracking. - - - - - Manages attaching of argument constraints. - - The type of argument to constrain. - - - - Constrains the argument with a predicate. - - The predicate that should constrain the argument. - An action that will be write a description of the constraint. - A dummy argument value. - - - - Inverts the logic of the matches method. - - - - - Default implementation of . - - - - - Attaches a fake manager to the proxy so that intercepted - calls can be configured. - - - - - Gets the fake manager associated with the proxy. - - The proxy to get the manager from. - A fake manager. - - - - Tags a proxy object, so that it can accessed later by . - - The proxy to tag. - The fake manager. - - - - Gets the fake manager associated with the proxy. - - The proxy to get the manager from. - A fake manager. - - - - Represents an object that can be tagged with another object. When implemented - by a proxy returned from an FakeItEasy uses the tag - to store a reference to the that handles that proxy. - - - - - Gets or sets the tag. - - - - - The default implementation of the IFakeObjectCallFormatter interface. - - - - - Provides string formatting for fake object calls. - - - - - Gets a human readable description of the specified - fake object call. - - The call to get a description for. - A description of the call. - - - - Gets a human readable description of the specified - fake object call. - - The call to get a description for. - A description of the call. - - - - Handles configuring of fake objects to delegate all their calls to a wrapped instance. - - - - - Manages configuration of fake objects to wrap instances. - - - - - Configures the specified faked object to wrap the specified instance. - - The faked object to configure. - The instance to wrap. - The recorder to use, null if no recording should be made. - - - - Configures the specified faked object to wrap the specified instance. - - The faked object to configure. - The instance to wrap. - The recorder to use, null if no recording should be made. - - - - A fake object container where delegates can be registered that are used to - resolve fake objects. - - - - - A container that can create fake objects. - - - - - Handles global configuration of fake object. - - - - - Applies base configuration to a fake object. - - The type the fake object represents. - The fake object to configure. - - - - Creates a dummy object of the specified type using the specified arguments if it's - supported by the container, returns a value indicating if it's supported or not. - - The type of dummy object to create. - The dummy object that was created if the method returns true. - True if a dummy object can be created. - - - - Initializes a new instance of the class. - Creates a new instance of the DelegateFakeObjectContainer. - - - - - Creates a fake object of the specified type using the specified arguments if it's - supported by the container, returns a value indicating if it's supported or not. - - The type of dummy object to create. - The fake object that was created if the method returns true. - True if a fake object can be created. - - - - Configures the fake. - - The type of fake. - The fake object. - - - - Registers the specified fake delegate. - - The type of the return value of the method that encapsulates. - The fake delegate. - - - - A IFakeObjectContainer implementation that uses MEF to load IFakeDefinitions and - IFakeConfigurations. - - - - - Initializes a new instance of the class. - - The dummy definitions. - The fake configurators. - - - - Creates a fake object of the specified type using the specified arguments if it's - supported by the container, returns a value indicating if it's supported or not. - - The type of fake object to create. - The fake object that was created if the method returns true. - True if a fake object can be created. - - - - Applies base configuration to a fake object. - - The type the fake object represents. - The fake object to configure. - - - - An exception that is thrown when there was an error creating a fake object. - - - - - Initializes a new instance of the class. - - - - - Initializes a new instance of the class. - - The message. - - - - Initializes a new instance of the class. - - The message. - The inner exception. - - - Auto fake property rule. - - The central point in the API for proxied fake objects handles interception - of fake object calls by using a set of rules. User defined rules can be inserted - by using the AddRule-method. - - Event rule. - Object member rule. - Property behavior rule. - Property setter rule. - - - - Initializes a new instance of the class. - - The faked type. - The faked proxy object. - - - - Adds a call rule to the fake object. - - The rule to add. - - - - Adds a call rule last in the list of user rules, meaning it has the lowest priority possible. - - The rule to add. - - - - Removes the specified rule for the fake object. - - The rule to remove. - - - - Adds an interception listener to the manager. - - The listener to add. - - - - Removes any specified user rules. - - - - - Gets the faked proxy object. - - - - - Gets the faked type. - - - - - Gets the interceptions that are currently registered with the fake object. - - - - - Gets a collection of all the calls made to the fake object within the current scope. - - - - - A delegate responsible for creating FakeObject instances. - - The faked type. - The faked proxy object. - An instance of . - - - - Represents a call to a fake object at interception time. - - - - - Represents a fake object call that can be edited. - - - - - Represents a call to a fake object. - - - - - Gets the method that's called. - - - - - Gets the arguments used in the call. - - - - - Gets the faked object the call is performed on. - - - - - Sets the return value of the call. - - The return value to set. - - - - Calls the base method of the faked type. - - - - - Sets the value of the argument at the specified index in the parameters list. - - The index of the argument to set the value of. - The value to set to the argument. - - - - Freezes the call so that it can no longer be modified. - - A completed fake object call. - - - - Sets that the call should not be recorded by the fake manager. - - - - - Attempts to preserve the stack trace of an existing exception when rethrown via throw or throw ex. - - Nicked from - http://weblogs.asp.net/fmarguerie/archive/2008/01/02/rethrowing-exceptions-and-preserving-the-full-call-stack-trace.aspx. - If reduced trust context (for example) precludes - invoking internal members on , the stack trace will not be preserved. - - The exception whose stack trace needs preserving. - - - - Represents a scope for fake objects, calls configured within a scope - are only valid within that scope. Only calls made within a scope - are accessible from within a scope so for example asserts will only - assert on those calls done within the scope. - - - - - Provides access to all calls made to fake objects within a scope. - Scopes calls so that only calls made within the scope are visible. - - - - - Creates a new scope and sets it as the current scope. - - The created scope. - - - - Creates a new scope and sets it as the current scope, using the specified - container as the container for the new scope. - - The container to use for the new scope. - The created scope. - - - - Closes the scope. - - - - - Adds an intercepted call to the current scope. - - The fake object. - The call that is intercepted. - - - - Adds a fake object call to the current scope. - - The fake object. - The rule to add. - - - - Represents a completed call to a fake object. - - - - - Gets the value set to be returned from the call. - - - - - Used by the event raising rule of fake objects to get the event arguments used in - a call to Raise.With. - - - - - Gets the sender of the event. - - - - - Gets the event arguments of the event. - - - - - Represents a listener for fake object calls, can be plugged into a - FakeManager instance to listen to all intercepted calls. - - The OnBeforeCallIntercepted method will be invoked before the OnBeforeCallIntercepted method of any - previously added listener. The OnAfterCallIntercepted method will be invoked after the OnAfterCallIntercepted - method of any previously added listener. - - - - Called when the interception begins but before any call rules - has been applied. - - The intercepted call. - - - - Called when the interception has been completed and rules has been - applied. - - The intercepted call. - The rule that was applied to the call. - - - - Handles comparisons of instances of . - - - - - Gets a value indicating whether the two instances of would invoke the same method - if invoked on an instance of the target type. - - The type of target for invocation. - The first . - The second . - True if the same method would be invoked. - - - - A null implementation for the IFakeObjectContainer interface. - - - - - Always returns false and sets the fakeObject to null. - - The type of dummy object to create. - Output variable for the fake object that will always be set to null. - Always return false. - - - - Applies base configuration to a fake object. - - The type the fake object represents. - The fake object to configure. - - - - A call rule that applies to any call and just delegates the - call to the wrapped object. - - - - - Initializes a new instance of the class. - Creates a new instance. - - - The object to wrap. - - - - - Gets whether this interceptor is applicable to the specified - call, if true is returned the Apply-method of the interceptor will - be called. - - The call to check for applicability. - True if the interceptor is applicable. - - - - Applies an action to the call, might set a return value or throw - an exception. - - The call to apply the interceptor to. - - - - Gets the number of times this call rule is valid, if it's set - to null its infinitely valid. - - - - - - An interface to be implemented by classes that can generate proxies for FakeItEasy. - - - - - Generates a proxy of the specified type and returns a result object containing information - about the success of the generation and the proxy if it was generated. - - The type of proxy to generate. - Interfaces to be implemented by the proxy. - Arguments to pass to the constructor of the type in . - The custom attribute builders. - The call processor provider. - A result containing the generated proxy. - - - - Generates a proxy of the specified type and returns a result object containing information - about the success of the generation and the proxy if it was generated. - - The type of proxy to generate. - Interfaces to be implemented by the proxy. - Arguments to pass to the constructor of the type in . - The call processor provider. - A result containing the generated proxy. - - - - Gets a value indicating whether the specified member can be intercepted by the proxy generator. - - The member to test. - The instance the method will be called on. - The reason the method can not be intercepted. - True if the member can be intercepted. - - - - An adapter that adapts an to a . - - - - - Initializes a new instance of the class. - - The invocation. - - - - Freezes the call so that it can no longer be modified. - - A completed fake object call. - - - - Calls the base method, should not be used with interface types. - - - - - Sets the specified value to the argument at the specified index. - - The index of the argument to set the value to. - The value to set to the argument. - - - - Sets the return value of the call. - - The return value. - - - - Returns a description of the call. - - - A that represents this instance. - - - - - Gets a human readable description of the call. - - - - - - Gets the value set to be returned from the call. - - - - - Gets the method that's called. - - - - - Gets the arguments used in the call. - - - - - Gets the faked object the call is performed on. - - - - - A strongly-typed resource class, for looking up localized strings, etc. - - - - - Returns the cached ResourceManager instance used by this class. - - - - - Overrides the current thread's CurrentUICulture property for all - resource lookups using this strongly typed resource class. - - - - - Looks up a localized string similar to No constructor matches the passed arguments for constructor.. - - - - - Looks up a localized string similar to Arguments for constructor specified for interface type.. - - - - - Looks up a localized string similar to The type of proxy "{0}" is sealed.. - - - - - Looks up a localized string similar to The type of proxy must be an interface or a class but it was {0}.. - - - - - Looks up a localized string similar to No usable default constructor was found on the type {0}.. - - - - - The default implementation of the IFakeAndDummyManager interface. - - - - - Handles the creation of fake and dummy objects. - - - - - Creates a dummy of the specified type. - - The type of dummy to create. - The created dummy. - The current IProxyGenerator is not able to generate a fake of the specified type and - the current IFakeObjectContainer does not contain the specified type. - - - - Creates a fake object of the specified type. - - The type of fake object to generate. - Options for building the fake object. - A fake object. - The current IProxyGenerator is not able to generate a fake of the specified type. - - - - Tries to create a dummy of the specified type. - - The type of dummy to create. - Outputs the result dummy when creation is successful. - A value indicating whether the creation was successful. - - - - Tries to create a fake object of the specified type. - - The type of fake to create. - Options for the creation of the fake. - The created fake object when creation is successful. - A value indicating whether the creation was successful. - - - - Default implementation of the IFakeCreator-interface. - - - - - A facade used by the public API for testability. - - - - - Creates a fake object of the specified type. - - The type of fake to create. - Options for the created fake object. - The created fake object. - Was unable to generate the fake in the current configuration. - - - - Creates a dummy object, this can be a fake object or an object resolved - from the current IFakeObjectContainer. - - The type of dummy to create. - The created dummy. - Was unable to generate the fake in the current configuration and - no dummy was registered in the container for the specified type.. - - - - Creates a collection of fakes of the specified type. - - The type of fakes to create. - The number of fakes in the collection. - A collection of fake objects of the specified type. - - - - Initializes a new instance of the class. - - The fake and dummy manager. - - - - Creates a fake object of the specified type. - - The type of fake to create. - Options for the created fake object. - The created fake object. - Was unable to generate the fake in the current configuration. - - - - Creates a collection of fakes of the specified type. - - The type of fakes to create. - The number of fakes in the collection. - - A collection of fake objects of the specified type. - - - - - Creates a dummy object, this can be a fake object or an object resolved - from the current IFakeObjectContainer. - - The type of dummy to create. - The created dummy. - Was unable to generate the fake in the current configuration and - no dummy was registered in the container for the specified type.. - - - - Provides options for fake wrappers. - - The type of the fake object generated. - - - - Provides options for generating fake object. - - The type of fake object generated. - - - - Specifies arguments for the constructor of the faked class. - - The arguments to pass to the constructor of the faked class. - Options object. - - - - Specifies arguments for the constructor of the faked class by giving an expression with the call to - the desired constructor using the arguments to be passed to the constructor. - - The constructor call to use when creating a class proxy. - Options object. - - - - Specifies that the fake should delegate calls to the specified instance. - - The object to delegate calls to. - Options object. - - - - Specifies that the fake should be created with these additional attributes. - - The attributes to build into the proxy. - Options object. - - - - Sets up the fake to implement the specified interface in addition to the - originally faked class. - - The type of interface to implement. - Options object. - The specified type is not an interface. - The specified type is null. - - - - Specifies an action that should be run over the fake object - once it's created. - - An action to perform. - Options object. - - - - Specifies a fake recorder to use. - - The recorder to use. - Options object. - - - - Initializes a new instance of the class. - - The container. - The fake object creator. - - - - Contains the result of a call to TryCreateProxy of IProxyGenerator. - - - - - Initializes a new instance of the class. - Creates a new instance representing a failed proxy - generation attempt. - - - The reason the proxy generation failed. - - - - - Initializes a new instance of the class. - Creates a new instance representing a failed proxy - generation attempt due to an exception being caught. - - - The reason the proxy generation failed. - - - The exception thrown from the creation attempt. - - - - - Initializes a new instance of the class. - Creates a new instance representing a successful proxy - generation. - - - The proxy that was generated. - - - - - Gets a value indicating whether the proxy was successfully created. - - - - - Gets the generated proxy when it was successfully created. - - - - - Gets the reason for failure when the generation was not successful. - - - - - Represents a text writer that writes to the output. - - - - - Writes the specified value to the output. - - The value to write. - The writer for method chaining. - - - - Formats the specified argument value as a string and writes - it to the output. - - The value to write. - The writer for method chaining. - - - - Indents the writer. - - A disposable that will unindent the writer when disposed. - - - - Represents a definition of how a fake object of the type T should - be created. - - The type of fake. - - - - Represents a definition of how dummies of the specified type should be created. - - - - - Creates the fake. - - The fake object. - - - - Gets the type of fake object the definition is for. - - - - - Creates the dummy. - - The dummy object. - - - - Creates the dummy. - - The dummy object. - - - - Gets the type the definition is for. - - For type. - - - - A strongly-typed resource class, for looking up localized strings, etc. - - - - - Returns the cached ResourceManager instance used by this class. - - - - - Overrides the current thread's CurrentUICulture property for all - resource lookups using this strongly typed resource class. - - - - - Looks up a localized string similar to The Apply method of the ExpressionInterceptor may no be called before the Applicator property has been set.. - - - - - Looks up a localized string similar to The specified argument name does not exist in the ArgumentList.. - - - - - Looks up a localized string similar to Arguments for constructor was specified when generating proxy of interface type.. - - - - - Looks up a localized string similar to An argument validation was not configured correctly.. - - - - - Looks up a localized string similar to The method '{0}' was called too few times, expected #{1} times but was called #{2} times.. - - - - - Looks up a localized string similar to The method '{0}' was called too many times, expected #{1} times but was called #{2} times.. - - - - - Looks up a localized string similar to Can not create fake of the type '{0}', it's not registered in the current container and the current IProxyGenerator can not generate the fake. - - The following constructors failed: - {1}. - - - - - Looks up a localized string similar to Error when accessing FakeObject, the specified argument is of the type '{0}' which is not faked.. - - - - - Looks up a localized string similar to An ExpressionCallMatcher can only be created for expressions that represents a method call or a property getter.. - - - - - Looks up a localized string similar to - - The current proxy generator failed to create a proxy with the specified arguments for the constructor: - - Reason for failure: - - {0} - - . - - - - - Looks up a localized string similar to FakeItEasy failed to create fake object of type "{0}". - - 1. The type is not registered in the current IFakeObjectContainer. - 2. The current IProxyGenerator failed to generate a proxy for the following reason: - - {1}. - - - - - Looks up a localized string similar to Unable to create fake object.. - - - - - Looks up a localized string similar to The fake manager was initialized for a different proxy.. - - - - - Looks up a localized string similar to Only abstract classes can be faked using the A.Fake-method that takes an enumerable of objects as arguments for constructor, use the overload that takes an expression instead.. - - - - - Looks up a localized string similar to The member accessor expression must be a lambda expression with a MethodCallExpression or MemberAccessExpression as its body.. - - - - - Looks up a localized string similar to The specified method can not be configured since it can not be intercepted by the current IProxyGenerator.. - - - - - Looks up a localized string similar to The method of the call did not match the method of the recorded call, the recorded sequence is no longer valid.. - - - - - Looks up a localized string similar to No constructor matching the specified arguments was found on the type {0}.. - - - - - Looks up a localized string similar to Can not generate fake object for the class since no usable default constructor was found, specify a constructor call.. - - - - - Looks up a localized string similar to All the recorded calls has been applied, the recorded sequence is no longer valid.. - - - - - Looks up a localized string similar to Only expression of the type ExpressionType.New (constructor calls) are accepted.. - - - - - Looks up a localized string similar to The Now-method on the event raise is not meant to be called directly, only use it to register to an event on a fake object that you want to be raised.. - - - - - Looks up a localized string similar to The number of values for out and ref parameters specified does not match the number of out and ref parameters in the call.. - - - - - Looks up a localized string similar to A scope for ordered assertions is already opened, close that scope before opening another one.. - - - - - Looks up a localized string similar to The specified call is not made on a fake object.. - - - - - Looks up a localized string similar to The current fake proxy generator can not create proxies of the type {0}.. - - - - - Looks up a localized string similar to FakeItEasy was unable to create dummy of type "{0}", register it in the current IFakeObjectContainer to enable this.. - - - - - Looks up a localized string similar to Expected to find call {0} the number of times specified by the predicate '{1}' but found it {2} times among the calls:. - - - - - Looks up a localized string similar to The number of argument names does not match the number of arguments.. - - - - - An exception thrown when an expectation is not met (when asserting on fake object calls). - - - - - Initializes a new instance of the class. - - - - - Initializes a new instance of the class. - - The message. - - - - Initializes a new instance of the class. - - The message. - The inner exception. - - - - Represents a class that can parse a lambda expression - that represents a method or property call. - - - - - Parses the specified expression. - - The expression to parse. - The parsed expression. - - - - Handles the matching of fake object calls to expressions. - - - - - Initializes a new instance of the class. - - The call specification. - The constraint factory. - The method info manager to use. - A parser to use to parse call expressions. - - - - Matches the specified call against the expression. - - The call to match. - True if the call is matched by the expression. - - - - Gets a description of the call. - - Description of the call. - - - - Gets a human readable description of calls that will be matched by this - matcher. - - - - - An implementation of the interface that uses - expressions for evaluating if the rule is applicable to a specific call. - - - - - Initializes a new instance of the class. - - The expression matcher to use. - - - - Returns a that represents this instance. - - - A that represents this instance. - - - - - Handles the instantiation of ExpressionCallRule instance. - - An expression specifying the call. - A rule instance. - - - - Manages breaking call specification expression into their various parts. - - - - - Manages breaking call specification expression into their various parts. - - - - - Gets the fake object an expression is called on. - - The call expression. - The FakeManager instance that manages the faked object the call is made on. - The fakeObjectCall is null. - The specified expression is not an expression where a call is made to a faked object. - - - - Gets the fake object an expression is called on. - - The call expression. - A FakeObject. - The fakeObjectCall is null. - The specified expression is not an expression where a call is made to a faked object. - - - - Provides static methods for accessing fake objects. - - - - - Gets the fake object that manages the faked object. - - The faked object to get the manager object for. - The fake object manager. - - - - Creates a new scope and sets it as the current scope. When inside a scope the - getting the calls made to a fake will return only the calls within that scope and when - asserting that calls were made, the calls must have been made within that scope. - - The created scope. - - - - Creates a new scope and sets it as the current scope. When inside a scope the - getting the calls made to a fake will return only the calls within that scope and when - asserting that calls were made, the calls must have been made within that scope. - - The container to use within the specified scope. - The created scope. - - - - Gets a value indicating whether the two objects are equal. - - The first object to compare. - The second object to compare. - True if the two objects are equal. - - - - Gets a value indicating whether the two objects are the same reference. - - The object A. - The object B. - True if the objects are the same reference. - - - - Gets all the calls made to the specified fake object. - - The faked object. - A collection containing the calls to the object. - The object passed in is not a faked object. - - - - Clears the configuration of the faked object. - - The faked object to clear the configuration of. - - - - Sets a new fake to each property or field that is tagged with the FakeAttribute in the specified - fixture. - - The object to initialize. - - - - Represents a fake object that provides an API for configuring a faked object, exposed by the - FakedObject-property. - - The type of the faked object. - - - - Initializes a new instance of the class. - Creates a new fake object. - - - - - Initializes a new instance of the class. - Creates a new fake object using the specified options. - - - Options used to create the fake object. - - - - - Configures calls to the specified member. - - An expression specifying the call to configure. - A configuration object. - - - - Configures calls to the specified member. - - The type of value the member returns. - An expression specifying the call to configure. - A configuration object. - - - - Configures any call to the fake object. - - A configuration object. - - - - Gets the faked object. - - - - - Gets all calls made to the faked object. - - - - - Used to tag fields and properties that will be initialized through the - Fake.Initialize-method. - - - - - Provides the base implementation for the IFakeConfigurator-interface. - - The type of fakes the configurator can configure. - - - - Provides configurations for fake objects of a specific type. - - - - - Applies the configuration for the specified fake object. - - The fake object to configure. - - - - Gets the type the instance provides configuration for. - - - - - Configures the fake. - - The fake object. - - - - Applies the configuration for the specified fake object. - - The fake object to configure. - - - - Asserts the type of the that fake is of correct. - - The fake object. - - - - Gets the type the instance provides configuration for. - - - - - - Provides methods for guarding method arguments. - - - - - Throws an exception if the specified argument is null. - - The argument. - Name of the argument. - The specified argument was null. - - - - When applied to a parameter, this attribute provides an indication to code analysis that the argument has been null checked. - - - - - Provides access to the file system. - - - - - Opens the specified file in the specified mode. - - The full path and name of the file to open. - The mode to open the file in. - A stream for reading and writing the file. - - - - Gets a value indicating whether the specified file exists. - - The path and name of the file to check. - True if the file exists. - - - - Creates a file with the specified name. - - The name of the file to create. - - - - A simple implementation of an IoC container. - - - - - The dictionary that stores the registered services. - - - - - Initializes a new instance of the class. - - - - - Resolves an instance of the specified component type. - - Type of the component. - An instance of the component type. - - - - Registers the specified resolver. - - The type of component to register. - The resolver. - - - - Registers the specified resolver as a singleton. - - The type of component to register. - The resolver. - - - - Provides properties and methods to specify repeat. - - - - - Specifies the number of times as repeat. - - The number of times expected. - A Repeated instance. - - - - Specifies once as the repeat. - - - - - Specifies twice as the repeat. - - - - - Lets you specify options for the next call to a fake object. - - - - - Specifies options for the next call to the specified fake object. The next call will - be recorded as a call configuration. - - The type of the faked object. - The faked object to configure. - A call configuration object. - - - - Provides functionality for making ordered assertions on fakes. - - - - - Creates a scope that changes the behavior on asserts so that all asserts within - the scope must be to calls in the specified collection of calls. Calls must have happened - in the order that the asserts are specified or the asserts will fail. - - The calls to assert among. - A disposable used to close the scope. - - - - Allows the developer to raise an event on a faked object. - - - - - Raises an event on a faked object by attaching the event handler produced by the method - to the event that is to be raised. - - The type of the event args. - The sender of the event. - The instance containing the event data. - A Raise(TEventArgs)-object that exposes the event handler to attach. - - - - Raises an event on a faked object by attaching the event handler produced by the method - to the event that is to be raised. - - The type of the event arguments. - The instance containing the event data. - - A Raise(TEventArgs)-object that exposes the event handler to attach. - - - - - Raises an event with empty event arguments on a faked object by attaching the event handler produced by the method - to the event that is to be raised. - - - A Raise(TEventArgs)-object that exposes the event handler to attach. - - - - - A class exposing an event handler to attach to an event of a faked object - in order to raise that event. - - The type of the event args. - - - - Converts a raiser into an - - The raiser to convert. - The new event handler - - - - Converts a raiser into an - - The raiser to convert. - The new event handler - - - - Register this event handler to an event on a faked object in order to raise that event. - - The sender of the event. - Event args for the event. - - - - Register this event handler to an event on a faked object in order to raise that event. - - The sender of the event. - Event args for the event. - - - - Gets a generic event handler to attach to the event to raise. - - - - - Provides methods for creating recorders for self initializing fakes. - - - - - Provides syntax for specifying the number of times a call must have been repeated when asserting on - fake object calls. - - A.CallTo(() => foo.Bar()).Assert(Happened.Once.Exactly); - - - - Specifies that a call must have been repeated a number of times - that is validated by the specified repeatValidation argument. - - A predicate that specifies the number of times - a call must have been made. - A Repeated-instance. - - - - When implemented gets a value indicating if the repeat is matched - by the Happened-instance. - - The repeat of a call. - True if the repeat is a match. - - - - Asserts that a call has not happened at all. - - - - - The call must have happened exactly the number of times that is specified in the next step. - - - - - The call must have happened any number of times greater than or equal to the number of times that is specified - in the next step. - - - - - The call must have happened any number of times less than or equal to the number of times that is specified - in the next step. - - - - - Handles the registration of root dependencies in an IoC-container. - - - - - Registers the dependencies. - - The container to register the dependencies in. - - - - DTO for recorded calls. - - - - - Initializes a new instance of the class. - - The method. - The output arguments. - The return value. - - - - Gets the method that was called. - - The method. - - - - Gets the output arguments of the call. - - The output arguments. - - - - Gets the return value of the call. - - The return value. - - - - Represents storage for recorded calls for self initializing - fakes. - - - - - Loads the recorded calls for the specified recording. - - The recorded calls for the recording with the specified id. - - - - Saves the specified calls as the recording with the specified id, - overwriting any previous recording. - - The calls to save. - - - - An interface for recorders that provides stored responses for self initializing fakes. - - - - - Applies the call if the call has been recorded. - - The call to apply to from recording. - - - - Records the specified call. - - The call to record. - - - - Gets a value indicating whether the recorder is currently recording. - - - - - An exception that can be thrown when recording for self initialized - fakes fails or when playback fails. - - - - - Initializes a new instance of the class. - - - - - Initializes a new instance of the class. - - The message. - - - - Initializes a new instance of the class. - - The message. - The inner exception. - - - - Manages the applying of recorded calls and recording of new calls when - using self initialized fakes. - - - - - Initializes a new instance of the class. - - The storage. - - - - Applies the call if the call has been recorded. - - The call to apply to from recording. - - - - Records the specified call. - - The call to record. - - - - Saves all recorded calls to the storage. - - - - - Gets a value indicating whether the recorder is currently recording. - - - - - - Represents a factory responsible for creating recording manager - instances. - - The storage the manager should use. - A RecordingManager instance. - - - - A call rule use for self initializing fakes, delegates call to - be applied by the recorder. - - - - - Initializes a new instance of the class. - - The wrapped rule. - The recorder. - - - - Gets whether this interceptor is applicable to the specified - call, if true is returned the Apply-method of the interceptor will - be called. - - The call to check for applicability. - True if the interceptor is applicable. - - - - Applies an action to the call, might set a return value or throw - an exception. - - The call to apply the interceptor to. - - - - Gets the number of times this call rule is valid, if it's set - to null its infinitely valid. - - - - - - An attribute that can be applied to code that should be fixed because there's a - code smell. - - - - - Gets or sets the description of the smell. - - - - - Used to tag fields and properties that will be initialized as a SUT through the Fake.Initialize-method. - - - - - Provides helper methods for checking the value producer signature against call signatures. - - - - - Fixes so that existing Serializable-attributes are omitted in the compilation - of the silverlight project. - - - - - Fixes so that existing NonSerialized-attributes are omitted in the compilation - of the silverlight project. - - - - diff --git a/packages/FakeItEasy.1.25.3/lib/win8/FakeItEasy.dll b/packages/FakeItEasy.1.25.3/lib/win8/FakeItEasy.dll deleted file mode 100644 index 415c7eec..00000000 Binary files a/packages/FakeItEasy.1.25.3/lib/win8/FakeItEasy.dll and /dev/null differ diff --git a/packages/FakeItEasy.1.25.3/lib/win8/FakeItEasy.xml b/packages/FakeItEasy.1.25.3/lib/win8/FakeItEasy.xml deleted file mode 100644 index e5b003ca..00000000 --- a/packages/FakeItEasy.1.25.3/lib/win8/FakeItEasy.xml +++ /dev/null @@ -1,3668 +0,0 @@ - - - - FakeItEasy - - - - - Provides methods for generating fake objects. - - - - - Creates a fake object of the type T. - - The type of fake object to create. - A fake object. - - - - Creates a fake object of the type T. - - The type of fake object to create. - A lambda where options for the built fake object can be specified. - A fake object. - - - - Creates a collection of fakes of the specified type. - - The type of fakes to create. - The number of fakes in the collection. - A collection of fake objects of the specified type. - - - - Gets a dummy object of the specified type. The value of a dummy object - should be irrelevant. Dummy objects should not be configured. - - The type of dummy to return. - A dummy object of the specified type. - Dummies of the specified type can not be created. - - - - Gets a value indicating whether the two objects are equal. - - The first object to compare. - The second object to compare. - True if the two objects are equal. - - - - Gets a value indicating whether the two objects are the same reference. - - The object A. - The object B. - True if the objects are the same reference. - - - - Configures a call to a faked object. - - An expression where the configured member is called. - A configuration object. - - - - Gets a configuration object allowing for further configuration of - any call to the specified faked object. - - - The fake to configure. - - - A configuration object. - - - - - Configures a call to a faked object. - - The type of member on the faked object to configure. - An expression where the configured member is called. - A configuration object. - - - - Provides an API entry point for constraining arguments of fake object calls. - - The type of argument to validate. - - - - Gets an argument constraint object that will be used to constrain a method call argument. - - - - - Gets a constraint that considers any value of an argument as valid. - - This is a shortcut for the "Ignored"-property. - - - - Gets a constraint that considers any value of an argument as valid. - - - - - Provides configuration for any (not a specific) call on a faked object. - - - - - Gets a configuration object allowing for further configuration of - any call to the specified faked object. - - The faked object to configure. - A configuration object. - - - - Gets a value indicating whether the two objects are equal. - - The first object to compare. - The second object to compare. - True if the two objects are equal. - - - - Gets a value indicating whether the two objects are the same reference. - - The object A. - The object B. - True if the objects are the same reference. - - - - A collection of method arguments. - - - - - The arguments this collection contains. - - - - - Initializes a new instance of the class. - - The arguments. - The argument names. - - - - Initializes a new instance of the class. - - The arguments. - The method. - - - - Returns an enumerator that iterates through the collection or arguments. - - - A that can be used to iterate through the collection. - - - - - Gets the argument at the specified index. - - The type of the argument to get. - The index of the argument. - The argument at the specified index. - - - - Gets the argument with the specified name. - - The type of the argument to get. - The name of the argument. - The argument with the specified name. - - - - Gets an empty ArgumentList. - - - - - Gets the number of arguments in the list. - - - - - Gets the names of the arguments in the list. - - - - - Gets the argument at the specified index. - - The index of the argument to get. - The argument at the specified index. - - - - Provides validation extensions for . - - - - - Constrains an argument so that it must be null (Nothing in VB). - - The type of the argument. - The constraint manager to match the constraint. - A dummy argument value. - - - - Constrains the string argument to contain the specified text. - - The constraint manager to match the constraint. - The string the argument string should contain. - A dummy argument value. - - - - Constrains the sequence so that it must contain the specified value. - - The constraint manager to match the constraint. - The value the collection should contain. - The type of sequence. - A dummy argument value. - - - - Constrains the string so that it must start with the specified value. - - The constraint manager to match the constraint. - The value the string should start with. - A dummy argument value. - - - - Constrains the string so that it must end with the specified value. - - The constraint manager to match the constraint. - The value the string should end with. - A dummy argument value. - - - - Constrains the string so that it must be null or empty. - - The constraint manager to match the constraint. - A dummy argument value. - - - - Constrains argument value so that it must be greater than the specified value. - - The constraint manager to match the constraint. - The value the string should start with. - The type of argument to constrain. - A dummy argument value. - - - - The tested argument collection should contain the same elements as the - as the specified collection. - - The constraint manager to match the constraint. - The sequence to test against. - The type of argument to constrain. - A dummy argument value. - - - - Tests that the IEnumerable contains no items. - - The type of argument. - The constraint manager to match the constraint. - A dummy argument value. - - - - Tests that the passed in argument is equal to the specified value. - - The type of the argument. - The constraint manager to match the constraint. - The value to compare to. - A dummy argument value. - - - - Tests that the passed in argument is the same instance (reference) as the specified value. - - The type of the argument. - The constraint manager to match the constraint. - The reference to compare to. - A dummy argument value. - - - - Constrains the argument to be of the specified type. - - The type of argument in the method signature. - The constraint manager. - The type to constrain the argument with. - A dummy value. - - - - Constrains the argument with a predicate. - - - The constraint manager. - - - The predicate that should constrain the argument. - - - A human readable description of the constraint. - - - The type of argument in the method signature. - - - A dummy argument value. - - - - - Constrains the argument with a predicate. - - - The constraint manager. - - - The predicate that should constrain the argument. - - - A human readable description of the constraint format string. - - - Arguments for the format string. - - - The type of argument in the method signature. - - - A dummy argument value. - - - - - Constrains the argument with a predicate. - - - The constraint manager. - - - The predicate that should constrain the argument. - - - The type of argument in the method signature. - - - A dummy argument value. - - - - - Constrains the argument to be not null (Nothing in VB) and to match - the specified predicate. - - The type of the argument to constrain. - The constraint manager. - The predicate that constrains non null values. - An action that writes a description of the constraint - to the output. - A dummy argument value. - - - - Provides extension methods for . - - - - - Specifies that a call to the configured call should be applied no matter what arguments - are used in the call to the faked object. - - The type of the interface. - The configuration. - A configuration object. - - - - Provides extension methods for . - - - - - Asserts that the specified call must have happened once or more. - - The configuration to assert on. - - - - Asserts that the specified call has not happened. - - The configuration to assert on. - - - - Provides extension methods for . - - - - - Executes the specified action when a matching call is being made. This overload can also be used to fake calls with arguments when they don't need to be accessed. - - The type of fake object. - The configuration that is extended. - The to invoke. - The fake object. - - - - Executes the specified action when a matching call is being made. - - The configuration that is extended. - The to invoke. - The type of fake object. - Type of the first argument of the faked method call. - The signatures of the faked method and the do not match. - The fake object. - - - - Executes the specified action when a matching call is being made. - - The configuration that is extended. - The to invoke. - The type of fake object. - Type of the first argument of the faked method call. - Type of the second argument of the faked method call. - The signatures of the faked method and the do not match. - The fake object. - - - - Executes the specified action when a matching call is being made. - - The configuration that is extended. - The to invoke. - The type of fake object. - Type of the first argument of the faked method call. - Type of the second argument of the faked method call. - Type of the third argument of the faked method call. - The signatures of the faked method and the do not match. - The fake object. - - - - Executes the specified action when a matching call is being made. - - The configuration that is extended. - The to invoke. - The type of fake object. - Type of the first argument of the faked method call. - Type of the second argument of the faked method call. - Type of the third argument of the faked method call. - Type of the fourth argument of the faked method call. - The signatures of the faked method and the do not match. - The fake object. - - - - Provides extension methods for . - - - - - Filters to contain only the calls that matches the call specification. - - The type of fake the call is made on. - The calls to filter. - The call to match on. - A collection of the calls that matches the call specification. - - - - Gets the simple name of the assembly. Can be used in Silverlight solutions. - - The assembly. - The simple name of the assembly. - - - - Implementation of , which returns a as "call processor" lazily (on - the first call of or ). - - - Note that we just need to serialize the + the lock (an "empty", *new* object will be deserialized) - because doesn't require serializability before the first call of or - (see remarks section of ). - - - - - The responsibility of this interface is to instantiate a new and to fully initialize it (e.g. - applying the initial configuration). This should happen one time on the first call of or - . - - - - Note that the implementation of this interface must be thread-safe and guarantee the one-time-initialization property when accessing - the interface methods concurrently (could happen when using this provider in spawned threads in a proxy base constructor). - - - An implementation of this interface should also be serializable and the deserialized object should behave like the original one - *after* it has been initialized (i.e. after the first call of or ) because - we don't need to serialize a fake before it has been initialized (returned to the user). - - - - - - Create and initialize a new for . - - The corresponding proxy object of the new . - The created . - - - - Ensures that the is initialized (and can be used via the proxy's tag later on). - - The corresponding proxy object of the new . - - - - Represents the target of intercepted calls of a fake proxy. An implementation of this interface receives calls, gets its arguments - and can provide return values. - - - - - Processes an intercepted call of a fake proxy. - - The call information (like which method has been called, its arguments, ...). - - - - Provides extension methods for generic usage of . - - - - - Gets an enumerable of tuples where the first value of each tuple is a value - from the first collection and the second value of each tuple is the value at the same position - from the second collection. - - The type of values in the first collection. - The type of values in the second collection. - The first of the collections to combine. - The second of the collections to combine. - An enumerable of tuples. - - - - Joins the collection to a string. - - The type of items in the collection. - The items to join. - A function that converts from an item to a string value. - Separator to insert between each item. - A string representation of the collection. - - - - Gets a dictionary containing the first element from the sequence that has a key specified by the key selector. - - The type of items in the sequence. - The type of the key. - The sequence. - The key selector. - A dictionary. - - - - Provides the extension methods for . - - - - - Throws the specified exception when the currently configured - call gets called. - - The configuration to use. - The exception to throw when a call that matches is invoked. - Configuration object. - - - - Throws the specified exception when the currently configured - call gets called. - - The configuration to use. - A function that returns the exception to throw when invoked. - Configuration object. - - - - Throws the specified exception when the currently configured - call gets called. - - The configuration to use. - A function that returns the exception to throw when invoked. - Type of the first argument of the faked method call. - Configuration object. - The signatures of the faked method and the do not match. - - - - Throws the specified exception when the currently configured - call gets called. - - The configuration to use. - A function that returns the exception to throw when invoked. - Type of the first argument of the faked method call. - Type of the second argument of the faked method call. - Configuration object. - The signatures of the faked method and the do not match. - - - - Throws the specified exception when the currently configured - call gets called. - - The configuration to use. - A function that returns the exception to throw when invoked. - Type of the first argument of the faked method call. - Type of the second argument of the faked method call. - Type of the third argument of the faked method call. - Configuration object. - The signatures of the faked method and the do not match. - - - - Throws the specified exception when the currently configured - call gets called. - - The configuration to use. - A function that returns the exception to throw when invoked. - Type of the first argument of the faked method call. - Type of the second argument of the faked method call. - Type of the third argument of the faked method call. - Type of the fourth argument of the faked method call. - Configuration object. - The signatures of the faked method and the do not match. - - - - Throws the specified exception when the currently configured - call gets called. - - The configuration to use. - The type of exception to throw. - Configuration object. - - - - Provides extension methods for . - - - - - Evaluates an expression by compiling it into a delegate and invoking the delegate. - - The expression to be evaluated. - The value returned from the delegate compiled from the expression. - - - - An object that may provide argument values, for example as implicitly-defined values for - methods' out parameters. - - - - - Validates an argument, checks that it's valid in a specific fake call. - - - - - Writes a description of the argument constraint to the specified writer. - - - The writer. - - - - - Gets whether the argument is valid. - - The argument to validate. - True if the argument is valid. - - - - Gets the value that was used when specifying the constraint. - Used for implicit assignment of out parameter values, not for matching. - Since the called method has no access to the incoming parameter value, - there's no use in accepting or rejecting calls based on the - incoming parameter value. - - - - - Initializes a new instance of the class by - wrapping an existing . - - The original constraint, which will be used for argument validation. - The value to be used when implicitly assigning values to a call's ref parameter. - - - - Gets the value that was used when specifying the constraint. - Used for implicit assignment of ref parameter values. - - - - - Provides extension methods for configuring and asserting on faked objects - without going through the static methods of the Fake-class. - - - - - Configures the behavior of the fake object when a call that matches the specified - call happens. - - The type of fake object to configure. - The type of the return value of the member. - The faked object to configure. - An expression that specifies the calls to configure. - A configuration object. - - - - Configures the behavior of the fake object when a call that matches the specified - call happens. - - The faked object to configure. - The type of fake object to configure. - An expression that specifies the calls to configure. - A configuration object. - - - - Configures the behavior of the fake object when a call is made to any method on the - object. - - The type of the fake. - The faked object. - A configuration object. - - - - Provides an extension method for configuring fake objects. - - - - - Gets an object that provides a fluent interface syntax for configuring - the fake object. - - The type of the fake object. - The fake object to configure. - A configuration object. - The fakedObject was null. - The object passed in is not a faked object. - - - - Provides extension methods for . - - - - - Gets the argument at the specified index in the arguments collection - for the call. - - The type of the argument to get. - The call to get the argument from. - The index of the argument. - The value of the argument with the specified index. - - - - Gets the argument with the specified name in the arguments collection - for the call. - - The type of the argument to get. - The call to get the argument from. - The name of the argument. - The value of the argument with the specified name. - - - - Writes the calls in the collection to the specified output writer. - - The type of the calls. - The calls to write. - The writer to write the calls to. - - - - Writes all calls in the collection to the console. - - The type of the calls. - The calls to write. - - - - Gets the description of a call to a fake object. - - The call to describe. - A description of the call. - - - - Provides extension methods for . - - - - - Makes the fake strict, this means that any call to the fake - that has not been explicitly configured will throw an exception. - - The type of fake object. - The configuration. - A configuration object. - - - - Makes the fake default to calling base methods, so long as they aren't abstract. - - The type of fake object. - The configuration. - A configuration object. - - - - Provides extension methods for . - - - - - Provides extension methods for . - - - - - Specifies output values for out and ref parameters. The values should appear - in the same order as the out and ref parameters in the configured call. - Any non out and ref parameters are ignored. - The function will be called each time this call is made and can return different values. - - The configuration to extend. - The values. - A configuration object. - - - - Specifies a function used to produce output values for out and ref parameters. - The values should appear in the same order as the out and ref parameters in the configured call. - Any non out and ref parameters are ignored. - The function will be called each time this call is made and can return different values. - - Type of the first argument of the faked method call. - The configuration to extend. - A function that produces the output values. - A configuration object. - - The signatures of the faked method and the do not match. - - - - - Specifies a function used to produce output values for out and ref parameters. - The values should appear in the same order as the out and ref parameters in the configured call. - Any non out and ref parameters are ignored. - The function will be called each time this call is made and can return different values. - - Type of the first argument of the faked method call. - Type of the second argument of the faked method call. - The configuration to extend. - A function that produces the output values. - A configuration object. - - The signatures of the faked method and the do not match. - - - - - Specifies a function used to produce output values for out and ref parameters. - The values should appear in the same order as the out and ref parameters in the configured call. - Any non out and ref parameters are ignored. - The function will be called each time this call is made and can return different values. - - Type of the first argument of the faked method call. - Type of the second argument of the faked method call. - Type of the third argument of the faked method call. - The configuration to extend. - A function that produces the output values. - A configuration object. - - The signatures of the faked method and the do not match. - - - - - Specifies a function used to produce output values for out and ref parameters. - The values should appear in the same order as the out and ref parameters in the configured call. - Any non out and ref parameters are ignored. - The function will be called each time this call is made and can return different values. - - Type of the first argument of the faked method call. - Type of the second argument of the faked method call. - Type of the third argument of the faked method call. - Type of the fourth argument of the faked method call. - The configuration to extend. - A function that produces the output values. - A configuration object. - - The signatures of the faked method and the do not match. - - - - - Provides extensions for . - - - - - Writes a new line to the writer. - - The writer to write to. - The writer. - - - - Writes the format string to the writer. - - The writer to write to. - The format string to write. - Replacements for the format string. - The writer. - - - - Writes the specified object to the writer (using the ToString-method of the object). - - The writer to write to. - The value to write to the writer. - The writer. - - - - Provides extensions for . - - - - - Specifies NumberOfTimes(1) to the repeat configuration. - - The configuration to set repeat 1 to. - - - - Specifies NumberOfTimes(2) to the repeat configuration. - - The configuration to set repeat 2 to. - - - - Provides extension methods for . - - - - - Specifies the value to return when the configured call is made. - - The type of the return value. - The configuration to extend. - The value to return. - A configuration object. - - - - Specifies a function used to produce a return value when the configured call is made. - The function will be called each time this call is made and can return different values - each time. - - The type of the return value. - The configuration to extend. - A function that produces the return value. - A configuration object. - - - - Specifies a function used to produce a return value when the configured call is made. - The function will be called each time this call is made and can return different values - each time. - - The type of the return value. - Type of the first argument of the faked method call. - The configuration to extend. - A function that produces the return value. - A configuration object. - The signatures of the faked method and the do not match. - - - - Specifies a function used to produce a return value when the configured call is made. - The function will be called each time this call is made and can return different values - each time. - - The configuration to extend. - A function that produces the return value. - The type of the return value. - Type of the first argument of the faked method call. - Type of the second argument of the faked method call. - A configuration object. - The signatures of the faked method and the do not match. - - - - Specifies a function used to produce a return value when the configured call is made. - The function will be called each time this call is made and can return different values - each time. - - The configuration to extend. - A function that produces the return value. - The type of the return value. - Type of the first argument of the faked method call. - Type of the second argument of the faked method call. - Type of the third argument of the faked method call. - A configuration object. - The signatures of the faked method and the do not match. - - - - Specifies a function used to produce a return value when the configured call is made. - The function will be called each time this call is made and can return different values - each time. - - The configuration to extend. - A function that produces the return value. - The type of the return value. - Type of the first argument of the faked method call. - Type of the second argument of the faked method call. - Type of the third argument of the faked method call. - Type of the fourth argument of the faked method call. - A configuration object. - The signatures of the faked method and the do not match. - - - - Configures the call to return the next value from the specified sequence each time it's called. - After the sequence has been exhausted, the call will revert to the previously configured behavior. - - The type of return value. - The call configuration to extend. - The values to return in sequence. - - - - Provides extension methods for . - - - - - Provides extension methods for . - - - - - Replaces the format item in a specified System.String with the text equivalent - of the value of a corresponding System.Object instance in a specified array using - invariant culture as . - - A composite format string. - An array containing zero or more objects to format. - The formatted string. - - - - Provides extension methods for . - - - - - Provides extension methods for . - - - - - Applies a predicate to constrain which calls will be considered for interception. - - The return type of the where method. - The configuration object to extend. - A predicate for a fake object call. - The configuration object. - - - - Provides string formatting for arguments of type T when written in call lists. - - The type of the arguments which will be formatted by this instance. - - - - Provides string formatting for arguments when written in - call lists. - - - - - Gets a string representing the specified argument value. - - The argument value to get as a string. - A string representation of the value. - - - - Gets the type of arguments this formatter works on. - - - - - Gets the priority of the formatter, when two formatters are - registered for the same type the one with the highest - priority is used. - - - - - Gets a string representing the specified argument value. - - The argument value to get as a string. - A string representation of the value. - - - - Gets a string representing the specified argument value. - - The argument value to get as a string. - A string representation of the value. - - - - Gets the type of arguments this formatter works on. - - - - - Gets the priority of the formatter, when two formatters are - registered for the same type the one with the highest - priority is used. - - - - - Provides the base for rules that can be built using the FakeConfiguration. - - - - - Represents a call rule that has a description of the calls the - rule is applicable to. - - - - - Allows for intercepting call to a fake object and - act upon them. - - - - - Gets whether this interceptor is applicable to the specified - call, if true is returned the Apply-method of the interceptor will - be called. - - The call to check for applicability. - True if the interceptor is applicable. - - - - Applies an action to the call, might set a return value or throw - an exception. - - The call to apply the interceptor to. - - - - Gets the number of times this call rule is valid, if it's set - to null its infinitely valid. - - - - - Writes a description of calls the rule is applicable to. - - The writer. - - - - Gets if this rule is applicable to the specified call. - - The call to validate. - True if the rule applies to the call. - - - - Writes a description of calls the rule is applicable to. - - The writer to write the description to. - - - - Gets or sets an action that is called by the Apply method to apply this - rule to a fake object call. - - - - - Gets a collection of actions that should be invoked when the configured - call is made. - - - - - Gets or sets a function that provides values to apply to output and reference variables. - - - - - Gets or sets a value indicating whether the base method of the fake object call should be - called when the fake object call is made. - - - - - Gets or sets the number of times the configured rule should be used. - - - - - Gets a description of calls the rule is applicable to. - - - - - - Configuration for any call to a faked object. - - - - - Provides a way to configure predicates for when a call should be applied. - - The type of fake object that is going to be configured.. - - - - Applies a predicate to constrain which calls will be considered for interception. - - A predicate for a fake object call. - An action that writes a description of the predicate - to the output. - The configuration object. - - - - Provides configuration methods for methods that does not have a return value and - allows the use to specify validations for arguments. - - - - - Provides configuration methods for methods that does not have a return value. - - - - - Configuration that lets the developer specify that an exception should be - thrown by a fake object call. - - - - - Hides standard Object members to make fluent interfaces - easier to read. Found in the source of Autofac: - Based on blog post here: - - - - - - Hides the ToString-method. - - A string representation of the implementing object. - - - - Determines whether the specified is equal to this instance. - - The to compare with this instance. - - true if the specified is equal to this instance; otherwise, false. - - - - - Returns a hash code for this instance. - - - A hash code for this instance, suitable for use in hashing algorithms and data structures like a hash table. - - - - - Gets the type. - - The exact runtime type of the current instance. - - - - Throws the specified exception when the currently configured - call gets called. - - A function that creates the exception to throw. - Configuration object. - - - - Configuration for callbacks of fake object calls. - - The type of interface to return. - - - - Executes the specified action when a matching call is being made. - - The action to invoke. - A configuration object. - - - - Configuration that lets you specify that a fake object call should call it's base method. - - - - - When the configured method or methods are called the call - will be delegated to the base method of the faked method. - - A configuration object. - The fake object is of an abstract type or an interface - and no base method exists. - - - - Lets the developer configure output values of out and ref parameters. - - - - - Specifies a function used to produce output values for out and ref parameters. - The values should appear in the same order as the out and ref parameters in the configured call. - Any non out and ref parameters are ignored. - The function will be called each time this call is made and can return different values. - - A function that produces the output values. - A configuration object. - - - - Allows the developer to assert on a call that's configured. - - - - - Asserts that the configured call has happened the number of times - constrained by the repeatConstraint parameter. - - A constraint for how many times the call - must have happened. - The call has not been called a number of times - that passes the repeat constraint. - - - - Configures the specified call to do nothing when called. - - A configuration object. - - - - Provides configurations to validate arguments of a fake object call. - - The type of interface to return. - - - - Configures the call to be accepted when the specified predicate returns true. - - The argument predicate. - A configuration object. - - - - Matches calls that has the return type specified in the generic type parameter. - - The return type of the members to configure. - A configuration object. - - - - Manages registration of a set of components in a DictionaryContainer. - - - - - Registers the components of this module. - - The container to register components in. - - - - A factory that creates instances of the RecordingCallRuleType. - - - - - Creates the specified fake object. - - The type of the fake. - The fake object the rule belongs to. - The rule that's being recorded. - A RecordingCallRule instance. - - - - A factory responsible for creating start configuration for fake objects. - - - - - Creates a start configuration for the specified fake object that fakes the - specified type. - - The type of the fake object. - The fake object to configure. - A configuration object. - - - - An exception that can be thrown when something goes wrong with the configuration - of a fake object. - - - - - Initializes a new instance of the class. - - - - - Initializes a new instance of the class. - - The message. - - - - Initializes a new instance of the class. - - The message. - The inner exception. - - - - Handles the configuration of fake object given an expression specifying - a call on a faked object. - - - - - Lets you set up expectations and configure repeat for the configured call. - - - - - Provides configuration for method calls that has a return value. - - - - - Specifies the number of times for the configured event. - - The number of times to repeat. - - - - A combination of the IAfterCallSpecifiedConfiguration and IOutAndRefParametersConfiguration - interfaces. - - - - - Aggregate of IReturnValueArgumentValidationConfiguration<T> and IWhereConfiguration<IAnyCallConfigurationWithReturnTypeSpecified<T>>. - - The type of fake object that is configured. - - - - Configures a call that returns a value and allows the use to - specify validations for arguments. - - The type of the member. - - - - Configures a call that returns a value. - - The type of the member. - - - - Specifies a function used to produce a return value when the configured call is made. - The function will be called each time this call is made and can return different values - each time. - - A function that produces the return value. - A configuration object. - - - - Configurations for when a configured call is recorded. - - - - - Provides configuration from VisualBasic. - - - - - Provides methods for configuring a fake object. - - The type of fake object. - - - - Configures the behavior of the fake object when a call that matches the specified - call happens. - - The type of the return value of the member. - An expression that specifies the calls to configure. - A configuration object. - - - - Configures the behavior of the fake object when a call that matches the specified - call happens. - - An expression that specifies the calls to configure. - A configuration object. - - - - Configures the behavior of the fake object when a call is made to any method on the - object. - - A configuration object. - - - - A call rule that has been recorded. - - - - - A call rule that "sits and waits" for the next call, when - that call occurs the recorded rule is added for that call. - - The type of the fake. - - - - Provides access to a set of calls and a call matcher for these calls. - - - - - Provides access to a call matcher. - - - - - Gets a call predicate that can be used to check if a fake object call matches - the specified constraint. - - - - - Gets the set of calls. - - - - - Represents a delegate that creates a configuration object from - a fake object and the rule to build. - - The rule that's being built. - The fake object the rule is for. - A configuration object. - - - - Represents a predicate that matches a fake object call. - - - - - Gets a value indicating whether the call matches the predicate. - - The call to match. - True if the call matches the predicate. - - - - Provides configuration of faked objects. - - - - - Gets a configuration for the specified faked object. - - The type of the fake. - The faked object to configure. - A configuration object. - The specified object is not a faked object. - The fakedObject parameter was null. - - - - Represents an argument and a dummy value to use for that argument. - - - - - Initializes a new instance of the class. - - A value indicating if the dummy value was successfully resolved. - The type of argument. - The resolved value. - - - - Gets a value indicating whether a dummy argument value was successfully - resolved. - - - - - Gets the type of the argument. - - - - - Gets the resolved value. - - - - - Holds a formatter as well as the distance between a type to be formatted - and the type for which the formatted is registered. - - - - - Keeps track of metadata for interceptions. - - - - - Gets whether the rule has been called the number of times specified or not. - - True if the rule has not been called the number of times specified. - - - - Gets or sets the number of times the rule has been used. - - - - - Gets or sets the rule this metadata object is tracking. - - - - - Manages attaching of argument constraints. - - The type of argument to constrain. - - - - Constrains the argument with a predicate. - - The predicate that should constrain the argument. - An action that will be write a description of the constraint. - A dummy argument value. - - - - Inverts the logic of the matches method. - - - - - Default implementation of . - - - - - Attaches a fake manager to the proxy so that intercepted - calls can be configured. - - - - - Gets the fake manager associated with the proxy. - - The proxy to get the manager from. - A fake manager. - - - - Tags a proxy object, so that it can accessed later by . - - The proxy to tag. - The fake manager. - - - - Gets the fake manager associated with the proxy. - - The proxy to get the manager from. - A fake manager. - - - - Represents an object that can be tagged with another object. When implemented - by a proxy returned from an FakeItEasy uses the tag - to store a reference to the that handles that proxy. - - - - - Gets or sets the tag. - - - - - The default implementation of the IFakeObjectCallFormatter interface. - - - - - Provides string formatting for fake object calls. - - - - - Gets a human readable description of the specified - fake object call. - - The call to get a description for. - A description of the call. - - - - Gets a human readable description of the specified - fake object call. - - The call to get a description for. - A description of the call. - - - - Handles configuring of fake objects to delegate all their calls to a wrapped instance. - - - - - Manages configuration of fake objects to wrap instances. - - - - - Configures the specified faked object to wrap the specified instance. - - The faked object to configure. - The instance to wrap. - The recorder to use, null if no recording should be made. - - - - Configures the specified faked object to wrap the specified instance. - - The faked object to configure. - The instance to wrap. - The recorder to use, null if no recording should be made. - - - - A fake object container where delegates can be registered that are used to - resolve fake objects. - - - - - A container that can create fake objects. - - - - - Handles global configuration of fake object. - - - - - Applies base configuration to a fake object. - - The type the fake object represents. - The fake object to configure. - - - - Creates a dummy object of the specified type using the specified arguments if it's - supported by the container, returns a value indicating if it's supported or not. - - The type of dummy object to create. - The dummy object that was created if the method returns true. - True if a dummy object can be created. - - - - Initializes a new instance of the class. - Creates a new instance of the DelegateFakeObjectContainer. - - - - - Creates a fake object of the specified type using the specified arguments if it's - supported by the container, returns a value indicating if it's supported or not. - - The type of dummy object to create. - The fake object that was created if the method returns true. - True if a fake object can be created. - - - - Configures the fake. - - The type of fake. - The fake object. - - - - Registers the specified fake delegate. - - The type of the return value of the method that encapsulates. - The fake delegate. - - - - A IFakeObjectContainer implementation that uses MEF to load IFakeDefinitions and - IFakeConfigurations. - - - - - Initializes a new instance of the class. - - The dummy definitions. - The fake configurators. - - - - Creates a fake object of the specified type using the specified arguments if it's - supported by the container, returns a value indicating if it's supported or not. - - The type of fake object to create. - The fake object that was created if the method returns true. - True if a fake object can be created. - - - - Applies base configuration to a fake object. - - The type the fake object represents. - The fake object to configure. - - - - An exception that is thrown when there was an error creating a fake object. - - - - - Initializes a new instance of the class. - - - - - Initializes a new instance of the class. - - The message. - - - - Initializes a new instance of the class. - - The message. - The inner exception. - - - Auto fake property rule. - - The central point in the API for proxied fake objects handles interception - of fake object calls by using a set of rules. User defined rules can be inserted - by using the AddRule-method. - - Event rule. - Object member rule. - Property behavior rule. - Property setter rule. - - - - Initializes a new instance of the class. - - The faked type. - The faked proxy object. - - - - Adds a call rule to the fake object. - - The rule to add. - - - - Adds a call rule last in the list of user rules, meaning it has the lowest priority possible. - - The rule to add. - - - - Removes the specified rule for the fake object. - - The rule to remove. - - - - Adds an interception listener to the manager. - - The listener to add. - - - - Removes any specified user rules. - - - - - Gets the faked proxy object. - - - - - Gets the faked type. - - - - - Gets the interceptions that are currently registered with the fake object. - - - - - Gets a collection of all the calls made to the fake object within the current scope. - - - - - A delegate responsible for creating FakeObject instances. - - The faked type. - The faked proxy object. - An instance of . - - - - Represents a call to a fake object at interception time. - - - - - Represents a fake object call that can be edited. - - - - - Represents a call to a fake object. - - - - - Gets the method that's called. - - - - - Gets the arguments used in the call. - - - - - Gets the faked object the call is performed on. - - - - - Sets the return value of the call. - - The return value to set. - - - - Calls the base method of the faked type. - - - - - Sets the value of the argument at the specified index in the parameters list. - - The index of the argument to set the value of. - The value to set to the argument. - - - - Freezes the call so that it can no longer be modified. - - A completed fake object call. - - - - Sets that the call should not be recorded by the fake manager. - - - - - Attempts to preserve the stack trace of an existing exception when rethrown via throw or throw ex. - - Nicked from - http://weblogs.asp.net/fmarguerie/archive/2008/01/02/rethrowing-exceptions-and-preserving-the-full-call-stack-trace.aspx. - If reduced trust context (for example) precludes - invoking internal members on , the stack trace will not be preserved. - - The exception whose stack trace needs preserving. - - - - Represents a scope for fake objects, calls configured within a scope - are only valid within that scope. Only calls made within a scope - are accessible from within a scope so for example asserts will only - assert on those calls done within the scope. - - - - - Provides access to all calls made to fake objects within a scope. - Scopes calls so that only calls made within the scope are visible. - - - - - Creates a new scope and sets it as the current scope. - - The created scope. - - - - Creates a new scope and sets it as the current scope, using the specified - container as the container for the new scope. - - The container to use for the new scope. - The created scope. - - - - Closes the scope. - - - - - Adds an intercepted call to the current scope. - - The fake object. - The call that is intercepted. - - - - Adds a fake object call to the current scope. - - The fake object. - The rule to add. - - - - Represents a completed call to a fake object. - - - - - Gets the value set to be returned from the call. - - - - - Used by the event raising rule of fake objects to get the event arguments used in - a call to Raise.With. - - - - - Gets the sender of the event. - - - - - Gets the event arguments of the event. - - - - - Represents a listener for fake object calls, can be plugged into a - FakeManager instance to listen to all intercepted calls. - - The OnBeforeCallIntercepted method will be invoked before the OnBeforeCallIntercepted method of any - previously added listener. The OnAfterCallIntercepted method will be invoked after the OnAfterCallIntercepted - method of any previously added listener. - - - - Called when the interception begins but before any call rules - has been applied. - - The intercepted call. - - - - Called when the interception has been completed and rules has been - applied. - - The intercepted call. - The rule that was applied to the call. - - - - Handles comparisons of instances of . - - - - - Gets a value indicating whether the two instances of would invoke the same method - if invoked on an instance of the target type. - - The type of target for invocation. - The first . - The second . - True if the same method would be invoked. - - - - A null implementation for the IFakeObjectContainer interface. - - - - - Always returns false and sets the fakeObject to null. - - The type of dummy object to create. - Output variable for the fake object that will always be set to null. - Always return false. - - - - Applies base configuration to a fake object. - - The type the fake object represents. - The fake object to configure. - - - - A call rule that applies to any call and just delegates the - call to the wrapped object. - - - - - Initializes a new instance of the class. - Creates a new instance. - - - The object to wrap. - - - - - Gets whether this interceptor is applicable to the specified - call, if true is returned the Apply-method of the interceptor will - be called. - - The call to check for applicability. - True if the interceptor is applicable. - - - - Applies an action to the call, might set a return value or throw - an exception. - - The call to apply the interceptor to. - - - - Gets the number of times this call rule is valid, if it's set - to null its infinitely valid. - - - - - - An interface to be implemented by classes that can generate proxies for FakeItEasy. - - - - - Generates a proxy of the specified type and returns a result object containing information - about the success of the generation and the proxy if it was generated. - - The type of proxy to generate. - Interfaces to be implemented by the proxy. - Arguments to pass to the constructor of the type in . - The custom attribute builders. - The call processor provider. - A result containing the generated proxy. - - - - Generates a proxy of the specified type and returns a result object containing information - about the success of the generation and the proxy if it was generated. - - The type of proxy to generate. - Interfaces to be implemented by the proxy. - Arguments to pass to the constructor of the type in . - The call processor provider. - A result containing the generated proxy. - - - - Gets a value indicating whether the specified member can be intercepted by the proxy generator. - - The member to test. - The instance the method will be called on. - The reason the method can not be intercepted. - True if the member can be intercepted. - - - - An adapter that adapts an to a . - - - - - Initializes a new instance of the class. - - The invocation. - - - - Freezes the call so that it can no longer be modified. - - A completed fake object call. - - - - Calls the base method, should not be used with interface types. - - - - - Sets the specified value to the argument at the specified index. - - The index of the argument to set the value to. - The value to set to the argument. - - - - Sets the return value of the call. - - The return value. - - - - Returns a description of the call. - - - A that represents this instance. - - - - - Gets a human readable description of the call. - - - - - - Gets the value set to be returned from the call. - - - - - Gets the method that's called. - - - - - Gets the arguments used in the call. - - - - - Gets the faked object the call is performed on. - - - - - A strongly-typed resource class, for looking up localized strings, etc. - - - - - Returns the cached ResourceManager instance used by this class. - - - - - Overrides the current thread's CurrentUICulture property for all - resource lookups using this strongly typed resource class. - - - - - Looks up a localized string similar to No constructor matches the passed arguments for constructor.. - - - - - Looks up a localized string similar to Arguments for constructor specified for interface type.. - - - - - Looks up a localized string similar to The type of proxy "{0}" is sealed.. - - - - - Looks up a localized string similar to The type of proxy must be an interface or a class but it was {0}.. - - - - - Looks up a localized string similar to No usable default constructor was found on the type {0}.. - - - - - The default implementation of the IFakeAndDummyManager interface. - - - - - Handles the creation of fake and dummy objects. - - - - - Creates a dummy of the specified type. - - The type of dummy to create. - The created dummy. - The current IProxyGenerator is not able to generate a fake of the specified type and - the current IFakeObjectContainer does not contain the specified type. - - - - Creates a fake object of the specified type. - - The type of fake object to generate. - Options for building the fake object. - A fake object. - The current IProxyGenerator is not able to generate a fake of the specified type. - - - - Tries to create a dummy of the specified type. - - The type of dummy to create. - Outputs the result dummy when creation is successful. - A value indicating whether the creation was successful. - - - - Tries to create a fake object of the specified type. - - The type of fake to create. - Options for the creation of the fake. - The created fake object when creation is successful. - A value indicating whether the creation was successful. - - - - Default implementation of the IFakeCreator-interface. - - - - - A facade used by the public API for testability. - - - - - Creates a fake object of the specified type. - - The type of fake to create. - Options for the created fake object. - The created fake object. - Was unable to generate the fake in the current configuration. - - - - Creates a dummy object, this can be a fake object or an object resolved - from the current IFakeObjectContainer. - - The type of dummy to create. - The created dummy. - Was unable to generate the fake in the current configuration and - no dummy was registered in the container for the specified type.. - - - - Creates a collection of fakes of the specified type. - - The type of fakes to create. - The number of fakes in the collection. - A collection of fake objects of the specified type. - - - - Initializes a new instance of the class. - - The fake and dummy manager. - - - - Creates a fake object of the specified type. - - The type of fake to create. - Options for the created fake object. - The created fake object. - Was unable to generate the fake in the current configuration. - - - - Creates a collection of fakes of the specified type. - - The type of fakes to create. - The number of fakes in the collection. - - A collection of fake objects of the specified type. - - - - - Creates a dummy object, this can be a fake object or an object resolved - from the current IFakeObjectContainer. - - The type of dummy to create. - The created dummy. - Was unable to generate the fake in the current configuration and - no dummy was registered in the container for the specified type.. - - - - Provides options for fake wrappers. - - The type of the fake object generated. - - - - Provides options for generating fake object. - - The type of fake object generated. - - - - Specifies arguments for the constructor of the faked class. - - The arguments to pass to the constructor of the faked class. - Options object. - - - - Specifies arguments for the constructor of the faked class by giving an expression with the call to - the desired constructor using the arguments to be passed to the constructor. - - The constructor call to use when creating a class proxy. - Options object. - - - - Specifies that the fake should delegate calls to the specified instance. - - The object to delegate calls to. - Options object. - - - - Specifies that the fake should be created with these additional attributes. - - The attributes to build into the proxy. - Options object. - - - - Sets up the fake to implement the specified interface in addition to the - originally faked class. - - The type of interface to implement. - Options object. - The specified type is not an interface. - The specified type is null. - - - - Specifies an action that should be run over the fake object - once it's created. - - An action to perform. - Options object. - - - - Specifies a fake recorder to use. - - The recorder to use. - Options object. - - - - Initializes a new instance of the class. - - The container. - The fake object creator. - - - - Contains the result of a call to TryCreateProxy of IProxyGenerator. - - - - - Initializes a new instance of the class. - Creates a new instance representing a failed proxy - generation attempt. - - - The reason the proxy generation failed. - - - - - Initializes a new instance of the class. - Creates a new instance representing a failed proxy - generation attempt due to an exception being caught. - - - The reason the proxy generation failed. - - - The exception thrown from the creation attempt. - - - - - Initializes a new instance of the class. - Creates a new instance representing a successful proxy - generation. - - - The proxy that was generated. - - - - - Gets a value indicating whether the proxy was successfully created. - - - - - Gets the generated proxy when it was successfully created. - - - - - Gets the reason for failure when the generation was not successful. - - - - - Represents a text writer that writes to the output. - - - - - Writes the specified value to the output. - - The value to write. - The writer for method chaining. - - - - Formats the specified argument value as a string and writes - it to the output. - - The value to write. - The writer for method chaining. - - - - Indents the writer. - - A disposable that will unindent the writer when disposed. - - - - Represents a definition of how a fake object of the type T should - be created. - - The type of fake. - - - - Represents a definition of how dummies of the specified type should be created. - - - - - Creates the fake. - - The fake object. - - - - Gets the type of fake object the definition is for. - - - - - Creates the dummy. - - The dummy object. - - - - Creates the dummy. - - The dummy object. - - - - Gets the type the definition is for. - - For type. - - - - A strongly-typed resource class, for looking up localized strings, etc. - - - - - Returns the cached ResourceManager instance used by this class. - - - - - Overrides the current thread's CurrentUICulture property for all - resource lookups using this strongly typed resource class. - - - - - Looks up a localized string similar to The Apply method of the ExpressionInterceptor may no be called before the Applicator property has been set.. - - - - - Looks up a localized string similar to The specified argument name does not exist in the ArgumentList.. - - - - - Looks up a localized string similar to Arguments for constructor was specified when generating proxy of interface type.. - - - - - Looks up a localized string similar to An argument validation was not configured correctly.. - - - - - Looks up a localized string similar to The method '{0}' was called too few times, expected #{1} times but was called #{2} times.. - - - - - Looks up a localized string similar to The method '{0}' was called too many times, expected #{1} times but was called #{2} times.. - - - - - Looks up a localized string similar to Can not create fake of the type '{0}', it's not registered in the current container and the current IProxyGenerator can not generate the fake. - - The following constructors failed: - {1}. - - - - - Looks up a localized string similar to Error when accessing FakeObject, the specified argument is of the type '{0}' which is not faked.. - - - - - Looks up a localized string similar to An ExpressionCallMatcher can only be created for expressions that represents a method call or a property getter.. - - - - - Looks up a localized string similar to - - The current proxy generator failed to create a proxy with the specified arguments for the constructor: - - Reason for failure: - - {0} - - . - - - - - Looks up a localized string similar to FakeItEasy failed to create fake object of type "{0}". - - 1. The type is not registered in the current IFakeObjectContainer. - 2. The current IProxyGenerator failed to generate a proxy for the following reason: - - {1}. - - - - - Looks up a localized string similar to Unable to create fake object.. - - - - - Looks up a localized string similar to The fake manager was initialized for a different proxy.. - - - - - Looks up a localized string similar to Only abstract classes can be faked using the A.Fake-method that takes an enumerable of objects as arguments for constructor, use the overload that takes an expression instead.. - - - - - Looks up a localized string similar to The member accessor expression must be a lambda expression with a MethodCallExpression or MemberAccessExpression as its body.. - - - - - Looks up a localized string similar to The specified method can not be configured since it can not be intercepted by the current IProxyGenerator.. - - - - - Looks up a localized string similar to The method of the call did not match the method of the recorded call, the recorded sequence is no longer valid.. - - - - - Looks up a localized string similar to No constructor matching the specified arguments was found on the type {0}.. - - - - - Looks up a localized string similar to Can not generate fake object for the class since no usable default constructor was found, specify a constructor call.. - - - - - Looks up a localized string similar to All the recorded calls has been applied, the recorded sequence is no longer valid.. - - - - - Looks up a localized string similar to Only expression of the type ExpressionType.New (constructor calls) are accepted.. - - - - - Looks up a localized string similar to The Now-method on the event raise is not meant to be called directly, only use it to register to an event on a fake object that you want to be raised.. - - - - - Looks up a localized string similar to The number of values for out and ref parameters specified does not match the number of out and ref parameters in the call.. - - - - - Looks up a localized string similar to A scope for ordered assertions is already opened, close that scope before opening another one.. - - - - - Looks up a localized string similar to The specified call is not made on a fake object.. - - - - - Looks up a localized string similar to The current fake proxy generator can not create proxies of the type {0}.. - - - - - Looks up a localized string similar to FakeItEasy was unable to create dummy of type "{0}", register it in the current IFakeObjectContainer to enable this.. - - - - - Looks up a localized string similar to Expected to find call {0} the number of times specified by the predicate '{1}' but found it {2} times among the calls:. - - - - - Looks up a localized string similar to The number of argument names does not match the number of arguments.. - - - - - An exception thrown when an expectation is not met (when asserting on fake object calls). - - - - - Initializes a new instance of the class. - - - - - Initializes a new instance of the class. - - The message. - - - - Initializes a new instance of the class. - - The message. - The inner exception. - - - - Represents a class that can parse a lambda expression - that represents a method or property call. - - - - - Parses the specified expression. - - The expression to parse. - The parsed expression. - - - - Handles the matching of fake object calls to expressions. - - - - - Initializes a new instance of the class. - - The call specification. - The constraint factory. - The method info manager to use. - A parser to use to parse call expressions. - - - - Matches the specified call against the expression. - - The call to match. - True if the call is matched by the expression. - - - - Gets a description of the call. - - Description of the call. - - - - Gets a human readable description of calls that will be matched by this - matcher. - - - - - An implementation of the interface that uses - expressions for evaluating if the rule is applicable to a specific call. - - - - - Initializes a new instance of the class. - - The expression matcher to use. - - - - Returns a that represents this instance. - - - A that represents this instance. - - - - - Handles the instantiation of ExpressionCallRule instance. - - An expression specifying the call. - A rule instance. - - - - Manages breaking call specification expression into their various parts. - - - - - Manages breaking call specification expression into their various parts. - - - - - Gets the fake object an expression is called on. - - The call expression. - The FakeManager instance that manages the faked object the call is made on. - The fakeObjectCall is null. - The specified expression is not an expression where a call is made to a faked object. - - - - Gets the fake object an expression is called on. - - The call expression. - A FakeObject. - The fakeObjectCall is null. - The specified expression is not an expression where a call is made to a faked object. - - - - Provides static methods for accessing fake objects. - - - - - Gets the fake object that manages the faked object. - - The faked object to get the manager object for. - The fake object manager. - - - - Creates a new scope and sets it as the current scope. When inside a scope the - getting the calls made to a fake will return only the calls within that scope and when - asserting that calls were made, the calls must have been made within that scope. - - The created scope. - - - - Creates a new scope and sets it as the current scope. When inside a scope the - getting the calls made to a fake will return only the calls within that scope and when - asserting that calls were made, the calls must have been made within that scope. - - The container to use within the specified scope. - The created scope. - - - - Gets a value indicating whether the two objects are equal. - - The first object to compare. - The second object to compare. - True if the two objects are equal. - - - - Gets a value indicating whether the two objects are the same reference. - - The object A. - The object B. - True if the objects are the same reference. - - - - Gets all the calls made to the specified fake object. - - The faked object. - A collection containing the calls to the object. - The object passed in is not a faked object. - - - - Clears the configuration of the faked object. - - The faked object to clear the configuration of. - - - - Sets a new fake to each property or field that is tagged with the FakeAttribute in the specified - fixture. - - The object to initialize. - - - - Represents a fake object that provides an API for configuring a faked object, exposed by the - FakedObject-property. - - The type of the faked object. - - - - Initializes a new instance of the class. - Creates a new fake object. - - - - - Initializes a new instance of the class. - Creates a new fake object using the specified options. - - - Options used to create the fake object. - - - - - Configures calls to the specified member. - - An expression specifying the call to configure. - A configuration object. - - - - Configures calls to the specified member. - - The type of value the member returns. - An expression specifying the call to configure. - A configuration object. - - - - Configures any call to the fake object. - - A configuration object. - - - - Gets the faked object. - - - - - Gets all calls made to the faked object. - - - - - Used to tag fields and properties that will be initialized through the - Fake.Initialize-method. - - - - - Provides the base implementation for the IFakeConfigurator-interface. - - The type of fakes the configurator can configure. - - - - Provides configurations for fake objects of a specific type. - - - - - Applies the configuration for the specified fake object. - - The fake object to configure. - - - - Gets the type the instance provides configuration for. - - - - - Configures the fake. - - The fake object. - - - - Applies the configuration for the specified fake object. - - The fake object to configure. - - - - Asserts the type of the that fake is of correct. - - The fake object. - - - - Gets the type the instance provides configuration for. - - - - - - Provides methods for guarding method arguments. - - - - - Throws an exception if the specified argument is null. - - The argument. - Name of the argument. - The specified argument was null. - - - - When applied to a parameter, this attribute provides an indication to code analysis that the argument has been null checked. - - - - - Provides access to the file system. - - - - - Opens the specified file in the specified mode. - - The full path and name of the file to open. - The mode to open the file in. - A stream for reading and writing the file. - - - - Gets a value indicating whether the specified file exists. - - The path and name of the file to check. - True if the file exists. - - - - Creates a file with the specified name. - - The name of the file to create. - - - - A simple implementation of an IoC container. - - - - - The dictionary that stores the registered services. - - - - - Initializes a new instance of the class. - - - - - Resolves an instance of the specified component type. - - Type of the component. - An instance of the component type. - - - - Registers the specified resolver. - - The type of component to register. - The resolver. - - - - Registers the specified resolver as a singleton. - - The type of component to register. - The resolver. - - - - Provides properties and methods to specify repeat. - - - - - Specifies the number of times as repeat. - - The number of times expected. - A Repeated instance. - - - - Specifies once as the repeat. - - - - - Specifies twice as the repeat. - - - - - Lets you specify options for the next call to a fake object. - - - - - Specifies options for the next call to the specified fake object. The next call will - be recorded as a call configuration. - - The type of the faked object. - The faked object to configure. - A call configuration object. - - - - Provides functionality for making ordered assertions on fakes. - - - - - Creates a scope that changes the behavior on asserts so that all asserts within - the scope must be to calls in the specified collection of calls. Calls must have happened - in the order that the asserts are specified or the asserts will fail. - - The calls to assert among. - A disposable used to close the scope. - - - - Allows the developer to raise an event on a faked object. - - - - - Raises an event on a faked object by attaching the event handler produced by the method - to the event that is to be raised. - - The type of the event args. - The sender of the event. - The instance containing the event data. - A Raise(TEventArgs)-object that exposes the event handler to attach. - - - - Raises an event on a faked object by attaching the event handler produced by the method - to the event that is to be raised. - - The type of the event arguments. - The instance containing the event data. - - A Raise(TEventArgs)-object that exposes the event handler to attach. - - - - - Raises an event with empty event arguments on a faked object by attaching the event handler produced by the method - to the event that is to be raised. - - - A Raise(TEventArgs)-object that exposes the event handler to attach. - - - - - A class exposing an event handler to attach to an event of a faked object - in order to raise that event. - - The type of the event args. - - - - Converts a raiser into an - - The raiser to convert. - The new event handler - - - - Converts a raiser into an - - The raiser to convert. - The new event handler - - - - Register this event handler to an event on a faked object in order to raise that event. - - The sender of the event. - Event args for the event. - - - - Register this event handler to an event on a faked object in order to raise that event. - - The sender of the event. - Event args for the event. - - - - Gets a generic event handler to attach to the event to raise. - - - - - Provides methods for creating recorders for self initializing fakes. - - - - - Provides syntax for specifying the number of times a call must have been repeated when asserting on - fake object calls. - - A.CallTo(() => foo.Bar()).Assert(Happened.Once.Exactly); - - - - Specifies that a call must have been repeated a number of times - that is validated by the specified repeatValidation argument. - - A predicate that specifies the number of times - a call must have been made. - A Repeated-instance. - - - - When implemented gets a value indicating if the repeat is matched - by the Happened-instance. - - The repeat of a call. - True if the repeat is a match. - - - - Asserts that a call has not happened at all. - - - - - The call must have happened exactly the number of times that is specified in the next step. - - - - - The call must have happened any number of times greater than or equal to the number of times that is specified - in the next step. - - - - - The call must have happened any number of times less than or equal to the number of times that is specified - in the next step. - - - - - Handles the registration of root dependencies in an IoC-container. - - - - - Registers the dependencies. - - The container to register the dependencies in. - - - - DTO for recorded calls. - - - - - Initializes a new instance of the class. - - The method. - The output arguments. - The return value. - - - - Gets the method that was called. - - The method. - - - - Gets the output arguments of the call. - - The output arguments. - - - - Gets the return value of the call. - - The return value. - - - - Represents storage for recorded calls for self initializing - fakes. - - - - - Loads the recorded calls for the specified recording. - - The recorded calls for the recording with the specified id. - - - - Saves the specified calls as the recording with the specified id, - overwriting any previous recording. - - The calls to save. - - - - An interface for recorders that provides stored responses for self initializing fakes. - - - - - Applies the call if the call has been recorded. - - The call to apply to from recording. - - - - Records the specified call. - - The call to record. - - - - Gets a value indicating whether the recorder is currently recording. - - - - - An exception that can be thrown when recording for self initialized - fakes fails or when playback fails. - - - - - Initializes a new instance of the class. - - - - - Initializes a new instance of the class. - - The message. - - - - Initializes a new instance of the class. - - The message. - The inner exception. - - - - Manages the applying of recorded calls and recording of new calls when - using self initialized fakes. - - - - - Initializes a new instance of the class. - - The storage. - - - - Applies the call if the call has been recorded. - - The call to apply to from recording. - - - - Records the specified call. - - The call to record. - - - - Saves all recorded calls to the storage. - - - - - Gets a value indicating whether the recorder is currently recording. - - - - - - Represents a factory responsible for creating recording manager - instances. - - The storage the manager should use. - A RecordingManager instance. - - - - A call rule use for self initializing fakes, delegates call to - be applied by the recorder. - - - - - Initializes a new instance of the class. - - The wrapped rule. - The recorder. - - - - Gets whether this interceptor is applicable to the specified - call, if true is returned the Apply-method of the interceptor will - be called. - - The call to check for applicability. - True if the interceptor is applicable. - - - - Applies an action to the call, might set a return value or throw - an exception. - - The call to apply the interceptor to. - - - - Gets the number of times this call rule is valid, if it's set - to null its infinitely valid. - - - - - - An attribute that can be applied to code that should be fixed because there's a - code smell. - - - - - Gets or sets the description of the smell. - - - - - Used to tag fields and properties that will be initialized as a SUT through the Fake.Initialize-method. - - - - - Provides helper methods for checking the value producer signature against call signatures. - - - - - Fixes so that existing Serializable-attributes are omitted in the compilation - of the silverlight project. - - - - - Fixes so that existing NonSerialized-attributes are omitted in the compilation - of the silverlight project. - - - - diff --git a/packages/FluentAssertions.2.0.1/FluentAssertions.2.0.1.nupkg b/packages/FluentAssertions.2.0.1/FluentAssertions.2.0.1.nupkg deleted file mode 100644 index 4115ac26..00000000 Binary files a/packages/FluentAssertions.2.0.1/FluentAssertions.2.0.1.nupkg and /dev/null differ diff --git a/packages/FluentAssertions.2.0.1/FluentAssertions.2.0.1.nuspec b/packages/FluentAssertions.2.0.1/FluentAssertions.2.0.1.nuspec deleted file mode 100644 index 202175c3..00000000 --- a/packages/FluentAssertions.2.0.1/FluentAssertions.2.0.1.nuspec +++ /dev/null @@ -1,92 +0,0 @@ - - - - FluentAssertions - 2.0.1 - Fluent Assertions - Dennis Doomen, Martin Opdam - Dennis Doomen, Martin Opdam - http://fluentassertions.codeplex.com/license - http://fluentassertions.codeplex.com/ - false - A very extensive set of extension methods that allow you to more naturally specify the expected outcome of a TDD or - BDD-style unit test. Runs on .NET 3.5, 4.0 and 4.5 (Desktop and Windows Store), Silverlight 4 and 5 and Windows Phone 7.5. Supports the unit test frameworks NUnit, XUnit, MBUnit, Gallio and MSpec. - Fluent methods for asserting the result of TDD/BDD specs for .NET 3.5/4.0/4.5 (Desktop and Windows Store), SL 4/5, WP7 (Mango). Supports the unit test frameworks NUnit, XUnit, MBUnit, Gallio and MSpec. - What's new in 2.0.1 - * Small bug-fix to better intercept and/or prevent exceptions while scanning for methods annotated with [ValueFormatter] - - What are the major features - * Added support for .NET 4.5, Windows Phone 7.5 and .NET for Windows Store Apps - * Added support for MBUnit and the Gallio framework - * Added a completely new extensible API for comparing two objects graph for equivalence that will replace the object.ShouldHave() API in the future (issue 11841). - - What's new for collections - * Added (Not)BeInAscendingOrder() and (Not)BeInDescendingOrder() (issue 12103) - * Added IntersectWith(otherCollection) and NotIntersectWith(otherCollection) (issue 12248) - * ContainInOrder() now has an overload that only takes a params object[] argument to support a more fluent syntax in case you don't specify the reason (issue 12313). - * Added ContainSingle(Expression<Func<T, bool=""> predicate>) that asserts there is only a single element in the collection that matches the specified predicate (issue 12313). - * Added support for a lambda that is used for checking the equality of two collections (issue 11925). - * Fixed a bug that occurs when two collections are compared for equality but the collection contains null (issue 12296) - - What's new for strings - * When strings differ in length, it will report the expected and actual lengths as part of the failure messages (issue 12422) - * An ArgumentOutOfRangeException was thrown when asserting a string started with a specific string, but the first string was shorter than the expected string (issue 12293) - - What's new for numbers - * Added support for using Should().Be() on nullable numeric types (issue 11837) - * Added BeOneOf() to verify that the value matching one of the provided values (issue 12016). - * Added support for (nullable) decimals - * BePositive() and BeNegative() now also work for floats and doubles (issue 11946) - - What's new for dates and times - * Added NotBe() - * Added BeOneOf() to verify that the value matching one of the provided values (issue 12016). - * Added BeCloseTo() to assert that a datetime is within a specified number of milliseconds from another datetime value. Usefull for example when your database truncates datetime values (issue 12070). - * If a DateTime value has milliseconds then they will be displayed in an assertion failure message (issue 12072). - - What's new for comparing object graphs - * You can now apply the property equality comparisons to entire collections of objects. It doesn't matter what kind of collections types you use, as long as they contain the same number of objects which properties are the same (issue 11743). - * Included the index of the mismatching object when comparing a collection for structural equality - * An exception was thrown when comparing the properties of an object, and there were cyclic references. You can now configure if you want this to be ignored. - * Added support for comparing references to an interface rather than concrete types (issue 11840). - * Write-only properties are ignored (issue 11808) - * Fixed a stack overflow exception when formatting an object graph containing static cyclic references. - * Fixed an exception that was thrown when formatting an object graph where one of the properties threw an exception. - * Added support for comparing two anonymous types using SharedProperties() (issue 11886). - * The name of a DateTime property was not included in the error message when AllProperties() failed on that property - - What's new for types - * Added the AllTypes class with a static method From(Assembly assembly) as a wrapper around the Types extension method on Assembly (issue 12186). This allows for a more fluent syntax like AllTypes.From(assembly).ThatImplement<SomeInterface>().Should().BeDecoratedWith<SomeAttribute>(); - * Added support for asserting the properties of an attribute have a specific value (issue 12186). - - What other improvements are new - * Fixed an exception when asserting equality of dictionaries that contain nulls (issue 12004). - * The NuGet package will automatically add references to System.Xml and System.Xml.Linq - * Implemented ShouldThrow<TException>() for Func<Task>, to support working with async methods (issue 12148) - * Improved several error messages in XDocument- and XElementAssertions - * All overloads that take a reason have been removed and replaced with optional parameter - * Allowed ShouldRaisePropertyChangeFor(null) to verify that the INotifyPropertyChanged was raised for all properties. - * The list of ValueFormatters on the Verification class can be changed to insert a custom formatter. - * Introduced a mechanism to override the way FA formats objects in failure message by annotating a static method with the [ValueFormatter] attribute (issue 12364). - * Introduced a mechanism so that the failure message of custom extensions can specify the {context} tag. - * NuGet package is now based on NuGet 2.0. - - Breaking changes - * The FluentAssertions.Assertions namespace no longer exists so that all extension methods are always available through the FluentAssertions namespace. Just use a global search-replace to remove all those usage statements. - * Many of the assertion classes have moved into dedicated namespaces. You might have to fix any code that inherits from those classes. - * Remove the obsolete Verify() methods from the Verification class - Copyright Dennis Doomen 2010-2012 - en-US - MSTest xUnit NUnit MSpec Gallio MbUnit TDD BDD Fluent Silverlight - - - - - - - - - - - - \ No newline at end of file diff --git a/packages/FluentAssertions.2.0.1/lib/net35/FluentAssertions.dll b/packages/FluentAssertions.2.0.1/lib/net35/FluentAssertions.dll deleted file mode 100644 index 13463009..00000000 Binary files a/packages/FluentAssertions.2.0.1/lib/net35/FluentAssertions.dll and /dev/null differ diff --git a/packages/FluentAssertions.2.0.1/lib/net35/FluentAssertions.pdb b/packages/FluentAssertions.2.0.1/lib/net35/FluentAssertions.pdb deleted file mode 100644 index 5e6b2ba3..00000000 Binary files a/packages/FluentAssertions.2.0.1/lib/net35/FluentAssertions.pdb and /dev/null differ diff --git a/packages/FluentAssertions.2.0.1/lib/net35/FluentAssertions.xml b/packages/FluentAssertions.2.0.1/lib/net35/FluentAssertions.xml deleted file mode 100644 index 1e6978bb..00000000 --- a/packages/FluentAssertions.2.0.1/lib/net35/FluentAssertions.xml +++ /dev/null @@ -1,5761 +0,0 @@ - - - - FluentAssertions - - - - - Finds the first index at which the does not match the - string anymore, including the exact casing. - - - - - Finds the first index at which the does not match the - string anymore, accounting for the specified . - - - - - Gets the quoted three characters at the specified index of a string, including the index itself. - - - - - Replaces all characters that might conflict with formatting placeholders and newlines with their escaped counterparts. - - - - - Joins a string with one or more other strings using a specified separator. - - - Any string that is empty (including the original string) is ignored. - - - - - Determines whether two objects refer to the same property. - - - - - Finds the property by a case-sensitive name. - - - Returns null if no such property exists. - - - - - Determines whether the specified method has been annotated with a specific attribute. - - - true if the specified method has attribute; otherwise, false. - - - - - Specialized value formatter that looks for static methods in the caller's assembly marked with the - . - - - - - Indicates whether the current can handle the specified . - - The value for which to create a . - - true if the current can handle the specified value; otherwise, false. - - - - - Returns a that represents this instance. - - The value for which to create a . - - - A collection of objects that - - - The level of nesting for the supplied value. This is used for indenting the format string for objects that have - no override. - - - A that represents this instance. - - - - - Indicates whether the current can handle the specified . - - The value for which to create a . - - true if the current can handle the specified value; otherwise, false. - - - - - Returns a that represents this instance. - - The value for which to create a . - - - A collection of objects that - - - The level of nesting for the supplied value. This is used for indenting the format string for objects that have - no override. - - - A that represents this instance. - - - - - Indicates whether the current can handle the specified . - - The value for which to create a . - - true if the current can handle the specified value; otherwise, false. - - - - - Returns a that represents this instance. - - The value for which to create a . - - - A collection of objects that - - - The level of nesting for the supplied value. This is used for indenting the format string for objects that have - no override. - - - A that represents this instance. - - - - - Marks a static method as a kind of for a particular type. - - - - - Contains a number of methods to assert that an yields the expected result. - - - - - Asserts that the current throws an exception of type . - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current does not throw an exception of type . - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current does not throw any exception. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Gets the that is being asserted. - - - - - Initializes a new instance of the class. - - - - - Selection rule that adds all public properties of the subject as far as they are defined on the declared - type. - - - - - Represents a rule that defines which properties of the subject-under-test to include while comparing - two objects for structural equality. - - - - - Adds or removes properties to/from the collection of subject properties that must be included while - comparing two objects for structural equality. - - - A collection of properties that was prepopulated by other selection rules. Can be empty. - - Type info about the subject. - - - The collection of properties after applying this rule. Can contain less or more than was passed in. - - - - - Adds or removes properties to/from the collection of subject properties that must be included while - comparing two objects for structural equality. - - - A collection of properties that was prepopulated by other selection rules. Can be empty. - - The collection of properties after applying this rule. Can contain less or more than was passed in. - - - - - Returns a string that represents the current object. - - - A string that represents the current object. - - 2 - - - - Selection rule that adds all public properties of the subject based on its run-time type rather than its - declared type. - - - - - Adds or removes properties to/from the collection of subject properties that must be included while - comparing two objects for structural equality. - - - A collection of properties that was prepopulated by other selection rules. Can be empty. - - The collection of properties after applying this rule. Can contain less or more than was passed in. - - - - - Returns a string that represents the current object. - - - A string that represents the current object. - - 2 - - - - Gets a value indicating whether this step can handle the current subject and/or expectation. - - - - - Applies a step as part of the task to compare two objects for structural equality. - - - Should return true if the subject matches the expectation or if no additional assertions - have to be executed. Should return false otherwise. - - - May throw when preconditions are not met or if it detects mismatching data. - - - - - Gets a value indicating whether this step can handle the current subject and/or expectation. - - - - - Applies a step as part of the task to compare two objects for structural equality. - - - Should return true if the subject matches the expectation or if no additional assertions - have to be executed. Should return false otherwise. - - - May throw when preconditions are not met or if it detects mismatching data. - - - - - General purpose implementation of that uses a predicate to determine whether - this rule applies to a particular property and executes an action to assert equality. - - The type of the subject. - - - - Defines how a subject's property is compared for equality with the same property of the expectation. - - - Provides details about the subject's property. - - - The value of the subject's property. - - - The value of a property on expectation object that was identified - - - Returns true if the rule was applied correctly and the assertion didn't cause any exceptions. - Returns false if this rule doesn't support the subject's type. - Throws if the rule did support the data type but assertion fails. - - - - - Defines how a subject's property is compared for equality with the same property of the expectation. - - - Provides details about the subject's property. - - - The value of the subject's property. - - - The value of a property on expectation object that was identified - - - Returns true if the rule was applied correctly and the assertion didn't cause any exceptions. - Returns false if this rule doesn't support the subject's type. - Throws if the rule did support the data type but assertion fails. - - - - - Provides the required information for executing an equality assertion between a subject and an expectation. - - The type of the subject. - - - - Gets the of the property that returned the current object, or null if the current - object represents the root object. - - - - - Gets the value of the - - - - - Gets the value of the expectation object that was matched with the subject using a . - - - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - - - Zero or more objects to format using the placeholders in . - - - - - Selection rule that removes a particular property from the structural comparison based on a predicate. - - - - - Adds or removes properties to/from the collection of subject properties that must be included while - comparing two objects for structural equality. - - - A collection of properties that was prepopulated by other selection rules. Can be empty. - - The collection of properties after applying this rule. Can contain less or more than was passed in. - - - - - Returns a string that represents the current object. - - - A string that represents the current object. - - 2 - - - - Provides details about the subject's root or nested property. - - - - - Gets the of the property that returned the current object, or null if the current - object represents the root object. - - - - - Gets the full path from the root object until the current object separated by dots. - - - - - Gets a display-friendly representation of the . - - - - - Gets the compile-time type of the current object. If the current object is not the root object, then it returns the - same as the property does. - - - - - Gets the run-time type of the current object. - - - - - Provides the run-time details of the class. - - - - - Gets an ordered collection of selection rules that define what properties are included. - - - - - Gets an ordered collection of matching rules that determine which subject properties are matched with which - expectation properties. - - - - - Gets an ordered collection of assertion rules that determine how subject properties are compared for equality with - expectation properties. - - - - - Gets or sets a value indicating whether or not the assertion must perform a deep comparison. - - - - - Represents a selection context of a nested property - - - - - Gets the of the property that returned the current object, or - null if the current object represents the root object. - - - - - Gets the full path from the root object until the current property, separated by dots. - - - - - Gets a textual description of the current property based on the . - - - - - Gets the compile-time type of the current object. If the current object is not the root object, then it returns the - same as the property does. - - - - - Gets the run-time type of the current object. - - - - - Is responsible for the exact run-time behavior of a structural equality comparison. - - The type of the subject. - - - - Gets a configuration that compares all declared properties of the subject with equally named properties of the expectation, - and includes the entire object graph. The names of the properties between the subject and expectation must match. - - - - - Gets a configuration that by default doesn't include any of the subject's properties and doesn't consider any nested objects - or collections. - - - - - Adds all public properties of the subject as far as they are defined on the declared type. - - - - - Adds all public properties of the subject based on its run-time type rather than its declared type. - - - - - Tries to match the properties of the subject with equally named properties on the expectation. Ignores those - properties that don't exist on the expectation. - - - - - Requires the expectation to have properties which are equally named to properties on the subject. - - - - - - Excludes the specified (nested) property from the structural equality check. - - - - - Excludes a (nested) property based on a predicate from the structural equality check. - - - - - Includes the specified property in the equality check. - - - This overrides the default behavior of including all declared properties. - - - - - The assertion to execute when the predicate is met. - - - - - Causes the structural equality check to include nested collections and complex types. - - - - - Causes the structural equality check to ignore any cyclic references. - - - By default, cyclic references within the object graph will cause an exception to be thrown. - - - - - Clears all selection rules, including those that were added by default. - - - - - Clears all matching rules, including those that were added by default. - - - - - Adds a selection rule to the ones allready added by default and which is evaluated after all existing rules. - - - - - Adds a matching rule to the ones allready added by default and which is evaluated before all existing rules. - - - - - Adds a matching rule to the ones allready added by default and which is evaluated before all existing rules - - - - - Returns a string that represents the current object. - - - A string that represents the current object. - - 2 - - - - Gets an ordered collection of selection rules that define what properties are included. - - - - - Gets an ordered collection of matching rules that determine which subject properties are matched with which - expectation properties. - - - - - Gets an ordered collection of assertion rules that determine how subject properties are compared for equality with - expectation properties. - - - - - Gets value indicating whether the equality check will include nested collections and complex types. - - - - - Gets value indicating how cyclic references should be handled. By default, it will throw an exception. - - - - - Defines additional overrides when used with - - - - - Allows overriding the way structural equality is applied to (nested) objects of tyoe - - - - - Allows overriding the way structural equality is applied to particular properties. - - - A predicate based on the of the subject that is used to identify the property for which the - override applies. - - - - - Gets a value indicating whether this step can handle the current subject and/or expectation. - - - - - Applies a step as part of the task to compare two objects for structural equality. - - - Should return true if the subject matches the expectation or if no additional assertions - have to be executed. Should return false otherwise. - - - May throw when preconditions are not met or if it detects mismatching data. - - - - - Gets a value indicating whether this step can handle the current subject and/or expectation. - - - - - Applies a step as part of the task to compare two objects for structural equality. - - - Should return true if the subject matches the expectation or if no additional assertions - have to be executed. Should return false otherwise. - - - May throw when preconditions are not met or if it detects mismatching data. - - - - - Contains a number of methods to assert that an is in the expected state. - - - - - Asserts that the subject is considered equal to another object according to the implementation of . - - - The object to pass to the subject's method. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the subject is not equal to another object according to its implementation of . - - - The object to pass to the subject's method. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the subject is less than another object according to its implementation of . - - - The object to pass to the subject's method. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the subject is less than or equal to another object according to its implementation of . - - - The object to pass to the subject's method. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the subject is greater than another object according to its implementation of . - - - The object to pass to the subject's method. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the subject is greater than or equal to another object according to its implementation of . - - - The object to pass to the subject's method. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a value is within a range. - - - Where the range is continuous or incremental depends on the actual type of the value. - - - The minimum valid value of the range. - - - The maximum valid value of the range. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a nullable numeric value is not null. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a nullable numeric value is null. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Gets the object which value is being asserted. - - - - - Defines the way compares the expected exception - message with the actual one. - - - - - The message must match exactly, including the casing of the characters. - - - - - The message must match except for the casing of the characters. - - - - - The message must start with the exact text, including the casing of the characters.. - - - - - The message must start with the text except for the casing of the characters. - - - - - The message must contain the exact text. - - - - - The message must contain the text except for the casing of the characters. - - - - - The message must match a wildcard pattern consisting of ordinary characters as well as * and ?. - - - - - Indication of how cyclic references should be handled when validating equality of nested properties. - - - - - Cyclic references will be ignored. - - - - - Cyclic references will result in an exception. - - - - - Contains a number of methods to assert that an is in the expected state. - - - - - Asserts that the current dictionary has not been initialized yet with an actual dictionary. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current dictionary has been initialized with an actual dictionary. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the number of items in the dictionary matches the supplied amount. - - The expected number of items. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the number of items in the dictionary matches a condition stated by a predicate. - - The predicate which must be statisfied by the amount of items. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the dictionary does not contain any items. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the dictionary contains at least 1 item. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current dictionary contains all the same key-value pairs as the - specified dictionary. Keys and values are compared using - their implementation. - - The expected dictionary - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts the current dictionary not to contain all the same key-value pairs as the - specified dictionary. Keys and values are compared using - their implementation. - - The unexpected dictionary - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the dictionary contains the specified key. Keys are compared using - their implementation. - - The expected key - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the dictionary contains all of the specified keys. Keys are compared using - their implementation. - - The expected keys - - - - Asserts that the dictionary contains all of the specified keys. Keys are compared using - their implementation. - - The expected keys - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current dictionary does not contain the specified key. - Keys are compared using their implementation. - - The unexpected key - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the dictionary contains the specified value. Values are compared using - their implementation. - - The expected value - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the dictionary contains all of the specified values. Values are compared using - their implementation. - - The expected values - - - - Asserts that the dictionary contains all of the specified values. Values are compared using - their implementation. - - The expected values - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current dictionary does not contain the specified value. - Values are compared using their implementation. - - The unexpected value - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current dictionary contains the specified . - Keys and values are compared using their implementation. - - The expected - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current dictionary contains the specified for the supplied . Values are compared using their implementation. - - The key for which to validate the value - The value to validate - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current dictionary does not contain the specified . - Keys and values are compared using their implementation. - - The unexpected - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current dictionary does not contain the specified for the - supplied . Values are compared using their implementation. - - The key for which to validate the value - The value to validate - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Gets the object which value is being asserted. - - - - - Contains a number of methods to assert that a is in the correct state. - - - - - Asserts that the is . - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the is not . - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the is equal to the GUID. - - The expected value to compare the actual value with. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the is equal to the GUID. - - The expected value to compare the actual value with. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the is not equal to the GUID. - - The unexpected value to compare the actual value with. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Gets the object which value is being asserted. - - - - - Gets a value indicating whether this step can handle the current subject and/or expectation. - - - - - Applies a step as part of the task to compare two objects for structural equality. - - - Should return true if the subject matches the expectation or if no additional assertions - have to be executed. Should return false otherwise. - - - May throw when preconditions are not met or if it detects mismatching data. - - - - - Selection rule that removes a particular property from the structural comparison. - - - - - Adds or removes properties to/from the collection of subject properties that must be included while - comparing two objects for structural equality. - - - A collection of properties that was prepopulated by other selection rules. Can be empty. - - - The collection of properties after applying this rule. Can contain less or more than was passed in. - - - - - Returns a that represents this instance. - - - A that represents this instance. - - - - - Represents a rule that defines how to map the properties from the subject-under-test with the properties - on the expectation object. - - - - - Attempts to find a property on the expectation that should be compared with the - during a structural equality. - - - Whether or not a match is required or optional is up to the specific rule. If no match is found and this is not an issue, - simply return null. - - - The of the subject's property for which a match must be found. Can never - be null. - - - The expectation object for which a matching property must be returned. Can never be null. - - - The dotted path from the root object to the current property. Will never be null. - - - Returns the of the property with which to compare the subject with, or null - if no match was found. - - - - - Selection rule that includes a particular property in the structural comparison. - - - - - Adds or removes properties to/from the collection of subject properties that must be included while - comparing two objects for structural equality. - - - A collection of properties that was prepopulated by other selection rules. Can be empty. - - The collection of properties after applying this rule. Can contain less or more than was passed in. - - - - - Returns a that represents this instance. - - - A that represents this instance. - - - - - Provides information on a particular property during an assertion for structural equality of two object graphs. - - - - - Gets the property of the that was matched against the , - or null if is true. - - - - - Gets the value of the . - - - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - - - Zero or more objects to format using the placeholders in . - - - - - Gets a verification object associated with the current and . - - - - - Gets a value indicating whether the current context represents the root of the object graph. - - - - - Gets the value of the - - - - - Requires the expectation object to have a property with the exact same name. - - - - - Attempts to find a property on the expectation that should be compared with the - during a structural equality. - - - Whether or not a match is required or optional is up to the specific rule. If no match is found and this is not an issue, - simply return null. - - - The of the subject's property for which a match must be found. Can never - be null. - - - The expectation object for which a matching property must be returned. Can never be null. - - - The dotted path from the root object to the current property. Will never be null. - - - Returns the of the property with which to compare the subject with, or null - if no match was found. - - - - - Returns a string that represents the current object. - - - A string that represents the current object. - - 2 - - - - Finds a property of the expectation with the exact same name, but doesn't require it. - - - - - Attempts to find a property on the expectation that should be compared with the - during a structural equality. - - - Whether or not a match is required or optional is up to the specific rule. If no match is found and this is not an issue, - simply return null. - - - The of the subject's property for which a match must be found. Can never - be null. - - - The expectation object for which a matching property must be returned. Can never be null. - - - The dotted path from the root object to the current property. Will never be null. - - - Returns the of the property with which to compare the subject with, or null - if no match was found. - - - - - Returns a string that represents the current object. - - - A string that represents the current object. - - 2 - - - - Static class that allows for a 'fluent' selection of the types from an . - - - AllTypes.From(myAssembly)
- .ThatImplement<ISomeInterface>
- .Should()
- .BeDecoratedWith<SomeAttribute>() -
-
- - - Returns a for selecting the types that are visible outside the - specified . - - The assembly from which to select the types. - - - - Contains assertions for the objects returned by the parent . - - - - - Initializes a new instance of the class. - - The method to assert. - - - - Initializes a new instance of the class. - - The methods to assert. - - - - Asserts that the selected methods are virtual. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the selected methods are decorated with the specified . - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Gets the object which value is being asserted. - - - - - Allows for fluent selection of methods of a type through reflection. - - - - - Initializes a new instance of the class. - - The type from which to select methods. - - - - Initializes a new instance of the class. - - The types from which to select methods. - - - - Only select the methods that return the specified type - - - - - Only select the methods that are decorated with an attribute of the specified type. - - - - - The resulting objects. - - - - - Determines whether the specified method has a special name (like properties and events). - - - - - Returns an enumerator that iterates through the collection. - - - A that can be used to iterate through the collection. - - 1 - - - - Returns an enumerator that iterates through a collection. - - - An object that can be used to iterate through the collection. - - 2 - - - - Only select the methods that are public or internal. - - - - - Only select the methods without a return value - - - - - Contains a number of methods to assert that a nullable is in the expected state. - - - - - Asserts that a nullable value is not null. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a nullable value is null. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the value is equal to the specified value. - - The expected value - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Contains a number of methods to assert that an is in the expected state. - - - - - Asserts that the integral number value is exactly the same as the value. - - The expected value. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the integral number value is exactly the same as the value. - - The expected value. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the integral number value is not the same as the value. - - The unexpected value. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the integral number value is not the same as the value. - - The unexpected value. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the numeric value is greater than or equal to zero. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the numeric value is less than zero. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the numeric value is less than the specified value. - - The value to compare the current numeric value with. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the numeric value is less than or equal to the specified value. - - The value to compare the current numeric value with. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the numeric value is greater than the specified value. - - The value to compare the current numeric value with. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the numeric value is greater than or equal to the specified value. - - The value to compare the current numeric value with. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a value is within a range. - - - Where the range is continuous or incremental depends on the actual type of the value. - - - The minimum valid value of the range. - - - The maximum valid value of the range. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a value is one of the specified . - - - The values that are valid. - - - - - Asserts that a value is one of the specified . - - - The values that are valid. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a nullable numeric value is not null. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a nullable numeric value is null. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Is responsible for validating the equality of one or more properties of a subject with another object. - - - - - Provides methods for asserting that the execution time of an satifies certain conditions. - - - - - Initializes a new instance of the class. - - The action of which the execution time must be asserted. - - - - Asserts that the execution time of the operation does not exceed a specified amount of time. - - - The maximum allowed duration. - - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Provides methods for asserting that the execution time of an object member satifies certain conditions. - - - - - - Initializes a new instance of the class. - - The object that exposes the method or property. - A reference to the method or property to measure the execution time of. - - - - Gets the of the property that returned the current object, or - null if the current object represents the root object. - - - - - Gets the full path from the root object until the current property, separated by dots. - - - - - Gets a textual description of the current property based on the . - - - - - Gets the value of the - - - - - Gets the property of the that was matched against the , - or null if is true. - - - - - Gets the value of the . - - - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - - - Zero or more objects to format using the placeholders in . - - - - - Gets a value indicating whether the current context represents the root of the object graph. - - - - - Gets the compile-time type of the current object. If the current object is not the root object, then it returns the - same as the property does. - - - - - Gets the run-time type of the current object. - - - - - Gets a verification object associated with the current and . - - - - - Gets a value indicating whether this step can handle the current subject and/or expectation. - - - - - Applies a step as part of the task to compare two objects for structural equality. - - - Should return true if the subject matches the expectation or if no additional assertions - have to be executed. Should return false otherwise. - - - May throw when preconditions are not met or if it detects mismatching data. - - - - - Gets a value indicating whether this step can handle the current subject and/or expectation. - - - - - Applies a step as part of the task to compare two objects for structural equality. - - - Should return true if the subject matches the expectation or if no additional assertions - have to be executed. Should return false otherwise. - - - May throw when preconditions are not met or if it detects mismatching data. - - - - - Contains a number of extension methods for floating point . - - - - - Asserts a floating point value approximates another value as close as possible. - - The object that is being extended. - - The expected value to compare the actual value with. - - - The maximum amount of which the two values may differ. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts a floating point value approximates another value as close as possible. - - The object that is being extended. - - The expected value to compare the actual value with. - - - The maximum amount of which the two values may differ. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts a floating point value approximates another value as close as possible. - - The object that is being extended. - - The expected value to compare the actual value with. - - - The maximum amount of which the two values may differ. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts a floating point value approximates another value as close as possible. - - The object that is being extended. - - The expected value to compare the actual value with. - - - The maximum amount of which the two values may differ. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Contains assertions for the objects returned by the parent . - - - - - Initializes a new instance of the class, for a single . - - The property to assert. - - - - Initializes a new instance of the class, for a number of objects. - - The properties to assert. - - - - Asserts that the selected properties are virtual. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the selected methods are decorated with the specified . - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Gets the object which value is being asserted. - - - - - Allows for fluent selection of properties of a type through reflection. - - - - - Initializes a new instance of the class. - - The type from which to select properties. - - - - Initializes a new instance of the class. - - The types from which to select properties. - - - - Only select the properties that are decorated with an attribute of the specified type. - - - - - Only select the properties that return the specified type - - - - - The resulting objects. - - - - - Returns an enumerator that iterates through the collection. - - - A that can be used to iterate through the collection. - - 1 - - - - Returns an enumerator that iterates through a collection. - - - An object that can be used to iterate through the collection. - - 2 - - - - Only select the properties that have a public or internal getter. - - - - - Dedicated class for comparing two strings and generating consistent error messages. - - - - - Gets or sets a value indicating whether the subject should not match the pattern. - - - - - Gets or sets a value indicating whether the matching process should ignore any casing difference. - - - - - Extension methods for getting method and property selectors for a type. - - - - - Returns the types that are visible outside the specified . - - - - - Returns a method selector for the current . - - - - - Returns a method selector for the current . - - - - - Returns a property selector for the current . - - - - - Returns a property selector for the current . - - - - - Allows for fluent filtering a list of types. - - - - - The resulting objects. - - - - - Determines whether a type is a subclass of another type, but NOT the same type. - - - - - Determines whether a type implements an interface (but is not the interface itself). - - - - - Determines whether a type is decorated with a particular attribute. - - - - - Determines whether the namespace of type is exactly . - - - - - Determines whether the namespace of type is starts with . - - - - - Returns an enumerator that iterates through the collection. - - - A that can be used to iterate through the collection. - - 1 - - - - Returns an enumerator that iterates through a collection. - - - An object that can be used to iterate through the collection. - - 2 - - - - Contains a number of methods to assert that all s in a - meet certain expectations. - - - - - Initializes a new instance of the class. - - - - - Asserts that the current is decorated with the specified . - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current is decorated with an attribute of type - that matches the specified . - - - The predicate that the attribute must match. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Gets the object which value is being asserted. - - - - - Contains a number of methods to assert that an is in the expected state. - - - - - Initializes a new instance of the class. - - - - - Asserts that the current equals the attribute. - - The expected attribute - - - - Asserts that the current equals the attribute. - - The expected attribute - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current does not equal the attribute, - using its implementation. - - The unexpected attribute - - - - Asserts that the current does not equal the attribute, - using its implementation. - - The unexpected attribute - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the is null. - - - - - Asserts that the is null. - - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Asserts that the is not null. - - - - - Asserts that the is not null. - - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Asserts that the current has the specified value. - - The expected value - - - - Asserts that the current has the specified value. - - The expected value - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Gets the object which value is being asserted. - - - - - Contains a number of methods to assert that an is in the expected state. - - - - - Initializes a new instance of the class. - - - - - Asserts that the current equals the document, - using its implementation. - - The expected document - - - - Asserts that the current equals the document, - using its implementation. - - The expected document - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current does not equal the document, - using its implementation. - - The unexpected document - - - - Asserts that the current does not equal the document, - using its implementation. - - The unexpected document - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the is null. - - - - - Asserts that the is null. - - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Asserts that the is not null. - - - - - Asserts that the is not null. - - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Asserts that the current has a root element with the specified - name. - - The name of the expected root element of the current document. - - - - Asserts that the current has a root element with the specified - name. - - The name of the expected root element of the current document. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the element of the current has a direct - child element with the specified name. - - - The name of the expected child element of the current document's Root element. - - - - - Asserts that the element of the current has a direct - child element with the specified name. - - - The name of the expected child element of the current document's Root element. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Gets the object which value is being asserted. - - - - - Contains a number of methods to assert that an is in the expected state. - - - - - Initializes a new instance of the class. - - - - - Asserts that the current equals the element. - - The expected element - - - - Asserts that the current equals the element. - - The expected element - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current does not equal the element, - using its implementation. - - The unexpected element - - - - Asserts that the current does not equal the element, - using its implementation. - - The unexpected element - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the is null. - - - - - Asserts that the is null. - - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Asserts that the is not null. - - - - - Asserts that the is not null. - - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Asserts that the current has an attribute with the specified - and . - - The name of the expected attribute - The value of the expected attribute - - - - Asserts that the current has an attribute with the specified - and . - - The name of the expected attribute - The value of the expected attribute - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current has a direct child element with the specified - name. - - The name of the expected child element - - - - Asserts that the current has a direct child element with the specified - name. - - The name of the expected child element - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Gets the object which value is being asserted. - - - - - Extension methods on to allow for a more fluent way of specifying a . - - - Instead of
-
- new DateTime(2011, 3, 10)
-
- you can write 3.March(2011)
-
- Or even
-
- 3.March(2011).At(09, 30) -
- -
- - - Returns a new value for the specified and - in the month January. - - - - - Returns a new value for the specified and - in the month February. - - - - - Returns a new value for the specified and - in the month March. - - - - - Returns a new value for the specified and - in the month April. - - - - - Returns a new value for the specified and - in the month May. - - - - - Returns a new value for the specified and - in the month June. - - - - - Returns a new value for the specified and - in the month July. - - - - - Returns a new value for the specified and - in the month August. - - - - - Returns a new value for the specified and - in the month September. - - - - - Returns a new value for the specified and - in the month October. - - - - - Returns a new value for the specified and - in the month November. - - - - - Returns a new value for the specified and - in the month December. - - - - - Returns a new value for the specified and . - - - - - Returns a new value for the specified and time with the specified - , and optionally . - - - - - Returns a new value that is the current before the - specified . - - - - - Returns a new value that is the current after the - specified . - - - - - Contains a number of methods to assert that a nullable is in the expected state. - - - You can use the for a more fluent way of specifying a . - - - - - Contains a number of methods to assert that a nullable is in the expected state. - - - - - Asserts that the time difference of the current is greater than zero. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the time difference of the current is less than zero. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the time difference of the current is equal to the - specified time. - - The expected time difference - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the time difference of the current is not equal to the - specified time. - - The unexpected time difference - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the time difference of the current is less than the - specified time. - - The time difference to which the current value will be compared - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the time difference of the current is less than or equal to the - specified time. - - The time difference to which the current value will be compared - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the time difference of the current is greater than the - specified time. - - The time difference to which the current value will be compared - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the time difference of the current is greater than or equal to the - specified time. - - The time difference to which the current value will be compared - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Gets the object which value is being asserted. - - - - - Asserts that a nullable value is not null. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a nullable value is null. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Extension methods on to allow for a more fluent way of specifying a . - - - Instead of
-
- TimeSpan.FromHours(12)
-
- you can write
-
- 12.Hours()
-
- Or even
-
- 12.Hours().And(30.Minutes()). -
- -
- - - Returns a based on a number of milliseconds. - - - - - Returns a based on a number of seconds. - - - - - Returns a based on a number of seconds, and add the specified - . - - - - - Returns a based on a number of minutes. - - - - - Returns a based on a number of minutes, and add the specified - . - - - - - Returns a based on a number of hours. - - - - - Returns a based on a number of hours, and add the specified - . - - - - - Returns a based on a number of days. - - - - - Returns a based on a number of days, and add the specified - . - - - - - Convenience method for chaining multiple calls to the methods provided by this class. - - - 23.Hours().And(59.Minutes()) - - - - - Contains a number of methods to assert that a reference type object is in the expected state. - - - - - Asserts that the object is of the specified type . - - The expected type of the object. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the object is assignable to a variable of type . - - The type to which the object should be assignable. - The reason why the object should be assignable to the type. - The parameters used when formatting the . - An which can be used to chain assertions. - - - - Asserts that the is satisfied. - - The predicate which must be statisfied by the . - The reason why the predicate should be satisfied. - The parameters used when formatting the . - An which can be used to chain assertions. - - - - Asserts that the is satisfied. - - The predicate which must be statisfied by the . - The reason why the predicate should be satisfied. - The parameters used when formatting the . - An which can be used to chain assertions. - - - - Gets the object which value is being asserted. - - - - - Contains a number of methods to assert that a is in the expected state. - - - - - Asserts that the value is false. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the value is true. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the value is equal to the specified value. - - The expected value - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Gets the object which value is being asserted. - - - - - Contains a number of methods to assert that an is in the expected state. - - - - - Asserts that the number of items in the collection matches the supplied amount. - - The expected number of items in the collection. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the number of items in the collection matches a condition stated by the . - - A predicate that yields the number of items that is expected to be in the collection. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the collection does not contain any items. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the collection contains at least 1 item. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the collection does not contain any duplicate items. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the collection does not contain any null items. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Expects the current collection to contain all the same elements in the same order as the collection identified by - . Elements are compared using their . - - A params array with the expected elements. - - - - Expects the current collection to contain all the same elements in the same order as the collection identified by - . Elements are compared using their . - - An with the expected elements. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Expects the current collection not to contain all the same elements in the same order as the collection identified by - . Elements are compared using their . - - An with the elements that are not expected. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Expects the current collection to contain all elements of the collection identified by , - regardless of the order. Elements are compared using their . - - A params array with the expected elements. - - - - Expects the current collection to contain all elements of the collection identified by , - regardless of the order. Elements are compared using their . - - An with the expected elements. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Expects the current collection not to contain all elements of the collection identified by , - regardless of the order. Elements are compared using their . - - An with the unexpected elements. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current collection only contains items that are assignable to the type . - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Expects the current collection to contain the specified elements in any order. Elements are compared - using their implementation. - - An with the expected elements. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Expects the current collection to contain the specified elements in the exact same order. Elements are compared - using their implementation. - - An with the expected elements. - - - - Expects the current collection to contain the specified elements in the exact same order. Elements are compared - using their implementation. - - An with the expected elements. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Expects the current collection to have all elements in ascending order. Elements are compared - using their implementation. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Expects the current collection to have all elements in descending order. Elements are compared - using their implementation. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Expects the current collection to have all elements in the specified . - Elements are compared using their implementation. - - - - - Asserts the current collection does not have all elements in ascending order. Elements are compared - using their implementation. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts the current collection does not have all elements in descending order. Elements are compared - using their implementation. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts the current collection does not have all elements in ascending order. Elements are compared - using their implementation. - - - - - Asserts that the collection is a subset of the . - - An with the expected superset. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the collection is not a subset of the . - - An with the unexpected superset. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Assert that the current collection has the same number of elements as . - - The other collection with the same expected number of elements - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current collection has not been initialized yet with an actual collection. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current collection has been initialized with an actual collection. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current collection has the supplied at the - supplied . - - The index where the element is expected - The expected element - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current collection does not contain the supplied item. - - The element that is not expected to be in the collection - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the collection shares one or more items with the specified . - - The with the expected shared items. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the collection does not share any items with the specified . - - The to compare to. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Gets a dotted path of property names representing the property expression. E.g. Parent.Child.Sibling.Name. - - - - - Provides extension methods for monitoring and querying events. - - - - - Starts monitoring an object for its events. - - Thrown if eventSource is Null. - - - - Asserts that an object has raised a particular event at least once. - - The object exposing the event. - The name of the event that should have been raised. - - - You must call on the same object prior to this call so that Fluent Assertions can - subscribe for the events of the object. - - - - - Asserts that an object has raised a particular event at least once. - - The object exposing the event. - - The name of the event that should have been raised. - - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - You must call on the same object prior to this call so that Fluent Assertions can - subscribe for the events of the object. - - - - - Asserts that an object has not raised a particular event. - - The object exposing the event. - - The name of the event that should not be raised. - - - You must call on the same object prior to this call so that Fluent Assertions can - subscribe for the events of the object. - - - - - Asserts that an object has not raised a particular event. - - The object exposing the event. - - The name of the event that should not be raised. - - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - You must call on the same object prior to this call so that Fluent Assertions can - subscribe for the events of the object. - - - - - Asserts that an object has raised the event for a particular property. - - - You must call on the same object prior to this call so that Fluent Assertions can - subscribe for the events of the object. - - - - - Asserts that an object has raised the event for a particular property. - - The object exposing the event. - - A lambda expression referring to the property for which the property changed event should have been raised, or - null to refer to all properties. - - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - You must call on the same object prior to this call so that Fluent Assertions can - subscribe for the events of the object. - - - - - Asserts that an object has not raised the event for a particular property. - - - You must call on the same object prior to this call so that Fluent Assertions can - subscribe for the events of the object. - - - - - Asserts that an object has not raised the event for a particular property. - - The object exposing the event. - - A lambda expression referring to the property for which the property changed event should have been raised. - - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - You must call on the same object prior to this call so that Fluent Assertions can - subscribe for the events of the object. - - - - - Asserts that all occurences of the event originated from the . - - - - - Asserts that at least one occurrence of the event had an object matching a predicate. - - - - - Records activity for a single event. - - - - - Records raised events for one event on one object - - - - - Store information about a raised event - - Parameters the event was raised with - - - - The object events are recorded from - - - - - The name of the event that's recorded - - - - - - The object events are recorded from - The name of the event that's recorded - - - - Enumerate raised events - - - - - Enumerate raised events - - - - - - Called by the auto-generated IL, to record information about a raised event. - - - - - The object events are recorded from - - - - - The name of the event that's recorded - - - - - Static methods that aid in generic event subscription - - - - - Generates an eventhandler for an event of type eventSignature that calls RegisterEvent on recorder - when invoked. - - - - - Finds the Return Type of a Delegate. - - - - - Returns an Array of Types that make up a delegate's parameter signature. - - - - - Returns an array of types appended with an EventRecorder reference at the beginning. - - - - - Returns T/F Dependent on a Type Being a Delegate. - - - - - Returns the MethodInfo for the Delegate's "Invoke" Method. - - - - - This class is used to store data about an intercepted event - - - - - Default constructor stores the parameters the event was raised with - - - - - Parameters for the event - - - - - Simple dictionary that uses a to the event source as the key. - This should ensure the Garbage Collector can still clean-up the event source object. - - - - - Indicates whether the current can handle the specified . - - The value for which to create a . - - true if the current can handle the specified value; otherwise, false. - - - - - Returns a that represents this instance. - - The value for which to create a . - - - A collection of objects that - - - The level of nesting for the supplied value. This is used for indenting the format string for objects that have - no override. - - - A that represents this instance. - - - - - Determines whether this instance can handle the specified value. - - The value. - - true if this instance can handle the specified value; otherwise, false. - - - - - Returns a that represents this instance. - - The value for which to create a . - - - A collection of objects that - - - The level of nesting for the supplied value. This is used for indenting the format string for objects that have - no override. - - - A that represents this instance. - - - - - Indicates whether the current can handle the specified . - - The value for which to create a . - - true if the current can handle the specified value; otherwise, false. - - - - - Returns a that represents this instance. - - The value for which to create a . - - - A collection of objects that - - - The level of nesting for the supplied value. This is used for indenting the format string for objects that have - no override. - - - A that represents this instance. - - - - - Indicates whether the current can handle the specified . - - The value for which to create a . - - true if the current can handle the specified value; otherwise, false. - - - - - Returns a that represents this instance. - - The value for which to create a . - - - A collection of objects that - - - The level of nesting for the supplied value. This is used for indenting the format string for objects that have - no override. - - - A that represents this instance. - - - - - Provides services for formatting an object being used in an assertion in a human readable format. - - - - - A list of objects responsible for formatting the objects represented by placeholders. - - - - - Returns a human-readable representation of a particular object. - - The value for which to create a . - - The level of nesting for the supplied value. This is used for indenting the format string for objects that have - no override. - - - Indicates whether the formatter should use line breaks when the specific supports it. - - - A that represents this instance. - - - - - Indicates whether the current can handle the specified . - - The value for which to create a . - - true if the current can handle the specified value; otherwise, false. - - - - - Returns a that represents this instance. - - The value for which to create a . - - - A collection of objects that - - - The level of nesting for the supplied value. This is used for indenting the format string for objects that have - no override. - - - A that represents this instance. - - - - - Indicates whether the current can handle the specified . - - The value for which to create a . - - true if the current can handle the specified value; otherwise, false. - - - - - Returns a that represents this instance. - - The value for which to create a . - - - A collection of objects that - - - The level of nesting for the supplied value. This is used for indenting the format string for objects that have - no override. - - - A that represents this instance. - - - - - Indicates whether the current can handle the specified . - - The value for which to create a . - - true if the current can handle the specified value; otherwise, false. - - - - - Returns a that represents this instance. - - The value for which to create a . - - - A collection of objects that - - - The level of nesting for the supplied value. This is used for indenting the format string for objects that have - no override. - - - A that represents this instance. - - - - - Indicates whether the current can handle the specified . - - The value for which to create a . - - true if the current can handle the specified value; otherwise, false. - - - - - Returns a that represents this instance. - - The value for which to create a . - - - A collection of objects that - - - The level of nesting for the supplied value. This is used for indenting the format string for objects that have - no override. - - - A that represents this instance. - - - - - Indicates whether the current can handle the specified . - - The value for which to create a . - - true if the current can handle the specified value; otherwise, false. - - - - - Returns a that represents this instance. - - The value for which to create a . - - - A collection of objects that - - - The level of nesting for the supplied value. This is used for indenting the format string for objects that have - no override. - - - A that represents this instance. - - - - - Returns a that represents this instance. - - The value for which to create a . - - - A collection of objects that - - - The level of nesting for the supplied value. This is used for indenting the format string for objects that have - no override. - - - A that represents this instance. - - - - - Indicates whether the current can handle the specified . - - The value for which to create a . - - true if the current can handle the specified value; otherwise, false. - - - - - Returns a that represents this instance. - - The value for which to create a . - - - A collection of objects that - - - The level of nesting for the supplied value. This is used for indenting the format string for objects that have - no override. - - - A that represents this instance. - - - - - Contains a number of methods to assert that an is in the expectation state. - - - - - Asserts that two collections contain the same items in the same order, where equality is determined using a - predicate. - - - The collection to compare the subject with. - - - A predicate the is used to determine whether two objects should be treated as equal. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the collection contains the specified item. - - The expectation item. - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Asserts that the collection contains some extra items in addition to the original items. - - An of expectation items. - Additional items that are expectation to be contained by the collection. - - - - Asserts that the collection contains at least one item that matches the predicate. - - A predicate to match the items in the collection against. - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Asserts that the collection only contains items that match a predicate. - - A predicate to match the items in the collection against. - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Asserts that the collection does not contain any items that match the predicate. - - A predicate to match the items in the collection against. - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Expects the current collection to contain only a single item matching the specified . - - The predictes that will be used to find the matching items. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Contains a number of methods to assert that an is in the expected state. - - - - - Asserts that the current collection contains the specified object. Elements are compared - using their implementation. - - An object, or of objects that are expected to be in the collection. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Contains extension methods for custom assertions in unit tests. - - - - - Invokes the specified action on an subject so that you can chain it with any of the ShouldThrow or ShouldNotThrow - overloads. - - - - - Provides methods for asserting the execution time of a method or property. - - The object that exposes the method or property. - A reference to the method or property to measure the execution time of. - - Returns an object for asserting that the execution time matches certain conditions. - - - - - Provides methods for asserting the execution time of a method or property. - - A reference to the method or property to measure the execution time of. - - Returns an object for asserting that the execution time matches certain conditions. - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current . - - - - - Asserts that the throws an exception. - - A reference to the method or property. - - The type of the exception it should throw. - - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - Returns an object that allows asserting additional members of the thrown exception. - - - - - Asserts that the does not throw a particular exception. - - The current method or property. - - The type of the exception it should not throw. Any other exceptions are ignored and will satisfy the assertion. - - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Asserts that the does not throw any exception at all. - - The current method or property. - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Forces enumerating a collection. Should be used to assert that a method that uses the - yield keyword throws a particular exception. - - - - - Forces enumerating a collection. Should be used to assert that a method that uses the - yield keyword throws a particular exception. - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current nullable . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current nullable . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current nullable . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current nullable . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current nullable . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current nullable . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current nullable . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current nullable . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current nullable . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current nullable . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current nullable . - - - - - Returns a object that can be used to assert the - current . - - - - - Returns a object that can be used to assert the - current . - - - - - Returns a object that can be used to assert the current . - - - - - - Returns a object that can be used to assert the methods returned by the - current . - - - - - - Returns a object that can be used to assert the - current . - - - - - - Returns a object that can be used to assert the properties returned by the - current . - - - - - - Asserts that the properties of an object matches those of another object. - - - - - Asserts that an object is equivalent to another object. - - - Objects are equivalent when both object graphs have equally named properties with the same value, - irrespective of the type of those objects. Two properties are also equal if one type can be converted to another and the result is equal. - The type of a collection property is ignored as long as the collection implements and all - items in the collection are structurally equal. - Notice that actual behavior is determined by the instance of the - class. - - - An optional formatted phrase as is supported by explaining why the - assertion is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that an object is equivalent to another object. - - - Objects are equivalent when both object graphs have equally named properties with the same value, - irrespective of the type of those objects. Two properties are also equal if one type can be converted to another and the result is equal. - The type of a collection property is ignored as long as the collection implements and all - items in the collection are structurally equal. - - - A reference to the configuration object that can be used - to influence the way the object graphs are compared. You can also provide an alternative instance of the - class. - - - An optional formatted phrase as is supported by explaining why the - assertion is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Safely casts the specified object to the type specified through . - - - Has been introduced to allow casting objects without breaking the fluent API. - - - - - - Contains a number of methods to assert that a is in the expected state. - - - You can use the for a more fluent way of specifying a . - - - - - Asserts that the current is exactly equal to the value. - - The expected value - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current is not equal to the value. - - The unexpected value - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current is within the specified number of milliseconds (default = 20 ms) - from the specified value. - - - Use this assertion when, for example the database truncates datetimes to nearest 20ms. If you want to assert to the exact datetime, - use . - - - The expected time to compare the actual value with. - - - The maximum amount of milliseconds which the two values may differ. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current is before the specified value. - - The that the current value is expected to be before. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current is either on, or before the specified value. - - The that the current value is expected to be on or before. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current is after the specified value. - - The that the current value is expected to be after. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current is either on, or after the specified value. - - The that the current value is expected to be on or after. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current has the year. - - The expected year of the current value. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current has the month. - - The expected month of the current value. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current has the day. - - The expected day of the current value. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current has the hour. - - The expected hour of the current value. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current has the minute. - - The expected minutes of the current value. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current has the second. - - The expected seconds of the current value. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Returns a object that can be used to assert that the current - exceeds the specified compared to another . - - - The amount of time that the current should exceed compared to another . - - - - - Returns a object that can be used to assert that the current - is equal to or exceeds the specified compared to another . - - - The amount of time that the current should be equal or exceed compared to - another . - - - - - Returns a object that can be used to assert that the current - differs exactly the specified compared to another . - - - The amount of time that the current should differ exactly compared to another . - - - - - Returns a object that can be used to assert that the current - is within the specified compared to another . - - - The amount of time that the current should be within another . - - - - - Returns a object that can be used to assert that the current - differs at maximum the specified compared to another . - - - The maximum amount of time that the current should differ compared to another . - - - - - Gets the object which value is being asserted. - - - - - Contains a number of methods to assert that an is in the correct state. - - - - - Asserts that the thrown exception has a message that matches - depending on the specified matching mode. - - - The expected message of the exception. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the thrown exception has a message that matches - depending on the specified matching mode. - - - The expected message of the exception. - - - Determines how the expected message is compared with the actual message. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the thrown exception contains an inner exception of type . - - The expected type of the inner exception. - - - - Asserts that the thrown exception contains an inner exception of type . - - The expected type of the inner exception. - The reason why the inner exception should be of the supplied type. - The parameters used when formatting the . - - - - Asserts that the thrown exception contains an inner exception with the . - - The expected message of the inner exception. - Determines how the expected message is compared with the actual message. - - - - Asserts that the thrown exception contains an inner exception with the . - - The expected message of the inner exception. - - The reason why the message of the inner exception should match . - - The parameters used when formatting the . - - - - Asserts that the thrown exception contains an inner exception with the . - - The expected message of the inner exception. - Determines how the expected message is compared with the actual message. - - The reason why the message of the inner exception should match . - - The parameters used when formatting the . - - - - Asserts that the exception matches a particular condition. - - - The condition that the exception must match. - - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Gets the exception object of the exception thrown. - - - - - Contains a number of methods to assert that a nullable is in the expected state. - - - - - Asserts that a nullable boolean value is not null. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a nullable boolean value is null. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the value is equal to the specified value. - - The expected value - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Contains a number of methods to assert that a nullable is in the expected state. - - - You can use the for a more fluent way of specifying a . - - - - - Asserts that a nullable value is not null. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a nullable value is null. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the value is equal to the specified value. - - The expected value - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Contains a number of methods to assert that an is in the expected state. - - - - - Asserts that an object equals another object using its implementation. - - The expected value - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that an object does not equal another object using it's method. - - The unexpected value - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Asserts that an object reference refers to the exact same object as another object reference. - - The expected object - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Asserts that an object reference refers to a different object than another object reference refers to. - - The unexpected object - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Asserts that the object is null. - - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Asserts that the object is not null. - - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Asserts that an object can be serialized and deserialized using the binary serializer and that it stills retains - the values of all properties. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that an object can be serialized and deserialized using the XML serializer and that it stills retains - the values of all properties. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Provides methods for selecting one or more properties of an object and comparing them with another object. - - - - - Includes all properties of when comparing the subject with another object using . - - - - - Includes all properties of including those of the run-time type when comparing the subject - with another object using . - - - - - Includes all properties of when comparing the subject with another object using , - except those that the other object does not have. - - - - - Perform recursive property comparison of the child properties for objects that are of incompatible type. - - - Indication of how cyclic references in the nested properties should be handled. By default this will result in an - exception, but if is specified, cyclic references will just be ignored. - - - - - Includes all properties of when comparing the subject with another object using , - except those specified using a property expression. - - A single property expression to exclude. - Optional list of additional property expressions to exclude. - - - - Excludes the properties specified by the from the comparison. - - A single property expression to exclude. - Optional list of additional property expressions to exclude. - - - - Includes only those properties of when comparing the subject with another object using - that were specified using a property expression. - - A single property expression to include. - Optional list of additional property expressions to include. - - - - Asserts that the previously selected properties of have the same value as the equally named - properties of . - - The object to compare the current object with - - Property values are considered equal if, after converting them to the requested type, calling - returns true. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Contains a number of methods to assert that a is in the expected state. - - - - - Initializes a new instance of the class. - - - - - Asserts that a string is exactly the same as another string, including the casing and any leading or trailing whitespace. - - The expected string. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the is one of the specified . - - - The values that are valid. - - - - - Asserts that the is one of the specified . - - - The values that are valid. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string is exactly the same as another string, including any leading or trailing whitespace, with - the exception of the casing. - - - The string that the subject is expected to be equivalent to. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string is not exactly the same as the specified , - including any leading or trailing whitespace, with the exception of the casing. - - The string that the subject is not expected to be equivalent to. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string matches a wildcard pattern. - - - The wildcard pattern with which the subject is matched, where * and ? have special meanings. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string does not match a wildcard pattern. - - - The wildcard pattern with which the subject is matched, where * and ? have special meanings. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string matches a wildcard pattern. - - - The wildcard pattern with which the subject is matched, where * and ? have special meanings. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string does not match a wildcard pattern. - - - The wildcard pattern with which the subject is matched, where * and ? have special meanings. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string starts exactly with the specified value, - including the casing and any leading or trailing whitespace. - - The string that the subject is expected to start with. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string starts with the specified , - including any leading or trailing whitespace, with the exception of the casing. - - The string that the subject is expected to start with. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string ends exactly with the specified , - including the casing and any leading or trailing whitespace. - - The string that the subject is expected to end with. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string ends with the specified , - including any leading or trailing whitespace, with the exception of the casing. - - The string that the subject is expected to end with. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string contains another (fragment of a) string. - - - The (fragement of a) string that the current string should contain. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string contains the specified , - including any leading or trailing whitespace, with the exception of the casing. - - The string that the subject is expected to contain. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string does not contain another (fragment of a) string. - - - The (fragement of a) string that the current string should not contain. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string does not contain the specified string, - including any leading or trailing whitespace, with the exception of the casing. - - The string that the subject is not expected to contain. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string is . - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string is not . - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string has the specified length. - - The expected length of the string - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string is null. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string is not null. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string is neither null nor . - - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Asserts that a string is either null or . - - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Asserts that a string is neither null nor nor white space - - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Asserts that a string is either null or or white space - - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Gets the object which value is being asserted. - - - - - Contains a number of methods to assert that two objects differ in the expected way. - - - You can use the and for a more fluent - way of specifying a or a . - - - - - Asserts that a occurs a specified amount of time before another . - - - The to compare the subject with. - - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Asserts that a occurs a specified amount of time after another . - - - The to compare the subject with. - - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Provides the logic and the display text for a . - - - - - Contains a number of methods to assert that a meets certain expectations. - - - - - Initializes a new instance of the class. - - - - - Asserts that the current type is equal to the specified type. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current type is equal to the specified type. - - The expected type - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Creates an error message in case the specifed type differs from the - type. - - - An empty if the two specified types are the same, or an error message that describes that - the two specified types are not the same. - - - - - Asserts that the current type is not equal to the specified type. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current type is not equal to the specified type. - - The unexpected type - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current is decorated with the specified . - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current is decorated with an attribute of type - that matches the specified . - - - The predicate that the attribute must match. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Gets the object which value is being asserted. - - - - - Helper class for verifying a condition and/or throwing a test harness specific exception representing an assertion failure. - - - - - Gets an object that wraps and executes a conditional or unconditional verification. - - - - - Throws a generic exception in case no other test harness is detected. - - - - - Represents an abstraction of a particular test framework such as MSTest, nUnit, etc. - - - - - Throws a framework-specific exception to indicate a failing unit test. - - - - - Gets a value indicating whether the corresponding test framework is currently available. - - - - - Throws a framework-specific exception to indicate a failing unit test. - - - - - Gets a value indicating whether the corresponding test framework is currently available. - - - - - Throws a framework-specific exception to indicate a failing unit test. - - - - - Gets a value indicating whether the corresponding test framework is currently available. - - - - - Provides a fluent API for verifying an arbitrary condition. - - - - - Represents the phrase that can be used in as a placeholder for the reason of an assertion. - - - - - Initializes a new instance of the class. - - - - - Gets the name or identifier of the current subject, or a default value if the subject is not known. - - - - - Specify the condition that must be satisfied. - - If true the verification will be succesful. - - - - Specify a predicate that with the condition that must be satisfied. - - - - - Specify the reason why you expect the condition to be true. - - - A formatted phrase explaining why the condition should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Define the failure message for the verification. - - - If the contains the text "{reason}", this will be replaced by the reason as - defined through . Only 10 are supported in combination with - a {reason}. - - The format string that represents the failure message. - Optional arguments for the - - - - Indicates that every argument passed into is displayed on a separate line. - - - - - Gets or sets the name of the subject for the next verification. - - -
-
diff --git a/packages/FluentAssertions.2.0.1/lib/net40/FluentAssertions.dll b/packages/FluentAssertions.2.0.1/lib/net40/FluentAssertions.dll deleted file mode 100644 index 6b9b737c..00000000 Binary files a/packages/FluentAssertions.2.0.1/lib/net40/FluentAssertions.dll and /dev/null differ diff --git a/packages/FluentAssertions.2.0.1/lib/net40/FluentAssertions.pdb b/packages/FluentAssertions.2.0.1/lib/net40/FluentAssertions.pdb deleted file mode 100644 index 2b37e521..00000000 Binary files a/packages/FluentAssertions.2.0.1/lib/net40/FluentAssertions.pdb and /dev/null differ diff --git a/packages/FluentAssertions.2.0.1/lib/net40/FluentAssertions.xml b/packages/FluentAssertions.2.0.1/lib/net40/FluentAssertions.xml deleted file mode 100644 index 9b604725..00000000 --- a/packages/FluentAssertions.2.0.1/lib/net40/FluentAssertions.xml +++ /dev/null @@ -1,5761 +0,0 @@ - - - - FluentAssertions - - - - - Initializes a new instance of the class. - - - - - Contains extension methods for custom assertions in unit tests. - - - - - Invokes the specified action on an subject so that you can chain it with any of the ShouldThrow or ShouldNotThrow - overloads. - - - - - Provides methods for asserting the execution time of a method or property. - - The object that exposes the method or property. - A reference to the method or property to measure the execution time of. - - Returns an object for asserting that the execution time matches certain conditions. - - - - - Provides methods for asserting the execution time of a method or property. - - A reference to the method or property to measure the execution time of. - - Returns an object for asserting that the execution time matches certain conditions. - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current . - - - - - Asserts that the throws an exception. - - A reference to the method or property. - - The type of the exception it should throw. - - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - Returns an object that allows asserting additional members of the thrown exception. - - - - - Asserts that the does not throw a particular exception. - - The current method or property. - - The type of the exception it should not throw. Any other exceptions are ignored and will satisfy the assertion. - - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Asserts that the does not throw any exception at all. - - The current method or property. - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Forces enumerating a collection. Should be used to assert that a method that uses the - yield keyword throws a particular exception. - - - - - Forces enumerating a collection. Should be used to assert that a method that uses the - yield keyword throws a particular exception. - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current nullable . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current nullable . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current nullable . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current nullable . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current nullable . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current nullable . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current nullable . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current nullable . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current nullable . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current nullable . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current nullable . - - - - - Returns a object that can be used to assert the - current . - - - - - Returns a object that can be used to assert the - current . - - - - - Returns a object that can be used to assert the current . - - - - - - Returns a object that can be used to assert the methods returned by the - current . - - - - - - Returns a object that can be used to assert the - current . - - - - - - Returns a object that can be used to assert the properties returned by the - current . - - - - - - Asserts that the properties of an object matches those of another object. - - - - - Asserts that an object is equivalent to another object. - - - Objects are equivalent when both object graphs have equally named properties with the same value, - irrespective of the type of those objects. Two properties are also equal if one type can be converted to another and the result is equal. - The type of a collection property is ignored as long as the collection implements and all - items in the collection are structurally equal. - Notice that actual behavior is determined by the instance of the - class. - - - An optional formatted phrase as is supported by explaining why the - assertion is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that an object is equivalent to another object. - - - Objects are equivalent when both object graphs have equally named properties with the same value, - irrespective of the type of those objects. Two properties are also equal if one type can be converted to another and the result is equal. - The type of a collection property is ignored as long as the collection implements and all - items in the collection are structurally equal. - - - A reference to the configuration object that can be used - to influence the way the object graphs are compared. You can also provide an alternative instance of the - class. - - - An optional formatted phrase as is supported by explaining why the - assertion is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Safely casts the specified object to the type specified through . - - - Has been introduced to allow casting objects without breaking the fluent API. - - - - - - Contains a number of methods to assert that an is in the expected state. - - - - - Contains a number of methods to assert that a reference type object is in the expected state. - - - - - Asserts that the object is of the specified type . - - The expected type of the object. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the object is assignable to a variable of type . - - The type to which the object should be assignable. - The reason why the object should be assignable to the type. - The parameters used when formatting the . - An which can be used to chain assertions. - - - - Asserts that the is satisfied. - - The predicate which must be statisfied by the . - The reason why the predicate should be satisfied. - The parameters used when formatting the . - An which can be used to chain assertions. - - - - Asserts that the is satisfied. - - The predicate which must be statisfied by the . - The reason why the predicate should be satisfied. - The parameters used when formatting the . - An which can be used to chain assertions. - - - - Gets the object which value is being asserted. - - - - - Asserts that the number of items in the collection matches the supplied amount. - - The expected number of items in the collection. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the number of items in the collection matches a condition stated by the . - - A predicate that yields the number of items that is expected to be in the collection. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the collection does not contain any items. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the collection contains at least 1 item. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the collection does not contain any duplicate items. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the collection does not contain any null items. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Expects the current collection to contain all the same elements in the same order as the collection identified by - . Elements are compared using their . - - A params array with the expected elements. - - - - Expects the current collection to contain all the same elements in the same order as the collection identified by - . Elements are compared using their . - - An with the expected elements. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Expects the current collection not to contain all the same elements in the same order as the collection identified by - . Elements are compared using their . - - An with the elements that are not expected. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Expects the current collection to contain all elements of the collection identified by , - regardless of the order. Elements are compared using their . - - A params array with the expected elements. - - - - Expects the current collection to contain all elements of the collection identified by , - regardless of the order. Elements are compared using their . - - An with the expected elements. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Expects the current collection not to contain all elements of the collection identified by , - regardless of the order. Elements are compared using their . - - An with the unexpected elements. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current collection only contains items that are assignable to the type . - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Expects the current collection to contain the specified elements in any order. Elements are compared - using their implementation. - - An with the expected elements. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Expects the current collection to contain the specified elements in the exact same order. Elements are compared - using their implementation. - - An with the expected elements. - - - - Expects the current collection to contain the specified elements in the exact same order. Elements are compared - using their implementation. - - An with the expected elements. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Expects the current collection to have all elements in ascending order. Elements are compared - using their implementation. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Expects the current collection to have all elements in descending order. Elements are compared - using their implementation. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Expects the current collection to have all elements in the specified . - Elements are compared using their implementation. - - - - - Asserts the current collection does not have all elements in ascending order. Elements are compared - using their implementation. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts the current collection does not have all elements in descending order. Elements are compared - using their implementation. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts the current collection does not have all elements in ascending order. Elements are compared - using their implementation. - - - - - Asserts that the collection is a subset of the . - - An with the expected superset. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the collection is not a subset of the . - - An with the unexpected superset. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Assert that the current collection has the same number of elements as . - - The other collection with the same expected number of elements - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current collection has not been initialized yet with an actual collection. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current collection has been initialized with an actual collection. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current collection has the supplied at the - supplied . - - The index where the element is expected - The expected element - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current collection does not contain the supplied item. - - The element that is not expected to be in the collection - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the collection shares one or more items with the specified . - - The with the expected shared items. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the collection does not share any items with the specified . - - The to compare to. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Contains a number of methods to assert that an is in the expectation state. - - - - - Asserts that two collections contain the same items in the same order, where equality is determined using a - predicate. - - - The collection to compare the subject with. - - - A predicate the is used to determine whether two objects should be treated as equal. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the collection contains the specified item. - - The expectation item. - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Asserts that the collection contains some extra items in addition to the original items. - - An of expectation items. - Additional items that are expectation to be contained by the collection. - - - - Asserts that the collection contains at least one item that matches the predicate. - - A predicate to match the items in the collection against. - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Asserts that the collection only contains items that match a predicate. - - A predicate to match the items in the collection against. - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Asserts that the collection does not contain any items that match the predicate. - - A predicate to match the items in the collection against. - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Expects the current collection to contain only a single item matching the specified . - - The predictes that will be used to find the matching items. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Contains a number of methods to assert that an is in the expected state. - - - - - Asserts that the current dictionary has not been initialized yet with an actual dictionary. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current dictionary has been initialized with an actual dictionary. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the number of items in the dictionary matches the supplied amount. - - The expected number of items. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the number of items in the dictionary matches a condition stated by a predicate. - - The predicate which must be statisfied by the amount of items. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the dictionary does not contain any items. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the dictionary contains at least 1 item. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current dictionary contains all the same key-value pairs as the - specified dictionary. Keys and values are compared using - their implementation. - - The expected dictionary - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts the current dictionary not to contain all the same key-value pairs as the - specified dictionary. Keys and values are compared using - their implementation. - - The unexpected dictionary - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the dictionary contains the specified key. Keys are compared using - their implementation. - - The expected key - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the dictionary contains all of the specified keys. Keys are compared using - their implementation. - - The expected keys - - - - Asserts that the dictionary contains all of the specified keys. Keys are compared using - their implementation. - - The expected keys - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current dictionary does not contain the specified key. - Keys are compared using their implementation. - - The unexpected key - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the dictionary contains the specified value. Values are compared using - their implementation. - - The expected value - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the dictionary contains all of the specified values. Values are compared using - their implementation. - - The expected values - - - - Asserts that the dictionary contains all of the specified values. Values are compared using - their implementation. - - The expected values - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current dictionary does not contain the specified value. - Values are compared using their implementation. - - The unexpected value - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current dictionary contains the specified . - Keys and values are compared using their implementation. - - The expected - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current dictionary contains the specified for the supplied . Values are compared using their implementation. - - The key for which to validate the value - The value to validate - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current dictionary does not contain the specified . - Keys and values are compared using their implementation. - - The unexpected - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current dictionary does not contain the specified for the - supplied . Values are compared using their implementation. - - The key for which to validate the value - The value to validate - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Gets the object which value is being asserted. - - - - - Contains a number of methods to assert that an is in the expected state. - - - - - Asserts that the current collection contains the specified object. Elements are compared - using their implementation. - - An object, or of objects that are expected to be in the collection. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Gets a dotted path of property names representing the property expression. E.g. Parent.Child.Sibling.Name. - - - - - Finds the first index at which the does not match the - string anymore, including the exact casing. - - - - - Finds the first index at which the does not match the - string anymore, accounting for the specified . - - - - - Gets the quoted three characters at the specified index of a string, including the index itself. - - - - - Replaces all characters that might conflict with formatting placeholders and newlines with their escaped counterparts. - - - - - Joins a string with one or more other strings using a specified separator. - - - Any string that is empty (including the original string) is ignored. - - - - - Determines whether two objects refer to the same property. - - - - - Finds the property by a case-sensitive name. - - - Returns null if no such property exists. - - - - - Determines whether the specified method has been annotated with a specific attribute. - - - true if the specified method has attribute; otherwise, false. - - - - - Provides extension methods for monitoring and querying events. - - - - - Starts monitoring an object for its events. - - Thrown if eventSource is Null. - - - - Asserts that an object has raised a particular event at least once. - - The object exposing the event. - The name of the event that should have been raised. - - - You must call on the same object prior to this call so that Fluent Assertions can - subscribe for the events of the object. - - - - - Asserts that an object has raised a particular event at least once. - - The object exposing the event. - - The name of the event that should have been raised. - - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - You must call on the same object prior to this call so that Fluent Assertions can - subscribe for the events of the object. - - - - - Asserts that an object has not raised a particular event. - - The object exposing the event. - - The name of the event that should not be raised. - - - You must call on the same object prior to this call so that Fluent Assertions can - subscribe for the events of the object. - - - - - Asserts that an object has not raised a particular event. - - The object exposing the event. - - The name of the event that should not be raised. - - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - You must call on the same object prior to this call so that Fluent Assertions can - subscribe for the events of the object. - - - - - Asserts that an object has raised the event for a particular property. - - - You must call on the same object prior to this call so that Fluent Assertions can - subscribe for the events of the object. - - - - - Asserts that an object has raised the event for a particular property. - - The object exposing the event. - - A lambda expression referring to the property for which the property changed event should have been raised, or - null to refer to all properties. - - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - You must call on the same object prior to this call so that Fluent Assertions can - subscribe for the events of the object. - - - - - Asserts that an object has not raised the event for a particular property. - - - You must call on the same object prior to this call so that Fluent Assertions can - subscribe for the events of the object. - - - - - Asserts that an object has not raised the event for a particular property. - - The object exposing the event. - - A lambda expression referring to the property for which the property changed event should have been raised. - - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - You must call on the same object prior to this call so that Fluent Assertions can - subscribe for the events of the object. - - - - - Asserts that all occurences of the event originated from the . - - - - - Asserts that at least one occurrence of the event had an object matching a predicate. - - - - - Static methods that aid in generic event subscription - - - - - Generates an eventhandler for an event of type eventSignature that calls RegisterEvent on recorder - when invoked. - - - - - Finds the Return Type of a Delegate. - - - - - Returns an Array of Types that make up a delegate's parameter signature. - - - - - Returns an array of types appended with an EventRecorder reference at the beginning. - - - - - Returns T/F Dependent on a Type Being a Delegate. - - - - - Returns the MethodInfo for the Delegate's "Invoke" Method. - - - - - Records activity for a single event. - - - - - Records raised events for one event on one object - - - - - Store information about a raised event - - Parameters the event was raised with - - - - The object events are recorded from - - - - - The name of the event that's recorded - - - - - - The object events are recorded from - The name of the event that's recorded - - - - Enumerate raised events - - - - - Enumerate raised events - - - - - - Called by the auto-generated IL, to record information about a raised event. - - - - - The object events are recorded from - - - - - The name of the event that's recorded - - - - - Simple dictionary that uses a to the event source as the key. - This should ensure the Garbage Collector can still clean-up the event source object. - - - - - This class is used to store data about an intercepted event - - - - - Default constructor stores the parameters the event was raised with - - - - - Parameters for the event - - - - - Helper class for verifying a condition and/or throwing a test harness specific exception representing an assertion failure. - - - - - Gets an object that wraps and executes a conditional or unconditional verification. - - - - - Throws a generic exception in case no other test harness is detected. - - - - - Represents an abstraction of a particular test framework such as MSTest, nUnit, etc. - - - - - Throws a framework-specific exception to indicate a failing unit test. - - - - - Gets a value indicating whether the corresponding test framework is currently available. - - - - - Throws a framework-specific exception to indicate a failing unit test. - - - - - Gets a value indicating whether the corresponding test framework is currently available. - - - - - Throws a framework-specific exception to indicate a failing unit test. - - - - - Gets a value indicating whether the corresponding test framework is currently available. - - - - - Provides a fluent API for verifying an arbitrary condition. - - - - - Represents the phrase that can be used in as a placeholder for the reason of an assertion. - - - - - Initializes a new instance of the class. - - - - - Gets the name or identifier of the current subject, or a default value if the subject is not known. - - - - - Specify the condition that must be satisfied. - - If true the verification will be succesful. - - - - Specify a predicate that with the condition that must be satisfied. - - - - - Specify the reason why you expect the condition to be true. - - - A formatted phrase explaining why the condition should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Define the failure message for the verification. - - - If the contains the text "{reason}", this will be replaced by the reason as - defined through . Only 10 are supported in combination with - a {reason}. - - The format string that represents the failure message. - Optional arguments for the - - - - Indicates that every argument passed into is displayed on a separate line. - - - - - Gets or sets the name of the subject for the next verification. - - - - - Extension methods on to allow for a more fluent way of specifying a . - - - Instead of
-
- new DateTime(2011, 3, 10)
-
- you can write 3.March(2011)
-
- Or even
-
- 3.March(2011).At(09, 30) -
- -
- - - Returns a new value for the specified and - in the month January. - - - - - Returns a new value for the specified and - in the month February. - - - - - Returns a new value for the specified and - in the month March. - - - - - Returns a new value for the specified and - in the month April. - - - - - Returns a new value for the specified and - in the month May. - - - - - Returns a new value for the specified and - in the month June. - - - - - Returns a new value for the specified and - in the month July. - - - - - Returns a new value for the specified and - in the month August. - - - - - Returns a new value for the specified and - in the month September. - - - - - Returns a new value for the specified and - in the month October. - - - - - Returns a new value for the specified and - in the month November. - - - - - Returns a new value for the specified and - in the month December. - - - - - Returns a new value for the specified and . - - - - - Returns a new value for the specified and time with the specified - , and optionally . - - - - - Returns a new value that is the current before the - specified . - - - - - Returns a new value that is the current after the - specified . - - - - - Specialized value formatter that looks for static methods in the caller's assembly marked with the - . - - - - - Indicates whether the current can handle the specified . - - The value for which to create a . - - true if the current can handle the specified value; otherwise, false. - - - - - Returns a that represents this instance. - - The value for which to create a . - - - A collection of objects that - - - The level of nesting for the supplied value. This is used for indenting the format string for objects that have - no override. - - - A that represents this instance. - - - - - Indicates whether the current can handle the specified . - - The value for which to create a . - - true if the current can handle the specified value; otherwise, false. - - - - - Returns a that represents this instance. - - The value for which to create a . - - - A collection of objects that - - - The level of nesting for the supplied value. This is used for indenting the format string for objects that have - no override. - - - A that represents this instance. - - - - - Indicates whether the current can handle the specified . - - The value for which to create a . - - true if the current can handle the specified value; otherwise, false. - - - - - Returns a that represents this instance. - - The value for which to create a . - - - A collection of objects that - - - The level of nesting for the supplied value. This is used for indenting the format string for objects that have - no override. - - - A that represents this instance. - - - - - Determines whether this instance can handle the specified value. - - The value. - - true if this instance can handle the specified value; otherwise, false. - - - - - Returns a that represents this instance. - - The value for which to create a . - - - A collection of objects that - - - The level of nesting for the supplied value. This is used for indenting the format string for objects that have - no override. - - - A that represents this instance. - - - - - Indicates whether the current can handle the specified . - - The value for which to create a . - - true if the current can handle the specified value; otherwise, false. - - - - - Returns a that represents this instance. - - The value for which to create a . - - - A collection of objects that - - - The level of nesting for the supplied value. This is used for indenting the format string for objects that have - no override. - - - A that represents this instance. - - - - - Indicates whether the current can handle the specified . - - The value for which to create a . - - true if the current can handle the specified value; otherwise, false. - - - - - Returns a that represents this instance. - - The value for which to create a . - - - A collection of objects that - - - The level of nesting for the supplied value. This is used for indenting the format string for objects that have - no override. - - - A that represents this instance. - - - - - Provides services for formatting an object being used in an assertion in a human readable format. - - - - - A list of objects responsible for formatting the objects represented by placeholders. - - - - - Returns a human-readable representation of a particular object. - - The value for which to create a . - - The level of nesting for the supplied value. This is used for indenting the format string for objects that have - no override. - - - Indicates whether the formatter should use line breaks when the specific supports it. - - - A that represents this instance. - - - - - Indicates whether the current can handle the specified . - - The value for which to create a . - - true if the current can handle the specified value; otherwise, false. - - - - - Returns a that represents this instance. - - The value for which to create a . - - - A collection of objects that - - - The level of nesting for the supplied value. This is used for indenting the format string for objects that have - no override. - - - A that represents this instance. - - - - - Indicates whether the current can handle the specified . - - The value for which to create a . - - true if the current can handle the specified value; otherwise, false. - - - - - Returns a that represents this instance. - - The value for which to create a . - - - A collection of objects that - - - The level of nesting for the supplied value. This is used for indenting the format string for objects that have - no override. - - - A that represents this instance. - - - - - Indicates whether the current can handle the specified . - - The value for which to create a . - - true if the current can handle the specified value; otherwise, false. - - - - - Returns a that represents this instance. - - The value for which to create a . - - - A collection of objects that - - - The level of nesting for the supplied value. This is used for indenting the format string for objects that have - no override. - - - A that represents this instance. - - - - - Indicates whether the current can handle the specified . - - The value for which to create a . - - true if the current can handle the specified value; otherwise, false. - - - - - Returns a that represents this instance. - - The value for which to create a . - - - A collection of objects that - - - The level of nesting for the supplied value. This is used for indenting the format string for objects that have - no override. - - - A that represents this instance. - - - - - Indicates whether the current can handle the specified . - - The value for which to create a . - - true if the current can handle the specified value; otherwise, false. - - - - - Returns a that represents this instance. - - The value for which to create a . - - - A collection of objects that - - - The level of nesting for the supplied value. This is used for indenting the format string for objects that have - no override. - - - A that represents this instance. - - - - - Marks a static method as a kind of for a particular type. - - - - - Indicates whether the current can handle the specified . - - The value for which to create a . - - true if the current can handle the specified value; otherwise, false. - - - - - Returns a that represents this instance. - - The value for which to create a . - - - A collection of objects that - - - The level of nesting for the supplied value. This is used for indenting the format string for objects that have - no override. - - - A that represents this instance. - - - - - Returns a that represents this instance. - - The value for which to create a . - - - A collection of objects that - - - The level of nesting for the supplied value. This is used for indenting the format string for objects that have - no override. - - - A that represents this instance. - - - - - Indicates whether the current can handle the specified . - - The value for which to create a . - - true if the current can handle the specified value; otherwise, false. - - - - - Returns a that represents this instance. - - The value for which to create a . - - - A collection of objects that - - - The level of nesting for the supplied value. This is used for indenting the format string for objects that have - no override. - - - A that represents this instance. - - - - - Contains a number of extension methods for floating point . - - - - - Asserts a floating point value approximates another value as close as possible. - - The object that is being extended. - - The expected value to compare the actual value with. - - - The maximum amount of which the two values may differ. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts a floating point value approximates another value as close as possible. - - The object that is being extended. - - The expected value to compare the actual value with. - - - The maximum amount of which the two values may differ. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts a floating point value approximates another value as close as possible. - - The object that is being extended. - - The expected value to compare the actual value with. - - - The maximum amount of which the two values may differ. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts a floating point value approximates another value as close as possible. - - The object that is being extended. - - The expected value to compare the actual value with. - - - The maximum amount of which the two values may differ. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Contains a number of methods to assert that an is in the expected state. - - - - - Asserts that the subject is considered equal to another object according to the implementation of . - - - The object to pass to the subject's method. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the subject is not equal to another object according to its implementation of . - - - The object to pass to the subject's method. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the subject is less than another object according to its implementation of . - - - The object to pass to the subject's method. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the subject is less than or equal to another object according to its implementation of . - - - The object to pass to the subject's method. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the subject is greater than another object according to its implementation of . - - - The object to pass to the subject's method. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the subject is greater than or equal to another object according to its implementation of . - - - The object to pass to the subject's method. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a value is within a range. - - - Where the range is continuous or incremental depends on the actual type of the value. - - - The minimum valid value of the range. - - - The maximum valid value of the range. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a nullable numeric value is not null. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a nullable numeric value is null. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Gets the object which value is being asserted. - - - - - Contains a number of methods to assert that an is in the expected state. - - - - - Asserts that the integral number value is exactly the same as the value. - - The expected value. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the integral number value is exactly the same as the value. - - The expected value. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the integral number value is not the same as the value. - - The unexpected value. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the integral number value is not the same as the value. - - The unexpected value. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the numeric value is greater than or equal to zero. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the numeric value is less than zero. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the numeric value is less than the specified value. - - The value to compare the current numeric value with. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the numeric value is less than or equal to the specified value. - - The value to compare the current numeric value with. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the numeric value is greater than the specified value. - - The value to compare the current numeric value with. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the numeric value is greater than or equal to the specified value. - - The value to compare the current numeric value with. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a value is within a range. - - - Where the range is continuous or incremental depends on the actual type of the value. - - - The minimum valid value of the range. - - - The maximum valid value of the range. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a value is one of the specified . - - - The values that are valid. - - - - - Asserts that a value is one of the specified . - - - The values that are valid. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a nullable numeric value is not null. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a nullable numeric value is null. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Contains a number of methods to assert that a is in the expected state. - - - - - Asserts that the value is false. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the value is true. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the value is equal to the specified value. - - The expected value - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Gets the object which value is being asserted. - - - - - Defines the way compares the expected exception - message with the actual one. - - - - - The message must match exactly, including the casing of the characters. - - - - - The message must match except for the casing of the characters. - - - - - The message must start with the exact text, including the casing of the characters.. - - - - - The message must start with the text except for the casing of the characters. - - - - - The message must contain the exact text. - - - - - The message must contain the text except for the casing of the characters. - - - - - The message must match a wildcard pattern consisting of ordinary characters as well as * and ?. - - - - - Contains a number of methods to assert that a is in the expected state. - - - You can use the for a more fluent way of specifying a . - - - - - Asserts that the current is exactly equal to the value. - - The expected value - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current is not equal to the value. - - The unexpected value - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current is within the specified number of milliseconds (default = 20 ms) - from the specified value. - - - Use this assertion when, for example the database truncates datetimes to nearest 20ms. If you want to assert to the exact datetime, - use . - - - The expected time to compare the actual value with. - - - The maximum amount of milliseconds which the two values may differ. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current is before the specified value. - - The that the current value is expected to be before. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current is either on, or before the specified value. - - The that the current value is expected to be on or before. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current is after the specified value. - - The that the current value is expected to be after. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current is either on, or after the specified value. - - The that the current value is expected to be on or after. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current has the year. - - The expected year of the current value. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current has the month. - - The expected month of the current value. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current has the day. - - The expected day of the current value. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current has the hour. - - The expected hour of the current value. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current has the minute. - - The expected minutes of the current value. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current has the second. - - The expected seconds of the current value. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Returns a object that can be used to assert that the current - exceeds the specified compared to another . - - - The amount of time that the current should exceed compared to another . - - - - - Returns a object that can be used to assert that the current - is equal to or exceeds the specified compared to another . - - - The amount of time that the current should be equal or exceed compared to - another . - - - - - Returns a object that can be used to assert that the current - differs exactly the specified compared to another . - - - The amount of time that the current should differ exactly compared to another . - - - - - Returns a object that can be used to assert that the current - is within the specified compared to another . - - - The amount of time that the current should be within another . - - - - - Returns a object that can be used to assert that the current - differs at maximum the specified compared to another . - - - The maximum amount of time that the current should differ compared to another . - - - - - Gets the object which value is being asserted. - - - - - Contains a number of methods to assert that a is in the correct state. - - - - - Asserts that the is . - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the is not . - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the is equal to the GUID. - - The expected value to compare the actual value with. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the is equal to the GUID. - - The expected value to compare the actual value with. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the is not equal to the GUID. - - The unexpected value to compare the actual value with. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Gets the object which value is being asserted. - - - - - Contains a number of methods to assert that a nullable is in the expected state. - - - - - Asserts that a nullable boolean value is not null. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a nullable boolean value is null. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the value is equal to the specified value. - - The expected value - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Contains a number of methods to assert that a nullable is in the expected state. - - - You can use the for a more fluent way of specifying a . - - - - - Asserts that a nullable value is not null. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a nullable value is null. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the value is equal to the specified value. - - The expected value - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Contains a number of methods to assert that a nullable is in the expected state. - - - - - Asserts that a nullable value is not null. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a nullable value is null. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the value is equal to the specified value. - - The expected value - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Contains a number of methods to assert that a nullable is in the expected state. - - - You can use the for a more fluent way of specifying a . - - - - - Contains a number of methods to assert that a nullable is in the expected state. - - - - - Asserts that the time difference of the current is greater than zero. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the time difference of the current is less than zero. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the time difference of the current is equal to the - specified time. - - The expected time difference - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the time difference of the current is not equal to the - specified time. - - The unexpected time difference - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the time difference of the current is less than the - specified time. - - The time difference to which the current value will be compared - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the time difference of the current is less than or equal to the - specified time. - - The time difference to which the current value will be compared - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the time difference of the current is greater than the - specified time. - - The time difference to which the current value will be compared - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the time difference of the current is greater than or equal to the - specified time. - - The time difference to which the current value will be compared - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Gets the object which value is being asserted. - - - - - Asserts that a nullable value is not null. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a nullable value is null. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Contains a number of methods to assert that an is in the expected state. - - - - - Asserts that an object equals another object using its implementation. - - The expected value - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that an object does not equal another object using it's method. - - The unexpected value - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Asserts that an object reference refers to the exact same object as another object reference. - - The expected object - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Asserts that an object reference refers to a different object than another object reference refers to. - - The unexpected object - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Asserts that the object is null. - - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Asserts that the object is not null. - - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Asserts that an object can be serialized and deserialized using the binary serializer and that it stills retains - the values of all properties. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that an object can be serialized and deserialized using the XML serializer and that it stills retains - the values of all properties. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Contains a number of methods to assert that a is in the expected state. - - - - - Initializes a new instance of the class. - - - - - Asserts that a string is exactly the same as another string, including the casing and any leading or trailing whitespace. - - The expected string. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the is one of the specified . - - - The values that are valid. - - - - - Asserts that the is one of the specified . - - - The values that are valid. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string is exactly the same as another string, including any leading or trailing whitespace, with - the exception of the casing. - - - The string that the subject is expected to be equivalent to. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string is not exactly the same as the specified , - including any leading or trailing whitespace, with the exception of the casing. - - The string that the subject is not expected to be equivalent to. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string matches a wildcard pattern. - - - The wildcard pattern with which the subject is matched, where * and ? have special meanings. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string does not match a wildcard pattern. - - - The wildcard pattern with which the subject is matched, where * and ? have special meanings. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string matches a wildcard pattern. - - - The wildcard pattern with which the subject is matched, where * and ? have special meanings. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string does not match a wildcard pattern. - - - The wildcard pattern with which the subject is matched, where * and ? have special meanings. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string starts exactly with the specified value, - including the casing and any leading or trailing whitespace. - - The string that the subject is expected to start with. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string starts with the specified , - including any leading or trailing whitespace, with the exception of the casing. - - The string that the subject is expected to start with. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string ends exactly with the specified , - including the casing and any leading or trailing whitespace. - - The string that the subject is expected to end with. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string ends with the specified , - including any leading or trailing whitespace, with the exception of the casing. - - The string that the subject is expected to end with. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string contains another (fragment of a) string. - - - The (fragement of a) string that the current string should contain. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string contains the specified , - including any leading or trailing whitespace, with the exception of the casing. - - The string that the subject is expected to contain. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string does not contain another (fragment of a) string. - - - The (fragement of a) string that the current string should not contain. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string does not contain the specified string, - including any leading or trailing whitespace, with the exception of the casing. - - The string that the subject is not expected to contain. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string is . - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string is not . - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string has the specified length. - - The expected length of the string - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string is null. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string is not null. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string is neither null nor . - - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Asserts that a string is either null or . - - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Asserts that a string is neither null nor nor white space - - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Asserts that a string is either null or or white space - - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Gets the object which value is being asserted. - - - - - Dedicated class for comparing two strings and generating consistent error messages. - - - - - Gets or sets a value indicating whether the subject should not match the pattern. - - - - - Gets or sets a value indicating whether the matching process should ignore any casing difference. - - - - - Contains a number of methods to assert that two objects differ in the expected way. - - - You can use the and for a more fluent - way of specifying a or a . - - - - - Asserts that a occurs a specified amount of time before another . - - - The to compare the subject with. - - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Asserts that a occurs a specified amount of time after another . - - - The to compare the subject with. - - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Provides the logic and the display text for a . - - - - - Contains a number of methods to assert that an yields the expected result. - - - - - Asserts that the current throws an exception of type . - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current does not throw an exception of type . - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current does not throw any exception. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Gets the that is being asserted. - - - - - Contains a number of methods to assert that an is in the correct state. - - - - - Asserts that the thrown exception has a message that matches - depending on the specified matching mode. - - - The expected message of the exception. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the thrown exception has a message that matches - depending on the specified matching mode. - - - The expected message of the exception. - - - Determines how the expected message is compared with the actual message. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the thrown exception contains an inner exception of type . - - The expected type of the inner exception. - - - - Asserts that the thrown exception contains an inner exception of type . - - The expected type of the inner exception. - The reason why the inner exception should be of the supplied type. - The parameters used when formatting the . - - - - Asserts that the thrown exception contains an inner exception with the . - - The expected message of the inner exception. - Determines how the expected message is compared with the actual message. - - - - Asserts that the thrown exception contains an inner exception with the . - - The expected message of the inner exception. - - The reason why the message of the inner exception should match . - - The parameters used when formatting the . - - - - Asserts that the thrown exception contains an inner exception with the . - - The expected message of the inner exception. - Determines how the expected message is compared with the actual message. - - The reason why the message of the inner exception should match . - - The parameters used when formatting the . - - - - Asserts that the exception matches a particular condition. - - - The condition that the exception must match. - - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Gets the exception object of the exception thrown. - - - - - Provides methods for asserting that the execution time of an satifies certain conditions. - - - - - Initializes a new instance of the class. - - The action of which the execution time must be asserted. - - - - Asserts that the execution time of the operation does not exceed a specified amount of time. - - - The maximum allowed duration. - - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Provides methods for asserting that the execution time of an object member satifies certain conditions. - - - - - - Initializes a new instance of the class. - - The object that exposes the method or property. - A reference to the method or property to measure the execution time of. - - - - Selection rule that adds all public properties of the subject as far as they are defined on the declared - type. - - - - - Represents a rule that defines which properties of the subject-under-test to include while comparing - two objects for structural equality. - - - - - Adds or removes properties to/from the collection of subject properties that must be included while - comparing two objects for structural equality. - - - A collection of properties that was prepopulated by other selection rules. Can be empty. - - Type info about the subject. - - - The collection of properties after applying this rule. Can contain less or more than was passed in. - - - - - Adds or removes properties to/from the collection of subject properties that must be included while - comparing two objects for structural equality. - - - A collection of properties that was prepopulated by other selection rules. Can be empty. - - The collection of properties after applying this rule. Can contain less or more than was passed in. - - - - - Returns a string that represents the current object. - - - A string that represents the current object. - - 2 - - - - Selection rule that adds all public properties of the subject based on its run-time type rather than its - declared type. - - - - - Adds or removes properties to/from the collection of subject properties that must be included while - comparing two objects for structural equality. - - - A collection of properties that was prepopulated by other selection rules. Can be empty. - - The collection of properties after applying this rule. Can contain less or more than was passed in. - - - - - Returns a string that represents the current object. - - - A string that represents the current object. - - 2 - - - - Gets a value indicating whether this step can handle the current subject and/or expectation. - - - - - Applies a step as part of the task to compare two objects for structural equality. - - - Should return true if the subject matches the expectation or if no additional assertions - have to be executed. Should return false otherwise. - - - May throw when preconditions are not met or if it detects mismatching data. - - - - - Gets a value indicating whether this step can handle the current subject and/or expectation. - - - - - Applies a step as part of the task to compare two objects for structural equality. - - - Should return true if the subject matches the expectation or if no additional assertions - have to be executed. Should return false otherwise. - - - May throw when preconditions are not met or if it detects mismatching data. - - - - - General purpose implementation of that uses a predicate to determine whether - this rule applies to a particular property and executes an action to assert equality. - - The type of the subject. - - - - Defines how a subject's property is compared for equality with the same property of the expectation. - - - Provides details about the subject's property. - - - The value of the subject's property. - - - The value of a property on expectation object that was identified - - - Returns true if the rule was applied correctly and the assertion didn't cause any exceptions. - Returns false if this rule doesn't support the subject's type. - Throws if the rule did support the data type but assertion fails. - - - - - Defines how a subject's property is compared for equality with the same property of the expectation. - - - Provides details about the subject's property. - - - The value of the subject's property. - - - The value of a property on expectation object that was identified - - - Returns true if the rule was applied correctly and the assertion didn't cause any exceptions. - Returns false if this rule doesn't support the subject's type. - Throws if the rule did support the data type but assertion fails. - - - - - Provides the required information for executing an equality assertion between a subject and an expectation. - - The type of the subject. - - - - Gets the of the property that returned the current object, or null if the current - object represents the root object. - - - - - Gets the value of the - - - - - Gets the value of the expectation object that was matched with the subject using a . - - - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - - - Zero or more objects to format using the placeholders in . - - - - - Selection rule that removes a particular property from the structural comparison based on a predicate. - - - - - Adds or removes properties to/from the collection of subject properties that must be included while - comparing two objects for structural equality. - - - A collection of properties that was prepopulated by other selection rules. Can be empty. - - The collection of properties after applying this rule. Can contain less or more than was passed in. - - - - - Returns a string that represents the current object. - - - A string that represents the current object. - - 2 - - - - Provides details about the subject's root or nested property. - - - - - Gets the of the property that returned the current object, or null if the current - object represents the root object. - - - - - Gets the full path from the root object until the current object separated by dots. - - - - - Gets a display-friendly representation of the . - - - - - Gets the compile-time type of the current object. If the current object is not the root object, then it returns the - same as the property does. - - - - - Gets the run-time type of the current object. - - - - - Represents a selection context of a nested property - - - - - Gets the of the property that returned the current object, or - null if the current object represents the root object. - - - - - Gets the full path from the root object until the current property, separated by dots. - - - - - Gets a textual description of the current property based on the . - - - - - Gets the compile-time type of the current object. If the current object is not the root object, then it returns the - same as the property does. - - - - - Gets the run-time type of the current object. - - - - - Is responsible for the exact run-time behavior of a structural equality comparison. - - The type of the subject. - - - - Provides the run-time details of the class. - - - - - Gets an ordered collection of selection rules that define what properties are included. - - - - - Gets an ordered collection of matching rules that determine which subject properties are matched with which - expectation properties. - - - - - Gets an ordered collection of assertion rules that determine how subject properties are compared for equality with - expectation properties. - - - - - Gets or sets a value indicating whether or not the assertion must perform a deep comparison. - - - - - Gets a configuration that compares all declared properties of the subject with equally named properties of the expectation, - and includes the entire object graph. The names of the properties between the subject and expectation must match. - - - - - Gets a configuration that by default doesn't include any of the subject's properties and doesn't consider any nested objects - or collections. - - - - - Adds all public properties of the subject as far as they are defined on the declared type. - - - - - Adds all public properties of the subject based on its run-time type rather than its declared type. - - - - - Tries to match the properties of the subject with equally named properties on the expectation. Ignores those - properties that don't exist on the expectation. - - - - - Requires the expectation to have properties which are equally named to properties on the subject. - - - - - - Excludes the specified (nested) property from the structural equality check. - - - - - Excludes a (nested) property based on a predicate from the structural equality check. - - - - - Includes the specified property in the equality check. - - - This overrides the default behavior of including all declared properties. - - - - - The assertion to execute when the predicate is met. - - - - - Causes the structural equality check to include nested collections and complex types. - - - - - Causes the structural equality check to ignore any cyclic references. - - - By default, cyclic references within the object graph will cause an exception to be thrown. - - - - - Clears all selection rules, including those that were added by default. - - - - - Clears all matching rules, including those that were added by default. - - - - - Adds a selection rule to the ones allready added by default and which is evaluated after all existing rules. - - - - - Adds a matching rule to the ones allready added by default and which is evaluated before all existing rules. - - - - - Adds a matching rule to the ones allready added by default and which is evaluated before all existing rules - - - - - Returns a string that represents the current object. - - - A string that represents the current object. - - 2 - - - - Gets an ordered collection of selection rules that define what properties are included. - - - - - Gets an ordered collection of matching rules that determine which subject properties are matched with which - expectation properties. - - - - - Gets an ordered collection of assertion rules that determine how subject properties are compared for equality with - expectation properties. - - - - - Gets value indicating whether the equality check will include nested collections and complex types. - - - - - Gets value indicating how cyclic references should be handled. By default, it will throw an exception. - - - - - Defines additional overrides when used with - - - - - Allows overriding the way structural equality is applied to (nested) objects of tyoe - - - - - Allows overriding the way structural equality is applied to particular properties. - - - A predicate based on the of the subject that is used to identify the property for which the - override applies. - - - - - Gets a value indicating whether this step can handle the current subject and/or expectation. - - - - - Applies a step as part of the task to compare two objects for structural equality. - - - Should return true if the subject matches the expectation or if no additional assertions - have to be executed. Should return false otherwise. - - - May throw when preconditions are not met or if it detects mismatching data. - - - - - Indication of how cyclic references should be handled when validating equality of nested properties. - - - - - Cyclic references will be ignored. - - - - - Cyclic references will result in an exception. - - - - - Gets a value indicating whether this step can handle the current subject and/or expectation. - - - - - Applies a step as part of the task to compare two objects for structural equality. - - - Should return true if the subject matches the expectation or if no additional assertions - have to be executed. Should return false otherwise. - - - May throw when preconditions are not met or if it detects mismatching data. - - - - - Gets a value indicating whether this step can handle the current subject and/or expectation. - - - - - Applies a step as part of the task to compare two objects for structural equality. - - - Should return true if the subject matches the expectation or if no additional assertions - have to be executed. Should return false otherwise. - - - May throw when preconditions are not met or if it detects mismatching data. - - - - - Selection rule that removes a particular property from the structural comparison. - - - - - Adds or removes properties to/from the collection of subject properties that must be included while - comparing two objects for structural equality. - - - A collection of properties that was prepopulated by other selection rules. Can be empty. - - - The collection of properties after applying this rule. Can contain less or more than was passed in. - - - - - Returns a that represents this instance. - - - A that represents this instance. - - - - - Represents a rule that defines how to map the properties from the subject-under-test with the properties - on the expectation object. - - - - - Attempts to find a property on the expectation that should be compared with the - during a structural equality. - - - Whether or not a match is required or optional is up to the specific rule. If no match is found and this is not an issue, - simply return null. - - - The of the subject's property for which a match must be found. Can never - be null. - - - The expectation object for which a matching property must be returned. Can never be null. - - - The dotted path from the root object to the current property. Will never be null. - - - Returns the of the property with which to compare the subject with, or null - if no match was found. - - - - - Selection rule that includes a particular property in the structural comparison. - - - - - Adds or removes properties to/from the collection of subject properties that must be included while - comparing two objects for structural equality. - - - A collection of properties that was prepopulated by other selection rules. Can be empty. - - The collection of properties after applying this rule. Can contain less or more than was passed in. - - - - - Returns a that represents this instance. - - - A that represents this instance. - - - - - Provides information on a particular property during an assertion for structural equality of two object graphs. - - - - - Gets the property of the that was matched against the , - or null if is true. - - - - - Gets the value of the . - - - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - - - Zero or more objects to format using the placeholders in . - - - - - Gets a verification object associated with the current and . - - - - - Gets a value indicating whether the current context represents the root of the object graph. - - - - - Gets the value of the - - - - - Requires the expectation object to have a property with the exact same name. - - - - - Attempts to find a property on the expectation that should be compared with the - during a structural equality. - - - Whether or not a match is required or optional is up to the specific rule. If no match is found and this is not an issue, - simply return null. - - - The of the subject's property for which a match must be found. Can never - be null. - - - The expectation object for which a matching property must be returned. Can never be null. - - - The dotted path from the root object to the current property. Will never be null. - - - Returns the of the property with which to compare the subject with, or null - if no match was found. - - - - - Returns a string that represents the current object. - - - A string that represents the current object. - - 2 - - - - Provides methods for selecting one or more properties of an object and comparing them with another object. - - - - - Includes all properties of when comparing the subject with another object using . - - - - - Includes all properties of including those of the run-time type when comparing the subject - with another object using . - - - - - Includes all properties of when comparing the subject with another object using , - except those that the other object does not have. - - - - - Perform recursive property comparison of the child properties for objects that are of incompatible type. - - - Indication of how cyclic references in the nested properties should be handled. By default this will result in an - exception, but if is specified, cyclic references will just be ignored. - - - - - Includes all properties of when comparing the subject with another object using , - except those specified using a property expression. - - A single property expression to exclude. - Optional list of additional property expressions to exclude. - - - - Excludes the properties specified by the from the comparison. - - A single property expression to exclude. - Optional list of additional property expressions to exclude. - - - - Includes only those properties of when comparing the subject with another object using - that were specified using a property expression. - - A single property expression to include. - Optional list of additional property expressions to include. - - - - Asserts that the previously selected properties of have the same value as the equally named - properties of . - - The object to compare the current object with - - Property values are considered equal if, after converting them to the requested type, calling - returns true. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Gets a value indicating whether this step can handle the current subject and/or expectation. - - - - - Applies a step as part of the task to compare two objects for structural equality. - - - Should return true if the subject matches the expectation or if no additional assertions - have to be executed. Should return false otherwise. - - - May throw when preconditions are not met or if it detects mismatching data. - - - - - Gets the of the property that returned the current object, or - null if the current object represents the root object. - - - - - Gets the full path from the root object until the current property, separated by dots. - - - - - Gets a textual description of the current property based on the . - - - - - Gets the value of the - - - - - Gets the property of the that was matched against the , - or null if is true. - - - - - Gets the value of the . - - - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - - - Zero or more objects to format using the placeholders in . - - - - - Gets a value indicating whether the current context represents the root of the object graph. - - - - - Gets the compile-time type of the current object. If the current object is not the root object, then it returns the - same as the property does. - - - - - Gets the run-time type of the current object. - - - - - Gets a verification object associated with the current and . - - - - - Is responsible for validating the equality of one or more properties of a subject with another object. - - - - - Gets a value indicating whether this step can handle the current subject and/or expectation. - - - - - Applies a step as part of the task to compare two objects for structural equality. - - - Should return true if the subject matches the expectation or if no additional assertions - have to be executed. Should return false otherwise. - - - May throw when preconditions are not met or if it detects mismatching data. - - - - - Finds a property of the expectation with the exact same name, but doesn't require it. - - - - - Attempts to find a property on the expectation that should be compared with the - during a structural equality. - - - Whether or not a match is required or optional is up to the specific rule. If no match is found and this is not an issue, - simply return null. - - - The of the subject's property for which a match must be found. Can never - be null. - - - The expectation object for which a matching property must be returned. Can never be null. - - - The dotted path from the root object to the current property. Will never be null. - - - Returns the of the property with which to compare the subject with, or null - if no match was found. - - - - - Returns a string that represents the current object. - - - A string that represents the current object. - - 2 - - - - Extension methods on to allow for a more fluent way of specifying a . - - - Instead of
-
- TimeSpan.FromHours(12)
-
- you can write
-
- 12.Hours()
-
- Or even
-
- 12.Hours().And(30.Minutes()). -
- -
- - - Returns a based on a number of milliseconds. - - - - - Returns a based on a number of seconds. - - - - - Returns a based on a number of seconds, and add the specified - . - - - - - Returns a based on a number of minutes. - - - - - Returns a based on a number of minutes, and add the specified - . - - - - - Returns a based on a number of hours. - - - - - Returns a based on a number of hours, and add the specified - . - - - - - Returns a based on a number of days. - - - - - Returns a based on a number of days, and add the specified - . - - - - - Convenience method for chaining multiple calls to the methods provided by this class. - - - 23.Hours().And(59.Minutes()) - - - - - Extension methods for getting method and property selectors for a type. - - - - - Returns the types that are visible outside the specified . - - - - - Returns a method selector for the current . - - - - - Returns a method selector for the current . - - - - - Returns a property selector for the current . - - - - - Returns a property selector for the current . - - - - - Static class that allows for a 'fluent' selection of the types from an . - - - AllTypes.From(myAssembly)
- .ThatImplement<ISomeInterface>
- .Should()
- .BeDecoratedWith<SomeAttribute>() -
-
- - - Returns a for selecting the types that are visible outside the - specified . - - The assembly from which to select the types. - - - - Contains assertions for the objects returned by the parent . - - - - - Initializes a new instance of the class. - - The method to assert. - - - - Initializes a new instance of the class. - - The methods to assert. - - - - Asserts that the selected methods are virtual. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the selected methods are decorated with the specified . - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Gets the object which value is being asserted. - - - - - Allows for fluent selection of methods of a type through reflection. - - - - - Initializes a new instance of the class. - - The type from which to select methods. - - - - Initializes a new instance of the class. - - The types from which to select methods. - - - - Only select the methods that return the specified type - - - - - Only select the methods that are decorated with an attribute of the specified type. - - - - - The resulting objects. - - - - - Determines whether the specified method has a special name (like properties and events). - - - - - Returns an enumerator that iterates through the collection. - - - A that can be used to iterate through the collection. - - 1 - - - - Returns an enumerator that iterates through a collection. - - - An object that can be used to iterate through the collection. - - 2 - - - - Only select the methods that are public or internal. - - - - - Only select the methods without a return value - - - - - Contains assertions for the objects returned by the parent . - - - - - Initializes a new instance of the class, for a single . - - The property to assert. - - - - Initializes a new instance of the class, for a number of objects. - - The properties to assert. - - - - Asserts that the selected properties are virtual. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the selected methods are decorated with the specified . - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Gets the object which value is being asserted. - - - - - Allows for fluent selection of properties of a type through reflection. - - - - - Initializes a new instance of the class. - - The type from which to select properties. - - - - Initializes a new instance of the class. - - The types from which to select properties. - - - - Only select the properties that are decorated with an attribute of the specified type. - - - - - Only select the properties that return the specified type - - - - - The resulting objects. - - - - - Returns an enumerator that iterates through the collection. - - - A that can be used to iterate through the collection. - - 1 - - - - Returns an enumerator that iterates through a collection. - - - An object that can be used to iterate through the collection. - - 2 - - - - Only select the properties that have a public or internal getter. - - - - - Contains a number of methods to assert that a meets certain expectations. - - - - - Initializes a new instance of the class. - - - - - Asserts that the current type is equal to the specified type. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current type is equal to the specified type. - - The expected type - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Creates an error message in case the specifed type differs from the - type. - - - An empty if the two specified types are the same, or an error message that describes that - the two specified types are not the same. - - - - - Asserts that the current type is not equal to the specified type. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current type is not equal to the specified type. - - The unexpected type - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current is decorated with the specified . - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current is decorated with an attribute of type - that matches the specified . - - - The predicate that the attribute must match. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Gets the object which value is being asserted. - - - - - Allows for fluent filtering a list of types. - - - - - The resulting objects. - - - - - Determines whether a type is a subclass of another type, but NOT the same type. - - - - - Determines whether a type implements an interface (but is not the interface itself). - - - - - Determines whether a type is decorated with a particular attribute. - - - - - Determines whether the namespace of type is exactly . - - - - - Determines whether the namespace of type is starts with . - - - - - Returns an enumerator that iterates through the collection. - - - A that can be used to iterate through the collection. - - 1 - - - - Returns an enumerator that iterates through a collection. - - - An object that can be used to iterate through the collection. - - 2 - - - - Contains a number of methods to assert that all s in a - meet certain expectations. - - - - - Initializes a new instance of the class. - - - - - Asserts that the current is decorated with the specified . - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current is decorated with an attribute of type - that matches the specified . - - - The predicate that the attribute must match. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Gets the object which value is being asserted. - - - - - Contains a number of methods to assert that an is in the expected state. - - - - - Initializes a new instance of the class. - - - - - Asserts that the current equals the attribute. - - The expected attribute - - - - Asserts that the current equals the attribute. - - The expected attribute - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current does not equal the attribute, - using its implementation. - - The unexpected attribute - - - - Asserts that the current does not equal the attribute, - using its implementation. - - The unexpected attribute - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the is null. - - - - - Asserts that the is null. - - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Asserts that the is not null. - - - - - Asserts that the is not null. - - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Asserts that the current has the specified value. - - The expected value - - - - Asserts that the current has the specified value. - - The expected value - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Gets the object which value is being asserted. - - - - - Contains a number of methods to assert that an is in the expected state. - - - - - Initializes a new instance of the class. - - - - - Asserts that the current equals the document, - using its implementation. - - The expected document - - - - Asserts that the current equals the document, - using its implementation. - - The expected document - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current does not equal the document, - using its implementation. - - The unexpected document - - - - Asserts that the current does not equal the document, - using its implementation. - - The unexpected document - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the is null. - - - - - Asserts that the is null. - - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Asserts that the is not null. - - - - - Asserts that the is not null. - - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Asserts that the current has a root element with the specified - name. - - The name of the expected root element of the current document. - - - - Asserts that the current has a root element with the specified - name. - - The name of the expected root element of the current document. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the element of the current has a direct - child element with the specified name. - - - The name of the expected child element of the current document's Root element. - - - - - Asserts that the element of the current has a direct - child element with the specified name. - - - The name of the expected child element of the current document's Root element. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Gets the object which value is being asserted. - - - - - Contains a number of methods to assert that an is in the expected state. - - - - - Initializes a new instance of the class. - - - - - Asserts that the current equals the element. - - The expected element - - - - Asserts that the current equals the element. - - The expected element - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current does not equal the element, - using its implementation. - - The unexpected element - - - - Asserts that the current does not equal the element, - using its implementation. - - The unexpected element - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the is null. - - - - - Asserts that the is null. - - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Asserts that the is not null. - - - - - Asserts that the is not null. - - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Asserts that the current has an attribute with the specified - and . - - The name of the expected attribute - The value of the expected attribute - - - - Asserts that the current has an attribute with the specified - and . - - The name of the expected attribute - The value of the expected attribute - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current has a direct child element with the specified - name. - - The name of the expected child element - - - - Asserts that the current has a direct child element with the specified - name. - - The name of the expected child element - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Gets the object which value is being asserted. - - -
-
diff --git a/packages/FluentAssertions.2.0.1/lib/net45/FluentAssertions.dll b/packages/FluentAssertions.2.0.1/lib/net45/FluentAssertions.dll deleted file mode 100644 index f3fffee9..00000000 Binary files a/packages/FluentAssertions.2.0.1/lib/net45/FluentAssertions.dll and /dev/null differ diff --git a/packages/FluentAssertions.2.0.1/lib/net45/FluentAssertions.pdb b/packages/FluentAssertions.2.0.1/lib/net45/FluentAssertions.pdb deleted file mode 100644 index 22b88259..00000000 Binary files a/packages/FluentAssertions.2.0.1/lib/net45/FluentAssertions.pdb and /dev/null differ diff --git a/packages/FluentAssertions.2.0.1/lib/net45/FluentAssertions.xml b/packages/FluentAssertions.2.0.1/lib/net45/FluentAssertions.xml deleted file mode 100644 index 3c7b84b0..00000000 --- a/packages/FluentAssertions.2.0.1/lib/net45/FluentAssertions.xml +++ /dev/null @@ -1,5802 +0,0 @@ - - - - FluentAssertions - - - - - Initializes a new instance of the class. - - - - - Contains extension methods for custom assertions in unit tests. - - - - - Invokes the specified action on an subject so that you can chain it with any of the ShouldThrow or ShouldNotThrow - overloads. - - - - - Provides methods for asserting the execution time of a method or property. - - The object that exposes the method or property. - A reference to the method or property to measure the execution time of. - - Returns an object for asserting that the execution time matches certain conditions. - - - - - Provides methods for asserting the execution time of a method or property. - - A reference to the method or property to measure the execution time of. - - Returns an object for asserting that the execution time matches certain conditions. - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current . - - - - - Asserts that the throws an exception. - - A reference to the method or property. - - The type of the exception it should throw. - - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - Returns an object that allows asserting additional members of the thrown exception. - - - - - Asserts that the throws an exception. - - A reference to the method or property. - - The type of the exception it should throw. - - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - Returns an object that allows asserting additional members of the thrown exception. - - - - - Asserts that the does not throw a particular exception. - - The current method or property. - - The type of the exception it should not throw. Any other exceptions are ignored and will satisfy the assertion. - - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Asserts that the does not throw any exception at all. - - The current method or property. - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Forces enumerating a collection. Should be used to assert that a method that uses the - yield keyword throws a particular exception. - - - - - Forces enumerating a collection. Should be used to assert that a method that uses the - yield keyword throws a particular exception. - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current nullable . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current nullable . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current nullable . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current nullable . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current nullable . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current nullable . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current nullable . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current nullable . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current nullable . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current nullable . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current nullable . - - - - - Returns a object that can be used to assert the - current . - - - - - Returns a object that can be used to assert the - current . - - - - - Returns a object that can be used to assert the current . - - - - - - Returns a object that can be used to assert the methods returned by the - current . - - - - - - Returns a object that can be used to assert the - current . - - - - - - Returns a object that can be used to assert the properties returned by the - current . - - - - - - Asserts that the properties of an object matches those of another object. - - - - - Asserts that an object is equivalent to another object. - - - Objects are equivalent when both object graphs have equally named properties with the same value, - irrespective of the type of those objects. Two properties are also equal if one type can be converted to another and the result is equal. - The type of a collection property is ignored as long as the collection implements and all - items in the collection are structurally equal. - Notice that actual behavior is determined by the instance of the - class. - - - An optional formatted phrase as is supported by explaining why the - assertion is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that an object is equivalent to another object. - - - Objects are equivalent when both object graphs have equally named properties with the same value, - irrespective of the type of those objects. Two properties are also equal if one type can be converted to another and the result is equal. - The type of a collection property is ignored as long as the collection implements and all - items in the collection are structurally equal. - - - A reference to the configuration object that can be used - to influence the way the object graphs are compared. You can also provide an alternative instance of the - class. - - - An optional formatted phrase as is supported by explaining why the - assertion is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Safely casts the specified object to the type specified through . - - - Has been introduced to allow casting objects without breaking the fluent API. - - - - - - Contains a number of methods to assert that an is in the expected state. - - - - - Contains a number of methods to assert that a reference type object is in the expected state. - - - - - Asserts that the object is of the specified type . - - The expected type of the object. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the object is assignable to a variable of type . - - The type to which the object should be assignable. - The reason why the object should be assignable to the type. - The parameters used when formatting the . - An which can be used to chain assertions. - - - - Asserts that the is satisfied. - - The predicate which must be statisfied by the . - The reason why the predicate should be satisfied. - The parameters used when formatting the . - An which can be used to chain assertions. - - - - Asserts that the is satisfied. - - The predicate which must be statisfied by the . - The reason why the predicate should be satisfied. - The parameters used when formatting the . - An which can be used to chain assertions. - - - - Gets the object which value is being asserted. - - - - - Asserts that the number of items in the collection matches the supplied amount. - - The expected number of items in the collection. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the number of items in the collection matches a condition stated by the . - - A predicate that yields the number of items that is expected to be in the collection. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the collection does not contain any items. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the collection contains at least 1 item. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the collection does not contain any duplicate items. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the collection does not contain any null items. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Expects the current collection to contain all the same elements in the same order as the collection identified by - . Elements are compared using their . - - A params array with the expected elements. - - - - Expects the current collection to contain all the same elements in the same order as the collection identified by - . Elements are compared using their . - - An with the expected elements. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Expects the current collection not to contain all the same elements in the same order as the collection identified by - . Elements are compared using their . - - An with the elements that are not expected. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Expects the current collection to contain all elements of the collection identified by , - regardless of the order. Elements are compared using their . - - A params array with the expected elements. - - - - Expects the current collection to contain all elements of the collection identified by , - regardless of the order. Elements are compared using their . - - An with the expected elements. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Expects the current collection not to contain all elements of the collection identified by , - regardless of the order. Elements are compared using their . - - An with the unexpected elements. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current collection only contains items that are assignable to the type . - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Expects the current collection to contain the specified elements in any order. Elements are compared - using their implementation. - - An with the expected elements. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Expects the current collection to contain the specified elements in the exact same order. Elements are compared - using their implementation. - - An with the expected elements. - - - - Expects the current collection to contain the specified elements in the exact same order. Elements are compared - using their implementation. - - An with the expected elements. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Expects the current collection to have all elements in ascending order. Elements are compared - using their implementation. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Expects the current collection to have all elements in descending order. Elements are compared - using their implementation. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Expects the current collection to have all elements in the specified . - Elements are compared using their implementation. - - - - - Asserts the current collection does not have all elements in ascending order. Elements are compared - using their implementation. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts the current collection does not have all elements in descending order. Elements are compared - using their implementation. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts the current collection does not have all elements in ascending order. Elements are compared - using their implementation. - - - - - Asserts that the collection is a subset of the . - - An with the expected superset. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the collection is not a subset of the . - - An with the unexpected superset. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Assert that the current collection has the same number of elements as . - - The other collection with the same expected number of elements - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current collection has not been initialized yet with an actual collection. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current collection has been initialized with an actual collection. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current collection has the supplied at the - supplied . - - The index where the element is expected - The expected element - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current collection does not contain the supplied item. - - The element that is not expected to be in the collection - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the collection shares one or more items with the specified . - - The with the expected shared items. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the collection does not share any items with the specified . - - The to compare to. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Contains a number of methods to assert that an is in the expectation state. - - - - - Asserts that two collections contain the same items in the same order, where equality is determined using a - predicate. - - - The collection to compare the subject with. - - - A predicate the is used to determine whether two objects should be treated as equal. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the collection contains the specified item. - - The expectation item. - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Asserts that the collection contains some extra items in addition to the original items. - - An of expectation items. - Additional items that are expectation to be contained by the collection. - - - - Asserts that the collection contains at least one item that matches the predicate. - - A predicate to match the items in the collection against. - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Asserts that the collection only contains items that match a predicate. - - A predicate to match the items in the collection against. - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Asserts that the collection does not contain any items that match the predicate. - - A predicate to match the items in the collection against. - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Expects the current collection to contain only a single item matching the specified . - - The predictes that will be used to find the matching items. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Contains a number of methods to assert that an is in the expected state. - - - - - Asserts that the current dictionary has not been initialized yet with an actual dictionary. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current dictionary has been initialized with an actual dictionary. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the number of items in the dictionary matches the supplied amount. - - The expected number of items. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the number of items in the dictionary matches a condition stated by a predicate. - - The predicate which must be statisfied by the amount of items. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the dictionary does not contain any items. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the dictionary contains at least 1 item. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current dictionary contains all the same key-value pairs as the - specified dictionary. Keys and values are compared using - their implementation. - - The expected dictionary - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts the current dictionary not to contain all the same key-value pairs as the - specified dictionary. Keys and values are compared using - their implementation. - - The unexpected dictionary - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the dictionary contains the specified key. Keys are compared using - their implementation. - - The expected key - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the dictionary contains all of the specified keys. Keys are compared using - their implementation. - - The expected keys - - - - Asserts that the dictionary contains all of the specified keys. Keys are compared using - their implementation. - - The expected keys - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current dictionary does not contain the specified key. - Keys are compared using their implementation. - - The unexpected key - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the dictionary contains the specified value. Values are compared using - their implementation. - - The expected value - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the dictionary contains all of the specified values. Values are compared using - their implementation. - - The expected values - - - - Asserts that the dictionary contains all of the specified values. Values are compared using - their implementation. - - The expected values - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current dictionary does not contain the specified value. - Values are compared using their implementation. - - The unexpected value - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current dictionary contains the specified . - Keys and values are compared using their implementation. - - The expected - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current dictionary contains the specified for the supplied . Values are compared using their implementation. - - The key for which to validate the value - The value to validate - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current dictionary does not contain the specified . - Keys and values are compared using their implementation. - - The unexpected - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current dictionary does not contain the specified for the - supplied . Values are compared using their implementation. - - The key for which to validate the value - The value to validate - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Gets the object which value is being asserted. - - - - - Contains a number of methods to assert that an is in the expected state. - - - - - Asserts that the current collection contains the specified object. Elements are compared - using their implementation. - - An object, or of objects that are expected to be in the collection. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Gets a dotted path of property names representing the property expression. E.g. Parent.Child.Sibling.Name. - - - - - Finds the first index at which the does not match the - string anymore, including the exact casing. - - - - - Finds the first index at which the does not match the - string anymore, accounting for the specified . - - - - - Gets the quoted three characters at the specified index of a string, including the index itself. - - - - - Replaces all characters that might conflict with formatting placeholders and newlines with their escaped counterparts. - - - - - Joins a string with one or more other strings using a specified separator. - - - Any string that is empty (including the original string) is ignored. - - - - - Determines whether two objects refer to the same property. - - - - - Finds the property by a case-sensitive name. - - - Returns null if no such property exists. - - - - - Determines whether the specified method has been annotated with a specific attribute. - - - true if the specified method has attribute; otherwise, false. - - - - - Provides extension methods for monitoring and querying events. - - - - - Starts monitoring an object for its events. - - Thrown if eventSource is Null. - - - - Asserts that an object has raised a particular event at least once. - - The object exposing the event. - The name of the event that should have been raised. - - - You must call on the same object prior to this call so that Fluent Assertions can - subscribe for the events of the object. - - - - - Asserts that an object has raised a particular event at least once. - - The object exposing the event. - - The name of the event that should have been raised. - - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - You must call on the same object prior to this call so that Fluent Assertions can - subscribe for the events of the object. - - - - - Asserts that an object has not raised a particular event. - - The object exposing the event. - - The name of the event that should not be raised. - - - You must call on the same object prior to this call so that Fluent Assertions can - subscribe for the events of the object. - - - - - Asserts that an object has not raised a particular event. - - The object exposing the event. - - The name of the event that should not be raised. - - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - You must call on the same object prior to this call so that Fluent Assertions can - subscribe for the events of the object. - - - - - Asserts that an object has raised the event for a particular property. - - - You must call on the same object prior to this call so that Fluent Assertions can - subscribe for the events of the object. - - - - - Asserts that an object has raised the event for a particular property. - - The object exposing the event. - - A lambda expression referring to the property for which the property changed event should have been raised, or - null to refer to all properties. - - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - You must call on the same object prior to this call so that Fluent Assertions can - subscribe for the events of the object. - - - - - Asserts that an object has not raised the event for a particular property. - - - You must call on the same object prior to this call so that Fluent Assertions can - subscribe for the events of the object. - - - - - Asserts that an object has not raised the event for a particular property. - - The object exposing the event. - - A lambda expression referring to the property for which the property changed event should have been raised. - - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - You must call on the same object prior to this call so that Fluent Assertions can - subscribe for the events of the object. - - - - - Asserts that all occurences of the event originated from the . - - - - - Asserts that at least one occurrence of the event had an object matching a predicate. - - - - - Static methods that aid in generic event subscription - - - - - Generates an eventhandler for an event of type eventSignature that calls RegisterEvent on recorder - when invoked. - - - - - Finds the Return Type of a Delegate. - - - - - Returns an Array of Types that make up a delegate's parameter signature. - - - - - Returns an array of types appended with an EventRecorder reference at the beginning. - - - - - Returns T/F Dependent on a Type Being a Delegate. - - - - - Returns the MethodInfo for the Delegate's "Invoke" Method. - - - - - Records activity for a single event. - - - - - Records raised events for one event on one object - - - - - Store information about a raised event - - Parameters the event was raised with - - - - The object events are recorded from - - - - - The name of the event that's recorded - - - - - - The object events are recorded from - The name of the event that's recorded - - - - Enumerate raised events - - - - - Enumerate raised events - - - - - - Called by the auto-generated IL, to record information about a raised event. - - - - - The object events are recorded from - - - - - The name of the event that's recorded - - - - - Simple dictionary that uses a to the event source as the key. - This should ensure the Garbage Collector can still clean-up the event source object. - - - - - This class is used to store data about an intercepted event - - - - - Default constructor stores the parameters the event was raised with - - - - - Parameters for the event - - - - - Helper class for verifying a condition and/or throwing a test harness specific exception representing an assertion failure. - - - - - Gets an object that wraps and executes a conditional or unconditional verification. - - - - - Throws a generic exception in case no other test harness is detected. - - - - - Represents an abstraction of a particular test framework such as MSTest, nUnit, etc. - - - - - Throws a framework-specific exception to indicate a failing unit test. - - - - - Gets a value indicating whether the corresponding test framework is currently available. - - - - - Throws a framework-specific exception to indicate a failing unit test. - - - - - Gets a value indicating whether the corresponding test framework is currently available. - - - - - Throws a framework-specific exception to indicate a failing unit test. - - - - - Gets a value indicating whether the corresponding test framework is currently available. - - - - - Provides a fluent API for verifying an arbitrary condition. - - - - - Represents the phrase that can be used in as a placeholder for the reason of an assertion. - - - - - Initializes a new instance of the class. - - - - - Gets the name or identifier of the current subject, or a default value if the subject is not known. - - - - - Specify the condition that must be satisfied. - - If true the verification will be succesful. - - - - Specify a predicate that with the condition that must be satisfied. - - - - - Specify the reason why you expect the condition to be true. - - - A formatted phrase explaining why the condition should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Define the failure message for the verification. - - - If the contains the text "{reason}", this will be replaced by the reason as - defined through . Only 10 are supported in combination with - a {reason}. - - The format string that represents the failure message. - Optional arguments for the - - - - Indicates that every argument passed into is displayed on a separate line. - - - - - Gets or sets the name of the subject for the next verification. - - - - - Extension methods on to allow for a more fluent way of specifying a . - - - Instead of
-
- new DateTime(2011, 3, 10)
-
- you can write 3.March(2011)
-
- Or even
-
- 3.March(2011).At(09, 30) -
- -
- - - Returns a new value for the specified and - in the month January. - - - - - Returns a new value for the specified and - in the month February. - - - - - Returns a new value for the specified and - in the month March. - - - - - Returns a new value for the specified and - in the month April. - - - - - Returns a new value for the specified and - in the month May. - - - - - Returns a new value for the specified and - in the month June. - - - - - Returns a new value for the specified and - in the month July. - - - - - Returns a new value for the specified and - in the month August. - - - - - Returns a new value for the specified and - in the month September. - - - - - Returns a new value for the specified and - in the month October. - - - - - Returns a new value for the specified and - in the month November. - - - - - Returns a new value for the specified and - in the month December. - - - - - Returns a new value for the specified and . - - - - - Returns a new value for the specified and time with the specified - , and optionally . - - - - - Returns a new value that is the current before the - specified . - - - - - Returns a new value that is the current after the - specified . - - - - - Specialized value formatter that looks for static methods in the caller's assembly marked with the - . - - - - - Indicates whether the current can handle the specified . - - The value for which to create a . - - true if the current can handle the specified value; otherwise, false. - - - - - Returns a that represents this instance. - - The value for which to create a . - - - A collection of objects that - - - The level of nesting for the supplied value. This is used for indenting the format string for objects that have - no override. - - - A that represents this instance. - - - - - Indicates whether the current can handle the specified . - - The value for which to create a . - - true if the current can handle the specified value; otherwise, false. - - - - - Returns a that represents this instance. - - The value for which to create a . - - - A collection of objects that - - - The level of nesting for the supplied value. This is used for indenting the format string for objects that have - no override. - - - A that represents this instance. - - - - - Indicates whether the current can handle the specified . - - The value for which to create a . - - true if the current can handle the specified value; otherwise, false. - - - - - Returns a that represents this instance. - - The value for which to create a . - - - A collection of objects that - - - The level of nesting for the supplied value. This is used for indenting the format string for objects that have - no override. - - - A that represents this instance. - - - - - Determines whether this instance can handle the specified value. - - The value. - - true if this instance can handle the specified value; otherwise, false. - - - - - Returns a that represents this instance. - - The value for which to create a . - - - A collection of objects that - - - The level of nesting for the supplied value. This is used for indenting the format string for objects that have - no override. - - - A that represents this instance. - - - - - Indicates whether the current can handle the specified . - - The value for which to create a . - - true if the current can handle the specified value; otherwise, false. - - - - - Returns a that represents this instance. - - The value for which to create a . - - - A collection of objects that - - - The level of nesting for the supplied value. This is used for indenting the format string for objects that have - no override. - - - A that represents this instance. - - - - - Indicates whether the current can handle the specified . - - The value for which to create a . - - true if the current can handle the specified value; otherwise, false. - - - - - Returns a that represents this instance. - - The value for which to create a . - - - A collection of objects that - - - The level of nesting for the supplied value. This is used for indenting the format string for objects that have - no override. - - - A that represents this instance. - - - - - Provides services for formatting an object being used in an assertion in a human readable format. - - - - - A list of objects responsible for formatting the objects represented by placeholders. - - - - - Returns a human-readable representation of a particular object. - - The value for which to create a . - - The level of nesting for the supplied value. This is used for indenting the format string for objects that have - no override. - - - Indicates whether the formatter should use line breaks when the specific supports it. - - - A that represents this instance. - - - - - Indicates whether the current can handle the specified . - - The value for which to create a . - - true if the current can handle the specified value; otherwise, false. - - - - - Returns a that represents this instance. - - The value for which to create a . - - - A collection of objects that - - - The level of nesting for the supplied value. This is used for indenting the format string for objects that have - no override. - - - A that represents this instance. - - - - - Indicates whether the current can handle the specified . - - The value for which to create a . - - true if the current can handle the specified value; otherwise, false. - - - - - Returns a that represents this instance. - - The value for which to create a . - - - A collection of objects that - - - The level of nesting for the supplied value. This is used for indenting the format string for objects that have - no override. - - - A that represents this instance. - - - - - Indicates whether the current can handle the specified . - - The value for which to create a . - - true if the current can handle the specified value; otherwise, false. - - - - - Returns a that represents this instance. - - The value for which to create a . - - - A collection of objects that - - - The level of nesting for the supplied value. This is used for indenting the format string for objects that have - no override. - - - A that represents this instance. - - - - - Indicates whether the current can handle the specified . - - The value for which to create a . - - true if the current can handle the specified value; otherwise, false. - - - - - Returns a that represents this instance. - - The value for which to create a . - - - A collection of objects that - - - The level of nesting for the supplied value. This is used for indenting the format string for objects that have - no override. - - - A that represents this instance. - - - - - Indicates whether the current can handle the specified . - - The value for which to create a . - - true if the current can handle the specified value; otherwise, false. - - - - - Returns a that represents this instance. - - The value for which to create a . - - - A collection of objects that - - - The level of nesting for the supplied value. This is used for indenting the format string for objects that have - no override. - - - A that represents this instance. - - - - - Marks a static method as a kind of for a particular type. - - - - - Indicates whether the current can handle the specified . - - The value for which to create a . - - true if the current can handle the specified value; otherwise, false. - - - - - Returns a that represents this instance. - - The value for which to create a . - - - A collection of objects that - - - The level of nesting for the supplied value. This is used for indenting the format string for objects that have - no override. - - - A that represents this instance. - - - - - Returns a that represents this instance. - - The value for which to create a . - - - A collection of objects that - - - The level of nesting for the supplied value. This is used for indenting the format string for objects that have - no override. - - - A that represents this instance. - - - - - Indicates whether the current can handle the specified . - - The value for which to create a . - - true if the current can handle the specified value; otherwise, false. - - - - - Returns a that represents this instance. - - The value for which to create a . - - - A collection of objects that - - - The level of nesting for the supplied value. This is used for indenting the format string for objects that have - no override. - - - A that represents this instance. - - - - - Contains a number of extension methods for floating point . - - - - - Asserts a floating point value approximates another value as close as possible. - - The object that is being extended. - - The expected value to compare the actual value with. - - - The maximum amount of which the two values may differ. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts a floating point value approximates another value as close as possible. - - The object that is being extended. - - The expected value to compare the actual value with. - - - The maximum amount of which the two values may differ. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts a floating point value approximates another value as close as possible. - - The object that is being extended. - - The expected value to compare the actual value with. - - - The maximum amount of which the two values may differ. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts a floating point value approximates another value as close as possible. - - The object that is being extended. - - The expected value to compare the actual value with. - - - The maximum amount of which the two values may differ. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Contains a number of methods to assert that an is in the expected state. - - - - - Asserts that the subject is considered equal to another object according to the implementation of . - - - The object to pass to the subject's method. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the subject is not equal to another object according to its implementation of . - - - The object to pass to the subject's method. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the subject is less than another object according to its implementation of . - - - The object to pass to the subject's method. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the subject is less than or equal to another object according to its implementation of . - - - The object to pass to the subject's method. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the subject is greater than another object according to its implementation of . - - - The object to pass to the subject's method. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the subject is greater than or equal to another object according to its implementation of . - - - The object to pass to the subject's method. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a value is within a range. - - - Where the range is continuous or incremental depends on the actual type of the value. - - - The minimum valid value of the range. - - - The maximum valid value of the range. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a nullable numeric value is not null. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a nullable numeric value is null. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Gets the object which value is being asserted. - - - - - Contains a number of methods to assert that an is in the expected state. - - - - - Asserts that the integral number value is exactly the same as the value. - - The expected value. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the integral number value is exactly the same as the value. - - The expected value. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the integral number value is not the same as the value. - - The unexpected value. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the integral number value is not the same as the value. - - The unexpected value. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the numeric value is greater than or equal to zero. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the numeric value is less than zero. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the numeric value is less than the specified value. - - The value to compare the current numeric value with. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the numeric value is less than or equal to the specified value. - - The value to compare the current numeric value with. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the numeric value is greater than the specified value. - - The value to compare the current numeric value with. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the numeric value is greater than or equal to the specified value. - - The value to compare the current numeric value with. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a value is within a range. - - - Where the range is continuous or incremental depends on the actual type of the value. - - - The minimum valid value of the range. - - - The maximum valid value of the range. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a value is one of the specified . - - - The values that are valid. - - - - - Asserts that a value is one of the specified . - - - The values that are valid. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a nullable numeric value is not null. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a nullable numeric value is null. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Contains a number of methods to assert that a is in the expected state. - - - - - Asserts that the value is false. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the value is true. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the value is equal to the specified value. - - The expected value - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Gets the object which value is being asserted. - - - - - Defines the way compares the expected exception - message with the actual one. - - - - - The message must match exactly, including the casing of the characters. - - - - - The message must match except for the casing of the characters. - - - - - The message must start with the exact text, including the casing of the characters.. - - - - - The message must start with the text except for the casing of the characters. - - - - - The message must contain the exact text. - - - - - The message must contain the text except for the casing of the characters. - - - - - The message must match a wildcard pattern consisting of ordinary characters as well as * and ?. - - - - - Contains a number of methods to assert that a is in the expected state. - - - You can use the for a more fluent way of specifying a . - - - - - Asserts that the current is exactly equal to the value. - - The expected value - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current is not equal to the value. - - The unexpected value - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current is within the specified number of milliseconds (default = 20 ms) - from the specified value. - - - Use this assertion when, for example the database truncates datetimes to nearest 20ms. If you want to assert to the exact datetime, - use . - - - The expected time to compare the actual value with. - - - The maximum amount of milliseconds which the two values may differ. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current is before the specified value. - - The that the current value is expected to be before. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current is either on, or before the specified value. - - The that the current value is expected to be on or before. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current is after the specified value. - - The that the current value is expected to be after. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current is either on, or after the specified value. - - The that the current value is expected to be on or after. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current has the year. - - The expected year of the current value. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current has the month. - - The expected month of the current value. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current has the day. - - The expected day of the current value. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current has the hour. - - The expected hour of the current value. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current has the minute. - - The expected minutes of the current value. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current has the second. - - The expected seconds of the current value. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Returns a object that can be used to assert that the current - exceeds the specified compared to another . - - - The amount of time that the current should exceed compared to another . - - - - - Returns a object that can be used to assert that the current - is equal to or exceeds the specified compared to another . - - - The amount of time that the current should be equal or exceed compared to - another . - - - - - Returns a object that can be used to assert that the current - differs exactly the specified compared to another . - - - The amount of time that the current should differ exactly compared to another . - - - - - Returns a object that can be used to assert that the current - is within the specified compared to another . - - - The amount of time that the current should be within another . - - - - - Returns a object that can be used to assert that the current - differs at maximum the specified compared to another . - - - The maximum amount of time that the current should differ compared to another . - - - - - Gets the object which value is being asserted. - - - - - Contains a number of methods to assert that a is in the correct state. - - - - - Asserts that the is . - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the is not . - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the is equal to the GUID. - - The expected value to compare the actual value with. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the is equal to the GUID. - - The expected value to compare the actual value with. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the is not equal to the GUID. - - The unexpected value to compare the actual value with. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Gets the object which value is being asserted. - - - - - Contains a number of methods to assert that a nullable is in the expected state. - - - - - Asserts that a nullable boolean value is not null. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a nullable boolean value is null. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the value is equal to the specified value. - - The expected value - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Contains a number of methods to assert that a nullable is in the expected state. - - - You can use the for a more fluent way of specifying a . - - - - - Asserts that a nullable value is not null. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a nullable value is null. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the value is equal to the specified value. - - The expected value - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Contains a number of methods to assert that a nullable is in the expected state. - - - - - Asserts that a nullable value is not null. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a nullable value is null. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the value is equal to the specified value. - - The expected value - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Contains a number of methods to assert that a nullable is in the expected state. - - - You can use the for a more fluent way of specifying a . - - - - - Contains a number of methods to assert that a nullable is in the expected state. - - - - - Asserts that the time difference of the current is greater than zero. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the time difference of the current is less than zero. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the time difference of the current is equal to the - specified time. - - The expected time difference - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the time difference of the current is not equal to the - specified time. - - The unexpected time difference - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the time difference of the current is less than the - specified time. - - The time difference to which the current value will be compared - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the time difference of the current is less than or equal to the - specified time. - - The time difference to which the current value will be compared - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the time difference of the current is greater than the - specified time. - - The time difference to which the current value will be compared - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the time difference of the current is greater than or equal to the - specified time. - - The time difference to which the current value will be compared - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Gets the object which value is being asserted. - - - - - Asserts that a nullable value is not null. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a nullable value is null. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Contains a number of methods to assert that an is in the expected state. - - - - - Asserts that an object equals another object using its implementation. - - The expected value - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that an object does not equal another object using it's method. - - The unexpected value - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Asserts that an object reference refers to the exact same object as another object reference. - - The expected object - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Asserts that an object reference refers to a different object than another object reference refers to. - - The unexpected object - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Asserts that the object is null. - - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Asserts that the object is not null. - - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Asserts that an object can be serialized and deserialized using the binary serializer and that it stills retains - the values of all properties. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that an object can be serialized and deserialized using the XML serializer and that it stills retains - the values of all properties. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Contains a number of methods to assert that a is in the expected state. - - - - - Initializes a new instance of the class. - - - - - Asserts that a string is exactly the same as another string, including the casing and any leading or trailing whitespace. - - The expected string. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the is one of the specified . - - - The values that are valid. - - - - - Asserts that the is one of the specified . - - - The values that are valid. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string is exactly the same as another string, including any leading or trailing whitespace, with - the exception of the casing. - - - The string that the subject is expected to be equivalent to. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string is not exactly the same as the specified , - including any leading or trailing whitespace, with the exception of the casing. - - The string that the subject is not expected to be equivalent to. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string matches a wildcard pattern. - - - The wildcard pattern with which the subject is matched, where * and ? have special meanings. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string does not match a wildcard pattern. - - - The wildcard pattern with which the subject is matched, where * and ? have special meanings. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string matches a wildcard pattern. - - - The wildcard pattern with which the subject is matched, where * and ? have special meanings. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string does not match a wildcard pattern. - - - The wildcard pattern with which the subject is matched, where * and ? have special meanings. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string starts exactly with the specified value, - including the casing and any leading or trailing whitespace. - - The string that the subject is expected to start with. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string starts with the specified , - including any leading or trailing whitespace, with the exception of the casing. - - The string that the subject is expected to start with. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string ends exactly with the specified , - including the casing and any leading or trailing whitespace. - - The string that the subject is expected to end with. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string ends with the specified , - including any leading or trailing whitespace, with the exception of the casing. - - The string that the subject is expected to end with. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string contains another (fragment of a) string. - - - The (fragement of a) string that the current string should contain. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string contains the specified , - including any leading or trailing whitespace, with the exception of the casing. - - The string that the subject is expected to contain. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string does not contain another (fragment of a) string. - - - The (fragement of a) string that the current string should not contain. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string does not contain the specified string, - including any leading or trailing whitespace, with the exception of the casing. - - The string that the subject is not expected to contain. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string is . - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string is not . - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string has the specified length. - - The expected length of the string - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string is null. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string is not null. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string is neither null nor . - - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Asserts that a string is either null or . - - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Asserts that a string is neither null nor nor white space - - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Asserts that a string is either null or or white space - - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Gets the object which value is being asserted. - - - - - Dedicated class for comparing two strings and generating consistent error messages. - - - - - Gets or sets a value indicating whether the subject should not match the pattern. - - - - - Gets or sets a value indicating whether the matching process should ignore any casing difference. - - - - - Contains a number of methods to assert that two objects differ in the expected way. - - - You can use the and for a more fluent - way of specifying a or a . - - - - - Asserts that a occurs a specified amount of time before another . - - - The to compare the subject with. - - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Asserts that a occurs a specified amount of time after another . - - - The to compare the subject with. - - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Provides the logic and the display text for a . - - - - - Contains a number of methods to assert that an yields the expected result. - - - - - Asserts that the current throws an exception of type . - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current does not throw an exception of type . - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current does not throw any exception. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Gets the that is being asserted. - - - - - Contains a number of methods to assert that an is in the correct state. - - - - - Asserts that the thrown exception has a message that matches - depending on the specified matching mode. - - - The expected message of the exception. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the thrown exception has a message that matches - depending on the specified matching mode. - - - The expected message of the exception. - - - Determines how the expected message is compared with the actual message. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the thrown exception contains an inner exception of type . - - The expected type of the inner exception. - - - - Asserts that the thrown exception contains an inner exception of type . - - The expected type of the inner exception. - The reason why the inner exception should be of the supplied type. - The parameters used when formatting the . - - - - Asserts that the thrown exception contains an inner exception with the . - - The expected message of the inner exception. - Determines how the expected message is compared with the actual message. - - - - Asserts that the thrown exception contains an inner exception with the . - - The expected message of the inner exception. - - The reason why the message of the inner exception should match . - - The parameters used when formatting the . - - - - Asserts that the thrown exception contains an inner exception with the . - - The expected message of the inner exception. - Determines how the expected message is compared with the actual message. - - The reason why the message of the inner exception should match . - - The parameters used when formatting the . - - - - Asserts that the exception matches a particular condition. - - - The condition that the exception must match. - - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Gets the exception object of the exception thrown. - - - - - Provides methods for asserting that the execution time of an satifies certain conditions. - - - - - Initializes a new instance of the class. - - The action of which the execution time must be asserted. - - - - Asserts that the execution time of the operation does not exceed a specified amount of time. - - - The maximum allowed duration. - - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Provides methods for asserting that the execution time of an object member satifies certain conditions. - - - - - - Initializes a new instance of the class. - - The object that exposes the method or property. - A reference to the method or property to measure the execution time of. - - - - Selection rule that adds all public properties of the subject as far as they are defined on the declared - type. - - - - - Represents a rule that defines which properties of the subject-under-test to include while comparing - two objects for structural equality. - - - - - Adds or removes properties to/from the collection of subject properties that must be included while - comparing two objects for structural equality. - - - A collection of properties that was prepopulated by other selection rules. Can be empty. - - Type info about the subject. - - - The collection of properties after applying this rule. Can contain less or more than was passed in. - - - - - Adds or removes properties to/from the collection of subject properties that must be included while - comparing two objects for structural equality. - - - A collection of properties that was prepopulated by other selection rules. Can be empty. - - The collection of properties after applying this rule. Can contain less or more than was passed in. - - - - - Returns a string that represents the current object. - - - A string that represents the current object. - - 2 - - - - Selection rule that adds all public properties of the subject based on its run-time type rather than its - declared type. - - - - - Adds or removes properties to/from the collection of subject properties that must be included while - comparing two objects for structural equality. - - - A collection of properties that was prepopulated by other selection rules. Can be empty. - - The collection of properties after applying this rule. Can contain less or more than was passed in. - - - - - Returns a string that represents the current object. - - - A string that represents the current object. - - 2 - - - - Gets a value indicating whether this step can handle the current subject and/or expectation. - - - - - Applies a step as part of the task to compare two objects for structural equality. - - - Should return true if the subject matches the expectation or if no additional assertions - have to be executed. Should return false otherwise. - - - May throw when preconditions are not met or if it detects mismatching data. - - - - - Gets a value indicating whether this step can handle the current subject and/or expectation. - - - - - Applies a step as part of the task to compare two objects for structural equality. - - - Should return true if the subject matches the expectation or if no additional assertions - have to be executed. Should return false otherwise. - - - May throw when preconditions are not met or if it detects mismatching data. - - - - - General purpose implementation of that uses a predicate to determine whether - this rule applies to a particular property and executes an action to assert equality. - - The type of the subject. - - - - Defines how a subject's property is compared for equality with the same property of the expectation. - - - Provides details about the subject's property. - - - The value of the subject's property. - - - The value of a property on expectation object that was identified - - - Returns true if the rule was applied correctly and the assertion didn't cause any exceptions. - Returns false if this rule doesn't support the subject's type. - Throws if the rule did support the data type but assertion fails. - - - - - Defines how a subject's property is compared for equality with the same property of the expectation. - - - Provides details about the subject's property. - - - The value of the subject's property. - - - The value of a property on expectation object that was identified - - - Returns true if the rule was applied correctly and the assertion didn't cause any exceptions. - Returns false if this rule doesn't support the subject's type. - Throws if the rule did support the data type but assertion fails. - - - - - Provides the required information for executing an equality assertion between a subject and an expectation. - - The type of the subject. - - - - Gets the of the property that returned the current object, or null if the current - object represents the root object. - - - - - Gets the value of the - - - - - Gets the value of the expectation object that was matched with the subject using a . - - - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - - - Zero or more objects to format using the placeholders in . - - - - - Selection rule that removes a particular property from the structural comparison based on a predicate. - - - - - Adds or removes properties to/from the collection of subject properties that must be included while - comparing two objects for structural equality. - - - A collection of properties that was prepopulated by other selection rules. Can be empty. - - The collection of properties after applying this rule. Can contain less or more than was passed in. - - - - - Returns a string that represents the current object. - - - A string that represents the current object. - - 2 - - - - Provides details about the subject's root or nested property. - - - - - Gets the of the property that returned the current object, or null if the current - object represents the root object. - - - - - Gets the full path from the root object until the current object separated by dots. - - - - - Gets a display-friendly representation of the . - - - - - Gets the compile-time type of the current object. If the current object is not the root object, then it returns the - same as the property does. - - - - - Gets the run-time type of the current object. - - - - - Represents a selection context of a nested property - - - - - Gets the of the property that returned the current object, or - null if the current object represents the root object. - - - - - Gets the full path from the root object until the current property, separated by dots. - - - - - Gets a textual description of the current property based on the . - - - - - Gets the compile-time type of the current object. If the current object is not the root object, then it returns the - same as the property does. - - - - - Gets the run-time type of the current object. - - - - - Is responsible for the exact run-time behavior of a structural equality comparison. - - The type of the subject. - - - - Provides the run-time details of the class. - - - - - Gets an ordered collection of selection rules that define what properties are included. - - - - - Gets an ordered collection of matching rules that determine which subject properties are matched with which - expectation properties. - - - - - Gets an ordered collection of assertion rules that determine how subject properties are compared for equality with - expectation properties. - - - - - Gets or sets a value indicating whether or not the assertion must perform a deep comparison. - - - - - Gets a configuration that compares all declared properties of the subject with equally named properties of the expectation, - and includes the entire object graph. The names of the properties between the subject and expectation must match. - - - - - Gets a configuration that by default doesn't include any of the subject's properties and doesn't consider any nested objects - or collections. - - - - - Adds all public properties of the subject as far as they are defined on the declared type. - - - - - Adds all public properties of the subject based on its run-time type rather than its declared type. - - - - - Tries to match the properties of the subject with equally named properties on the expectation. Ignores those - properties that don't exist on the expectation. - - - - - Requires the expectation to have properties which are equally named to properties on the subject. - - - - - - Excludes the specified (nested) property from the structural equality check. - - - - - Excludes a (nested) property based on a predicate from the structural equality check. - - - - - Includes the specified property in the equality check. - - - This overrides the default behavior of including all declared properties. - - - - - The assertion to execute when the predicate is met. - - - - - Causes the structural equality check to include nested collections and complex types. - - - - - Causes the structural equality check to ignore any cyclic references. - - - By default, cyclic references within the object graph will cause an exception to be thrown. - - - - - Clears all selection rules, including those that were added by default. - - - - - Clears all matching rules, including those that were added by default. - - - - - Adds a selection rule to the ones allready added by default and which is evaluated after all existing rules. - - - - - Adds a matching rule to the ones allready added by default and which is evaluated before all existing rules. - - - - - Adds a matching rule to the ones allready added by default and which is evaluated before all existing rules - - - - - Returns a string that represents the current object. - - - A string that represents the current object. - - 2 - - - - Gets an ordered collection of selection rules that define what properties are included. - - - - - Gets an ordered collection of matching rules that determine which subject properties are matched with which - expectation properties. - - - - - Gets an ordered collection of assertion rules that determine how subject properties are compared for equality with - expectation properties. - - - - - Gets value indicating whether the equality check will include nested collections and complex types. - - - - - Gets value indicating how cyclic references should be handled. By default, it will throw an exception. - - - - - Defines additional overrides when used with - - - - - Allows overriding the way structural equality is applied to (nested) objects of tyoe - - - - - Allows overriding the way structural equality is applied to particular properties. - - - A predicate based on the of the subject that is used to identify the property for which the - override applies. - - - - - Gets a value indicating whether this step can handle the current subject and/or expectation. - - - - - Applies a step as part of the task to compare two objects for structural equality. - - - Should return true if the subject matches the expectation or if no additional assertions - have to be executed. Should return false otherwise. - - - May throw when preconditions are not met or if it detects mismatching data. - - - - - Indication of how cyclic references should be handled when validating equality of nested properties. - - - - - Cyclic references will be ignored. - - - - - Cyclic references will result in an exception. - - - - - Gets a value indicating whether this step can handle the current subject and/or expectation. - - - - - Applies a step as part of the task to compare two objects for structural equality. - - - Should return true if the subject matches the expectation or if no additional assertions - have to be executed. Should return false otherwise. - - - May throw when preconditions are not met or if it detects mismatching data. - - - - - Gets a value indicating whether this step can handle the current subject and/or expectation. - - - - - Applies a step as part of the task to compare two objects for structural equality. - - - Should return true if the subject matches the expectation or if no additional assertions - have to be executed. Should return false otherwise. - - - May throw when preconditions are not met or if it detects mismatching data. - - - - - Selection rule that removes a particular property from the structural comparison. - - - - - Adds or removes properties to/from the collection of subject properties that must be included while - comparing two objects for structural equality. - - - A collection of properties that was prepopulated by other selection rules. Can be empty. - - - The collection of properties after applying this rule. Can contain less or more than was passed in. - - - - - Returns a that represents this instance. - - - A that represents this instance. - - - - - Represents a rule that defines how to map the properties from the subject-under-test with the properties - on the expectation object. - - - - - Attempts to find a property on the expectation that should be compared with the - during a structural equality. - - - Whether or not a match is required or optional is up to the specific rule. If no match is found and this is not an issue, - simply return null. - - - The of the subject's property for which a match must be found. Can never - be null. - - - The expectation object for which a matching property must be returned. Can never be null. - - - The dotted path from the root object to the current property. Will never be null. - - - Returns the of the property with which to compare the subject with, or null - if no match was found. - - - - - Selection rule that includes a particular property in the structural comparison. - - - - - Adds or removes properties to/from the collection of subject properties that must be included while - comparing two objects for structural equality. - - - A collection of properties that was prepopulated by other selection rules. Can be empty. - - The collection of properties after applying this rule. Can contain less or more than was passed in. - - - - - Returns a that represents this instance. - - - A that represents this instance. - - - - - Provides information on a particular property during an assertion for structural equality of two object graphs. - - - - - Gets the property of the that was matched against the , - or null if is true. - - - - - Gets the value of the . - - - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - - - Zero or more objects to format using the placeholders in . - - - - - Gets a verification object associated with the current and . - - - - - Gets a value indicating whether the current context represents the root of the object graph. - - - - - Gets the value of the - - - - - Requires the expectation object to have a property with the exact same name. - - - - - Attempts to find a property on the expectation that should be compared with the - during a structural equality. - - - Whether or not a match is required or optional is up to the specific rule. If no match is found and this is not an issue, - simply return null. - - - The of the subject's property for which a match must be found. Can never - be null. - - - The expectation object for which a matching property must be returned. Can never be null. - - - The dotted path from the root object to the current property. Will never be null. - - - Returns the of the property with which to compare the subject with, or null - if no match was found. - - - - - Returns a string that represents the current object. - - - A string that represents the current object. - - 2 - - - - Provides methods for selecting one or more properties of an object and comparing them with another object. - - - - - Includes all properties of when comparing the subject with another object using . - - - - - Includes all properties of including those of the run-time type when comparing the subject - with another object using . - - - - - Includes all properties of when comparing the subject with another object using , - except those that the other object does not have. - - - - - Perform recursive property comparison of the child properties for objects that are of incompatible type. - - - Indication of how cyclic references in the nested properties should be handled. By default this will result in an - exception, but if is specified, cyclic references will just be ignored. - - - - - Includes all properties of when comparing the subject with another object using , - except those specified using a property expression. - - A single property expression to exclude. - Optional list of additional property expressions to exclude. - - - - Excludes the properties specified by the from the comparison. - - A single property expression to exclude. - Optional list of additional property expressions to exclude. - - - - Includes only those properties of when comparing the subject with another object using - that were specified using a property expression. - - A single property expression to include. - Optional list of additional property expressions to include. - - - - Asserts that the previously selected properties of have the same value as the equally named - properties of . - - The object to compare the current object with - - Property values are considered equal if, after converting them to the requested type, calling - returns true. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Gets a value indicating whether this step can handle the current subject and/or expectation. - - - - - Applies a step as part of the task to compare two objects for structural equality. - - - Should return true if the subject matches the expectation or if no additional assertions - have to be executed. Should return false otherwise. - - - May throw when preconditions are not met or if it detects mismatching data. - - - - - Gets the of the property that returned the current object, or - null if the current object represents the root object. - - - - - Gets the full path from the root object until the current property, separated by dots. - - - - - Gets a textual description of the current property based on the . - - - - - Gets the value of the - - - - - Gets the property of the that was matched against the , - or null if is true. - - - - - Gets the value of the . - - - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - - - Zero or more objects to format using the placeholders in . - - - - - Gets a value indicating whether the current context represents the root of the object graph. - - - - - Gets the compile-time type of the current object. If the current object is not the root object, then it returns the - same as the property does. - - - - - Gets the run-time type of the current object. - - - - - Gets a verification object associated with the current and . - - - - - Is responsible for validating the equality of one or more properties of a subject with another object. - - - - - Gets a value indicating whether this step can handle the current subject and/or expectation. - - - - - Applies a step as part of the task to compare two objects for structural equality. - - - Should return true if the subject matches the expectation or if no additional assertions - have to be executed. Should return false otherwise. - - - May throw when preconditions are not met or if it detects mismatching data. - - - - - Finds a property of the expectation with the exact same name, but doesn't require it. - - - - - Attempts to find a property on the expectation that should be compared with the - during a structural equality. - - - Whether or not a match is required or optional is up to the specific rule. If no match is found and this is not an issue, - simply return null. - - - The of the subject's property for which a match must be found. Can never - be null. - - - The expectation object for which a matching property must be returned. Can never be null. - - - The dotted path from the root object to the current property. Will never be null. - - - Returns the of the property with which to compare the subject with, or null - if no match was found. - - - - - Returns a string that represents the current object. - - - A string that represents the current object. - - 2 - - - - Extension methods on to allow for a more fluent way of specifying a . - - - Instead of
-
- TimeSpan.FromHours(12)
-
- you can write
-
- 12.Hours()
-
- Or even
-
- 12.Hours().And(30.Minutes()). -
- -
- - - Returns a based on a number of milliseconds. - - - - - Returns a based on a number of seconds. - - - - - Returns a based on a number of seconds, and add the specified - . - - - - - Returns a based on a number of minutes. - - - - - Returns a based on a number of minutes, and add the specified - . - - - - - Returns a based on a number of hours. - - - - - Returns a based on a number of hours, and add the specified - . - - - - - Returns a based on a number of days. - - - - - Returns a based on a number of days, and add the specified - . - - - - - Convenience method for chaining multiple calls to the methods provided by this class. - - - 23.Hours().And(59.Minutes()) - - - - - Extension methods for getting method and property selectors for a type. - - - - - Returns the types that are visible outside the specified . - - - - - Returns a method selector for the current . - - - - - Returns a method selector for the current . - - - - - Returns a property selector for the current . - - - - - Returns a property selector for the current . - - - - - Static class that allows for a 'fluent' selection of the types from an . - - - AllTypes.From(myAssembly)
- .ThatImplement<ISomeInterface>
- .Should()
- .BeDecoratedWith<SomeAttribute>() -
-
- - - Returns a for selecting the types that are visible outside the - specified . - - The assembly from which to select the types. - - - - Contains assertions for the objects returned by the parent . - - - - - Initializes a new instance of the class. - - The method to assert. - - - - Initializes a new instance of the class. - - The methods to assert. - - - - Asserts that the selected methods are virtual. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the selected methods are decorated with the specified . - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Gets the object which value is being asserted. - - - - - Allows for fluent selection of methods of a type through reflection. - - - - - Initializes a new instance of the class. - - The type from which to select methods. - - - - Initializes a new instance of the class. - - The types from which to select methods. - - - - Only select the methods that return the specified type - - - - - Only select the methods that are decorated with an attribute of the specified type. - - - - - The resulting objects. - - - - - Determines whether the specified method has a special name (like properties and events). - - - - - Returns an enumerator that iterates through the collection. - - - A that can be used to iterate through the collection. - - 1 - - - - Returns an enumerator that iterates through a collection. - - - An object that can be used to iterate through the collection. - - 2 - - - - Only select the methods that are public or internal. - - - - - Only select the methods without a return value - - - - - Contains assertions for the objects returned by the parent . - - - - - Initializes a new instance of the class, for a single . - - The property to assert. - - - - Initializes a new instance of the class, for a number of objects. - - The properties to assert. - - - - Asserts that the selected properties are virtual. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the selected methods are decorated with the specified . - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Gets the object which value is being asserted. - - - - - Allows for fluent selection of properties of a type through reflection. - - - - - Initializes a new instance of the class. - - The type from which to select properties. - - - - Initializes a new instance of the class. - - The types from which to select properties. - - - - Only select the properties that are decorated with an attribute of the specified type. - - - - - Only select the properties that return the specified type - - - - - The resulting objects. - - - - - Returns an enumerator that iterates through the collection. - - - A that can be used to iterate through the collection. - - 1 - - - - Returns an enumerator that iterates through a collection. - - - An object that can be used to iterate through the collection. - - 2 - - - - Only select the properties that have a public or internal getter. - - - - - Contains a number of methods to assert that a meets certain expectations. - - - - - Initializes a new instance of the class. - - - - - Asserts that the current type is equal to the specified type. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current type is equal to the specified type. - - The expected type - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Creates an error message in case the specifed type differs from the - type. - - - An empty if the two specified types are the same, or an error message that describes that - the two specified types are not the same. - - - - - Asserts that the current type is not equal to the specified type. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current type is not equal to the specified type. - - The unexpected type - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current is decorated with the specified . - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current is decorated with an attribute of type - that matches the specified . - - - The predicate that the attribute must match. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Gets the object which value is being asserted. - - - - - Allows for fluent filtering a list of types. - - - - - The resulting objects. - - - - - Determines whether a type is a subclass of another type, but NOT the same type. - - - - - Determines whether a type implements an interface (but is not the interface itself). - - - - - Determines whether a type is decorated with a particular attribute. - - - - - Determines whether the namespace of type is exactly . - - - - - Determines whether the namespace of type is starts with . - - - - - Returns an enumerator that iterates through the collection. - - - A that can be used to iterate through the collection. - - 1 - - - - Returns an enumerator that iterates through a collection. - - - An object that can be used to iterate through the collection. - - 2 - - - - Contains a number of methods to assert that all s in a - meet certain expectations. - - - - - Initializes a new instance of the class. - - - - - Asserts that the current is decorated with the specified . - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current is decorated with an attribute of type - that matches the specified . - - - The predicate that the attribute must match. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Gets the object which value is being asserted. - - - - - Contains a number of methods to assert that an is in the expected state. - - - - - Initializes a new instance of the class. - - - - - Asserts that the current equals the attribute. - - The expected attribute - - - - Asserts that the current equals the attribute. - - The expected attribute - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current does not equal the attribute, - using its implementation. - - The unexpected attribute - - - - Asserts that the current does not equal the attribute, - using its implementation. - - The unexpected attribute - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the is null. - - - - - Asserts that the is null. - - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Asserts that the is not null. - - - - - Asserts that the is not null. - - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Asserts that the current has the specified value. - - The expected value - - - - Asserts that the current has the specified value. - - The expected value - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Gets the object which value is being asserted. - - - - - Contains a number of methods to assert that an is in the expected state. - - - - - Initializes a new instance of the class. - - - - - Asserts that the current equals the document, - using its implementation. - - The expected document - - - - Asserts that the current equals the document, - using its implementation. - - The expected document - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current does not equal the document, - using its implementation. - - The unexpected document - - - - Asserts that the current does not equal the document, - using its implementation. - - The unexpected document - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the is null. - - - - - Asserts that the is null. - - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Asserts that the is not null. - - - - - Asserts that the is not null. - - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Asserts that the current has a root element with the specified - name. - - The name of the expected root element of the current document. - - - - Asserts that the current has a root element with the specified - name. - - The name of the expected root element of the current document. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the element of the current has a direct - child element with the specified name. - - - The name of the expected child element of the current document's Root element. - - - - - Asserts that the element of the current has a direct - child element with the specified name. - - - The name of the expected child element of the current document's Root element. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Gets the object which value is being asserted. - - - - - Contains a number of methods to assert that an is in the expected state. - - - - - Initializes a new instance of the class. - - - - - Asserts that the current equals the element. - - The expected element - - - - Asserts that the current equals the element. - - The expected element - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current does not equal the element, - using its implementation. - - The unexpected element - - - - Asserts that the current does not equal the element, - using its implementation. - - The unexpected element - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the is null. - - - - - Asserts that the is null. - - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Asserts that the is not null. - - - - - Asserts that the is not null. - - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Asserts that the current has an attribute with the specified - and . - - The name of the expected attribute - The value of the expected attribute - - - - Asserts that the current has an attribute with the specified - and . - - The name of the expected attribute - The value of the expected attribute - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current has a direct child element with the specified - name. - - The name of the expected child element - - - - Asserts that the current has a direct child element with the specified - name. - - The name of the expected child element - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Gets the object which value is being asserted. - - - - - Contains a number of methods to assert that an asynchronous method yields the expected result. - - - - - Asserts that the current throws an exception of type . - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Gets the that is being asserted. - - -
-
diff --git a/packages/FluentAssertions.2.0.1/lib/sl4-windowsphone71/FluentAssertions.WindowsPhone.dll b/packages/FluentAssertions.2.0.1/lib/sl4-windowsphone71/FluentAssertions.WindowsPhone.dll deleted file mode 100644 index 7457312c..00000000 Binary files a/packages/FluentAssertions.2.0.1/lib/sl4-windowsphone71/FluentAssertions.WindowsPhone.dll and /dev/null differ diff --git a/packages/FluentAssertions.2.0.1/lib/sl4-windowsphone71/FluentAssertions.WindowsPhone.pdb b/packages/FluentAssertions.2.0.1/lib/sl4-windowsphone71/FluentAssertions.WindowsPhone.pdb deleted file mode 100644 index 8fcb6c12..00000000 Binary files a/packages/FluentAssertions.2.0.1/lib/sl4-windowsphone71/FluentAssertions.WindowsPhone.pdb and /dev/null differ diff --git a/packages/FluentAssertions.2.0.1/lib/sl4-windowsphone71/FluentAssertions.WindowsPhone.xml b/packages/FluentAssertions.2.0.1/lib/sl4-windowsphone71/FluentAssertions.WindowsPhone.xml deleted file mode 100644 index fd61bb62..00000000 --- a/packages/FluentAssertions.2.0.1/lib/sl4-windowsphone71/FluentAssertions.WindowsPhone.xml +++ /dev/null @@ -1,5510 +0,0 @@ - - - - FluentAssertions.WindowsPhone - - - - - Initializes a new instance of the class. - - - - - Contains extension methods for custom assertions in unit tests. - - - - - Invokes the specified action on an subject so that you can chain it with any of the ShouldThrow or ShouldNotThrow - overloads. - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current . - - - - - Asserts that the throws an exception. - - A reference to the method or property. - - The type of the exception it should throw. - - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - Returns an object that allows asserting additional members of the thrown exception. - - - - - Asserts that the does not throw a particular exception. - - The current method or property. - - The type of the exception it should not throw. Any other exceptions are ignored and will satisfy the assertion. - - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Asserts that the does not throw any exception at all. - - The current method or property. - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Forces enumerating a collection. Should be used to assert that a method that uses the - yield keyword throws a particular exception. - - - - - Forces enumerating a collection. Should be used to assert that a method that uses the - yield keyword throws a particular exception. - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current nullable . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current nullable . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current nullable . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current nullable . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current nullable . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current nullable . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current nullable . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current nullable . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current nullable . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current nullable . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current nullable . - - - - - Returns a object that can be used to assert the - current . - - - - - Returns a object that can be used to assert the - current . - - - - - Returns a object that can be used to assert the current . - - - - - - Returns a object that can be used to assert the methods returned by the - current . - - - - - - Returns a object that can be used to assert the - current . - - - - - - Returns a object that can be used to assert the properties returned by the - current . - - - - - - Asserts that an object is equivalent to another object. - - - Objects are equivalent when both object graphs have equally named properties with the same value, - irrespective of the type of those objects. Two properties are also equal if one type can be converted to another and the result is equal. - The type of a collection property is ignored as long as the collection implements and all - items in the collection are structurally equal. - Notice that actual behavior is determined by the instance of the - class. - - - An optional formatted phrase as is supported by explaining why the - assertion is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that an object is equivalent to another object. - - - Objects are equivalent when both object graphs have equally named properties with the same value, - irrespective of the type of those objects. Two properties are also equal if one type can be converted to another and the result is equal. - The type of a collection property is ignored as long as the collection implements and all - items in the collection are structurally equal. - - - A reference to the configuration object that can be used - to influence the way the object graphs are compared. You can also provide an alternative instance of the - class. - - - An optional formatted phrase as is supported by explaining why the - assertion is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Safely casts the specified object to the type specified through . - - - Has been introduced to allow casting objects without breaking the fluent API. - - - - - - Contains a number of methods to assert that an is in the expected state. - - - - - Contains a number of methods to assert that a reference type object is in the expected state. - - - - - Asserts that the object is of the specified type . - - The expected type of the object. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the object is assignable to a variable of type . - - The type to which the object should be assignable. - The reason why the object should be assignable to the type. - The parameters used when formatting the . - An which can be used to chain assertions. - - - - Asserts that the is satisfied. - - The predicate which must be statisfied by the . - The reason why the predicate should be satisfied. - The parameters used when formatting the . - An which can be used to chain assertions. - - - - Asserts that the is satisfied. - - The predicate which must be statisfied by the . - The reason why the predicate should be satisfied. - The parameters used when formatting the . - An which can be used to chain assertions. - - - - Gets the object which value is being asserted. - - - - - Asserts that the number of items in the collection matches the supplied amount. - - The expected number of items in the collection. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the number of items in the collection matches a condition stated by the . - - A predicate that yields the number of items that is expected to be in the collection. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the collection does not contain any items. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the collection contains at least 1 item. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the collection does not contain any duplicate items. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the collection does not contain any null items. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Expects the current collection to contain all the same elements in the same order as the collection identified by - . Elements are compared using their . - - A params array with the expected elements. - - - - Expects the current collection to contain all the same elements in the same order as the collection identified by - . Elements are compared using their . - - An with the expected elements. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Expects the current collection not to contain all the same elements in the same order as the collection identified by - . Elements are compared using their . - - An with the elements that are not expected. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Expects the current collection to contain all elements of the collection identified by , - regardless of the order. Elements are compared using their . - - A params array with the expected elements. - - - - Expects the current collection to contain all elements of the collection identified by , - regardless of the order. Elements are compared using their . - - An with the expected elements. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Expects the current collection not to contain all elements of the collection identified by , - regardless of the order. Elements are compared using their . - - An with the unexpected elements. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current collection only contains items that are assignable to the type . - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Expects the current collection to contain the specified elements in any order. Elements are compared - using their implementation. - - An with the expected elements. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Expects the current collection to contain the specified elements in the exact same order. Elements are compared - using their implementation. - - An with the expected elements. - - - - Expects the current collection to contain the specified elements in the exact same order. Elements are compared - using their implementation. - - An with the expected elements. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Expects the current collection to have all elements in ascending order. Elements are compared - using their implementation. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Expects the current collection to have all elements in descending order. Elements are compared - using their implementation. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Expects the current collection to have all elements in the specified . - Elements are compared using their implementation. - - - - - Asserts the current collection does not have all elements in ascending order. Elements are compared - using their implementation. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts the current collection does not have all elements in descending order. Elements are compared - using their implementation. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts the current collection does not have all elements in ascending order. Elements are compared - using their implementation. - - - - - Asserts that the collection is a subset of the . - - An with the expected superset. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the collection is not a subset of the . - - An with the unexpected superset. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Assert that the current collection has the same number of elements as . - - The other collection with the same expected number of elements - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current collection has not been initialized yet with an actual collection. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current collection has been initialized with an actual collection. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current collection has the supplied at the - supplied . - - The index where the element is expected - The expected element - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current collection does not contain the supplied item. - - The element that is not expected to be in the collection - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the collection shares one or more items with the specified . - - The with the expected shared items. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the collection does not share any items with the specified . - - The to compare to. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Contains a number of methods to assert that an is in the expectation state. - - - - - Asserts that two collections contain the same items in the same order, where equality is determined using a - predicate. - - - The collection to compare the subject with. - - - A predicate the is used to determine whether two objects should be treated as equal. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the collection contains the specified item. - - The expectation item. - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Asserts that the collection contains some extra items in addition to the original items. - - An of expectation items. - Additional items that are expectation to be contained by the collection. - - - - Asserts that the collection contains at least one item that matches the predicate. - - A predicate to match the items in the collection against. - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Asserts that the collection only contains items that match a predicate. - - A predicate to match the items in the collection against. - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Asserts that the collection does not contain any items that match the predicate. - - A predicate to match the items in the collection against. - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Expects the current collection to contain only a single item matching the specified . - - The predictes that will be used to find the matching items. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Contains a number of methods to assert that an is in the expected state. - - - - - Asserts that the current dictionary has not been initialized yet with an actual dictionary. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current dictionary has been initialized with an actual dictionary. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the number of items in the dictionary matches the supplied amount. - - The expected number of items. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the number of items in the dictionary matches a condition stated by a predicate. - - The predicate which must be statisfied by the amount of items. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the dictionary does not contain any items. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the dictionary contains at least 1 item. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current dictionary contains all the same key-value pairs as the - specified dictionary. Keys and values are compared using - their implementation. - - The expected dictionary - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts the current dictionary not to contain all the same key-value pairs as the - specified dictionary. Keys and values are compared using - their implementation. - - The unexpected dictionary - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the dictionary contains the specified key. Keys are compared using - their implementation. - - The expected key - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the dictionary contains all of the specified keys. Keys are compared using - their implementation. - - The expected keys - - - - Asserts that the dictionary contains all of the specified keys. Keys are compared using - their implementation. - - The expected keys - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current dictionary does not contain the specified key. - Keys are compared using their implementation. - - The unexpected key - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the dictionary contains the specified value. Values are compared using - their implementation. - - The expected value - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the dictionary contains all of the specified values. Values are compared using - their implementation. - - The expected values - - - - Asserts that the dictionary contains all of the specified values. Values are compared using - their implementation. - - The expected values - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current dictionary does not contain the specified value. - Values are compared using their implementation. - - The unexpected value - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current dictionary contains the specified . - Keys and values are compared using their implementation. - - The expected - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current dictionary contains the specified for the supplied . Values are compared using their implementation. - - The key for which to validate the value - The value to validate - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current dictionary does not contain the specified . - Keys and values are compared using their implementation. - - The unexpected - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current dictionary does not contain the specified for the - supplied . Values are compared using their implementation. - - The key for which to validate the value - The value to validate - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Gets the object which value is being asserted. - - - - - Contains a number of methods to assert that an is in the expected state. - - - - - Asserts that the current collection contains the specified object. Elements are compared - using their implementation. - - An object, or of objects that are expected to be in the collection. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Gets a dotted path of property names representing the property expression. E.g. Parent.Child.Sibling.Name. - - - - - Finds the first index at which the does not match the - string anymore, including the exact casing. - - - - - Finds the first index at which the does not match the - string anymore, accounting for the specified . - - - - - Gets the quoted three characters at the specified index of a string, including the index itself. - - - - - Replaces all characters that might conflict with formatting placeholders and newlines with their escaped counterparts. - - - - - Joins a string with one or more other strings using a specified separator. - - - Any string that is empty (including the original string) is ignored. - - - - - Determines whether two objects refer to the same property. - - - - - Finds the property by a case-sensitive name. - - - Returns null if no such property exists. - - - - - Determines whether the specified method has been annotated with a specific attribute. - - - true if the specified method has attribute; otherwise, false. - - - - - Provides extension methods for monitoring and querying events. - - - - - Starts monitoring an object for its events. - - Thrown if eventSource is Null. - - - - Asserts that an object has raised the event for a particular property. - - - You must call on the same object prior to this call so that Fluent Assertions can - subscribe for the events of the object. - - - - - Asserts that an object has raised the event for a particular property. - - The object exposing the event. - - A lambda expression referring to the property for which the property changed event should have been raised, or - null to refer to all properties. - - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - You must call on the same object prior to this call so that Fluent Assertions can - subscribe for the events of the object. - - - - - Asserts that an object has not raised the event for a particular property. - - - You must call on the same object prior to this call so that Fluent Assertions can - subscribe for the events of the object. - - - - - Asserts that an object has not raised the event for a particular property. - - The object exposing the event. - - A lambda expression referring to the property for which the property changed event should have been raised. - - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - You must call on the same object prior to this call so that Fluent Assertions can - subscribe for the events of the object. - - - - - Asserts that all occurences of the event originated from the . - - - - - Asserts that at least one occurrence of the event had an object matching a predicate. - - - - - Static methods that aid in generic event subscription - - - - - Generates an eventhandler for an event of type eventSignature that calls RegisterEvent on recorder - when invoked. - - - - - Finds the Return Type of a Delegate. - - - - - Returns an Array of Types that make up a delegate's parameter signature. - - - - - Returns an array of types appended with an EventRecorder reference at the beginning. - - - - - Returns T/F Dependent on a Type Being a Delegate. - - - - - Returns the MethodInfo for the Delegate's "Invoke" Method. - - - - - Records activity for a single event. - - - - - Records raised events for one event on one object - - - - - Store information about a raised event - - Parameters the event was raised with - - - - The object events are recorded from - - - - - The name of the event that's recorded - - - - - - The object events are recorded from - The name of the event that's recorded - - - - Enumerate raised events - - - - - Enumerate raised events - - - - - - Called by the auto-generated IL, to record information about a raised event. - - - - - The object events are recorded from - - - - - The name of the event that's recorded - - - - - Simple dictionary that uses a to the event source as the key. - This should ensure the Garbage Collector can still clean-up the event source object. - - - - - This class is used to store data about an intercepted event - - - - - Default constructor stores the parameters the event was raised with - - - - - Parameters for the event - - - - - Helper class for verifying a condition and/or throwing a test harness specific exception representing an assertion failure. - - - - - Gets an object that wraps and executes a conditional or unconditional verification. - - - - - Represents an abstraction of a particular test framework such as MSTest, nUnit, etc. - - - - - Throws a framework-specific exception to indicate a failing unit test. - - - - - Gets a value indicating whether the corresponding test framework is currently available. - - - - - Provides a fluent API for verifying an arbitrary condition. - - - - - Represents the phrase that can be used in as a placeholder for the reason of an assertion. - - - - - Initializes a new instance of the class. - - - - - Gets the name or identifier of the current subject, or a default value if the subject is not known. - - - - - Specify the condition that must be satisfied. - - If true the verification will be succesful. - - - - Specify a predicate that with the condition that must be satisfied. - - - - - Specify the reason why you expect the condition to be true. - - - A formatted phrase explaining why the condition should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Define the failure message for the verification. - - - If the contains the text "{reason}", this will be replaced by the reason as - defined through . Only 10 are supported in combination with - a {reason}. - - The format string that represents the failure message. - Optional arguments for the - - - - Indicates that every argument passed into is displayed on a separate line. - - - - - Gets or sets the name of the subject for the next verification. - - - - - Extension methods on to allow for a more fluent way of specifying a . - - - Instead of
-
- new DateTime(2011, 3, 10)
-
- you can write 3.March(2011)
-
- Or even
-
- 3.March(2011).At(09, 30) -
- -
- - - Returns a new value for the specified and - in the month January. - - - - - Returns a new value for the specified and - in the month February. - - - - - Returns a new value for the specified and - in the month March. - - - - - Returns a new value for the specified and - in the month April. - - - - - Returns a new value for the specified and - in the month May. - - - - - Returns a new value for the specified and - in the month June. - - - - - Returns a new value for the specified and - in the month July. - - - - - Returns a new value for the specified and - in the month August. - - - - - Returns a new value for the specified and - in the month September. - - - - - Returns a new value for the specified and - in the month October. - - - - - Returns a new value for the specified and - in the month November. - - - - - Returns a new value for the specified and - in the month December. - - - - - Returns a new value for the specified and . - - - - - Returns a new value for the specified and time with the specified - , and optionally . - - - - - Returns a new value that is the current before the - specified . - - - - - Returns a new value that is the current after the - specified . - - - - - Specialized value formatter that looks for static methods in the caller's assembly marked with the - . - - - - - Indicates whether the current can handle the specified . - - The value for which to create a . - - true if the current can handle the specified value; otherwise, false. - - - - - Returns a that represents this instance. - - The value for which to create a . - - - A collection of objects that - - - The level of nesting for the supplied value. This is used for indenting the format string for objects that have - no override. - - - A that represents this instance. - - - - - Indicates whether the current can handle the specified . - - The value for which to create a . - - true if the current can handle the specified value; otherwise, false. - - - - - Returns a that represents this instance. - - The value for which to create a . - - - A collection of objects that - - - The level of nesting for the supplied value. This is used for indenting the format string for objects that have - no override. - - - A that represents this instance. - - - - - Indicates whether the current can handle the specified . - - The value for which to create a . - - true if the current can handle the specified value; otherwise, false. - - - - - Returns a that represents this instance. - - The value for which to create a . - - - A collection of objects that - - - The level of nesting for the supplied value. This is used for indenting the format string for objects that have - no override. - - - A that represents this instance. - - - - - Indicates whether the current can handle the specified . - - The value for which to create a . - - true if the current can handle the specified value; otherwise, false. - - - - - Returns a that represents this instance. - - The value for which to create a . - - - A collection of objects that - - - The level of nesting for the supplied value. This is used for indenting the format string for objects that have - no override. - - - A that represents this instance. - - - - - Determines whether this instance can handle the specified value. - - The value. - - true if this instance can handle the specified value; otherwise, false. - - - - - Returns a that represents this instance. - - The value for which to create a . - - - A collection of objects that - - - The level of nesting for the supplied value. This is used for indenting the format string for objects that have - no override. - - - A that represents this instance. - - - - - Indicates whether the current can handle the specified . - - The value for which to create a . - - true if the current can handle the specified value; otherwise, false. - - - - - Returns a that represents this instance. - - The value for which to create a . - - - A collection of objects that - - - The level of nesting for the supplied value. This is used for indenting the format string for objects that have - no override. - - - A that represents this instance. - - - - - Indicates whether the current can handle the specified . - - The value for which to create a . - - true if the current can handle the specified value; otherwise, false. - - - - - Returns a that represents this instance. - - The value for which to create a . - - - A collection of objects that - - - The level of nesting for the supplied value. This is used for indenting the format string for objects that have - no override. - - - A that represents this instance. - - - - - Provides services for formatting an object being used in an assertion in a human readable format. - - - - - A list of objects responsible for formatting the objects represented by placeholders. - - - - - Returns a human-readable representation of a particular object. - - The value for which to create a . - - The level of nesting for the supplied value. This is used for indenting the format string for objects that have - no override. - - - Indicates whether the formatter should use line breaks when the specific supports it. - - - A that represents this instance. - - - - - Indicates whether the current can handle the specified . - - The value for which to create a . - - true if the current can handle the specified value; otherwise, false. - - - - - Returns a that represents this instance. - - The value for which to create a . - - - A collection of objects that - - - The level of nesting for the supplied value. This is used for indenting the format string for objects that have - no override. - - - A that represents this instance. - - - - - Indicates whether the current can handle the specified . - - The value for which to create a . - - true if the current can handle the specified value; otherwise, false. - - - - - Returns a that represents this instance. - - The value for which to create a . - - - A collection of objects that - - - The level of nesting for the supplied value. This is used for indenting the format string for objects that have - no override. - - - A that represents this instance. - - - - - Indicates whether the current can handle the specified . - - The value for which to create a . - - true if the current can handle the specified value; otherwise, false. - - - - - Returns a that represents this instance. - - The value for which to create a . - - - A collection of objects that - - - The level of nesting for the supplied value. This is used for indenting the format string for objects that have - no override. - - - A that represents this instance. - - - - - Indicates whether the current can handle the specified . - - The value for which to create a . - - true if the current can handle the specified value; otherwise, false. - - - - - Returns a that represents this instance. - - The value for which to create a . - - - A collection of objects that - - - The level of nesting for the supplied value. This is used for indenting the format string for objects that have - no override. - - - A that represents this instance. - - - - - Marks a static method as a kind of for a particular type. - - - - - Indicates whether the current can handle the specified . - - The value for which to create a . - - true if the current can handle the specified value; otherwise, false. - - - - - Returns a that represents this instance. - - The value for which to create a . - - - A collection of objects that - - - The level of nesting for the supplied value. This is used for indenting the format string for objects that have - no override. - - - A that represents this instance. - - - - - Returns a that represents this instance. - - The value for which to create a . - - - A collection of objects that - - - The level of nesting for the supplied value. This is used for indenting the format string for objects that have - no override. - - - A that represents this instance. - - - - - Indicates whether the current can handle the specified . - - The value for which to create a . - - true if the current can handle the specified value; otherwise, false. - - - - - Returns a that represents this instance. - - The value for which to create a . - - - A collection of objects that - - - The level of nesting for the supplied value. This is used for indenting the format string for objects that have - no override. - - - A that represents this instance. - - - - - Contains a number of extension methods for floating point . - - - - - Asserts a floating point value approximates another value as close as possible. - - The object that is being extended. - - The expected value to compare the actual value with. - - - The maximum amount of which the two values may differ. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts a floating point value approximates another value as close as possible. - - The object that is being extended. - - The expected value to compare the actual value with. - - - The maximum amount of which the two values may differ. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts a floating point value approximates another value as close as possible. - - The object that is being extended. - - The expected value to compare the actual value with. - - - The maximum amount of which the two values may differ. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts a floating point value approximates another value as close as possible. - - The object that is being extended. - - The expected value to compare the actual value with. - - - The maximum amount of which the two values may differ. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Contains a number of methods to assert that an is in the expected state. - - - - - Asserts that the subject is considered equal to another object according to the implementation of . - - - The object to pass to the subject's method. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the subject is not equal to another object according to its implementation of . - - - The object to pass to the subject's method. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the subject is less than another object according to its implementation of . - - - The object to pass to the subject's method. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the subject is less than or equal to another object according to its implementation of . - - - The object to pass to the subject's method. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the subject is greater than another object according to its implementation of . - - - The object to pass to the subject's method. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the subject is greater than or equal to another object according to its implementation of . - - - The object to pass to the subject's method. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a value is within a range. - - - Where the range is continuous or incremental depends on the actual type of the value. - - - The minimum valid value of the range. - - - The maximum valid value of the range. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a nullable numeric value is not null. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a nullable numeric value is null. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Gets the object which value is being asserted. - - - - - Contains a number of methods to assert that an is in the expected state. - - - - - Asserts that the integral number value is exactly the same as the value. - - The expected value. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the integral number value is exactly the same as the value. - - The expected value. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the integral number value is not the same as the value. - - The unexpected value. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the integral number value is not the same as the value. - - The unexpected value. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the numeric value is greater than or equal to zero. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the numeric value is less than zero. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the numeric value is less than the specified value. - - The value to compare the current numeric value with. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the numeric value is less than or equal to the specified value. - - The value to compare the current numeric value with. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the numeric value is greater than the specified value. - - The value to compare the current numeric value with. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the numeric value is greater than or equal to the specified value. - - The value to compare the current numeric value with. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a value is within a range. - - - Where the range is continuous or incremental depends on the actual type of the value. - - - The minimum valid value of the range. - - - The maximum valid value of the range. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a value is one of the specified . - - - The values that are valid. - - - - - Asserts that a value is one of the specified . - - - The values that are valid. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a nullable numeric value is not null. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a nullable numeric value is null. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Contains a number of methods to assert that a is in the expected state. - - - - - Asserts that the value is false. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the value is true. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the value is equal to the specified value. - - The expected value - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Gets the object which value is being asserted. - - - - - Defines the way compares the expected exception - message with the actual one. - - - - - The message must match exactly, including the casing of the characters. - - - - - The message must match except for the casing of the characters. - - - - - The message must start with the exact text, including the casing of the characters.. - - - - - The message must start with the text except for the casing of the characters. - - - - - The message must contain the exact text. - - - - - The message must contain the text except for the casing of the characters. - - - - - The message must match a wildcard pattern consisting of ordinary characters as well as * and ?. - - - - - Contains a number of methods to assert that a is in the expected state. - - - You can use the for a more fluent way of specifying a . - - - - - Asserts that the current is exactly equal to the value. - - The expected value - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current is not equal to the value. - - The unexpected value - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current is within the specified number of milliseconds (default = 20 ms) - from the specified value. - - - Use this assertion when, for example the database truncates datetimes to nearest 20ms. If you want to assert to the exact datetime, - use . - - - The expected time to compare the actual value with. - - - The maximum amount of milliseconds which the two values may differ. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current is before the specified value. - - The that the current value is expected to be before. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current is either on, or before the specified value. - - The that the current value is expected to be on or before. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current is after the specified value. - - The that the current value is expected to be after. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current is either on, or after the specified value. - - The that the current value is expected to be on or after. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current has the year. - - The expected year of the current value. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current has the month. - - The expected month of the current value. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current has the day. - - The expected day of the current value. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current has the hour. - - The expected hour of the current value. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current has the minute. - - The expected minutes of the current value. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current has the second. - - The expected seconds of the current value. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Returns a object that can be used to assert that the current - exceeds the specified compared to another . - - - The amount of time that the current should exceed compared to another . - - - - - Returns a object that can be used to assert that the current - is equal to or exceeds the specified compared to another . - - - The amount of time that the current should be equal or exceed compared to - another . - - - - - Returns a object that can be used to assert that the current - differs exactly the specified compared to another . - - - The amount of time that the current should differ exactly compared to another . - - - - - Returns a object that can be used to assert that the current - is within the specified compared to another . - - - The amount of time that the current should be within another . - - - - - Returns a object that can be used to assert that the current - differs at maximum the specified compared to another . - - - The maximum amount of time that the current should differ compared to another . - - - - - Gets the object which value is being asserted. - - - - - Contains a number of methods to assert that a is in the correct state. - - - - - Asserts that the is . - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the is not . - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the is equal to the GUID. - - The expected value to compare the actual value with. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the is equal to the GUID. - - The expected value to compare the actual value with. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the is not equal to the GUID. - - The unexpected value to compare the actual value with. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Gets the object which value is being asserted. - - - - - Contains a number of methods to assert that a nullable is in the expected state. - - - - - Asserts that a nullable boolean value is not null. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a nullable boolean value is null. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the value is equal to the specified value. - - The expected value - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Contains a number of methods to assert that a nullable is in the expected state. - - - You can use the for a more fluent way of specifying a . - - - - - Asserts that a nullable value is not null. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a nullable value is null. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the value is equal to the specified value. - - The expected value - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Contains a number of methods to assert that a nullable is in the expected state. - - - - - Asserts that a nullable value is not null. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a nullable value is null. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the value is equal to the specified value. - - The expected value - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Contains a number of methods to assert that a nullable is in the expected state. - - - You can use the for a more fluent way of specifying a . - - - - - Contains a number of methods to assert that a nullable is in the expected state. - - - - - Asserts that the time difference of the current is greater than zero. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the time difference of the current is less than zero. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the time difference of the current is equal to the - specified time. - - The expected time difference - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the time difference of the current is not equal to the - specified time. - - The unexpected time difference - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the time difference of the current is less than the - specified time. - - The time difference to which the current value will be compared - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the time difference of the current is less than or equal to the - specified time. - - The time difference to which the current value will be compared - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the time difference of the current is greater than the - specified time. - - The time difference to which the current value will be compared - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the time difference of the current is greater than or equal to the - specified time. - - The time difference to which the current value will be compared - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Gets the object which value is being asserted. - - - - - Asserts that a nullable value is not null. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a nullable value is null. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Contains a number of methods to assert that an is in the expected state. - - - - - Asserts that an object equals another object using its implementation. - - The expected value - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that an object does not equal another object using it's method. - - The unexpected value - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Asserts that an object reference refers to the exact same object as another object reference. - - The expected object - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Asserts that an object reference refers to a different object than another object reference refers to. - - The unexpected object - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Asserts that the object is null. - - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Asserts that the object is not null. - - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Contains a number of methods to assert that a is in the expected state. - - - - - Initializes a new instance of the class. - - - - - Asserts that a string is exactly the same as another string, including the casing and any leading or trailing whitespace. - - The expected string. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the is one of the specified . - - - The values that are valid. - - - - - Asserts that the is one of the specified . - - - The values that are valid. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string is exactly the same as another string, including any leading or trailing whitespace, with - the exception of the casing. - - - The string that the subject is expected to be equivalent to. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string is not exactly the same as the specified , - including any leading or trailing whitespace, with the exception of the casing. - - The string that the subject is not expected to be equivalent to. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string matches a wildcard pattern. - - - The wildcard pattern with which the subject is matched, where * and ? have special meanings. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string does not match a wildcard pattern. - - - The wildcard pattern with which the subject is matched, where * and ? have special meanings. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string matches a wildcard pattern. - - - The wildcard pattern with which the subject is matched, where * and ? have special meanings. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string does not match a wildcard pattern. - - - The wildcard pattern with which the subject is matched, where * and ? have special meanings. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string starts exactly with the specified value, - including the casing and any leading or trailing whitespace. - - The string that the subject is expected to start with. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string starts with the specified , - including any leading or trailing whitespace, with the exception of the casing. - - The string that the subject is expected to start with. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string ends exactly with the specified , - including the casing and any leading or trailing whitespace. - - The string that the subject is expected to end with. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string ends with the specified , - including any leading or trailing whitespace, with the exception of the casing. - - The string that the subject is expected to end with. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string contains another (fragment of a) string. - - - The (fragement of a) string that the current string should contain. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string contains the specified , - including any leading or trailing whitespace, with the exception of the casing. - - The string that the subject is expected to contain. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string does not contain another (fragment of a) string. - - - The (fragement of a) string that the current string should not contain. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string does not contain the specified string, - including any leading or trailing whitespace, with the exception of the casing. - - The string that the subject is not expected to contain. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string is . - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string is not . - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string has the specified length. - - The expected length of the string - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string is null. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string is not null. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string is neither null nor . - - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Asserts that a string is either null or . - - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Asserts that a string is neither null nor nor white space - - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Asserts that a string is either null or or white space - - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Gets the object which value is being asserted. - - - - - Dedicated class for comparing two strings and generating consistent error messages. - - - - - Gets or sets a value indicating whether the subject should not match the pattern. - - - - - Gets or sets a value indicating whether the matching process should ignore any casing difference. - - - - - Contains a number of methods to assert that two objects differ in the expected way. - - - You can use the and for a more fluent - way of specifying a or a . - - - - - Asserts that a occurs a specified amount of time before another . - - - The to compare the subject with. - - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Asserts that a occurs a specified amount of time after another . - - - The to compare the subject with. - - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Provides the logic and the display text for a . - - - - - Contains a number of methods to assert that an yields the expected result. - - - - - Asserts that the current throws an exception of type . - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current does not throw an exception of type . - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current does not throw any exception. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Gets the that is being asserted. - - - - - Contains a number of methods to assert that an is in the correct state. - - - - - Asserts that the thrown exception has a message that matches - depending on the specified matching mode. - - - The expected message of the exception. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the thrown exception has a message that matches - depending on the specified matching mode. - - - The expected message of the exception. - - - Determines how the expected message is compared with the actual message. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the thrown exception contains an inner exception of type . - - The expected type of the inner exception. - - - - Asserts that the thrown exception contains an inner exception of type . - - The expected type of the inner exception. - The reason why the inner exception should be of the supplied type. - The parameters used when formatting the . - - - - Asserts that the thrown exception contains an inner exception with the . - - The expected message of the inner exception. - Determines how the expected message is compared with the actual message. - - - - Asserts that the thrown exception contains an inner exception with the . - - The expected message of the inner exception. - - The reason why the message of the inner exception should match . - - The parameters used when formatting the . - - - - Asserts that the thrown exception contains an inner exception with the . - - The expected message of the inner exception. - Determines how the expected message is compared with the actual message. - - The reason why the message of the inner exception should match . - - The parameters used when formatting the . - - - - Asserts that the exception matches a particular condition. - - - The condition that the exception must match. - - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Gets the exception object of the exception thrown. - - - - - Selection rule that adds all public properties of the subject as far as they are defined on the declared - type. - - - - - Represents a rule that defines which properties of the subject-under-test to include while comparing - two objects for structural equality. - - - - - Adds or removes properties to/from the collection of subject properties that must be included while - comparing two objects for structural equality. - - - A collection of properties that was prepopulated by other selection rules. Can be empty. - - Type info about the subject. - - - The collection of properties after applying this rule. Can contain less or more than was passed in. - - - - - Adds or removes properties to/from the collection of subject properties that must be included while - comparing two objects for structural equality. - - - A collection of properties that was prepopulated by other selection rules. Can be empty. - - The collection of properties after applying this rule. Can contain less or more than was passed in. - - - - - Returns a string that represents the current object. - - - A string that represents the current object. - - 2 - - - - Selection rule that adds all public properties of the subject based on its run-time type rather than its - declared type. - - - - - Adds or removes properties to/from the collection of subject properties that must be included while - comparing two objects for structural equality. - - - A collection of properties that was prepopulated by other selection rules. Can be empty. - - The collection of properties after applying this rule. Can contain less or more than was passed in. - - - - - Returns a string that represents the current object. - - - A string that represents the current object. - - 2 - - - - Gets a value indicating whether this step can handle the current subject and/or expectation. - - - - - Applies a step as part of the task to compare two objects for structural equality. - - - Should return true if the subject matches the expectation or if no additional assertions - have to be executed. Should return false otherwise. - - - May throw when preconditions are not met or if it detects mismatching data. - - - - - Gets a value indicating whether this step can handle the current subject and/or expectation. - - - - - Applies a step as part of the task to compare two objects for structural equality. - - - Should return true if the subject matches the expectation or if no additional assertions - have to be executed. Should return false otherwise. - - - May throw when preconditions are not met or if it detects mismatching data. - - - - - General purpose implementation of that uses a predicate to determine whether - this rule applies to a particular property and executes an action to assert equality. - - The type of the subject. - - - - Defines how a subject's property is compared for equality with the same property of the expectation. - - - Provides details about the subject's property. - - - The value of the subject's property. - - - The value of a property on expectation object that was identified - - - Returns true if the rule was applied correctly and the assertion didn't cause any exceptions. - Returns false if this rule doesn't support the subject's type. - Throws if the rule did support the data type but assertion fails. - - - - - Defines how a subject's property is compared for equality with the same property of the expectation. - - - Provides details about the subject's property. - - - The value of the subject's property. - - - The value of a property on expectation object that was identified - - - Returns true if the rule was applied correctly and the assertion didn't cause any exceptions. - Returns false if this rule doesn't support the subject's type. - Throws if the rule did support the data type but assertion fails. - - - - - Provides the required information for executing an equality assertion between a subject and an expectation. - - The type of the subject. - - - - Gets the of the property that returned the current object, or null if the current - object represents the root object. - - - - - Gets the value of the - - - - - Gets the value of the expectation object that was matched with the subject using a . - - - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - - - Zero or more objects to format using the placeholders in . - - - - - Selection rule that removes a particular property from the structural comparison based on a predicate. - - - - - Adds or removes properties to/from the collection of subject properties that must be included while - comparing two objects for structural equality. - - - A collection of properties that was prepopulated by other selection rules. Can be empty. - - The collection of properties after applying this rule. Can contain less or more than was passed in. - - - - - Returns a string that represents the current object. - - - A string that represents the current object. - - 2 - - - - Provides details about the subject's root or nested property. - - - - - Gets the of the property that returned the current object, or null if the current - object represents the root object. - - - - - Gets the full path from the root object until the current object separated by dots. - - - - - Gets a display-friendly representation of the . - - - - - Gets the compile-time type of the current object. If the current object is not the root object, then it returns the - same as the property does. - - - - - Gets the run-time type of the current object. - - - - - Represents a selection context of a nested property - - - - - Gets the of the property that returned the current object, or - null if the current object represents the root object. - - - - - Gets the full path from the root object until the current property, separated by dots. - - - - - Gets a textual description of the current property based on the . - - - - - Gets the compile-time type of the current object. If the current object is not the root object, then it returns the - same as the property does. - - - - - Gets the run-time type of the current object. - - - - - Is responsible for the exact run-time behavior of a structural equality comparison. - - The type of the subject. - - - - Provides the run-time details of the class. - - - - - Gets an ordered collection of selection rules that define what properties are included. - - - - - Gets an ordered collection of matching rules that determine which subject properties are matched with which - expectation properties. - - - - - Gets an ordered collection of assertion rules that determine how subject properties are compared for equality with - expectation properties. - - - - - Gets or sets a value indicating whether or not the assertion must perform a deep comparison. - - - - - Gets a configuration that compares all declared properties of the subject with equally named properties of the expectation, - and includes the entire object graph. The names of the properties between the subject and expectation must match. - - - - - Gets a configuration that by default doesn't include any of the subject's properties and doesn't consider any nested objects - or collections. - - - - - Adds all public properties of the subject as far as they are defined on the declared type. - - - - - Adds all public properties of the subject based on its run-time type rather than its declared type. - - - - - Tries to match the properties of the subject with equally named properties on the expectation. Ignores those - properties that don't exist on the expectation. - - - - - Requires the expectation to have properties which are equally named to properties on the subject. - - - - - - Excludes the specified (nested) property from the structural equality check. - - - - - Excludes a (nested) property based on a predicate from the structural equality check. - - - - - Includes the specified property in the equality check. - - - This overrides the default behavior of including all declared properties. - - - - - The assertion to execute when the predicate is met. - - - - - Causes the structural equality check to include nested collections and complex types. - - - - - Causes the structural equality check to ignore any cyclic references. - - - By default, cyclic references within the object graph will cause an exception to be thrown. - - - - - Clears all selection rules, including those that were added by default. - - - - - Clears all matching rules, including those that were added by default. - - - - - Adds a selection rule to the ones allready added by default and which is evaluated after all existing rules. - - - - - Adds a matching rule to the ones allready added by default and which is evaluated before all existing rules. - - - - - Adds a matching rule to the ones allready added by default and which is evaluated before all existing rules - - - - - Returns a string that represents the current object. - - - A string that represents the current object. - - 2 - - - - Gets an ordered collection of selection rules that define what properties are included. - - - - - Gets an ordered collection of matching rules that determine which subject properties are matched with which - expectation properties. - - - - - Gets an ordered collection of assertion rules that determine how subject properties are compared for equality with - expectation properties. - - - - - Gets value indicating whether the equality check will include nested collections and complex types. - - - - - Gets value indicating how cyclic references should be handled. By default, it will throw an exception. - - - - - Defines additional overrides when used with - - - - - Allows overriding the way structural equality is applied to (nested) objects of tyoe - - - - - Allows overriding the way structural equality is applied to particular properties. - - - A predicate based on the of the subject that is used to identify the property for which the - override applies. - - - - - Gets a value indicating whether this step can handle the current subject and/or expectation. - - - - - Applies a step as part of the task to compare two objects for structural equality. - - - Should return true if the subject matches the expectation or if no additional assertions - have to be executed. Should return false otherwise. - - - May throw when preconditions are not met or if it detects mismatching data. - - - - - Indication of how cyclic references should be handled when validating equality of nested properties. - - - - - Cyclic references will be ignored. - - - - - Cyclic references will result in an exception. - - - - - Gets a value indicating whether this step can handle the current subject and/or expectation. - - - - - Applies a step as part of the task to compare two objects for structural equality. - - - Should return true if the subject matches the expectation or if no additional assertions - have to be executed. Should return false otherwise. - - - May throw when preconditions are not met or if it detects mismatching data. - - - - - Gets a value indicating whether this step can handle the current subject and/or expectation. - - - - - Applies a step as part of the task to compare two objects for structural equality. - - - Should return true if the subject matches the expectation or if no additional assertions - have to be executed. Should return false otherwise. - - - May throw when preconditions are not met or if it detects mismatching data. - - - - - Selection rule that removes a particular property from the structural comparison. - - - - - Adds or removes properties to/from the collection of subject properties that must be included while - comparing two objects for structural equality. - - - A collection of properties that was prepopulated by other selection rules. Can be empty. - - - The collection of properties after applying this rule. Can contain less or more than was passed in. - - - - - Returns a that represents this instance. - - - A that represents this instance. - - - - - Represents a rule that defines how to map the properties from the subject-under-test with the properties - on the expectation object. - - - - - Attempts to find a property on the expectation that should be compared with the - during a structural equality. - - - Whether or not a match is required or optional is up to the specific rule. If no match is found and this is not an issue, - simply return null. - - - The of the subject's property for which a match must be found. Can never - be null. - - - The expectation object for which a matching property must be returned. Can never be null. - - - The dotted path from the root object to the current property. Will never be null. - - - Returns the of the property with which to compare the subject with, or null - if no match was found. - - - - - Selection rule that includes a particular property in the structural comparison. - - - - - Adds or removes properties to/from the collection of subject properties that must be included while - comparing two objects for structural equality. - - - A collection of properties that was prepopulated by other selection rules. Can be empty. - - The collection of properties after applying this rule. Can contain less or more than was passed in. - - - - - Returns a that represents this instance. - - - A that represents this instance. - - - - - Provides information on a particular property during an assertion for structural equality of two object graphs. - - - - - Gets the property of the that was matched against the , - or null if is true. - - - - - Gets the value of the . - - - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - - - Zero or more objects to format using the placeholders in . - - - - - Gets a verification object associated with the current and . - - - - - Gets a value indicating whether the current context represents the root of the object graph. - - - - - Gets the value of the - - - - - Requires the expectation object to have a property with the exact same name. - - - - - Attempts to find a property on the expectation that should be compared with the - during a structural equality. - - - Whether or not a match is required or optional is up to the specific rule. If no match is found and this is not an issue, - simply return null. - - - The of the subject's property for which a match must be found. Can never - be null. - - - The expectation object for which a matching property must be returned. Can never be null. - - - The dotted path from the root object to the current property. Will never be null. - - - Returns the of the property with which to compare the subject with, or null - if no match was found. - - - - - Returns a string that represents the current object. - - - A string that represents the current object. - - 2 - - - - Gets a value indicating whether this step can handle the current subject and/or expectation. - - - - - Applies a step as part of the task to compare two objects for structural equality. - - - Should return true if the subject matches the expectation or if no additional assertions - have to be executed. Should return false otherwise. - - - May throw when preconditions are not met or if it detects mismatching data. - - - - - Gets the of the property that returned the current object, or - null if the current object represents the root object. - - - - - Gets the full path from the root object until the current property, separated by dots. - - - - - Gets a textual description of the current property based on the . - - - - - Gets the value of the - - - - - Gets the property of the that was matched against the , - or null if is true. - - - - - Gets the value of the . - - - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - - - Zero or more objects to format using the placeholders in . - - - - - Gets a value indicating whether the current context represents the root of the object graph. - - - - - Gets the compile-time type of the current object. If the current object is not the root object, then it returns the - same as the property does. - - - - - Gets the run-time type of the current object. - - - - - Gets a verification object associated with the current and . - - - - - Is responsible for validating the equality of one or more properties of a subject with another object. - - - - - Gets a value indicating whether this step can handle the current subject and/or expectation. - - - - - Applies a step as part of the task to compare two objects for structural equality. - - - Should return true if the subject matches the expectation or if no additional assertions - have to be executed. Should return false otherwise. - - - May throw when preconditions are not met or if it detects mismatching data. - - - - - Finds a property of the expectation with the exact same name, but doesn't require it. - - - - - Attempts to find a property on the expectation that should be compared with the - during a structural equality. - - - Whether or not a match is required or optional is up to the specific rule. If no match is found and this is not an issue, - simply return null. - - - The of the subject's property for which a match must be found. Can never - be null. - - - The expectation object for which a matching property must be returned. Can never be null. - - - The dotted path from the root object to the current property. Will never be null. - - - Returns the of the property with which to compare the subject with, or null - if no match was found. - - - - - Returns a string that represents the current object. - - - A string that represents the current object. - - 2 - - - - Extension methods on to allow for a more fluent way of specifying a . - - - Instead of
-
- TimeSpan.FromHours(12)
-
- you can write
-
- 12.Hours()
-
- Or even
-
- 12.Hours().And(30.Minutes()). -
- -
- - - Returns a based on a number of milliseconds. - - - - - Returns a based on a number of seconds. - - - - - Returns a based on a number of seconds, and add the specified - . - - - - - Returns a based on a number of minutes. - - - - - Returns a based on a number of minutes, and add the specified - . - - - - - Returns a based on a number of hours. - - - - - Returns a based on a number of hours, and add the specified - . - - - - - Returns a based on a number of days. - - - - - Returns a based on a number of days, and add the specified - . - - - - - Convenience method for chaining multiple calls to the methods provided by this class. - - - 23.Hours().And(59.Minutes()) - - - - - Extension methods for getting method and property selectors for a type. - - - - - Returns the types that are visible outside the specified . - - - - - Returns a method selector for the current . - - - - - Returns a method selector for the current . - - - - - Returns a property selector for the current . - - - - - Returns a property selector for the current . - - - - - Static class that allows for a 'fluent' selection of the types from an . - - - AllTypes.From(myAssembly)
- .ThatImplement<ISomeInterface>
- .Should()
- .BeDecoratedWith<SomeAttribute>() -
-
- - - Returns a for selecting the types that are visible outside the - specified . - - The assembly from which to select the types. - - - - Contains assertions for the objects returned by the parent . - - - - - Initializes a new instance of the class. - - The method to assert. - - - - Initializes a new instance of the class. - - The methods to assert. - - - - Asserts that the selected methods are virtual. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the selected methods are decorated with the specified . - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Gets the object which value is being asserted. - - - - - Allows for fluent selection of methods of a type through reflection. - - - - - Initializes a new instance of the class. - - The type from which to select methods. - - - - Initializes a new instance of the class. - - The types from which to select methods. - - - - Only select the methods that return the specified type - - - - - Only select the methods that are decorated with an attribute of the specified type. - - - - - The resulting objects. - - - - - Determines whether the specified method has a special name (like properties and events). - - - - - Returns an enumerator that iterates through the collection. - - - A that can be used to iterate through the collection. - - 1 - - - - Returns an enumerator that iterates through a collection. - - - An object that can be used to iterate through the collection. - - 2 - - - - Only select the methods that are public or internal. - - - - - Only select the methods without a return value - - - - - Contains assertions for the objects returned by the parent . - - - - - Initializes a new instance of the class, for a single . - - The property to assert. - - - - Initializes a new instance of the class, for a number of objects. - - The properties to assert. - - - - Asserts that the selected properties are virtual. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the selected methods are decorated with the specified . - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Gets the object which value is being asserted. - - - - - Allows for fluent selection of properties of a type through reflection. - - - - - Initializes a new instance of the class. - - The type from which to select properties. - - - - Initializes a new instance of the class. - - The types from which to select properties. - - - - Only select the properties that are decorated with an attribute of the specified type. - - - - - Only select the properties that return the specified type - - - - - The resulting objects. - - - - - Returns an enumerator that iterates through the collection. - - - A that can be used to iterate through the collection. - - 1 - - - - Returns an enumerator that iterates through a collection. - - - An object that can be used to iterate through the collection. - - 2 - - - - Only select the properties that have a public or internal getter. - - - - - Contains a number of methods to assert that a meets certain expectations. - - - - - Initializes a new instance of the class. - - - - - Asserts that the current type is equal to the specified type. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current type is equal to the specified type. - - The expected type - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Creates an error message in case the specifed type differs from the - type. - - - An empty if the two specified types are the same, or an error message that describes that - the two specified types are not the same. - - - - - Asserts that the current type is not equal to the specified type. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current type is not equal to the specified type. - - The unexpected type - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current is decorated with the specified . - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current is decorated with an attribute of type - that matches the specified . - - - The predicate that the attribute must match. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Gets the object which value is being asserted. - - - - - Contains a number of methods to assert that all s in a - meet certain expectations. - - - - - Initializes a new instance of the class. - - - - - Asserts that the current is decorated with the specified . - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current is decorated with an attribute of type - that matches the specified . - - - The predicate that the attribute must match. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Gets the object which value is being asserted. - - - - - Allows for fluent filtering a list of types. - - - - - The resulting objects. - - - - - Determines whether a type is a subclass of another type, but NOT the same type. - - - - - Determines whether a type implements an interface (but is not the interface itself). - - - - - Determines whether a type is decorated with a particular attribute. - - - - - Determines whether the namespace of type is exactly . - - - - - Determines whether the namespace of type is starts with . - - - - - Returns an enumerator that iterates through the collection. - - - A that can be used to iterate through the collection. - - 1 - - - - Returns an enumerator that iterates through a collection. - - - An object that can be used to iterate through the collection. - - 2 - - - - Contains a number of methods to assert that an is in the expected state. - - - - - Initializes a new instance of the class. - - - - - Asserts that the current equals the attribute. - - The expected attribute - - - - Asserts that the current equals the attribute. - - The expected attribute - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current does not equal the attribute, - using its implementation. - - The unexpected attribute - - - - Asserts that the current does not equal the attribute, - using its implementation. - - The unexpected attribute - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the is null. - - - - - Asserts that the is null. - - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Asserts that the is not null. - - - - - Asserts that the is not null. - - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Asserts that the current has the specified value. - - The expected value - - - - Asserts that the current has the specified value. - - The expected value - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Gets the object which value is being asserted. - - - - - Contains a number of methods to assert that an is in the expected state. - - - - - Initializes a new instance of the class. - - - - - Asserts that the current equals the document, - using its implementation. - - The expected document - - - - Asserts that the current equals the document, - using its implementation. - - The expected document - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current does not equal the document, - using its implementation. - - The unexpected document - - - - Asserts that the current does not equal the document, - using its implementation. - - The unexpected document - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the is null. - - - - - Asserts that the is null. - - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Asserts that the is not null. - - - - - Asserts that the is not null. - - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Asserts that the current has a root element with the specified - name. - - The name of the expected root element of the current document. - - - - Asserts that the current has a root element with the specified - name. - - The name of the expected root element of the current document. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the element of the current has a direct - child element with the specified name. - - - The name of the expected child element of the current document's Root element. - - - - - Asserts that the element of the current has a direct - child element with the specified name. - - - The name of the expected child element of the current document's Root element. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Gets the object which value is being asserted. - - - - - Contains a number of methods to assert that an is in the expected state. - - - - - Initializes a new instance of the class. - - - - - Asserts that the current equals the element. - - The expected element - - - - Asserts that the current equals the element. - - The expected element - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current does not equal the element, - using its implementation. - - The unexpected element - - - - Asserts that the current does not equal the element, - using its implementation. - - The unexpected element - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the is null. - - - - - Asserts that the is null. - - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Asserts that the is not null. - - - - - Asserts that the is not null. - - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Asserts that the current has an attribute with the specified - and . - - The name of the expected attribute - The value of the expected attribute - - - - Asserts that the current has an attribute with the specified - and . - - The name of the expected attribute - The value of the expected attribute - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current has a direct child element with the specified - name. - - The name of the expected child element - - - - Asserts that the current has a direct child element with the specified - name. - - The name of the expected child element - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Gets the object which value is being asserted. - - -
-
diff --git a/packages/FluentAssertions.2.0.1/lib/sl4/FluentAssertions.Silverlight.dll b/packages/FluentAssertions.2.0.1/lib/sl4/FluentAssertions.Silverlight.dll deleted file mode 100644 index c30ed0f0..00000000 Binary files a/packages/FluentAssertions.2.0.1/lib/sl4/FluentAssertions.Silverlight.dll and /dev/null differ diff --git a/packages/FluentAssertions.2.0.1/lib/sl4/FluentAssertions.Silverlight.pdb b/packages/FluentAssertions.2.0.1/lib/sl4/FluentAssertions.Silverlight.pdb deleted file mode 100644 index 54e4c970..00000000 Binary files a/packages/FluentAssertions.2.0.1/lib/sl4/FluentAssertions.Silverlight.pdb and /dev/null differ diff --git a/packages/FluentAssertions.2.0.1/lib/sl4/FluentAssertions.Silverlight.xml b/packages/FluentAssertions.2.0.1/lib/sl4/FluentAssertions.Silverlight.xml deleted file mode 100644 index 52606115..00000000 --- a/packages/FluentAssertions.2.0.1/lib/sl4/FluentAssertions.Silverlight.xml +++ /dev/null @@ -1,5572 +0,0 @@ - - - - FluentAssertions.Silverlight - - - - - Initializes a new instance of the class. - - - - - Contains extension methods for custom assertions in unit tests. - - - - - Invokes the specified action on an subject so that you can chain it with any of the ShouldThrow or ShouldNotThrow - overloads. - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current . - - - - - Asserts that the throws an exception. - - A reference to the method or property. - - The type of the exception it should throw. - - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - Returns an object that allows asserting additional members of the thrown exception. - - - - - Asserts that the does not throw a particular exception. - - The current method or property. - - The type of the exception it should not throw. Any other exceptions are ignored and will satisfy the assertion. - - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Asserts that the does not throw any exception at all. - - The current method or property. - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Forces enumerating a collection. Should be used to assert that a method that uses the - yield keyword throws a particular exception. - - - - - Forces enumerating a collection. Should be used to assert that a method that uses the - yield keyword throws a particular exception. - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current nullable . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current nullable . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current nullable . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current nullable . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current nullable . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current nullable . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current nullable . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current nullable . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current nullable . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current nullable . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current nullable . - - - - - Returns a object that can be used to assert the - current . - - - - - Returns a object that can be used to assert the - current . - - - - - Returns a object that can be used to assert the current . - - - - - - Returns a object that can be used to assert the methods returned by the - current . - - - - - - Returns a object that can be used to assert the - current . - - - - - - Returns a object that can be used to assert the properties returned by the - current . - - - - - - Asserts that the properties of an object matches those of another object. - - - - - Asserts that an object is equivalent to another object. - - - Objects are equivalent when both object graphs have equally named properties with the same value, - irrespective of the type of those objects. Two properties are also equal if one type can be converted to another and the result is equal. - The type of a collection property is ignored as long as the collection implements and all - items in the collection are structurally equal. - Notice that actual behavior is determined by the instance of the - class. - - - An optional formatted phrase as is supported by explaining why the - assertion is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that an object is equivalent to another object. - - - Objects are equivalent when both object graphs have equally named properties with the same value, - irrespective of the type of those objects. Two properties are also equal if one type can be converted to another and the result is equal. - The type of a collection property is ignored as long as the collection implements and all - items in the collection are structurally equal. - - - A reference to the configuration object that can be used - to influence the way the object graphs are compared. You can also provide an alternative instance of the - class. - - - An optional formatted phrase as is supported by explaining why the - assertion is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Safely casts the specified object to the type specified through . - - - Has been introduced to allow casting objects without breaking the fluent API. - - - - - - Contains a number of methods to assert that an is in the expected state. - - - - - Contains a number of methods to assert that a reference type object is in the expected state. - - - - - Asserts that the object is of the specified type . - - The expected type of the object. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the object is assignable to a variable of type . - - The type to which the object should be assignable. - The reason why the object should be assignable to the type. - The parameters used when formatting the . - An which can be used to chain assertions. - - - - Asserts that the is satisfied. - - The predicate which must be statisfied by the . - The reason why the predicate should be satisfied. - The parameters used when formatting the . - An which can be used to chain assertions. - - - - Asserts that the is satisfied. - - The predicate which must be statisfied by the . - The reason why the predicate should be satisfied. - The parameters used when formatting the . - An which can be used to chain assertions. - - - - Gets the object which value is being asserted. - - - - - Asserts that the number of items in the collection matches the supplied amount. - - The expected number of items in the collection. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the number of items in the collection matches a condition stated by the . - - A predicate that yields the number of items that is expected to be in the collection. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the collection does not contain any items. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the collection contains at least 1 item. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the collection does not contain any duplicate items. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the collection does not contain any null items. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Expects the current collection to contain all the same elements in the same order as the collection identified by - . Elements are compared using their . - - A params array with the expected elements. - - - - Expects the current collection to contain all the same elements in the same order as the collection identified by - . Elements are compared using their . - - An with the expected elements. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Expects the current collection not to contain all the same elements in the same order as the collection identified by - . Elements are compared using their . - - An with the elements that are not expected. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Expects the current collection to contain all elements of the collection identified by , - regardless of the order. Elements are compared using their . - - A params array with the expected elements. - - - - Expects the current collection to contain all elements of the collection identified by , - regardless of the order. Elements are compared using their . - - An with the expected elements. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Expects the current collection not to contain all elements of the collection identified by , - regardless of the order. Elements are compared using their . - - An with the unexpected elements. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current collection only contains items that are assignable to the type . - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Expects the current collection to contain the specified elements in any order. Elements are compared - using their implementation. - - An with the expected elements. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Expects the current collection to contain the specified elements in the exact same order. Elements are compared - using their implementation. - - An with the expected elements. - - - - Expects the current collection to contain the specified elements in the exact same order. Elements are compared - using their implementation. - - An with the expected elements. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Expects the current collection to have all elements in ascending order. Elements are compared - using their implementation. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Expects the current collection to have all elements in descending order. Elements are compared - using their implementation. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Expects the current collection to have all elements in the specified . - Elements are compared using their implementation. - - - - - Asserts the current collection does not have all elements in ascending order. Elements are compared - using their implementation. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts the current collection does not have all elements in descending order. Elements are compared - using their implementation. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts the current collection does not have all elements in ascending order. Elements are compared - using their implementation. - - - - - Asserts that the collection is a subset of the . - - An with the expected superset. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the collection is not a subset of the . - - An with the unexpected superset. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Assert that the current collection has the same number of elements as . - - The other collection with the same expected number of elements - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current collection has not been initialized yet with an actual collection. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current collection has been initialized with an actual collection. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current collection has the supplied at the - supplied . - - The index where the element is expected - The expected element - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current collection does not contain the supplied item. - - The element that is not expected to be in the collection - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the collection shares one or more items with the specified . - - The with the expected shared items. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the collection does not share any items with the specified . - - The to compare to. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Contains a number of methods to assert that an is in the expectation state. - - - - - Asserts that two collections contain the same items in the same order, where equality is determined using a - predicate. - - - The collection to compare the subject with. - - - A predicate the is used to determine whether two objects should be treated as equal. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the collection contains the specified item. - - The expectation item. - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Asserts that the collection contains some extra items in addition to the original items. - - An of expectation items. - Additional items that are expectation to be contained by the collection. - - - - Asserts that the collection contains at least one item that matches the predicate. - - A predicate to match the items in the collection against. - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Asserts that the collection only contains items that match a predicate. - - A predicate to match the items in the collection against. - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Asserts that the collection does not contain any items that match the predicate. - - A predicate to match the items in the collection against. - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Expects the current collection to contain only a single item matching the specified . - - The predictes that will be used to find the matching items. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Contains a number of methods to assert that an is in the expected state. - - - - - Asserts that the current dictionary has not been initialized yet with an actual dictionary. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current dictionary has been initialized with an actual dictionary. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the number of items in the dictionary matches the supplied amount. - - The expected number of items. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the number of items in the dictionary matches a condition stated by a predicate. - - The predicate which must be statisfied by the amount of items. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the dictionary does not contain any items. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the dictionary contains at least 1 item. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current dictionary contains all the same key-value pairs as the - specified dictionary. Keys and values are compared using - their implementation. - - The expected dictionary - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts the current dictionary not to contain all the same key-value pairs as the - specified dictionary. Keys and values are compared using - their implementation. - - The unexpected dictionary - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the dictionary contains the specified key. Keys are compared using - their implementation. - - The expected key - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the dictionary contains all of the specified keys. Keys are compared using - their implementation. - - The expected keys - - - - Asserts that the dictionary contains all of the specified keys. Keys are compared using - their implementation. - - The expected keys - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current dictionary does not contain the specified key. - Keys are compared using their implementation. - - The unexpected key - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the dictionary contains the specified value. Values are compared using - their implementation. - - The expected value - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the dictionary contains all of the specified values. Values are compared using - their implementation. - - The expected values - - - - Asserts that the dictionary contains all of the specified values. Values are compared using - their implementation. - - The expected values - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current dictionary does not contain the specified value. - Values are compared using their implementation. - - The unexpected value - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current dictionary contains the specified . - Keys and values are compared using their implementation. - - The expected - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current dictionary contains the specified for the supplied . Values are compared using their implementation. - - The key for which to validate the value - The value to validate - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current dictionary does not contain the specified . - Keys and values are compared using their implementation. - - The unexpected - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current dictionary does not contain the specified for the - supplied . Values are compared using their implementation. - - The key for which to validate the value - The value to validate - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Gets the object which value is being asserted. - - - - - Contains a number of methods to assert that an is in the expected state. - - - - - Asserts that the current collection contains the specified object. Elements are compared - using their implementation. - - An object, or of objects that are expected to be in the collection. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Gets a dotted path of property names representing the property expression. E.g. Parent.Child.Sibling.Name. - - - - - Finds the first index at which the does not match the - string anymore, including the exact casing. - - - - - Finds the first index at which the does not match the - string anymore, accounting for the specified . - - - - - Gets the quoted three characters at the specified index of a string, including the index itself. - - - - - Replaces all characters that might conflict with formatting placeholders and newlines with their escaped counterparts. - - - - - Joins a string with one or more other strings using a specified separator. - - - Any string that is empty (including the original string) is ignored. - - - - - Determines whether two objects refer to the same property. - - - - - Finds the property by a case-sensitive name. - - - Returns null if no such property exists. - - - - - Determines whether the specified method has been annotated with a specific attribute. - - - true if the specified method has attribute; otherwise, false. - - - - - Provides extension methods for monitoring and querying events. - - - - - Starts monitoring an object for its events. - - Thrown if eventSource is Null. - - - - Asserts that an object has raised the event for a particular property. - - - You must call on the same object prior to this call so that Fluent Assertions can - subscribe for the events of the object. - - - - - Asserts that an object has raised the event for a particular property. - - The object exposing the event. - - A lambda expression referring to the property for which the property changed event should have been raised, or - null to refer to all properties. - - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - You must call on the same object prior to this call so that Fluent Assertions can - subscribe for the events of the object. - - - - - Asserts that an object has not raised the event for a particular property. - - - You must call on the same object prior to this call so that Fluent Assertions can - subscribe for the events of the object. - - - - - Asserts that an object has not raised the event for a particular property. - - The object exposing the event. - - A lambda expression referring to the property for which the property changed event should have been raised. - - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - You must call on the same object prior to this call so that Fluent Assertions can - subscribe for the events of the object. - - - - - Asserts that all occurences of the event originated from the . - - - - - Asserts that at least one occurrence of the event had an object matching a predicate. - - - - - Static methods that aid in generic event subscription - - - - - Generates an eventhandler for an event of type eventSignature that calls RegisterEvent on recorder - when invoked. - - - - - Finds the Return Type of a Delegate. - - - - - Returns an Array of Types that make up a delegate's parameter signature. - - - - - Returns an array of types appended with an EventRecorder reference at the beginning. - - - - - Returns T/F Dependent on a Type Being a Delegate. - - - - - Returns the MethodInfo for the Delegate's "Invoke" Method. - - - - - Records activity for a single event. - - - - - Records raised events for one event on one object - - - - - Store information about a raised event - - Parameters the event was raised with - - - - The object events are recorded from - - - - - The name of the event that's recorded - - - - - - The object events are recorded from - The name of the event that's recorded - - - - Enumerate raised events - - - - - Enumerate raised events - - - - - - Called by the auto-generated IL, to record information about a raised event. - - - - - The object events are recorded from - - - - - The name of the event that's recorded - - - - - Simple dictionary that uses a to the event source as the key. - This should ensure the Garbage Collector can still clean-up the event source object. - - - - - This class is used to store data about an intercepted event - - - - - Default constructor stores the parameters the event was raised with - - - - - Parameters for the event - - - - - Helper class for verifying a condition and/or throwing a test harness specific exception representing an assertion failure. - - - - - Gets an object that wraps and executes a conditional or unconditional verification. - - - - - Provides a fluent API for verifying an arbitrary condition. - - - - - Represents the phrase that can be used in as a placeholder for the reason of an assertion. - - - - - Initializes a new instance of the class. - - - - - Gets the name or identifier of the current subject, or a default value if the subject is not known. - - - - - Specify the condition that must be satisfied. - - If true the verification will be succesful. - - - - Specify a predicate that with the condition that must be satisfied. - - - - - Specify the reason why you expect the condition to be true. - - - A formatted phrase explaining why the condition should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Define the failure message for the verification. - - - If the contains the text "{reason}", this will be replaced by the reason as - defined through . Only 10 are supported in combination with - a {reason}. - - The format string that represents the failure message. - Optional arguments for the - - - - Indicates that every argument passed into is displayed on a separate line. - - - - - Gets or sets the name of the subject for the next verification. - - - - - Extension methods on to allow for a more fluent way of specifying a . - - - Instead of
-
- new DateTime(2011, 3, 10)
-
- you can write 3.March(2011)
-
- Or even
-
- 3.March(2011).At(09, 30) -
- -
- - - Returns a new value for the specified and - in the month January. - - - - - Returns a new value for the specified and - in the month February. - - - - - Returns a new value for the specified and - in the month March. - - - - - Returns a new value for the specified and - in the month April. - - - - - Returns a new value for the specified and - in the month May. - - - - - Returns a new value for the specified and - in the month June. - - - - - Returns a new value for the specified and - in the month July. - - - - - Returns a new value for the specified and - in the month August. - - - - - Returns a new value for the specified and - in the month September. - - - - - Returns a new value for the specified and - in the month October. - - - - - Returns a new value for the specified and - in the month November. - - - - - Returns a new value for the specified and - in the month December. - - - - - Returns a new value for the specified and . - - - - - Returns a new value for the specified and time with the specified - , and optionally . - - - - - Returns a new value that is the current before the - specified . - - - - - Returns a new value that is the current after the - specified . - - - - - Specialized value formatter that looks for static methods in the caller's assembly marked with the - . - - - - - Indicates whether the current can handle the specified . - - The value for which to create a . - - true if the current can handle the specified value; otherwise, false. - - - - - Returns a that represents this instance. - - The value for which to create a . - - - A collection of objects that - - - The level of nesting for the supplied value. This is used for indenting the format string for objects that have - no override. - - - A that represents this instance. - - - - - Indicates whether the current can handle the specified . - - The value for which to create a . - - true if the current can handle the specified value; otherwise, false. - - - - - Returns a that represents this instance. - - The value for which to create a . - - - A collection of objects that - - - The level of nesting for the supplied value. This is used for indenting the format string for objects that have - no override. - - - A that represents this instance. - - - - - Indicates whether the current can handle the specified . - - The value for which to create a . - - true if the current can handle the specified value; otherwise, false. - - - - - Returns a that represents this instance. - - The value for which to create a . - - - A collection of objects that - - - The level of nesting for the supplied value. This is used for indenting the format string for objects that have - no override. - - - A that represents this instance. - - - - - Determines whether this instance can handle the specified value. - - The value. - - true if this instance can handle the specified value; otherwise, false. - - - - - Returns a that represents this instance. - - The value for which to create a . - - - A collection of objects that - - - The level of nesting for the supplied value. This is used for indenting the format string for objects that have - no override. - - - A that represents this instance. - - - - - Indicates whether the current can handle the specified . - - The value for which to create a . - - true if the current can handle the specified value; otherwise, false. - - - - - Returns a that represents this instance. - - The value for which to create a . - - - A collection of objects that - - - The level of nesting for the supplied value. This is used for indenting the format string for objects that have - no override. - - - A that represents this instance. - - - - - Indicates whether the current can handle the specified . - - The value for which to create a . - - true if the current can handle the specified value; otherwise, false. - - - - - Returns a that represents this instance. - - The value for which to create a . - - - A collection of objects that - - - The level of nesting for the supplied value. This is used for indenting the format string for objects that have - no override. - - - A that represents this instance. - - - - - Provides services for formatting an object being used in an assertion in a human readable format. - - - - - A list of objects responsible for formatting the objects represented by placeholders. - - - - - Returns a human-readable representation of a particular object. - - The value for which to create a . - - The level of nesting for the supplied value. This is used for indenting the format string for objects that have - no override. - - - Indicates whether the formatter should use line breaks when the specific supports it. - - - A that represents this instance. - - - - - Indicates whether the current can handle the specified . - - The value for which to create a . - - true if the current can handle the specified value; otherwise, false. - - - - - Returns a that represents this instance. - - The value for which to create a . - - - A collection of objects that - - - The level of nesting for the supplied value. This is used for indenting the format string for objects that have - no override. - - - A that represents this instance. - - - - - Indicates whether the current can handle the specified . - - The value for which to create a . - - true if the current can handle the specified value; otherwise, false. - - - - - Returns a that represents this instance. - - The value for which to create a . - - - A collection of objects that - - - The level of nesting for the supplied value. This is used for indenting the format string for objects that have - no override. - - - A that represents this instance. - - - - - Indicates whether the current can handle the specified . - - The value for which to create a . - - true if the current can handle the specified value; otherwise, false. - - - - - Returns a that represents this instance. - - The value for which to create a . - - - A collection of objects that - - - The level of nesting for the supplied value. This is used for indenting the format string for objects that have - no override. - - - A that represents this instance. - - - - - Indicates whether the current can handle the specified . - - The value for which to create a . - - true if the current can handle the specified value; otherwise, false. - - - - - Returns a that represents this instance. - - The value for which to create a . - - - A collection of objects that - - - The level of nesting for the supplied value. This is used for indenting the format string for objects that have - no override. - - - A that represents this instance. - - - - - Indicates whether the current can handle the specified . - - The value for which to create a . - - true if the current can handle the specified value; otherwise, false. - - - - - Returns a that represents this instance. - - The value for which to create a . - - - A collection of objects that - - - The level of nesting for the supplied value. This is used for indenting the format string for objects that have - no override. - - - A that represents this instance. - - - - - Marks a static method as a kind of for a particular type. - - - - - Indicates whether the current can handle the specified . - - The value for which to create a . - - true if the current can handle the specified value; otherwise, false. - - - - - Returns a that represents this instance. - - The value for which to create a . - - - A collection of objects that - - - The level of nesting for the supplied value. This is used for indenting the format string for objects that have - no override. - - - A that represents this instance. - - - - - Returns a that represents this instance. - - The value for which to create a . - - - A collection of objects that - - - The level of nesting for the supplied value. This is used for indenting the format string for objects that have - no override. - - - A that represents this instance. - - - - - Indicates whether the current can handle the specified . - - The value for which to create a . - - true if the current can handle the specified value; otherwise, false. - - - - - Returns a that represents this instance. - - The value for which to create a . - - - A collection of objects that - - - The level of nesting for the supplied value. This is used for indenting the format string for objects that have - no override. - - - A that represents this instance. - - - - - Contains a number of extension methods for floating point . - - - - - Asserts a floating point value approximates another value as close as possible. - - The object that is being extended. - - The expected value to compare the actual value with. - - - The maximum amount of which the two values may differ. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts a floating point value approximates another value as close as possible. - - The object that is being extended. - - The expected value to compare the actual value with. - - - The maximum amount of which the two values may differ. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts a floating point value approximates another value as close as possible. - - The object that is being extended. - - The expected value to compare the actual value with. - - - The maximum amount of which the two values may differ. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts a floating point value approximates another value as close as possible. - - The object that is being extended. - - The expected value to compare the actual value with. - - - The maximum amount of which the two values may differ. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Contains a number of methods to assert that an is in the expected state. - - - - - Asserts that the subject is considered equal to another object according to the implementation of . - - - The object to pass to the subject's method. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the subject is not equal to another object according to its implementation of . - - - The object to pass to the subject's method. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the subject is less than another object according to its implementation of . - - - The object to pass to the subject's method. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the subject is less than or equal to another object according to its implementation of . - - - The object to pass to the subject's method. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the subject is greater than another object according to its implementation of . - - - The object to pass to the subject's method. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the subject is greater than or equal to another object according to its implementation of . - - - The object to pass to the subject's method. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a value is within a range. - - - Where the range is continuous or incremental depends on the actual type of the value. - - - The minimum valid value of the range. - - - The maximum valid value of the range. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a nullable numeric value is not null. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a nullable numeric value is null. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Gets the object which value is being asserted. - - - - - Contains a number of methods to assert that an is in the expected state. - - - - - Asserts that the integral number value is exactly the same as the value. - - The expected value. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the integral number value is exactly the same as the value. - - The expected value. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the integral number value is not the same as the value. - - The unexpected value. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the integral number value is not the same as the value. - - The unexpected value. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the numeric value is greater than or equal to zero. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the numeric value is less than zero. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the numeric value is less than the specified value. - - The value to compare the current numeric value with. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the numeric value is less than or equal to the specified value. - - The value to compare the current numeric value with. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the numeric value is greater than the specified value. - - The value to compare the current numeric value with. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the numeric value is greater than or equal to the specified value. - - The value to compare the current numeric value with. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a value is within a range. - - - Where the range is continuous or incremental depends on the actual type of the value. - - - The minimum valid value of the range. - - - The maximum valid value of the range. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a value is one of the specified . - - - The values that are valid. - - - - - Asserts that a value is one of the specified . - - - The values that are valid. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a nullable numeric value is not null. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a nullable numeric value is null. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Contains a number of methods to assert that a is in the expected state. - - - - - Asserts that the value is false. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the value is true. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the value is equal to the specified value. - - The expected value - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Gets the object which value is being asserted. - - - - - Defines the way compares the expected exception - message with the actual one. - - - - - The message must match exactly, including the casing of the characters. - - - - - The message must match except for the casing of the characters. - - - - - The message must start with the exact text, including the casing of the characters.. - - - - - The message must start with the text except for the casing of the characters. - - - - - The message must contain the exact text. - - - - - The message must contain the text except for the casing of the characters. - - - - - The message must match a wildcard pattern consisting of ordinary characters as well as * and ?. - - - - - Contains a number of methods to assert that a is in the expected state. - - - You can use the for a more fluent way of specifying a . - - - - - Asserts that the current is exactly equal to the value. - - The expected value - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current is not equal to the value. - - The unexpected value - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current is within the specified number of milliseconds (default = 20 ms) - from the specified value. - - - Use this assertion when, for example the database truncates datetimes to nearest 20ms. If you want to assert to the exact datetime, - use . - - - The expected time to compare the actual value with. - - - The maximum amount of milliseconds which the two values may differ. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current is before the specified value. - - The that the current value is expected to be before. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current is either on, or before the specified value. - - The that the current value is expected to be on or before. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current is after the specified value. - - The that the current value is expected to be after. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current is either on, or after the specified value. - - The that the current value is expected to be on or after. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current has the year. - - The expected year of the current value. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current has the month. - - The expected month of the current value. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current has the day. - - The expected day of the current value. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current has the hour. - - The expected hour of the current value. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current has the minute. - - The expected minutes of the current value. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current has the second. - - The expected seconds of the current value. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Returns a object that can be used to assert that the current - exceeds the specified compared to another . - - - The amount of time that the current should exceed compared to another . - - - - - Returns a object that can be used to assert that the current - is equal to or exceeds the specified compared to another . - - - The amount of time that the current should be equal or exceed compared to - another . - - - - - Returns a object that can be used to assert that the current - differs exactly the specified compared to another . - - - The amount of time that the current should differ exactly compared to another . - - - - - Returns a object that can be used to assert that the current - is within the specified compared to another . - - - The amount of time that the current should be within another . - - - - - Returns a object that can be used to assert that the current - differs at maximum the specified compared to another . - - - The maximum amount of time that the current should differ compared to another . - - - - - Gets the object which value is being asserted. - - - - - Contains a number of methods to assert that a is in the correct state. - - - - - Asserts that the is . - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the is not . - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the is equal to the GUID. - - The expected value to compare the actual value with. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the is equal to the GUID. - - The expected value to compare the actual value with. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the is not equal to the GUID. - - The unexpected value to compare the actual value with. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Gets the object which value is being asserted. - - - - - Contains a number of methods to assert that a nullable is in the expected state. - - - - - Asserts that a nullable boolean value is not null. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a nullable boolean value is null. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the value is equal to the specified value. - - The expected value - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Contains a number of methods to assert that a nullable is in the expected state. - - - You can use the for a more fluent way of specifying a . - - - - - Asserts that a nullable value is not null. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a nullable value is null. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the value is equal to the specified value. - - The expected value - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Contains a number of methods to assert that a nullable is in the expected state. - - - - - Asserts that a nullable value is not null. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a nullable value is null. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the value is equal to the specified value. - - The expected value - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Contains a number of methods to assert that a nullable is in the expected state. - - - You can use the for a more fluent way of specifying a . - - - - - Contains a number of methods to assert that a nullable is in the expected state. - - - - - Asserts that the time difference of the current is greater than zero. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the time difference of the current is less than zero. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the time difference of the current is equal to the - specified time. - - The expected time difference - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the time difference of the current is not equal to the - specified time. - - The unexpected time difference - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the time difference of the current is less than the - specified time. - - The time difference to which the current value will be compared - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the time difference of the current is less than or equal to the - specified time. - - The time difference to which the current value will be compared - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the time difference of the current is greater than the - specified time. - - The time difference to which the current value will be compared - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the time difference of the current is greater than or equal to the - specified time. - - The time difference to which the current value will be compared - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Gets the object which value is being asserted. - - - - - Asserts that a nullable value is not null. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a nullable value is null. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Contains a number of methods to assert that an is in the expected state. - - - - - Asserts that an object equals another object using its implementation. - - The expected value - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that an object does not equal another object using it's method. - - The unexpected value - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Asserts that an object reference refers to the exact same object as another object reference. - - The expected object - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Asserts that an object reference refers to a different object than another object reference refers to. - - The unexpected object - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Asserts that the object is null. - - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Asserts that the object is not null. - - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Contains a number of methods to assert that a is in the expected state. - - - - - Initializes a new instance of the class. - - - - - Asserts that a string is exactly the same as another string, including the casing and any leading or trailing whitespace. - - The expected string. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the is one of the specified . - - - The values that are valid. - - - - - Asserts that the is one of the specified . - - - The values that are valid. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string is exactly the same as another string, including any leading or trailing whitespace, with - the exception of the casing. - - - The string that the subject is expected to be equivalent to. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string is not exactly the same as the specified , - including any leading or trailing whitespace, with the exception of the casing. - - The string that the subject is not expected to be equivalent to. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string matches a wildcard pattern. - - - The wildcard pattern with which the subject is matched, where * and ? have special meanings. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string does not match a wildcard pattern. - - - The wildcard pattern with which the subject is matched, where * and ? have special meanings. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string matches a wildcard pattern. - - - The wildcard pattern with which the subject is matched, where * and ? have special meanings. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string does not match a wildcard pattern. - - - The wildcard pattern with which the subject is matched, where * and ? have special meanings. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string starts exactly with the specified value, - including the casing and any leading or trailing whitespace. - - The string that the subject is expected to start with. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string starts with the specified , - including any leading or trailing whitespace, with the exception of the casing. - - The string that the subject is expected to start with. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string ends exactly with the specified , - including the casing and any leading or trailing whitespace. - - The string that the subject is expected to end with. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string ends with the specified , - including any leading or trailing whitespace, with the exception of the casing. - - The string that the subject is expected to end with. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string contains another (fragment of a) string. - - - The (fragement of a) string that the current string should contain. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string contains the specified , - including any leading or trailing whitespace, with the exception of the casing. - - The string that the subject is expected to contain. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string does not contain another (fragment of a) string. - - - The (fragement of a) string that the current string should not contain. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string does not contain the specified string, - including any leading or trailing whitespace, with the exception of the casing. - - The string that the subject is not expected to contain. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string is . - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string is not . - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string has the specified length. - - The expected length of the string - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string is null. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string is not null. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string is neither null nor . - - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Asserts that a string is either null or . - - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Asserts that a string is neither null nor nor white space - - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Asserts that a string is either null or or white space - - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Gets the object which value is being asserted. - - - - - Dedicated class for comparing two strings and generating consistent error messages. - - - - - Gets or sets a value indicating whether the subject should not match the pattern. - - - - - Gets or sets a value indicating whether the matching process should ignore any casing difference. - - - - - Contains a number of methods to assert that two objects differ in the expected way. - - - You can use the and for a more fluent - way of specifying a or a . - - - - - Asserts that a occurs a specified amount of time before another . - - - The to compare the subject with. - - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Asserts that a occurs a specified amount of time after another . - - - The to compare the subject with. - - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Provides the logic and the display text for a . - - - - - Contains a number of methods to assert that an yields the expected result. - - - - - Asserts that the current throws an exception of type . - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current does not throw an exception of type . - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current does not throw any exception. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Gets the that is being asserted. - - - - - Contains a number of methods to assert that an is in the correct state. - - - - - Asserts that the thrown exception has a message that matches - depending on the specified matching mode. - - - The expected message of the exception. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the thrown exception has a message that matches - depending on the specified matching mode. - - - The expected message of the exception. - - - Determines how the expected message is compared with the actual message. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the thrown exception contains an inner exception of type . - - The expected type of the inner exception. - - - - Asserts that the thrown exception contains an inner exception of type . - - The expected type of the inner exception. - The reason why the inner exception should be of the supplied type. - The parameters used when formatting the . - - - - Asserts that the thrown exception contains an inner exception with the . - - The expected message of the inner exception. - Determines how the expected message is compared with the actual message. - - - - Asserts that the thrown exception contains an inner exception with the . - - The expected message of the inner exception. - - The reason why the message of the inner exception should match . - - The parameters used when formatting the . - - - - Asserts that the thrown exception contains an inner exception with the . - - The expected message of the inner exception. - Determines how the expected message is compared with the actual message. - - The reason why the message of the inner exception should match . - - The parameters used when formatting the . - - - - Asserts that the exception matches a particular condition. - - - The condition that the exception must match. - - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Gets the exception object of the exception thrown. - - - - - Selection rule that adds all public properties of the subject as far as they are defined on the declared - type. - - - - - Represents a rule that defines which properties of the subject-under-test to include while comparing - two objects for structural equality. - - - - - Adds or removes properties to/from the collection of subject properties that must be included while - comparing two objects for structural equality. - - - A collection of properties that was prepopulated by other selection rules. Can be empty. - - Type info about the subject. - - - The collection of properties after applying this rule. Can contain less or more than was passed in. - - - - - Adds or removes properties to/from the collection of subject properties that must be included while - comparing two objects for structural equality. - - - A collection of properties that was prepopulated by other selection rules. Can be empty. - - The collection of properties after applying this rule. Can contain less or more than was passed in. - - - - - Returns a string that represents the current object. - - - A string that represents the current object. - - 2 - - - - Selection rule that adds all public properties of the subject based on its run-time type rather than its - declared type. - - - - - Adds or removes properties to/from the collection of subject properties that must be included while - comparing two objects for structural equality. - - - A collection of properties that was prepopulated by other selection rules. Can be empty. - - The collection of properties after applying this rule. Can contain less or more than was passed in. - - - - - Returns a string that represents the current object. - - - A string that represents the current object. - - 2 - - - - Gets a value indicating whether this step can handle the current subject and/or expectation. - - - - - Applies a step as part of the task to compare two objects for structural equality. - - - Should return true if the subject matches the expectation or if no additional assertions - have to be executed. Should return false otherwise. - - - May throw when preconditions are not met or if it detects mismatching data. - - - - - Gets a value indicating whether this step can handle the current subject and/or expectation. - - - - - Applies a step as part of the task to compare two objects for structural equality. - - - Should return true if the subject matches the expectation or if no additional assertions - have to be executed. Should return false otherwise. - - - May throw when preconditions are not met or if it detects mismatching data. - - - - - General purpose implementation of that uses a predicate to determine whether - this rule applies to a particular property and executes an action to assert equality. - - The type of the subject. - - - - Defines how a subject's property is compared for equality with the same property of the expectation. - - - Provides details about the subject's property. - - - The value of the subject's property. - - - The value of a property on expectation object that was identified - - - Returns true if the rule was applied correctly and the assertion didn't cause any exceptions. - Returns false if this rule doesn't support the subject's type. - Throws if the rule did support the data type but assertion fails. - - - - - Defines how a subject's property is compared for equality with the same property of the expectation. - - - Provides details about the subject's property. - - - The value of the subject's property. - - - The value of a property on expectation object that was identified - - - Returns true if the rule was applied correctly and the assertion didn't cause any exceptions. - Returns false if this rule doesn't support the subject's type. - Throws if the rule did support the data type but assertion fails. - - - - - Provides the required information for executing an equality assertion between a subject and an expectation. - - The type of the subject. - - - - Gets the of the property that returned the current object, or null if the current - object represents the root object. - - - - - Gets the value of the - - - - - Gets the value of the expectation object that was matched with the subject using a . - - - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - - - Zero or more objects to format using the placeholders in . - - - - - Selection rule that removes a particular property from the structural comparison based on a predicate. - - - - - Adds or removes properties to/from the collection of subject properties that must be included while - comparing two objects for structural equality. - - - A collection of properties that was prepopulated by other selection rules. Can be empty. - - The collection of properties after applying this rule. Can contain less or more than was passed in. - - - - - Returns a string that represents the current object. - - - A string that represents the current object. - - 2 - - - - Provides details about the subject's root or nested property. - - - - - Gets the of the property that returned the current object, or null if the current - object represents the root object. - - - - - Gets the full path from the root object until the current object separated by dots. - - - - - Gets a display-friendly representation of the . - - - - - Gets the compile-time type of the current object. If the current object is not the root object, then it returns the - same as the property does. - - - - - Gets the run-time type of the current object. - - - - - Represents a selection context of a nested property - - - - - Gets the of the property that returned the current object, or - null if the current object represents the root object. - - - - - Gets the full path from the root object until the current property, separated by dots. - - - - - Gets a textual description of the current property based on the . - - - - - Gets the compile-time type of the current object. If the current object is not the root object, then it returns the - same as the property does. - - - - - Gets the run-time type of the current object. - - - - - Is responsible for the exact run-time behavior of a structural equality comparison. - - The type of the subject. - - - - Provides the run-time details of the class. - - - - - Gets an ordered collection of selection rules that define what properties are included. - - - - - Gets an ordered collection of matching rules that determine which subject properties are matched with which - expectation properties. - - - - - Gets an ordered collection of assertion rules that determine how subject properties are compared for equality with - expectation properties. - - - - - Gets or sets a value indicating whether or not the assertion must perform a deep comparison. - - - - - Gets a configuration that compares all declared properties of the subject with equally named properties of the expectation, - and includes the entire object graph. The names of the properties between the subject and expectation must match. - - - - - Gets a configuration that by default doesn't include any of the subject's properties and doesn't consider any nested objects - or collections. - - - - - Adds all public properties of the subject as far as they are defined on the declared type. - - - - - Adds all public properties of the subject based on its run-time type rather than its declared type. - - - - - Tries to match the properties of the subject with equally named properties on the expectation. Ignores those - properties that don't exist on the expectation. - - - - - Requires the expectation to have properties which are equally named to properties on the subject. - - - - - - Excludes the specified (nested) property from the structural equality check. - - - - - Excludes a (nested) property based on a predicate from the structural equality check. - - - - - Includes the specified property in the equality check. - - - This overrides the default behavior of including all declared properties. - - - - - The assertion to execute when the predicate is met. - - - - - Causes the structural equality check to include nested collections and complex types. - - - - - Causes the structural equality check to ignore any cyclic references. - - - By default, cyclic references within the object graph will cause an exception to be thrown. - - - - - Clears all selection rules, including those that were added by default. - - - - - Clears all matching rules, including those that were added by default. - - - - - Adds a selection rule to the ones allready added by default and which is evaluated after all existing rules. - - - - - Adds a matching rule to the ones allready added by default and which is evaluated before all existing rules. - - - - - Adds a matching rule to the ones allready added by default and which is evaluated before all existing rules - - - - - Returns a string that represents the current object. - - - A string that represents the current object. - - 2 - - - - Gets an ordered collection of selection rules that define what properties are included. - - - - - Gets an ordered collection of matching rules that determine which subject properties are matched with which - expectation properties. - - - - - Gets an ordered collection of assertion rules that determine how subject properties are compared for equality with - expectation properties. - - - - - Gets value indicating whether the equality check will include nested collections and complex types. - - - - - Gets value indicating how cyclic references should be handled. By default, it will throw an exception. - - - - - Defines additional overrides when used with - - - - - Allows overriding the way structural equality is applied to (nested) objects of tyoe - - - - - Allows overriding the way structural equality is applied to particular properties. - - - A predicate based on the of the subject that is used to identify the property for which the - override applies. - - - - - Gets a value indicating whether this step can handle the current subject and/or expectation. - - - - - Applies a step as part of the task to compare two objects for structural equality. - - - Should return true if the subject matches the expectation or if no additional assertions - have to be executed. Should return false otherwise. - - - May throw when preconditions are not met or if it detects mismatching data. - - - - - Indication of how cyclic references should be handled when validating equality of nested properties. - - - - - Cyclic references will be ignored. - - - - - Cyclic references will result in an exception. - - - - - Gets a value indicating whether this step can handle the current subject and/or expectation. - - - - - Applies a step as part of the task to compare two objects for structural equality. - - - Should return true if the subject matches the expectation or if no additional assertions - have to be executed. Should return false otherwise. - - - May throw when preconditions are not met or if it detects mismatching data. - - - - - Gets a value indicating whether this step can handle the current subject and/or expectation. - - - - - Applies a step as part of the task to compare two objects for structural equality. - - - Should return true if the subject matches the expectation or if no additional assertions - have to be executed. Should return false otherwise. - - - May throw when preconditions are not met or if it detects mismatching data. - - - - - Selection rule that removes a particular property from the structural comparison. - - - - - Adds or removes properties to/from the collection of subject properties that must be included while - comparing two objects for structural equality. - - - A collection of properties that was prepopulated by other selection rules. Can be empty. - - - The collection of properties after applying this rule. Can contain less or more than was passed in. - - - - - Returns a that represents this instance. - - - A that represents this instance. - - - - - Represents a rule that defines how to map the properties from the subject-under-test with the properties - on the expectation object. - - - - - Attempts to find a property on the expectation that should be compared with the - during a structural equality. - - - Whether or not a match is required or optional is up to the specific rule. If no match is found and this is not an issue, - simply return null. - - - The of the subject's property for which a match must be found. Can never - be null. - - - The expectation object for which a matching property must be returned. Can never be null. - - - The dotted path from the root object to the current property. Will never be null. - - - Returns the of the property with which to compare the subject with, or null - if no match was found. - - - - - Selection rule that includes a particular property in the structural comparison. - - - - - Adds or removes properties to/from the collection of subject properties that must be included while - comparing two objects for structural equality. - - - A collection of properties that was prepopulated by other selection rules. Can be empty. - - The collection of properties after applying this rule. Can contain less or more than was passed in. - - - - - Returns a that represents this instance. - - - A that represents this instance. - - - - - Provides information on a particular property during an assertion for structural equality of two object graphs. - - - - - Gets the property of the that was matched against the , - or null if is true. - - - - - Gets the value of the . - - - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - - - Zero or more objects to format using the placeholders in . - - - - - Gets a verification object associated with the current and . - - - - - Gets a value indicating whether the current context represents the root of the object graph. - - - - - Gets the value of the - - - - - Requires the expectation object to have a property with the exact same name. - - - - - Attempts to find a property on the expectation that should be compared with the - during a structural equality. - - - Whether or not a match is required or optional is up to the specific rule. If no match is found and this is not an issue, - simply return null. - - - The of the subject's property for which a match must be found. Can never - be null. - - - The expectation object for which a matching property must be returned. Can never be null. - - - The dotted path from the root object to the current property. Will never be null. - - - Returns the of the property with which to compare the subject with, or null - if no match was found. - - - - - Returns a string that represents the current object. - - - A string that represents the current object. - - 2 - - - - Provides methods for selecting one or more properties of an object and comparing them with another object. - - - - - Includes all properties of when comparing the subject with another object using . - - - - - Includes all properties of including those of the run-time type when comparing the subject - with another object using . - - - - - Includes all properties of when comparing the subject with another object using , - except those that the other object does not have. - - - - - Perform recursive property comparison of the child properties for objects that are of incompatible type. - - - Indication of how cyclic references in the nested properties should be handled. By default this will result in an - exception, but if is specified, cyclic references will just be ignored. - - - - - Includes all properties of when comparing the subject with another object using , - except those specified using a property expression. - - A single property expression to exclude. - Optional list of additional property expressions to exclude. - - - - Excludes the properties specified by the from the comparison. - - A single property expression to exclude. - Optional list of additional property expressions to exclude. - - - - Includes only those properties of when comparing the subject with another object using - that were specified using a property expression. - - A single property expression to include. - Optional list of additional property expressions to include. - - - - Asserts that the previously selected properties of have the same value as the equally named - properties of . - - The object to compare the current object with - - Property values are considered equal if, after converting them to the requested type, calling - returns true. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Gets a value indicating whether this step can handle the current subject and/or expectation. - - - - - Applies a step as part of the task to compare two objects for structural equality. - - - Should return true if the subject matches the expectation or if no additional assertions - have to be executed. Should return false otherwise. - - - May throw when preconditions are not met or if it detects mismatching data. - - - - - Gets the of the property that returned the current object, or - null if the current object represents the root object. - - - - - Gets the full path from the root object until the current property, separated by dots. - - - - - Gets a textual description of the current property based on the . - - - - - Gets the value of the - - - - - Gets the property of the that was matched against the , - or null if is true. - - - - - Gets the value of the . - - - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - - - Zero or more objects to format using the placeholders in . - - - - - Gets a value indicating whether the current context represents the root of the object graph. - - - - - Gets the compile-time type of the current object. If the current object is not the root object, then it returns the - same as the property does. - - - - - Gets the run-time type of the current object. - - - - - Gets a verification object associated with the current and . - - - - - Is responsible for validating the equality of one or more properties of a subject with another object. - - - - - Gets a value indicating whether this step can handle the current subject and/or expectation. - - - - - Applies a step as part of the task to compare two objects for structural equality. - - - Should return true if the subject matches the expectation or if no additional assertions - have to be executed. Should return false otherwise. - - - May throw when preconditions are not met or if it detects mismatching data. - - - - - Finds a property of the expectation with the exact same name, but doesn't require it. - - - - - Attempts to find a property on the expectation that should be compared with the - during a structural equality. - - - Whether or not a match is required or optional is up to the specific rule. If no match is found and this is not an issue, - simply return null. - - - The of the subject's property for which a match must be found. Can never - be null. - - - The expectation object for which a matching property must be returned. Can never be null. - - - The dotted path from the root object to the current property. Will never be null. - - - Returns the of the property with which to compare the subject with, or null - if no match was found. - - - - - Returns a string that represents the current object. - - - A string that represents the current object. - - 2 - - - - Extension methods on to allow for a more fluent way of specifying a . - - - Instead of
-
- TimeSpan.FromHours(12)
-
- you can write
-
- 12.Hours()
-
- Or even
-
- 12.Hours().And(30.Minutes()). -
- -
- - - Returns a based on a number of milliseconds. - - - - - Returns a based on a number of seconds. - - - - - Returns a based on a number of seconds, and add the specified - . - - - - - Returns a based on a number of minutes. - - - - - Returns a based on a number of minutes, and add the specified - . - - - - - Returns a based on a number of hours. - - - - - Returns a based on a number of hours, and add the specified - . - - - - - Returns a based on a number of days. - - - - - Returns a based on a number of days, and add the specified - . - - - - - Convenience method for chaining multiple calls to the methods provided by this class. - - - 23.Hours().And(59.Minutes()) - - - - - Extension methods for getting method and property selectors for a type. - - - - - Returns the types that are visible outside the specified . - - - - - Returns a method selector for the current . - - - - - Returns a method selector for the current . - - - - - Returns a property selector for the current . - - - - - Returns a property selector for the current . - - - - - Static class that allows for a 'fluent' selection of the types from an . - - - AllTypes.From(myAssembly)
- .ThatImplement<ISomeInterface>
- .Should()
- .BeDecoratedWith<SomeAttribute>() -
-
- - - Returns a for selecting the types that are visible outside the - specified . - - The assembly from which to select the types. - - - - Contains assertions for the objects returned by the parent . - - - - - Initializes a new instance of the class. - - The method to assert. - - - - Initializes a new instance of the class. - - The methods to assert. - - - - Asserts that the selected methods are virtual. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the selected methods are decorated with the specified . - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Gets the object which value is being asserted. - - - - - Allows for fluent selection of methods of a type through reflection. - - - - - Initializes a new instance of the class. - - The type from which to select methods. - - - - Initializes a new instance of the class. - - The types from which to select methods. - - - - Only select the methods that return the specified type - - - - - Only select the methods that are decorated with an attribute of the specified type. - - - - - The resulting objects. - - - - - Determines whether the specified method has a special name (like properties and events). - - - - - Returns an enumerator that iterates through the collection. - - - A that can be used to iterate through the collection. - - 1 - - - - Returns an enumerator that iterates through a collection. - - - An object that can be used to iterate through the collection. - - 2 - - - - Only select the methods that are public or internal. - - - - - Only select the methods without a return value - - - - - Contains assertions for the objects returned by the parent . - - - - - Initializes a new instance of the class, for a single . - - The property to assert. - - - - Initializes a new instance of the class, for a number of objects. - - The properties to assert. - - - - Asserts that the selected properties are virtual. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the selected methods are decorated with the specified . - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Gets the object which value is being asserted. - - - - - Allows for fluent selection of properties of a type through reflection. - - - - - Initializes a new instance of the class. - - The type from which to select properties. - - - - Initializes a new instance of the class. - - The types from which to select properties. - - - - Only select the properties that are decorated with an attribute of the specified type. - - - - - Only select the properties that return the specified type - - - - - The resulting objects. - - - - - Returns an enumerator that iterates through the collection. - - - A that can be used to iterate through the collection. - - 1 - - - - Returns an enumerator that iterates through a collection. - - - An object that can be used to iterate through the collection. - - 2 - - - - Only select the properties that have a public or internal getter. - - - - - Contains a number of methods to assert that a meets certain expectations. - - - - - Initializes a new instance of the class. - - - - - Asserts that the current type is equal to the specified type. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current type is equal to the specified type. - - The expected type - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Creates an error message in case the specifed type differs from the - type. - - - An empty if the two specified types are the same, or an error message that describes that - the two specified types are not the same. - - - - - Asserts that the current type is not equal to the specified type. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current type is not equal to the specified type. - - The unexpected type - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current is decorated with the specified . - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current is decorated with an attribute of type - that matches the specified . - - - The predicate that the attribute must match. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Gets the object which value is being asserted. - - - - - Allows for fluent filtering a list of types. - - - - - The resulting objects. - - - - - Determines whether a type is a subclass of another type, but NOT the same type. - - - - - Determines whether a type implements an interface (but is not the interface itself). - - - - - Determines whether a type is decorated with a particular attribute. - - - - - Determines whether the namespace of type is exactly . - - - - - Determines whether the namespace of type is starts with . - - - - - Returns an enumerator that iterates through the collection. - - - A that can be used to iterate through the collection. - - 1 - - - - Returns an enumerator that iterates through a collection. - - - An object that can be used to iterate through the collection. - - 2 - - - - Contains a number of methods to assert that all s in a - meet certain expectations. - - - - - Initializes a new instance of the class. - - - - - Asserts that the current is decorated with the specified . - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current is decorated with an attribute of type - that matches the specified . - - - The predicate that the attribute must match. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Gets the object which value is being asserted. - - - - - Contains a number of methods to assert that an is in the expected state. - - - - - Initializes a new instance of the class. - - - - - Asserts that the current equals the attribute. - - The expected attribute - - - - Asserts that the current equals the attribute. - - The expected attribute - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current does not equal the attribute, - using its implementation. - - The unexpected attribute - - - - Asserts that the current does not equal the attribute, - using its implementation. - - The unexpected attribute - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the is null. - - - - - Asserts that the is null. - - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Asserts that the is not null. - - - - - Asserts that the is not null. - - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Asserts that the current has the specified value. - - The expected value - - - - Asserts that the current has the specified value. - - The expected value - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Gets the object which value is being asserted. - - - - - Contains a number of methods to assert that an is in the expected state. - - - - - Initializes a new instance of the class. - - - - - Asserts that the current equals the document, - using its implementation. - - The expected document - - - - Asserts that the current equals the document, - using its implementation. - - The expected document - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current does not equal the document, - using its implementation. - - The unexpected document - - - - Asserts that the current does not equal the document, - using its implementation. - - The unexpected document - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the is null. - - - - - Asserts that the is null. - - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Asserts that the is not null. - - - - - Asserts that the is not null. - - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Asserts that the current has a root element with the specified - name. - - The name of the expected root element of the current document. - - - - Asserts that the current has a root element with the specified - name. - - The name of the expected root element of the current document. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the element of the current has a direct - child element with the specified name. - - - The name of the expected child element of the current document's Root element. - - - - - Asserts that the element of the current has a direct - child element with the specified name. - - - The name of the expected child element of the current document's Root element. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Gets the object which value is being asserted. - - - - - Contains a number of methods to assert that an is in the expected state. - - - - - Initializes a new instance of the class. - - - - - Asserts that the current equals the element. - - The expected element - - - - Asserts that the current equals the element. - - The expected element - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current does not equal the element, - using its implementation. - - The unexpected element - - - - Asserts that the current does not equal the element, - using its implementation. - - The unexpected element - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the is null. - - - - - Asserts that the is null. - - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Asserts that the is not null. - - - - - Asserts that the is not null. - - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Asserts that the current has an attribute with the specified - and . - - The name of the expected attribute - The value of the expected attribute - - - - Asserts that the current has an attribute with the specified - and . - - The name of the expected attribute - The value of the expected attribute - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current has a direct child element with the specified - name. - - The name of the expected child element - - - - Asserts that the current has a direct child element with the specified - name. - - The name of the expected child element - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Gets the object which value is being asserted. - - -
-
diff --git a/packages/FluentAssertions.2.0.1/lib/sl4/Microsoft.VisualStudio.QualityTools.UnitTesting.Silverlight.dll b/packages/FluentAssertions.2.0.1/lib/sl4/Microsoft.VisualStudio.QualityTools.UnitTesting.Silverlight.dll deleted file mode 100644 index 9313918b..00000000 Binary files a/packages/FluentAssertions.2.0.1/lib/sl4/Microsoft.VisualStudio.QualityTools.UnitTesting.Silverlight.dll and /dev/null differ diff --git a/packages/FluentAssertions.2.0.1/lib/sl4/Microsoft.VisualStudio.QualityTools.UnitTesting.Silverlight.pdb b/packages/FluentAssertions.2.0.1/lib/sl4/Microsoft.VisualStudio.QualityTools.UnitTesting.Silverlight.pdb deleted file mode 100644 index 6096960b..00000000 Binary files a/packages/FluentAssertions.2.0.1/lib/sl4/Microsoft.VisualStudio.QualityTools.UnitTesting.Silverlight.pdb and /dev/null differ diff --git a/packages/FluentAssertions.2.0.1/lib/sl4/Microsoft.VisualStudio.QualityTools.UnitTesting.Silverlight.xml b/packages/FluentAssertions.2.0.1/lib/sl4/Microsoft.VisualStudio.QualityTools.UnitTesting.Silverlight.xml deleted file mode 100644 index f8009f50..00000000 --- a/packages/FluentAssertions.2.0.1/lib/sl4/Microsoft.VisualStudio.QualityTools.UnitTesting.Silverlight.xml +++ /dev/null @@ -1,3429 +0,0 @@ - - - - Microsoft.VisualStudio.QualityTools.UnitTesting.Silverlight - - - - - UrlToTest specifies the url that should be requested to give context to the test. - - - - - An unused attribute. - - - - - - Gets the URL to test. - - - - - AspNetDevelopmentServer specifies the settings to be used for the - ASP.NET Development Server for the test. - - - - - Initializes the AspNetDevelopmentServerAttribute. - - The name. - The path to web app. - - - - Initializes the AspNetDevelopmentServerAttribute. - - The name. - The path to web app. - The web app root. - - - - Gets the name. - - - - - Gets the PathToWebApp. - - - - - Gets the web app root. - - - - - AspNetDevelopmentServerHost specifies the settings to be used when - ASP.NET Development Server is the host server for the test. - - - - - Initializes the AspNetDevelopmentServerHostAttribute. - - The path to the web app. - - - - Initializes the AspNetDevelopmentServerHostAttribute. - - The path to the web app. - The web app root. - - - - Gets the path to the web application. - - - - - Gets the WebAppRoot. - - - - - For ASP.NET sites that require basic authentication, specify the - user name and password using the Credential attribute. - WARNING: The password is stored in plain text in source code - and in the compiled assembly. Restrict access to the source code - and assembly to protect this sensitive information. - - - - - Specify the user name and password needed to access the web site under test. - - The user name. - - The password. WARNING: The password is stored in plain text in source code - and in the compiled assembly. Restrict access to the source code and assembly - to protect this sensitive information. - - - - - Specify the user name, password, and domain needed to access the web site under test. - - The user name. - - The password. WARNING: The password is stored in plain text in source code - and in the compiled assembly. Restrict access to the source code and assembly - to protect this sensitive information. - - The domain. - - - - Gets the user name. - - - - - Gets the password. - - - - - Gets the domain. - - - - - Base class for Framework Exceptions, provides localization trick so that messages are in HA locale. - - - - - Initializes a new UnitTestAssertException. - - - - - Initializes UnitTestAssertException. - - The message. - - - - Gets the Message string. - - - - - AssertFailedException class. Used to indicate failure for a test case - - - - - Initializes a new AssertFailedException. - - The message. - - - - AssertFailedException - - The message. - The inner exception. - - - - The AssertInconclusiveException class. - - - - - Initializes a new AssertInconclusiveException. - - The message. - - - - Initializes a new AssertInconclusiveException. - - The message. - The inner exception. - - - - Initializes a new AssertInconclusiveException. - - - - - InternalTestFailureException class. Used to indicate internal failure - for a test case. - - - - - Initializes a new InternalTestFailureException. - - The message. - - - - Initializes a new InternalTestFailureException. - - The message. - The inner exception. - - - - Initializes a new InternalTestFailureException. - - - - - A collection of helper classes to test various conditions within - unit tests. If the condition being tested is not met, an exception - is thrown. - - - - - - - - - - Tests whether the specified condition is true and throws an exception - if the condition is false. - - The condition the test expects to be true. - - Thrown if is false. - - - - - Tests whether the specified condition is true and throws an exception - if the condition is false. - - The condition the test expects to be true. - - The message to include in the exception when - is false. The message is shown in test results. - - - Thrown if is false. - - - - - Tests whether the specified condition is true and throws an exception - if the condition is false. - - The condition the test expects to be true. - - The message to include in the exception when - is false. The message is shown in test results. - - - An array of parameters to use when formatting . - - - Thrown if is false. - - - - - Tests whether the specified condition is false and throws an exception - if the condition is true. - - The condition the test expects to be false. - - Thrown if is true. - - - - - Tests whether the specified condition is false and throws an exception - if the condition is true. - - The condition the test expects to be false. - - The message to include in the exception when - is true. The message is shown in test results. - - - Thrown if is true. - - - - - Tests whether the specified condition is false and throws an exception - if the condition is true. - - The condition the test expects to be false. - - The message to include in the exception when - is true. The message is shown in test results. - - - An array of parameters to use when formatting . - - - Thrown if is true. - - - - - Tests whether the specified object is null and throws an exception - if it is not. - - The object the test expects to be null. - - Thrown if is not null. - - - - - Tests whether the specified object is null and throws an exception - if it is not. - - The object the test expects to be null. - - The message to include in the exception when - is not null. The message is shown in test results. - - - Thrown if is not null. - - - - - Tests whether the specified object is null and throws an exception - if it is not. - - The object the test expects to be null. - - The message to include in the exception when - is not null. The message is shown in test results. - - - An array of parameters to use when formatting . - - - Thrown if is not null. - - - - - Tests whether the specified object is non-null and throws an exception - if it is null. - - The object the test expects not to be null. - - Thrown if is null. - - - - - Tests whether the specified object is non-null and throws an exception - if it is null. - - The object the test expects not to be null. - - The message to include in the exception when - is null. The message is shown in test results. - - - Thrown if is null. - - - - - Tests whether the specified object is non-null and throws an exception - if it is null. - - The object the test expects not to be null. - - The message to include in the exception when - is null. The message is shown in test results. - - - An array of parameters to use when formatting . - - - Thrown if is null. - - - - - Tests whether the specified objects both refer to the same object and - throws an exception if the two inputs do not refer to the same object. - - - The first object to compare. This is the value the test expects. - - - The second object to compare. This is the value produced by the code under test. - - - Thrown if does not refer to the same object - as . - - - - - Tests whether the specified objects both refer to the same object and - throws an exception if the two inputs do not refer to the same object. - - - The first object to compare. This is the value the test expects. - - - The second object to compare. This is the value produced by the code under test. - - - The message to include in the exception when - is not the same as . The message is shown - in test results. - - - Thrown if does not refer to the same object - as . - - - - - Tests whether the specified objects both refer to the same object and - throws an exception if the two inputs do not refer to the same object. - - - The first object to compare. This is the value the test expects. - - - The second object to compare. This is the value produced by the code under test. - - - The message to include in the exception when - is not the same as . The message is shown - in test results. - - - An array of parameters to use when formatting . - - - Thrown if does not refer to the same object - as . - - - - - Tests whether the specified objects refer to different objects and - throws an exception if the two inputs refer to the same object. - - - The first object to compare. This is the value the test expects not - to match . - - - The second object to compare. This is the value produced by the code under test. - - - Thrown if refers to the same object - as . - - - - - Tests whether the specified objects refer to different objects and - throws an exception if the two inputs refer to the same object. - - - The first object to compare. This is the value the test expects not - to match . - - - The second object to compare. This is the value produced by the code under test. - - - The message to include in the exception when - is the same as . The message is shown in - test results. - - - Thrown if refers to the same object - as . - - - - - Tests whether the specified objects refer to different objects and - throws an exception if the two inputs refer to the same object. - - - The first object to compare. This is the value the test expects not - to match . - - - The second object to compare. This is the value produced by the code under test. - - - The message to include in the exception when - is the same as . The message is shown in - test results. - - - An array of parameters to use when formatting . - - - Thrown if refers to the same object - as . - - - - - Tests whether the specified values are equal and throws an exception - if the two values are not equal. Different numeric types are treated - as unequal even if the logical values are equal. 42L is not equal to 42. - - The type of values to compare. - - The first value to compare. This is the value the tests expects. - - - The second value to compare. This is the value produced by the code under test. - - - Thrown if is not equal to - . - - - - - Tests whether the specified values are equal and throws an exception - if the two values are not equal. Different numeric types are treated - as unequal even if the logical values are equal. 42L is not equal to 42. - - The type of values to compare. - - The first value to compare. This is the value the tests expects. - - - The second value to compare. This is the value produced by the code under test. - - - The message to include in the exception when - is not equal to . The message is shown in - test results. - - - Thrown if is not equal to - . - - - - - Tests whether the specified values are equal and throws an exception - if the two values are not equal. Different numeric types are treated - as unequal even if the logical values are equal. 42L is not equal to 42. - - The type of values to compare. - - The first value to compare. This is the value the tests expects. - - - The second value to compare. This is the value produced by the code under test. - - - The message to include in the exception when - is not equal to . The message is shown in - test results. - - - An array of parameters to use when formatting . - - - Thrown if is not equal to - . - - - - - Tests whether the specified values are unequal and throws an exception - if the two values are equal. Different numeric types are treated - as unequal even if the logical values are equal. 42L is not equal to 42. - - The type of values to compare. - - The first value to compare. This is the value the test expects not - to match . - - - The second value to compare. This is the value produced by the code under test. - - - Thrown if is equal to . - - - - - Tests whether the specified values are unequal and throws an exception - if the two values are equal. Different numeric types are treated - as unequal even if the logical values are equal. 42L is not equal to 42. - - The type of values to compare. - - The first value to compare. This is the value the test expects not - to match . - - - The second value to compare. This is the value produced by the code under test. - - - The message to include in the exception when - is equal to . The message is shown in - test results. - - - Thrown if is equal to . - - - - - Tests whether the specified values are unequal and throws an exception - if the two values are equal. Different numeric types are treated - as unequal even if the logical values are equal. 42L is not equal to 42. - - The type of values to compare. - - The first value to compare. This is the value the test expects not - to match . - - - The second value to compare. This is the value produced by the code under test. - - - The message to include in the exception when - is equal to . The message is shown in - test results. - - - An array of parameters to use when formatting . - - - Thrown if is equal to . - - - - - Tests whether the specified objects are equal and throws an exception - if the two objects are not equal. Different numeric types are treated - as unequal even if the logical values are equal. 42L is not equal to 42. - - - The first object to compare. This is the object the tests expects. - - - The second object to compare. This is the object produced by the code under test. - - - Thrown if is not equal to - . - - - - - Tests whether the specified objects are equal and throws an exception - if the two objects are not equal. Different numeric types are treated - as unequal even if the logical values are equal. 42L is not equal to 42. - - - The first object to compare. This is the object the tests expects. - - - The second object to compare. This is the object produced by the code under test. - - - The message to include in the exception when - is not equal to . The message is shown in - test results. - - - Thrown if is not equal to - . - - - - - Tests whether the specified objects are equal and throws an exception - if the two objects are not equal. Different numeric types are treated - as unequal even if the logical values are equal. 42L is not equal to 42. - - - The first object to compare. This is the object the tests expects. - - - The second object to compare. This is the object produced by the code under test. - - - The message to include in the exception when - is not equal to . The message is shown in - test results. - - - An array of parameters to use when formatting . - - - Thrown if is not equal to - . - - - - - Tests whether the specified objects are unequal and throws an exception - if the two objects are equal. Different numeric types are treated - as unequal even if the logical values are equal. 42L is not equal to 42. - - - The first object to compare. This is the value the test expects not - to match . - - - The second object to compare. This is the object produced by the code under test. - - - Thrown if is equal to . - - - - - Tests whether the specified objects are unequal and throws an exception - if the two objects are equal. Different numeric types are treated - as unequal even if the logical values are equal. 42L is not equal to 42. - - - The first object to compare. This is the value the test expects not - to match . - - - The second object to compare. This is the object produced by the code under test. - - - The message to include in the exception when - is equal to . The message is shown in - test results. - - - Thrown if is equal to . - - - - - Tests whether the specified objects are unequal and throws an exception - if the two objects are equal. Different numeric types are treated - as unequal even if the logical values are equal. 42L is not equal to 42. - - - The first object to compare. This is the value the test expects not - to match . - - - The second object to compare. This is the object produced by the code under test. - - - The message to include in the exception when - is equal to . The message is shown in - test results. - - - An array of parameters to use when formatting . - - - Thrown if is equal to . - - - - - Tests whether the specified floats are equal and throws an exception - if they are not equal. - - - The first float to compare. This is the float the tests expects. - - - The second float to compare. This is the float produced by the code under test. - - - The required accuracy. An exception will be thrown only if - is different than - by more than . - - - Thrown if is not equal to - . - - - - - Tests whether the specified floats are equal and throws an exception - if they are not equal. - - - The first float to compare. This is the float the tests expects. - - - The second float to compare. This is the float produced by the code under test. - - - The required accuracy. An exception will be thrown only if - is different than - by more than . - - - The message to include in the exception when - is different than by more than - . The message is shown in test results. - - - Thrown if is not equal to - . - - - - - Tests whether the specified floats are equal and throws an exception - if they are not equal. - - - The first float to compare. This is the float the tests expects. - - - The second float to compare. This is the float produced by the code under test. - - - The required accuracy. An exception will be thrown only if - is different than - by more than . - - - The message to include in the exception when - is different than by more than - . The message is shown in test results. - - - An array of parameters to use when formatting . - - - Thrown if is not equal to - . - - - - - Tests whether the specified floats are unequal and throws an exception - if they are equal. - - - The first float to compare. This is the float the test expects not to - match . - - - The second float to compare. This is the float produced by the code under test. - - - The required accuracy. An exception will be thrown only if - is different than - by at most . - - - Thrown if is equal to . - - - - - Tests whether the specified floats are unequal and throws an exception - if they are equal. - - - The first float to compare. This is the float the test expects not to - match . - - - The second float to compare. This is the float produced by the code under test. - - - The required accuracy. An exception will be thrown only if - is different than - by at most . - - - The message to include in the exception when - is equal to or different by less than - . The message is shown in test results. - - - Thrown if is equal to . - - - - - Tests whether the specified floats are unequal and throws an exception - if they are equal. - - - The first float to compare. This is the float the test expects not to - match . - - - The second float to compare. This is the float produced by the code under test. - - - The required accuracy. An exception will be thrown only if - is different than - by at most . - - - The message to include in the exception when - is equal to or different by less than - . The message is shown in test results. - - - An array of parameters to use when formatting . - - - Thrown if is equal to . - - - - - Tests whether the specified doubles are equal and throws an exception - if they are not equal. - - - The first double to compare. This is the double the tests expects. - - - The second double to compare. This is the double produced by the code under test. - - - The required accuracy. An exception will be thrown only if - is different than - by more than . - - - Thrown if is not equal to - . - - - - - Tests whether the specified doubles are equal and throws an exception - if they are not equal. - - - The first double to compare. This is the double the tests expects. - - - The second double to compare. This is the double produced by the code under test. - - - The required accuracy. An exception will be thrown only if - is different than - by more than . - - - The message to include in the exception when - is different than by more than - . The message is shown in test results. - - - Thrown if is not equal to - . - - - - - Tests whether the specified doubles are equal and throws an exception - if they are not equal. - - - The first double to compare. This is the double the tests expects. - - - The second double to compare. This is the double produced by the code under test. - - - The required accuracy. An exception will be thrown only if - is different than - by more than . - - - The message to include in the exception when - is different than by more than - . The message is shown in test results. - - - An array of parameters to use when formatting . - - - Thrown if is not equal to - . - - - - - Tests whether the specified doubles are unequal and throws an exception - if they are equal. - - - The first double to compare. This is the double the test expects not to - match . - - - The second double to compare. This is the double produced by the code under test. - - - The required accuracy. An exception will be thrown only if - is different than - by at most . - - - Thrown if is equal to . - - - - - Tests whether the specified doubles are unequal and throws an exception - if they are equal. - - - The first double to compare. This is the double the test expects not to - match . - - - The second double to compare. This is the double produced by the code under test. - - - The required accuracy. An exception will be thrown only if - is different than - by at most . - - - The message to include in the exception when - is equal to or different by less than - . The message is shown in test results. - - - Thrown if is equal to . - - - - - Tests whether the specified doubles are unequal and throws an exception - if they are equal. - - - The first double to compare. This is the double the test expects not to - match . - - - The second double to compare. This is the double produced by the code under test. - - - The required accuracy. An exception will be thrown only if - is different than - by at most . - - - The message to include in the exception when - is equal to or different by less than - . The message is shown in test results. - - - An array of parameters to use when formatting . - - - Thrown if is equal to . - - - - - Tests whether the specified strings are equal and throws an exception - if they are not equal. The invariant culture is used for the comparison. - - - The first string to compare. This is the string the tests expects. - - - The second string to compare. This is the string produced by the code under test. - - - A Boolean indicating a case-sensitive or insensitive comparison. (true - indicates a case-insensitive comparison.) - - - Thrown if is not equal to - . - - - - - Tests whether the specified strings are equal and throws an exception - if they are not equal. The invariant culture is used for the comparison. - - - The first string to compare. This is the string the tests expects. - - - The second string to compare. This is the string produced by the code under test. - - - A Boolean indicating a case-sensitive or insensitive comparison. (true - indicates a case-insensitive comparison.) - - - The message to include in the exception when - is not equal to . The message is shown in - test results. - - - Thrown if is not equal to - . - - - - - Tests whether the specified strings are equal and throws an exception - if they are not equal. The invariant culture is used for the comparison. - - - The first string to compare. This is the string the tests expects. - - - The second string to compare. This is the string produced by the code under test. - - - A Boolean indicating a case-sensitive or insensitive comparison. (true - indicates a case-insensitive comparison.) - - - The message to include in the exception when - is not equal to . The message is shown in - test results. - - - An array of parameters to use when formatting . - - - Thrown if is not equal to - . - - - - - Tests whether the specified strings are equal and throws an exception - if they are not equal. - - - The first string to compare. This is the string the tests expects. - - - The second string to compare. This is the string produced by the code under test. - - - A Boolean indicating a case-sensitive or insensitive comparison. (true - indicates a case-insensitive comparison.) - - - A CultureInfo object that supplies culture-specific comparison information. - - - Thrown if is not equal to - . - - - - - Tests whether the specified strings are equal and throws an exception - if they are not equal. - - - The first string to compare. This is the string the tests expects. - - - The second string to compare. This is the string produced by the code under test. - - - A Boolean indicating a case-sensitive or insensitive comparison. (true - indicates a case-insensitive comparison.) - - - A CultureInfo object that supplies culture-specific comparison information. - - - The message to include in the exception when - is not equal to . The message is shown in - test results. - - - Thrown if is not equal to - . - - - - - Tests whether the specified strings are equal and throws an exception - if they are not equal. - - - The first string to compare. This is the string the tests expects. - - - The second string to compare. This is the string produced by the code under test. - - - A Boolean indicating a case-sensitive or insensitive comparison. (true - indicates a case-insensitive comparison.) - - - A CultureInfo object that supplies culture-specific comparison information. - - - The message to include in the exception when - is not equal to . The message is shown in - test results. - - - An array of parameters to use when formatting . - - - Thrown if is not equal to - . - - - - - Tests whether the specified strings are unequal and throws an exception - if they are equal. The invariant culture is used for the comparison. - - - The first string to compare. This is the string the test expects not to - match . - - - The second string to compare. This is the string produced by the code under test. - - - A Boolean indicating a case-sensitive or insensitive comparison. (true - indicates a case-insensitive comparison.) - - - Thrown if is equal to . - - - - - Tests whether the specified strings are unequal and throws an exception - if they are equal. The invariant culture is used for the comparison. - - - The first string to compare. This is the string the test expects not to - match . - - - The second string to compare. This is the string produced by the code under test. - - - A Boolean indicating a case-sensitive or insensitive comparison. (true - indicates a case-insensitive comparison.) - - - The message to include in the exception when - is equal to . The message is shown in - test results. - - - Thrown if is equal to . - - - - - Tests whether the specified strings are unequal and throws an exception - if they are equal. The invariant culture is used for the comparison. - - - The first string to compare. This is the string the test expects not to - match . - - - The second string to compare. This is the string produced by the code under test. - - - A Boolean indicating a case-sensitive or insensitive comparison. (true - indicates a case-insensitive comparison.) - - - The message to include in the exception when - is equal to . The message is shown in - test results. - - - An array of parameters to use when formatting . - - - Thrown if is equal to . - - - - - Tests whether the specified strings are unequal and throws an exception - if they are equal. - - - The first string to compare. This is the string the test expects not to - match . - - - The second string to compare. This is the string produced by the code under test. - - - A Boolean indicating a case-sensitive or insensitive comparison. (true - indicates a case-insensitive comparison.) - - - A CultureInfo object that supplies culture-specific comparison information. - - - Thrown if is equal to . - - - - - Tests whether the specified strings are unequal and throws an exception - if they are equal. - - - The first string to compare. This is the string the test expects not to - match . - - - The second string to compare. This is the string produced by the code under test. - - - A Boolean indicating a case-sensitive or insensitive comparison. (true - indicates a case-insensitive comparison.) - - - A CultureInfo object that supplies culture-specific comparison information. - - - The message to include in the exception when - is equal to . The message is shown in - test results. - - - Thrown if is equal to . - - - - - Tests whether the specified strings are unequal and throws an exception - if they are equal. - - - The first string to compare. This is the string the test expects not to - match . - - - The second string to compare. This is the string produced by the code under test. - - - A Boolean indicating a case-sensitive or insensitive comparison. (true - indicates a case-insensitive comparison.) - - - A CultureInfo object that supplies culture-specific comparison information. - - - The message to include in the exception when - is equal to . The message is shown in - test results. - - - An array of parameters to use when formatting . - - - Thrown if is equal to . - - - - - Tests whether the specified object is an instance of the expected - type and throws an exception if the expected type is not in the - inheritance hierarchy of the object. - - - The object the test expects to be of the specified type. - - - The expected type of . - - - Thrown if is null or - is not in the inheritance hierarchy - of . - - - - - Tests whether the specified object is an instance of the expected - type and throws an exception if the expected type is not in the - inheritance hierarchy of the object. - - - The object the test expects to be of the specified type. - - - The expected type of . - - - The message to include in the exception when - is not an instance of . The message is - shown in test results. - - - Thrown if is null or - is not in the inheritance hierarchy - of . - - - - - Tests whether the specified object is an instance of the expected - type and throws an exception if the expected type is not in the - inheritance hierarchy of the object. - - - The object the test expects to be of the specified type. - - - The expected type of . - - - The message to include in the exception when - is not an instance of . The message is - shown in test results. - - - An array of parameters to use when formatting . - - - Thrown if is null or - is not in the inheritance hierarchy - of . - - - - - Tests whether the specified object is not an instance of the wrong - type and throws an exception if the specified type is in the - inheritance hierarchy of the object. - - - The object the test expects not to be of the specified type. - - - The type that should not be. - - - Thrown if is not null and - is in the inheritance hierarchy - of . - - - - - Tests whether the specified object is not an instance of the wrong - type and throws an exception if the specified type is in the - inheritance hierarchy of the object. - - - The object the test expects not to be of the specified type. - - - The type that should not be. - - - The message to include in the exception when - is an instance of . The message is shown - in test results. - - - Thrown if is not null and - is in the inheritance hierarchy - of . - - - - - Tests whether the specified object is not an instance of the wrong - type and throws an exception if the specified type is in the - inheritance hierarchy of the object. - - - The object the test expects not to be of the specified type. - - - The type that should not be. - - - The message to include in the exception when - is an instance of . The message is shown - in test results. - - - An array of parameters to use when formatting . - - - Thrown if is not null and - is in the inheritance hierarchy - of . - - - - - Throws an AssertFailedException. - - - Always thrown. - - - - - Throws an AssertFailedException. - - - The message to include in the exception. The message is shown in - test results. - - - Always thrown. - - - - - Throws an AssertFailedException. - - - The message to include in the exception. The message is shown in - test results. - - - An array of parameters to use when formatting . - - - Always thrown. - - - - - Throws an AssertInconclusiveException. - - - Always thrown. - - - - - Throws an AssertInconclusiveException. - - - The message to include in the exception. The message is shown in - test results. - - - Always thrown. - - - - - Throws an AssertInconclusiveException. - - - The message to include in the exception. The message is shown in - test results. - - - An array of parameters to use when formatting . - - - Always thrown. - - - - - Helper function that creates and throws an AssertionFailedException. - - name of the assertion throwing an exception. - message describing conditions for assertion failure. - The parameters. - - - - Checks the parameter for valid conditions - - The parameter. - The assertion name. - The parameter name. - The message. - The parameters. - - - - Safely converts an object to a string, handling null values and null characters. - Null values are converted to "(null)". Null characters are converted to "\\0". - - The object to convert to a string. - The converted string. - - - - Replaces null characters ('\0') with "\\0". - - The string to search. - The converted string with null characters replaced by "\\0". - - - - An exception from reflection will always be a TargetInvocationException - however - the goal of Private Accessors is to be seamless to the original code. - The only problem with throwing the inner exception is that the stack trace will - be overwritten. From here we register the stack trace of the inner exception - and then throw it. The Unit Test Adapter will then later rebuild the stack - from the cached shadow information plus the remaining stack from this throw. - - - - - - A collection of helper classes to test various conditions associated - with collections within unit tests. If the condition being tested is not - met, an exception is thrown. - - - - - Tests whether the specified collection contains the specified element - and throws an exception if the element is not in the collection. - - - The collection in which to search for the element. - - - The element that is expected to be in the collection. - - - Thrown if is not found in - . - - - - - Tests whether the specified collection contains the specified element - and throws an exception if the element is not in the collection. - - - The collection in which to search for the element. - - - The element that is expected to be in the collection. - - - The message to include in the exception when - is not in . The message is shown in - test results. - - - Thrown if is not found in - . - - - - - Tests whether the specified collection contains the specified element - and throws an exception if the element is not in the collection. - - - The collection in which to search for the element. - - - The element that is expected to be in the collection. - - - The message to include in the exception when - is not in . The message is shown in - test results. - - - An array of parameters to use when formatting . - - - Thrown if is not found in - . - - - - - Tests whether the specified collection does not contain the specified - element and throws an exception if the element is in the collection. - - - The collection in which to search for the element. - - - The element that is expected not to be in the collection. - - - Thrown if is found in - . - - - - - Tests whether the specified collection does not contain the specified - element and throws an exception if the element is in the collection. - - - The collection in which to search for the element. - - - The element that is expected not to be in the collection. - - - The message to include in the exception when - is in . The message is shown in test - results. - - - Thrown if is found in - . - - - - - Tests whether the specified collection does not contain the specified - element and throws an exception if the element is in the collection. - - - The collection in which to search for the element. - - - The element that is expected not to be in the collection. - - - The message to include in the exception when - is in . The message is shown in test - results. - - - An array of parameters to use when formatting . - - - Thrown if is found in - . - - - - - Tests whether all items in the specified collection are non-null and throws - an exception if any element is null. - - - The collection in which to search for null elements. - - - Thrown if a null element is found in . - - - - - Tests whether all items in the specified collection are non-null and throws - an exception if any element is null. - - - The collection in which to search for null elements. - - - The message to include in the exception when - contains a null element. The message is shown in test results. - - - Thrown if a null element is found in . - - - - - Tests whether all items in the specified collection are non-null and throws - an exception if any element is null. - - - The collection in which to search for null elements. - - - The message to include in the exception when - contains a null element. The message is shown in test results. - - - An array of parameters to use when formatting . - - - Thrown if a null element is found in . - - - - - Tests whether all items in the specified collection are unique or not and - throws if any two elements in the collection are equal. - - - The collection in which to search for duplicate elements. - - - Thrown if a two or more equal elements are found in - . - - - - - Tests whether all items in the specified collection are unique or not and - throws if any two elements in the collection are equal. - - - The collection in which to search for duplicate elements. - - - The message to include in the exception when - contains at least one duplicate element. The message is shown in - test results. - - - Thrown if a two or more equal elements are found in - . - - - - - Tests whether all items in the specified collection are unique or not and - throws if any two elements in the collection are equal. - - - The collection in which to search for duplicate elements. - - - The message to include in the exception when - contains at least one duplicate element. The message is shown in - test results. - - - An array of parameters to use when formatting . - - - Thrown if a two or more equal elements are found in - . - - - - - Tests whether one collection is a subset of another collection and - throws an exception if any element in the subset is not also in the - superset. - - - The collection expected to be a subset of . - - - The collection expected to be a superset of - - - Thrown if an element in is not found in - . - - - - - Tests whether one collection is a subset of another collection and - throws an exception if any element in the subset is not also in the - superset. - - - The collection expected to be a subset of . - - - The collection expected to be a superset of - - - The message to include in the exception when an element in - is not found in . - The message is shown in test results. - - - Thrown if an element in is not found in - . - - - - - Tests whether one collection is a subset of another collection and - throws an exception if any element in the subset is not also in the - superset. - - - The collection expected to be a subset of . - - - The collection expected to be a superset of - - - The message to include in the exception when an element in - is not found in . - The message is shown in test results. - - - An array of parameters to use when formatting . - - - Thrown if an element in is not found in - . - - - - - Tests whether one collection is not a subset of another collection and - throws an exception if all elements in the subset are also in the - superset. - - - The collection expected not to be a subset of . - - - The collection expected not to be a superset of - - - Thrown if every element in is also found in - . - - - - - Tests whether one collection is not a subset of another collection and - throws an exception if all elements in the subset are also in the - superset. - - - The collection expected not to be a subset of . - - - The collection expected not to be a superset of - - - The message to include in the exception when every element in - is also found in . - The message is shown in test results. - - - Thrown if every element in is also found in - . - - - - - Tests whether one collection is not a subset of another collection and - throws an exception if all elements in the subset are also in the - superset. - - - The collection expected not to be a subset of . - - - The collection expected not to be a superset of - - - The message to include in the exception when every element in - is also found in . - The message is shown in test results. - - - An array of parameters to use when formatting . - - - Thrown if every element in is also found in - . - - - - - Tests whether two collections contain the same elements and throws an - exception if either collection contains an element not in the other - collection. - - - The first collection to compare. This contains the elements the test - expects. - - - The second collection to compare. This is the collection produced by - the code under test. - - - Thrown if an element was found in one of the collections but not - the other. - - - - - Tests whether two collections contain the same elements and throws an - exception if either collection contains an element not in the other - collection. - - - The first collection to compare. This contains the elements the test - expects. - - - The second collection to compare. This is the collection produced by - the code under test. - - - The message to include in the exception when an element was found - in one of the collections but not the other. The message is shown - in test results. - - - Thrown if an element was found in one of the collections but not - the other. - - - - - Tests whether two collections contain the same elements and throws an - exception if either collection contains an element not in the other - collection. - - - The first collection to compare. This contains the elements the test - expects. - - - The second collection to compare. This is the collection produced by - the code under test. - - - The message to include in the exception when an element was found - in one of the collections but not the other. The message is shown - in test results. - - - An array of parameters to use when formatting . - - - Thrown if an element was found in one of the collections but not - the other. - - - - - Tests whether two collections contain the different elements and throws an - exception if the two collections contain identical elements without regard - to order. - - - The first collection to compare. This contains the elements the test - expects to be different than the actual collection. - - - The second collection to compare. This is the collection produced by - the code under test. - - - Thrown if the two collections contained the same elements, including - the same number of duplicate occurrences of each element. - - - - - Tests whether two collections contain the different elements and throws an - exception if the two collections contain identical elements without regard - to order. - - - The first collection to compare. This contains the elements the test - expects to be different than the actual collection. - - - The second collection to compare. This is the collection produced by - the code under test. - - - The message to include in the exception when - contains the same elements as . The message - is shown in test results. - - - Thrown if the two collections contained the same elements, including - the same number of duplicate occurrences of each element. - - - - - Tests whether two collections contain the different elements and throws an - exception if the two collections contain identical elements without regard - to order. - - - The first collection to compare. This contains the elements the test - expects to be different than the actual collection. - - - The second collection to compare. This is the collection produced by - the code under test. - - - The message to include in the exception when - contains the same elements as . The message - is shown in test results. - - - An array of parameters to use when formatting . - - - Thrown if the two collections contained the same elements, including - the same number of duplicate occurrences of each element. - - - - - Tests whether all elements in the specified collection are instances - of the expected type and throws an exception if the expected type is - not in the inheritance hierarchy of one or more of the elements. - - - The collection containing elements the test expects to be of the - specified type. - - - The expected type of each element of . - - - Thrown if an element in is null or - is not in the inheritance hierarchy - of an element in . - - - - - Tests whether all elements in the specified collection are instances - of the expected type and throws an exception if the expected type is - not in the inheritance hierarchy of one or more of the elements. - - - The collection containing elements the test expects to be of the - specified type. - - - The expected type of each element of . - - - The message to include in the exception when an element in - is not an instance of - . The message is shown in test results. - - - Thrown if an element in is null or - is not in the inheritance hierarchy - of an element in . - - - - - Tests whether all elements in the specified collection are instances - of the expected type and throws an exception if the expected type is - not in the inheritance hierarchy of one or more of the elements. - - - The collection containing elements the test expects to be of the - specified type. - - - The expected type of each element of . - - - The message to include in the exception when an element in - is not an instance of - . The message is shown in test results. - - - An array of parameters to use when formatting . - - - Thrown if an element in is null or - is not in the inheritance hierarchy - of an element in . - - - - - Tests whether the specified collections are equal and throws an exception - if the two collections are not equal. Equality is defined as having the same - elements in the same order and quantity. Different references to the same - value are considered equal. - - - The first collection to compare. This is the collection the tests expects. - - - The second collection to compare. This is the collection produced by the - code under test. - - - Thrown if is not equal to - . - - - - - Tests whether the specified collections are equal and throws an exception - if the two collections are not equal. Equality is defined as having the same - elements in the same order and quantity. Different references to the same - value are considered equal. - - - The first collection to compare. This is the collection the tests expects. - - - The second collection to compare. This is the collection produced by the - code under test. - - - The message to include in the exception when - is not equal to . The message is shown in - test results. - - - Thrown if is not equal to - . - - - - - Tests whether the specified collections are equal and throws an exception - if the two collections are not equal. Equality is defined as having the same - elements in the same order and quantity. Different references to the same - value are considered equal. - - - The first collection to compare. This is the collection the tests expects. - - - The second collection to compare. This is the collection produced by the - code under test. - - - The message to include in the exception when - is not equal to . The message is shown in - test results. - - - An array of parameters to use when formatting . - - - Thrown if is not equal to - . - - - - - Tests whether the specified collections are unequal and throws an exception - if the two collections are equal. Equality is defined as having the same - elements in the same order and quantity. Different references to the same - value are considered equal. - - - The first collection to compare. This is the collection the tests expects - not to match . - - - The second collection to compare. This is the collection produced by the - code under test. - - - Thrown if is equal to . - - - - - Tests whether the specified collections are unequal and throws an exception - if the two collections are equal. Equality is defined as having the same - elements in the same order and quantity. Different references to the same - value are considered equal. - - - The first collection to compare. This is the collection the tests expects - not to match . - - - The second collection to compare. This is the collection produced by the - code under test. - - - The message to include in the exception when - is equal to . The message is shown in - test results. - - - Thrown if is equal to . - - - - - Tests whether the specified collections are unequal and throws an exception - if the two collections are equal. Equality is defined as having the same - elements in the same order and quantity. Different references to the same - value are considered equal. - - - The first collection to compare. This is the collection the tests expects - not to match . - - - The second collection to compare. This is the collection produced by the - code under test. - - - The message to include in the exception when - is equal to . The message is shown in - test results. - - - An array of parameters to use when formatting . - - - Thrown if is equal to . - - - - - Tests whether the specified collections are equal and throws an exception - if the two collections are not equal. Equality is defined as having the same - elements in the same order and quantity. Different references to the same - value are considered equal. - - - The first collection to compare. This is the collection the tests expects. - - - The second collection to compare. This is the collection produced by the - code under test. - - - The compare implementation to use when comparing elements of the collection. - - - Thrown if is not equal to - . - - - - - Tests whether the specified collections are equal and throws an exception - if the two collections are not equal. Equality is defined as having the same - elements in the same order and quantity. Different references to the same - value are considered equal. - - - The first collection to compare. This is the collection the tests expects. - - - The second collection to compare. This is the collection produced by the - code under test. - - - The compare implementation to use when comparing elements of the collection. - - - The message to include in the exception when - is not equal to . The message is shown in - test results. - - - Thrown if is not equal to - . - - - - - Tests whether the specified collections are equal and throws an exception - if the two collections are not equal. Equality is defined as having the same - elements in the same order and quantity. Different references to the same - value are considered equal. - - - The first collection to compare. This is the collection the tests expects. - - - The second collection to compare. This is the collection produced by the - code under test. - - - The compare implementation to use when comparing elements of the collection. - - - The message to include in the exception when - is not equal to . The message is shown in - test results. - - - An array of parameters to use when formatting . - - - Thrown if is not equal to - . - - - - - Tests whether the specified collections are unequal and throws an exception - if the two collections are equal. Equality is defined as having the same - elements in the same order and quantity. Different references to the same - value are considered equal. - - - The first collection to compare. This is the collection the tests expects - not to match . - - - The second collection to compare. This is the collection produced by the - code under test. - - - The compare implementation to use when comparing elements of the collection. - - - Thrown if is equal to . - - - - - Tests whether the specified collections are unequal and throws an exception - if the two collections are equal. Equality is defined as having the same - elements in the same order and quantity. Different references to the same - value are considered equal. - - - The first collection to compare. This is the collection the tests expects - not to match . - - - The second collection to compare. This is the collection produced by the - code under test. - - - The compare implementation to use when comparing elements of the collection. - - - The message to include in the exception when - is equal to . The message is shown in - test results. - - - Thrown if is equal to . - - - - - Tests whether the specified collections are unequal and throws an exception - if the two collections are equal. Equality is defined as having the same - elements in the same order and quantity. Different references to the same - value are considered equal. - - - The first collection to compare. This is the collection the tests expects - not to match . - - - The second collection to compare. This is the collection produced by the - code under test. - - - The compare implementation to use when comparing elements of the collection. - - - The message to include in the exception when - is equal to . The message is shown in - test results. - - - An array of parameters to use when formatting . - - - Thrown if is equal to . - - - - - Constructs a dictionary containing the number of occurrences of each - element in the specified collection. - - - The collection to process. - - - The number of null elements in the collection. - - - A dictionary containing the number of occurrences of each element - in the specified collection. - - - - - Determines whether the first collection is a subset of the second - collection. If either set contains duplicate elements, the number - of occurrences of the element in the subset must be less than or - equal to the number of occurrences in the superset. - - - The collection the test expects to be contained in . - - - The collection the test expects to contain . - - - True if is a subset of - , false otherwise. - - - - - Finds a mismatched element between the two collections. A mismatched - element is one that appears a different number of times in the - expected collection than it does in the actual collection. The - collections are assumed to be different non-null references with the - same number of elements. The caller is responsible for this level of - verification. If there is no mismatched element, the function returns - false and the out parameters should not be used. - - The first collection to compare. - The second collection to compare. - - The expected number of occurrences of - or 0 if there is no mismatched - element. - - - The actual number of occurrences of - or 0 if there is no mismatched - element. - - - The mismatched element (may be null) or null if there is no - mismatched element. - - - true if a mismatched element was found; false otherwise. - - - - - compares the objects using object.Equals - - - - - This class is designed to help user doing unit testing. - GenericParameterHelper satisfies some comment generic type constraints - such as: - 1. public default constructor - 2. implements common interface: IComparable, IEnumerable, ICloneable - - - - - - public default constructor, satisfies the constraint in C# generics. - This constructor initializes the Data property to a random value. - - - - - This constructor initializes the Data property to a user-supplied value - - - - - - Do the value comparison for two GenericParameterHelper object - - object to do comparison with - true if obj has the same value as 'this' GenericParameterHelper object. - false otherwise. - - - - Returns a hash code for this object. - - - - - - Compares to the object. - - - - - - - Returns an IEnumerator object whose length is derived from - the Data property. - - - - - - Returns a GenericParameterHelper object that is equal to - 'this' one. - - - - - - Gets or sets the Data property. - - - - - Provides method signature discovery for generic methods. - - - - - Given a set of methods that match the base criteria, select a method based - upon an array of types. This method should return null if no method matches - the criteria. - - - - - Set of string assertions. - - - - - Tests whether the specified string contains the specified substring - and throws an exception if the substring does not occur within the - test string. - - - The string that is expected to contain . - - - The string expected to occur within . - - - Thrown if is not found in - . - - - - - Tests whether the specified string contains the specified substring - and throws an exception if the substring does not occur within the - test string. - - - The string that is expected to contain . - - - The string expected to occur within . - - - The message to include in the exception when - is not in . The message is shown in - test results. - - - Thrown if is not found in - . - - - - - Tests whether the specified string contains the specified substring - and throws an exception if the substring does not occur within the - test string. - - - The string that is expected to contain . - - - The string expected to occur within . - - - The message to include in the exception when - is not in . The message is shown in - test results. - - - An array of parameters to use when formatting . - - - Thrown if is not found in - . - - - - - Tests whether the specified string begins with the specified substring - and throws an exception if the test string does not start with the - substring. - - - The string that is expected to begin with . - - - The string expected to be a prefix of . - - - Thrown if does not begin with - . - - - - - Tests whether the specified string begins with the specified substring - and throws an exception if the test string does not start with the - substring. - - - The string that is expected to begin with . - - - The string expected to be a prefix of . - - - The message to include in the exception when - does not begin with . The message is - shown in test results. - - - Thrown if does not begin with - . - - - - - Tests whether the specified string begins with the specified substring - and throws an exception if the test string does not start with the - substring. - - - The string that is expected to begin with . - - - The string expected to be a prefix of . - - - The message to include in the exception when - does not begin with . The message is - shown in test results. - - - An array of parameters to use when formatting . - - - Thrown if does not begin with - . - - - - - Tests whether the specified string ends with the specified substring - and throws an exception if the test string does not end with the - substring. - - - The string that is expected to end with . - - - The string expected to be a suffix of . - - - Thrown if does not end with - . - - - - - Tests whether the specified string ends with the specified substring - and throws an exception if the test string does not end with the - substring. - - - The string that is expected to end with . - - - The string expected to be a suffix of . - - - The message to include in the exception when - does not end with . The message is - shown in test results. - - - Thrown if does not end with - . - - - - - Tests whether the specified string ends with the specified substring - and throws an exception if the test string does not end with the - substring. - - - The string that is expected to end with . - - - The string expected to be a suffix of . - - - The message to include in the exception when - does not end with . The message is - shown in test results. - - - An array of parameters to use when formatting . - - - Thrown if does not end with - . - - - - - Tests whether the specified string matches a regular expression and - throws an exception if the string does not match the expression. - - - The string that is expected to match . - - - The regular expression that is - expected to match. - - - Thrown if does not match - . - - - - - Tests whether the specified string matches a regular expression and - throws an exception if the string does not match the expression. - - - The string that is expected to match . - - - The regular expression that is - expected to match. - - - The message to include in the exception when - does not match . The message is shown in - test results. - - - Thrown if does not match - . - - - - - Tests whether the specified string matches a regular expression and - throws an exception if the string does not match the expression. - - - The string that is expected to match . - - - The regular expression that is - expected to match. - - - The message to include in the exception when - does not match . The message is shown in - test results. - - - An array of parameters to use when formatting . - - - Thrown if does not match - . - - - - - Tests whether the specified string does not match a regular expression - and throws an exception if the string matches the expression. - - - The string that is expected not to match . - - - The regular expression that is - expected to not match. - - - Thrown if matches . - - - - - Tests whether the specified string does not match a regular expression - and throws an exception if the string matches the expression. - - - The string that is expected not to match . - - - The regular expression that is - expected to not match. - - - The message to include in the exception when - matches . The message is shown in test - results. - - - Thrown if matches . - - - - - Tests whether the specified string does not match a regular expression - and throws an exception if the string matches the expression. - - - The string that is expected not to match . - - - The regular expression that is - expected to not match. - - - The message to include in the exception when - matches . The message is shown in test - results. - - - An array of parameters to use when formatting . - - - Thrown if matches . - - - - - TestContext class. This class should be fully abstract and not contain any - members. The adapter will implement the members. Users in the framework should - only access this via a well-defined interface. - - - - - Used to write trace messages while the test is running - - format string - the arguments - - - - Adds a file name to the list in TestResult.ResultFileNames - - - - - Begins a timer with the specified name - - - - - Ends a timer with the specified name - - - - - Per test properties - - - - - - Current data row when test is used for data driven testing. - - - - - Current data connection row when test is used for data driven testing. - - - - - Gets the test logs directory. - - - - - Gets the test directory. - - - - - Gets the test deployment directory. - - - - - Gets the test name. - - - - - Gets the CurrentTestOutcome. - - - - - Outcome of a test or a run. - If a new successful state needs to be added you will need to modify - RunResultAndStatistics in TestRun and TestOutcomeHelper below. - - NOTE: the order is important and is used for computing outcome for aggregations. - More important outcomes come first. See TestOutcomeHelper.GetAggregationOutcome. - - - - - Test was executed, but there were issues. - Issues may involve exceptions or failed assertions. - - - - - Test has completed, but we can't say if it passed or failed. - May be used for aborted tests... - - - - - Test was executed w/o any issues. - - - - - Test is currently executing. - - - - - There was a system error while we were trying to execute a test. - - - - - The test timed out. - - - - - Test was aborted by the user. - - - - - Test is in an unknown state - - - - - The data row. - - - - - The database connection. - - - - - Marks a test class. - - - - - Initializes a new test class attribute. - - - - - Marks a test method. - - - - - Initializes a new TestMethodAttribute. - - - - - A method marker called before a test method runs. - - - - - Initializes a new TestInitializeAttribute. - - - - - A method marker called after a test method runs. - - - - - Initializes a new TestCleanupAttribute. - - - - - Ignores a unit test. - - - - - Initializes a new IgnoreAttribute. - - - - - The ExpectedExceptionAttribute. - - - - - Initializes the ExpectedExceptionAttribute. - - The exception type. - - - - Initializes the ExpectedExceptionAttribute. - - The exception type. - The message. - - - - Gets the exception type. - - - - - Gets the message. - - - - - The test property attribute. - - - - - Initializes the TestPropertyAttribute. - - - - - - - Gets the name. - - - - - Gets the value. - - - - - The ClassInitializeAttribute. - - - - - Initializes the ClassInitializeAttribute. - - - - - The ClassCleanupAttribute. - - - - - Initializes the ClassCleanupAttribute. - - - - - The AssemblyInitializeAttribute. - - - - - Initializes the AssemblyInitializeAttribute. - - - - - The AssemblyCleanupAttribute. - - - - - Initializes the AssemblyCleanupAttribute. - - - - - Description of the test. - - - - - Initializes the DescriptionAttribute. - - The description. - - - - Gets the description. - - - - - The OwnerAttribute. - - - - - Initializes the OwnerAttribute. - - The owner. - - - - Gets the owner. - - - - - CSS Project Structure URI. - - - - - Initializes the CSS Project Structure URI. - - The structure. - - - - Gets the property structure. - - - - - CSS Iteration URI - - - - - Initializes the CssIterationAttribute. - - The parameter. - - - - Gets the CssIteration. - - - - - Priority attribute; used to specify the priority of a unit test. - - - - - Initializes the PriorityAttribute. - - The priority. - - - - Gets the Priority. - - - - - Timeout attribute; used to specify the timeout of a unit test. - - - - - Initializes the TimeoutAttribute. - - - - - - Gets the Timeout. - - - - - WorkItem attribute; used to specify a work item associated with this test. - - - - - Initializes the WorkItemAttribute. - - - - - - Gets the ID. - - - - - HostType specifies the type of host that this unit test will - run in. - - - - - Initializes the host type attribute. - - - - - - Constructor of HostTypeAttribute. - - The type of the host. - Custom data for the host adapter. - - - The reason this is string (and not object) is that currently CMI cannot parse arbitrary instances of object and we deprioritized changing CMI. - - - - Gets the host type. - - - - - Gets the host data. - - - - - Used to specify deployment item (file or directory) for per-test deployment. - Can be specified on test class or test method. - Can have multiple instances of the attribute to specify more than one item. - The item path can be absolute or relative, if relative, it is relative to RunConfig.RelativePathRoot. - - - [DeploymentItem("file1.xml")] - [DeploymentItem("file2.xml", "DataFiles")] - [DeploymentItem("bin\Debug")] - - - - - Initializes DeploymentItemAttribute. - - The path. - - - - Initializes DeploymentItemAttribute. - - The path. - The output directory. - - - - Verifiable interface. - - - - - The IsValid method. - - Returns a value. - - - diff --git a/packages/FluentAssertions.2.0.1/lib/winrt45/FluentAssertions.dll b/packages/FluentAssertions.2.0.1/lib/winrt45/FluentAssertions.dll deleted file mode 100644 index 9578e9a0..00000000 Binary files a/packages/FluentAssertions.2.0.1/lib/winrt45/FluentAssertions.dll and /dev/null differ diff --git a/packages/FluentAssertions.2.0.1/lib/winrt45/FluentAssertions.pdb b/packages/FluentAssertions.2.0.1/lib/winrt45/FluentAssertions.pdb deleted file mode 100644 index 13a4fcb2..00000000 Binary files a/packages/FluentAssertions.2.0.1/lib/winrt45/FluentAssertions.pdb and /dev/null differ diff --git a/packages/FluentAssertions.2.0.1/lib/winrt45/FluentAssertions.xml b/packages/FluentAssertions.2.0.1/lib/winrt45/FluentAssertions.xml deleted file mode 100644 index 586be536..00000000 --- a/packages/FluentAssertions.2.0.1/lib/winrt45/FluentAssertions.xml +++ /dev/null @@ -1,5593 +0,0 @@ - - - - FluentAssertions - - - - - Initializes a new instance of the class. - - - - - Contains extension methods for custom assertions in unit tests. - - - - - Invokes the specified action on an subject so that you can chain it with any of the ShouldThrow or ShouldNotThrow - overloads. - - - - - Provides methods for asserting the execution time of a method or property. - - The object that exposes the method or property. - A reference to the method or property to measure the execution time of. - - Returns an object for asserting that the execution time matches certain conditions. - - - - - Provides methods for asserting the execution time of a method or property. - - A reference to the method or property to measure the execution time of. - - Returns an object for asserting that the execution time matches certain conditions. - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current . - - - - - Asserts that the throws an exception. - - A reference to the method or property. - - The type of the exception it should throw. - - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - Returns an object that allows asserting additional members of the thrown exception. - - - - - Asserts that the throws an exception. - - A reference to the method or property. - - The type of the exception it should throw. - - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - Returns an object that allows asserting additional members of the thrown exception. - - - - - Asserts that the does not throw a particular exception. - - The current method or property. - - The type of the exception it should not throw. Any other exceptions are ignored and will satisfy the assertion. - - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Asserts that the does not throw any exception at all. - - The current method or property. - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Forces enumerating a collection. Should be used to assert that a method that uses the - yield keyword throws a particular exception. - - - - - Forces enumerating a collection. Should be used to assert that a method that uses the - yield keyword throws a particular exception. - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current nullable . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current nullable . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current nullable . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current nullable . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current nullable . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current nullable . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current nullable . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current nullable . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current nullable . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current nullable . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current . - - - - - Returns an object that can be used to assert the - current nullable . - - - - - Returns a object that can be used to assert the - current . - - - - - Returns a object that can be used to assert the - current . - - - - - Returns a object that can be used to assert the current . - - - - - - Returns a object that can be used to assert the methods returned by the - current . - - - - - - Returns a object that can be used to assert the - current . - - - - - - Returns a object that can be used to assert the properties returned by the - current . - - - - - - Asserts that an object is equivalent to another object. - - - Objects are equivalent when both object graphs have equally named properties with the same value, - irrespective of the type of those objects. Two properties are also equal if one type can be converted to another and the result is equal. - The type of a collection property is ignored as long as the collection implements and all - items in the collection are structurally equal. - Notice that actual behavior is determined by the instance of the - class. - - - An optional formatted phrase as is supported by explaining why the - assertion is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that an object is equivalent to another object. - - - Objects are equivalent when both object graphs have equally named properties with the same value, - irrespective of the type of those objects. Two properties are also equal if one type can be converted to another and the result is equal. - The type of a collection property is ignored as long as the collection implements and all - items in the collection are structurally equal. - - - A reference to the configuration object that can be used - to influence the way the object graphs are compared. You can also provide an alternative instance of the - class. - - - An optional formatted phrase as is supported by explaining why the - assertion is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Safely casts the specified object to the type specified through . - - - Has been introduced to allow casting objects without breaking the fluent API. - - - - - - Contains a number of methods to assert that an is in the expected state. - - - - - Contains a number of methods to assert that a reference type object is in the expected state. - - - - - Asserts that the object is of the specified type . - - The expected type of the object. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the object is assignable to a variable of type . - - The type to which the object should be assignable. - The reason why the object should be assignable to the type. - The parameters used when formatting the . - An which can be used to chain assertions. - - - - Asserts that the is satisfied. - - The predicate which must be statisfied by the . - The reason why the predicate should be satisfied. - The parameters used when formatting the . - An which can be used to chain assertions. - - - - Asserts that the is satisfied. - - The predicate which must be statisfied by the . - The reason why the predicate should be satisfied. - The parameters used when formatting the . - An which can be used to chain assertions. - - - - Gets the object which value is being asserted. - - - - - Asserts that the number of items in the collection matches the supplied amount. - - The expected number of items in the collection. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the number of items in the collection matches a condition stated by the . - - A predicate that yields the number of items that is expected to be in the collection. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the collection does not contain any items. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the collection contains at least 1 item. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the collection does not contain any duplicate items. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the collection does not contain any null items. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Expects the current collection to contain all the same elements in the same order as the collection identified by - . Elements are compared using their . - - A params array with the expected elements. - - - - Expects the current collection to contain all the same elements in the same order as the collection identified by - . Elements are compared using their . - - An with the expected elements. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Expects the current collection not to contain all the same elements in the same order as the collection identified by - . Elements are compared using their . - - An with the elements that are not expected. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Expects the current collection to contain all elements of the collection identified by , - regardless of the order. Elements are compared using their . - - A params array with the expected elements. - - - - Expects the current collection to contain all elements of the collection identified by , - regardless of the order. Elements are compared using their . - - An with the expected elements. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Expects the current collection not to contain all elements of the collection identified by , - regardless of the order. Elements are compared using their . - - An with the unexpected elements. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current collection only contains items that are assignable to the type . - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Expects the current collection to contain the specified elements in any order. Elements are compared - using their implementation. - - An with the expected elements. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Expects the current collection to contain the specified elements in the exact same order. Elements are compared - using their implementation. - - An with the expected elements. - - - - Expects the current collection to contain the specified elements in the exact same order. Elements are compared - using their implementation. - - An with the expected elements. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Expects the current collection to have all elements in ascending order. Elements are compared - using their implementation. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Expects the current collection to have all elements in descending order. Elements are compared - using their implementation. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Expects the current collection to have all elements in the specified . - Elements are compared using their implementation. - - - - - Asserts the current collection does not have all elements in ascending order. Elements are compared - using their implementation. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts the current collection does not have all elements in descending order. Elements are compared - using their implementation. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts the current collection does not have all elements in ascending order. Elements are compared - using their implementation. - - - - - Asserts that the collection is a subset of the . - - An with the expected superset. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the collection is not a subset of the . - - An with the unexpected superset. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Assert that the current collection has the same number of elements as . - - The other collection with the same expected number of elements - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current collection has not been initialized yet with an actual collection. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current collection has been initialized with an actual collection. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current collection has the supplied at the - supplied . - - The index where the element is expected - The expected element - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current collection does not contain the supplied item. - - The element that is not expected to be in the collection - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the collection shares one or more items with the specified . - - The with the expected shared items. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the collection does not share any items with the specified . - - The to compare to. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Contains a number of methods to assert that an is in the expectation state. - - - - - Asserts that two collections contain the same items in the same order, where equality is determined using a - predicate. - - - The collection to compare the subject with. - - - A predicate the is used to determine whether two objects should be treated as equal. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the collection contains the specified item. - - The expectation item. - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Asserts that the collection contains some extra items in addition to the original items. - - An of expectation items. - Additional items that are expectation to be contained by the collection. - - - - Asserts that the collection contains at least one item that matches the predicate. - - A predicate to match the items in the collection against. - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Asserts that the collection only contains items that match a predicate. - - A predicate to match the items in the collection against. - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Asserts that the collection does not contain any items that match the predicate. - - A predicate to match the items in the collection against. - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Expects the current collection to contain only a single item matching the specified . - - The predictes that will be used to find the matching items. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Contains a number of methods to assert that an is in the expected state. - - - - - Asserts that the current dictionary has not been initialized yet with an actual dictionary. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current dictionary has been initialized with an actual dictionary. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the number of items in the dictionary matches the supplied amount. - - The expected number of items. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the number of items in the dictionary matches a condition stated by a predicate. - - The predicate which must be statisfied by the amount of items. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the dictionary does not contain any items. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the dictionary contains at least 1 item. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current dictionary contains all the same key-value pairs as the - specified dictionary. Keys and values are compared using - their implementation. - - The expected dictionary - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts the current dictionary not to contain all the same key-value pairs as the - specified dictionary. Keys and values are compared using - their implementation. - - The unexpected dictionary - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the dictionary contains the specified key. Keys are compared using - their implementation. - - The expected key - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the dictionary contains all of the specified keys. Keys are compared using - their implementation. - - The expected keys - - - - Asserts that the dictionary contains all of the specified keys. Keys are compared using - their implementation. - - The expected keys - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current dictionary does not contain the specified key. - Keys are compared using their implementation. - - The unexpected key - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the dictionary contains the specified value. Values are compared using - their implementation. - - The expected value - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the dictionary contains all of the specified values. Values are compared using - their implementation. - - The expected values - - - - Asserts that the dictionary contains all of the specified values. Values are compared using - their implementation. - - The expected values - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current dictionary does not contain the specified value. - Values are compared using their implementation. - - The unexpected value - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current dictionary contains the specified . - Keys and values are compared using their implementation. - - The expected - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current dictionary contains the specified for the supplied . Values are compared using their implementation. - - The key for which to validate the value - The value to validate - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current dictionary does not contain the specified . - Keys and values are compared using their implementation. - - The unexpected - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current dictionary does not contain the specified for the - supplied . Values are compared using their implementation. - - The key for which to validate the value - The value to validate - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Gets the object which value is being asserted. - - - - - Contains a number of methods to assert that an is in the expected state. - - - - - Asserts that the current collection contains the specified object. Elements are compared - using their implementation. - - An object, or of objects that are expected to be in the collection. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Gets a dotted path of property names representing the property expression. E.g. Parent.Child.Sibling.Name. - - - - - Finds the first index at which the does not match the - string anymore, including the exact casing. - - - - - Finds the first index at which the does not match the - string anymore, accounting for the specified . - - - - - Gets the quoted three characters at the specified index of a string, including the index itself. - - - - - Replaces all characters that might conflict with formatting placeholders and newlines with their escaped counterparts. - - - - - Joins a string with one or more other strings using a specified separator. - - - Any string that is empty (including the original string) is ignored. - - - - - Determines whether two objects refer to the same property. - - - - - Finds the property by a case-sensitive name. - - - Returns null if no such property exists. - - - - - Determines whether the specified method has been annotated with a specific attribute. - - - true if the specified method has attribute; otherwise, false. - - - - - Provides extension methods for monitoring and querying events. - - - - - Starts monitoring an object for its events. - - Thrown if eventSource is Null. - - - - Asserts that an object has raised the event for a particular property. - - - You must call on the same object prior to this call so that Fluent Assertions can - subscribe for the events of the object. - - - - - Asserts that an object has raised the event for a particular property. - - The object exposing the event. - - A lambda expression referring to the property for which the property changed event should have been raised, or - null to refer to all properties. - - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - You must call on the same object prior to this call so that Fluent Assertions can - subscribe for the events of the object. - - - - - Asserts that an object has not raised the event for a particular property. - - - You must call on the same object prior to this call so that Fluent Assertions can - subscribe for the events of the object. - - - - - Asserts that an object has not raised the event for a particular property. - - The object exposing the event. - - A lambda expression referring to the property for which the property changed event should have been raised. - - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - You must call on the same object prior to this call so that Fluent Assertions can - subscribe for the events of the object. - - - - - Asserts that all occurences of the event originated from the . - - - - - Asserts that at least one occurrence of the event had an object matching a predicate. - - - - - Records activity for a single event. - - - - - Records raised events for one event on one object - - - - - Store information about a raised event - - Parameters the event was raised with - - - - The object events are recorded from - - - - - The name of the event that's recorded - - - - - - The object events are recorded from - The name of the event that's recorded - - - - Enumerate raised events - - - - - Enumerate raised events - - - - - - Called by the auto-generated IL, to record information about a raised event. - - - - - The object events are recorded from - - - - - The name of the event that's recorded - - - - - Simple dictionary that uses a to the event source as the key. - This should ensure the Garbage Collector can still clean-up the event source object. - - - - - This class is used to store data about an intercepted event - - - - - Default constructor stores the parameters the event was raised with - - - - - Parameters for the event - - - - - Helper class for verifying a condition and/or throwing a test harness specific exception representing an assertion failure. - - - - - Gets an object that wraps and executes a conditional or unconditional verification. - - - - - Provides a fluent API for verifying an arbitrary condition. - - - - - Represents the phrase that can be used in as a placeholder for the reason of an assertion. - - - - - Initializes a new instance of the class. - - - - - Gets the name or identifier of the current subject, or a default value if the subject is not known. - - - - - Specify the condition that must be satisfied. - - If true the verification will be succesful. - - - - Specify a predicate that with the condition that must be satisfied. - - - - - Specify the reason why you expect the condition to be true. - - - A formatted phrase explaining why the condition should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Define the failure message for the verification. - - - If the contains the text "{reason}", this will be replaced by the reason as - defined through . Only 10 are supported in combination with - a {reason}. - - The format string that represents the failure message. - Optional arguments for the - - - - Indicates that every argument passed into is displayed on a separate line. - - - - - Gets or sets the name of the subject for the next verification. - - - - - Extension methods on to allow for a more fluent way of specifying a . - - - Instead of
-
- new DateTime(2011, 3, 10)
-
- you can write 3.March(2011)
-
- Or even
-
- 3.March(2011).At(09, 30) -
- -
- - - Returns a new value for the specified and - in the month January. - - - - - Returns a new value for the specified and - in the month February. - - - - - Returns a new value for the specified and - in the month March. - - - - - Returns a new value for the specified and - in the month April. - - - - - Returns a new value for the specified and - in the month May. - - - - - Returns a new value for the specified and - in the month June. - - - - - Returns a new value for the specified and - in the month July. - - - - - Returns a new value for the specified and - in the month August. - - - - - Returns a new value for the specified and - in the month September. - - - - - Returns a new value for the specified and - in the month October. - - - - - Returns a new value for the specified and - in the month November. - - - - - Returns a new value for the specified and - in the month December. - - - - - Returns a new value for the specified and . - - - - - Returns a new value for the specified and time with the specified - , and optionally . - - - - - Returns a new value that is the current before the - specified . - - - - - Returns a new value that is the current after the - specified . - - - - - Indicates whether the current can handle the specified . - - The value for which to create a . - - true if the current can handle the specified value; otherwise, false. - - - - - Returns a that represents this instance. - - The value for which to create a . - - - A collection of objects that - - - The level of nesting for the supplied value. This is used for indenting the format string for objects that have - no override. - - - A that represents this instance. - - - - - Indicates whether the current can handle the specified . - - The value for which to create a . - - true if the current can handle the specified value; otherwise, false. - - - - - Returns a that represents this instance. - - The value for which to create a . - - - A collection of objects that - - - The level of nesting for the supplied value. This is used for indenting the format string for objects that have - no override. - - - A that represents this instance. - - - - - Determines whether this instance can handle the specified value. - - The value. - - true if this instance can handle the specified value; otherwise, false. - - - - - Returns a that represents this instance. - - The value for which to create a . - - - A collection of objects that - - - The level of nesting for the supplied value. This is used for indenting the format string for objects that have - no override. - - - A that represents this instance. - - - - - Indicates whether the current can handle the specified . - - The value for which to create a . - - true if the current can handle the specified value; otherwise, false. - - - - - Returns a that represents this instance. - - The value for which to create a . - - - A collection of objects that - - - The level of nesting for the supplied value. This is used for indenting the format string for objects that have - no override. - - - A that represents this instance. - - - - - Indicates whether the current can handle the specified . - - The value for which to create a . - - true if the current can handle the specified value; otherwise, false. - - - - - Returns a that represents this instance. - - The value for which to create a . - - - A collection of objects that - - - The level of nesting for the supplied value. This is used for indenting the format string for objects that have - no override. - - - A that represents this instance. - - - - - Provides services for formatting an object being used in an assertion in a human readable format. - - - - - A list of objects responsible for formatting the objects represented by placeholders. - - - - - Returns a human-readable representation of a particular object. - - The value for which to create a . - - The level of nesting for the supplied value. This is used for indenting the format string for objects that have - no override. - - - Indicates whether the formatter should use line breaks when the specific supports it. - - - A that represents this instance. - - - - - Indicates whether the current can handle the specified . - - The value for which to create a . - - true if the current can handle the specified value; otherwise, false. - - - - - Returns a that represents this instance. - - The value for which to create a . - - - A collection of objects that - - - The level of nesting for the supplied value. This is used for indenting the format string for objects that have - no override. - - - A that represents this instance. - - - - - Indicates whether the current can handle the specified . - - The value for which to create a . - - true if the current can handle the specified value; otherwise, false. - - - - - Returns a that represents this instance. - - The value for which to create a . - - - A collection of objects that - - - The level of nesting for the supplied value. This is used for indenting the format string for objects that have - no override. - - - A that represents this instance. - - - - - Indicates whether the current can handle the specified . - - The value for which to create a . - - true if the current can handle the specified value; otherwise, false. - - - - - Returns a that represents this instance. - - The value for which to create a . - - - A collection of objects that - - - The level of nesting for the supplied value. This is used for indenting the format string for objects that have - no override. - - - A that represents this instance. - - - - - Indicates whether the current can handle the specified . - - The value for which to create a . - - true if the current can handle the specified value; otherwise, false. - - - - - Returns a that represents this instance. - - The value for which to create a . - - - A collection of objects that - - - The level of nesting for the supplied value. This is used for indenting the format string for objects that have - no override. - - - A that represents this instance. - - - - - Indicates whether the current can handle the specified . - - The value for which to create a . - - true if the current can handle the specified value; otherwise, false. - - - - - Returns a that represents this instance. - - The value for which to create a . - - - A collection of objects that - - - The level of nesting for the supplied value. This is used for indenting the format string for objects that have - no override. - - - A that represents this instance. - - - - - Indicates whether the current can handle the specified . - - The value for which to create a . - - true if the current can handle the specified value; otherwise, false. - - - - - Returns a that represents this instance. - - The value for which to create a . - - - A collection of objects that - - - The level of nesting for the supplied value. This is used for indenting the format string for objects that have - no override. - - - A that represents this instance. - - - - - Returns a that represents this instance. - - The value for which to create a . - - - A collection of objects that - - - The level of nesting for the supplied value. This is used for indenting the format string for objects that have - no override. - - - A that represents this instance. - - - - - Indicates whether the current can handle the specified . - - The value for which to create a . - - true if the current can handle the specified value; otherwise, false. - - - - - Returns a that represents this instance. - - The value for which to create a . - - - A collection of objects that - - - The level of nesting for the supplied value. This is used for indenting the format string for objects that have - no override. - - - A that represents this instance. - - - - - Contains a number of extension methods for floating point . - - - - - Asserts a floating point value approximates another value as close as possible. - - The object that is being extended. - - The expected value to compare the actual value with. - - - The maximum amount of which the two values may differ. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts a floating point value approximates another value as close as possible. - - The object that is being extended. - - The expected value to compare the actual value with. - - - The maximum amount of which the two values may differ. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts a floating point value approximates another value as close as possible. - - The object that is being extended. - - The expected value to compare the actual value with. - - - The maximum amount of which the two values may differ. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts a floating point value approximates another value as close as possible. - - The object that is being extended. - - The expected value to compare the actual value with. - - - The maximum amount of which the two values may differ. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Contains a number of methods to assert that an is in the expected state. - - - - - Asserts that the subject is considered equal to another object according to the implementation of . - - - The object to pass to the subject's method. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the subject is not equal to another object according to its implementation of . - - - The object to pass to the subject's method. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the subject is less than another object according to its implementation of . - - - The object to pass to the subject's method. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the subject is less than or equal to another object according to its implementation of . - - - The object to pass to the subject's method. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the subject is greater than another object according to its implementation of . - - - The object to pass to the subject's method. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the subject is greater than or equal to another object according to its implementation of . - - - The object to pass to the subject's method. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a value is within a range. - - - Where the range is continuous or incremental depends on the actual type of the value. - - - The minimum valid value of the range. - - - The maximum valid value of the range. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a nullable numeric value is not null. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a nullable numeric value is null. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Gets the object which value is being asserted. - - - - - Contains a number of methods to assert that an is in the expected state. - - - - - Asserts that the integral number value is exactly the same as the value. - - The expected value. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the integral number value is exactly the same as the value. - - The expected value. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the integral number value is not the same as the value. - - The unexpected value. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the integral number value is not the same as the value. - - The unexpected value. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the numeric value is greater than or equal to zero. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the numeric value is less than zero. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the numeric value is less than the specified value. - - The value to compare the current numeric value with. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the numeric value is less than or equal to the specified value. - - The value to compare the current numeric value with. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the numeric value is greater than the specified value. - - The value to compare the current numeric value with. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the numeric value is greater than or equal to the specified value. - - The value to compare the current numeric value with. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a value is within a range. - - - Where the range is continuous or incremental depends on the actual type of the value. - - - The minimum valid value of the range. - - - The maximum valid value of the range. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a value is one of the specified . - - - The values that are valid. - - - - - Asserts that a value is one of the specified . - - - The values that are valid. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a nullable numeric value is not null. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a nullable numeric value is null. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Contains a number of methods to assert that a is in the expected state. - - - - - Asserts that the value is false. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the value is true. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the value is equal to the specified value. - - The expected value - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Gets the object which value is being asserted. - - - - - Defines the way compares the expected exception - message with the actual one. - - - - - The message must match exactly, including the casing of the characters. - - - - - The message must match except for the casing of the characters. - - - - - The message must start with the exact text, including the casing of the characters.. - - - - - The message must start with the text except for the casing of the characters. - - - - - The message must contain the exact text. - - - - - The message must contain the text except for the casing of the characters. - - - - - The message must match a wildcard pattern consisting of ordinary characters as well as * and ?. - - - - - Contains a number of methods to assert that a is in the expected state. - - - You can use the for a more fluent way of specifying a . - - - - - Asserts that the current is exactly equal to the value. - - The expected value - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current is not equal to the value. - - The unexpected value - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current is within the specified number of milliseconds (default = 20 ms) - from the specified value. - - - Use this assertion when, for example the database truncates datetimes to nearest 20ms. If you want to assert to the exact datetime, - use . - - - The expected time to compare the actual value with. - - - The maximum amount of milliseconds which the two values may differ. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current is before the specified value. - - The that the current value is expected to be before. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current is either on, or before the specified value. - - The that the current value is expected to be on or before. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current is after the specified value. - - The that the current value is expected to be after. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current is either on, or after the specified value. - - The that the current value is expected to be on or after. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current has the year. - - The expected year of the current value. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current has the month. - - The expected month of the current value. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current has the day. - - The expected day of the current value. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current has the hour. - - The expected hour of the current value. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current has the minute. - - The expected minutes of the current value. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current has the second. - - The expected seconds of the current value. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Returns a object that can be used to assert that the current - exceeds the specified compared to another . - - - The amount of time that the current should exceed compared to another . - - - - - Returns a object that can be used to assert that the current - is equal to or exceeds the specified compared to another . - - - The amount of time that the current should be equal or exceed compared to - another . - - - - - Returns a object that can be used to assert that the current - differs exactly the specified compared to another . - - - The amount of time that the current should differ exactly compared to another . - - - - - Returns a object that can be used to assert that the current - is within the specified compared to another . - - - The amount of time that the current should be within another . - - - - - Returns a object that can be used to assert that the current - differs at maximum the specified compared to another . - - - The maximum amount of time that the current should differ compared to another . - - - - - Gets the object which value is being asserted. - - - - - Contains a number of methods to assert that a is in the correct state. - - - - - Asserts that the is . - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the is not . - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the is equal to the GUID. - - The expected value to compare the actual value with. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the is equal to the GUID. - - The expected value to compare the actual value with. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the is not equal to the GUID. - - The unexpected value to compare the actual value with. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Gets the object which value is being asserted. - - - - - Contains a number of methods to assert that a nullable is in the expected state. - - - - - Asserts that a nullable boolean value is not null. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a nullable boolean value is null. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the value is equal to the specified value. - - The expected value - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Contains a number of methods to assert that a nullable is in the expected state. - - - You can use the for a more fluent way of specifying a . - - - - - Asserts that a nullable value is not null. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a nullable value is null. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the value is equal to the specified value. - - The expected value - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Contains a number of methods to assert that a nullable is in the expected state. - - - - - Asserts that a nullable value is not null. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a nullable value is null. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the value is equal to the specified value. - - The expected value - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Contains a number of methods to assert that a nullable is in the expected state. - - - You can use the for a more fluent way of specifying a . - - - - - Contains a number of methods to assert that a nullable is in the expected state. - - - - - Asserts that the time difference of the current is greater than zero. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the time difference of the current is less than zero. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the time difference of the current is equal to the - specified time. - - The expected time difference - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the time difference of the current is not equal to the - specified time. - - The unexpected time difference - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the time difference of the current is less than the - specified time. - - The time difference to which the current value will be compared - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the time difference of the current is less than or equal to the - specified time. - - The time difference to which the current value will be compared - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the time difference of the current is greater than the - specified time. - - The time difference to which the current value will be compared - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the time difference of the current is greater than or equal to the - specified time. - - The time difference to which the current value will be compared - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Gets the object which value is being asserted. - - - - - Asserts that a nullable value is not null. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a nullable value is null. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Contains a number of methods to assert that an is in the expected state. - - - - - Asserts that an object equals another object using its implementation. - - The expected value - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that an object does not equal another object using it's method. - - The unexpected value - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Asserts that an object reference refers to the exact same object as another object reference. - - The expected object - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Asserts that an object reference refers to a different object than another object reference refers to. - - The unexpected object - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Asserts that the object is null. - - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Asserts that the object is not null. - - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Contains a number of methods to assert that a is in the expected state. - - - - - Initializes a new instance of the class. - - - - - Asserts that a string is exactly the same as another string, including the casing and any leading or trailing whitespace. - - The expected string. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the is one of the specified . - - - The values that are valid. - - - - - Asserts that the is one of the specified . - - - The values that are valid. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string is exactly the same as another string, including any leading or trailing whitespace, with - the exception of the casing. - - - The string that the subject is expected to be equivalent to. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string is not exactly the same as the specified , - including any leading or trailing whitespace, with the exception of the casing. - - The string that the subject is not expected to be equivalent to. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string matches a wildcard pattern. - - - The wildcard pattern with which the subject is matched, where * and ? have special meanings. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string does not match a wildcard pattern. - - - The wildcard pattern with which the subject is matched, where * and ? have special meanings. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string matches a wildcard pattern. - - - The wildcard pattern with which the subject is matched, where * and ? have special meanings. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string does not match a wildcard pattern. - - - The wildcard pattern with which the subject is matched, where * and ? have special meanings. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string starts exactly with the specified value, - including the casing and any leading or trailing whitespace. - - The string that the subject is expected to start with. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string starts with the specified , - including any leading or trailing whitespace, with the exception of the casing. - - The string that the subject is expected to start with. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string ends exactly with the specified , - including the casing and any leading or trailing whitespace. - - The string that the subject is expected to end with. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string ends with the specified , - including any leading or trailing whitespace, with the exception of the casing. - - The string that the subject is expected to end with. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string contains another (fragment of a) string. - - - The (fragement of a) string that the current string should contain. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string contains the specified , - including any leading or trailing whitespace, with the exception of the casing. - - The string that the subject is expected to contain. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string does not contain another (fragment of a) string. - - - The (fragement of a) string that the current string should not contain. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string does not contain the specified string, - including any leading or trailing whitespace, with the exception of the casing. - - The string that the subject is not expected to contain. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string is . - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string is not . - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string has the specified length. - - The expected length of the string - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string is null. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string is not null. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that a string is neither null nor . - - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Asserts that a string is either null or . - - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Asserts that a string is neither null nor nor white space - - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Asserts that a string is either null or or white space - - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Gets the object which value is being asserted. - - - - - Dedicated class for comparing two strings and generating consistent error messages. - - - - - Gets or sets a value indicating whether the subject should not match the pattern. - - - - - Gets or sets a value indicating whether the matching process should ignore any casing difference. - - - - - Contains a number of methods to assert that two objects differ in the expected way. - - - You can use the and for a more fluent - way of specifying a or a . - - - - - Asserts that a occurs a specified amount of time before another . - - - The to compare the subject with. - - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Asserts that a occurs a specified amount of time after another . - - - The to compare the subject with. - - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Provides the logic and the display text for a . - - - - - Contains a number of methods to assert that an yields the expected result. - - - - - Asserts that the current throws an exception of type . - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current does not throw an exception of type . - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current does not throw any exception. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Gets the that is being asserted. - - - - - Contains a number of methods to assert that an is in the correct state. - - - - - Asserts that the thrown exception has a message that matches - depending on the specified matching mode. - - - The expected message of the exception. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the thrown exception has a message that matches - depending on the specified matching mode. - - - The expected message of the exception. - - - Determines how the expected message is compared with the actual message. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the thrown exception contains an inner exception of type . - - The expected type of the inner exception. - - - - Asserts that the thrown exception contains an inner exception of type . - - The expected type of the inner exception. - The reason why the inner exception should be of the supplied type. - The parameters used when formatting the . - - - - Asserts that the thrown exception contains an inner exception with the . - - The expected message of the inner exception. - Determines how the expected message is compared with the actual message. - - - - Asserts that the thrown exception contains an inner exception with the . - - The expected message of the inner exception. - - The reason why the message of the inner exception should match . - - The parameters used when formatting the . - - - - Asserts that the thrown exception contains an inner exception with the . - - The expected message of the inner exception. - Determines how the expected message is compared with the actual message. - - The reason why the message of the inner exception should match . - - The parameters used when formatting the . - - - - Asserts that the exception matches a particular condition. - - - The condition that the exception must match. - - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Gets the exception object of the exception thrown. - - - - - Provides methods for asserting that the execution time of an satifies certain conditions. - - - - - Initializes a new instance of the class. - - The action of which the execution time must be asserted. - - - - Asserts that the execution time of the operation does not exceed a specified amount of time. - - - The maximum allowed duration. - - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Provides methods for asserting that the execution time of an object member satifies certain conditions. - - - - - - Initializes a new instance of the class. - - The object that exposes the method or property. - A reference to the method or property to measure the execution time of. - - - - Selection rule that adds all public properties of the subject as far as they are defined on the declared - type. - - - - - Represents a rule that defines which properties of the subject-under-test to include while comparing - two objects for structural equality. - - - - - Adds or removes properties to/from the collection of subject properties that must be included while - comparing two objects for structural equality. - - - A collection of properties that was prepopulated by other selection rules. Can be empty. - - Type info about the subject. - - - The collection of properties after applying this rule. Can contain less or more than was passed in. - - - - - Adds or removes properties to/from the collection of subject properties that must be included while - comparing two objects for structural equality. - - - A collection of properties that was prepopulated by other selection rules. Can be empty. - - The collection of properties after applying this rule. Can contain less or more than was passed in. - - - - - Returns a string that represents the current object. - - - A string that represents the current object. - - 2 - - - - Selection rule that adds all public properties of the subject based on its run-time type rather than its - declared type. - - - - - Adds or removes properties to/from the collection of subject properties that must be included while - comparing two objects for structural equality. - - - A collection of properties that was prepopulated by other selection rules. Can be empty. - - The collection of properties after applying this rule. Can contain less or more than was passed in. - - - - - Returns a string that represents the current object. - - - A string that represents the current object. - - 2 - - - - Gets a value indicating whether this step can handle the current subject and/or expectation. - - - - - Applies a step as part of the task to compare two objects for structural equality. - - - Should return true if the subject matches the expectation or if no additional assertions - have to be executed. Should return false otherwise. - - - May throw when preconditions are not met or if it detects mismatching data. - - - - - Gets a value indicating whether this step can handle the current subject and/or expectation. - - - - - Applies a step as part of the task to compare two objects for structural equality. - - - Should return true if the subject matches the expectation or if no additional assertions - have to be executed. Should return false otherwise. - - - May throw when preconditions are not met or if it detects mismatching data. - - - - - General purpose implementation of that uses a predicate to determine whether - this rule applies to a particular property and executes an action to assert equality. - - The type of the subject. - - - - Defines how a subject's property is compared for equality with the same property of the expectation. - - - Provides details about the subject's property. - - - The value of the subject's property. - - - The value of a property on expectation object that was identified - - - Returns true if the rule was applied correctly and the assertion didn't cause any exceptions. - Returns false if this rule doesn't support the subject's type. - Throws if the rule did support the data type but assertion fails. - - - - - Defines how a subject's property is compared for equality with the same property of the expectation. - - - Provides details about the subject's property. - - - The value of the subject's property. - - - The value of a property on expectation object that was identified - - - Returns true if the rule was applied correctly and the assertion didn't cause any exceptions. - Returns false if this rule doesn't support the subject's type. - Throws if the rule did support the data type but assertion fails. - - - - - Provides the required information for executing an equality assertion between a subject and an expectation. - - The type of the subject. - - - - Gets the of the property that returned the current object, or null if the current - object represents the root object. - - - - - Gets the value of the - - - - - Gets the value of the expectation object that was matched with the subject using a . - - - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - - - Zero or more objects to format using the placeholders in . - - - - - Selection rule that removes a particular property from the structural comparison based on a predicate. - - - - - Adds or removes properties to/from the collection of subject properties that must be included while - comparing two objects for structural equality. - - - A collection of properties that was prepopulated by other selection rules. Can be empty. - - The collection of properties after applying this rule. Can contain less or more than was passed in. - - - - - Returns a string that represents the current object. - - - A string that represents the current object. - - 2 - - - - Provides details about the subject's root or nested property. - - - - - Gets the of the property that returned the current object, or null if the current - object represents the root object. - - - - - Gets the full path from the root object until the current object separated by dots. - - - - - Gets a display-friendly representation of the . - - - - - Gets the compile-time type of the current object. If the current object is not the root object, then it returns the - same as the property does. - - - - - Gets the run-time type of the current object. - - - - - Represents a selection context of a nested property - - - - - Gets the of the property that returned the current object, or - null if the current object represents the root object. - - - - - Gets the full path from the root object until the current property, separated by dots. - - - - - Gets a textual description of the current property based on the . - - - - - Gets the compile-time type of the current object. If the current object is not the root object, then it returns the - same as the property does. - - - - - Gets the run-time type of the current object. - - - - - Is responsible for the exact run-time behavior of a structural equality comparison. - - The type of the subject. - - - - Provides the run-time details of the class. - - - - - Gets an ordered collection of selection rules that define what properties are included. - - - - - Gets an ordered collection of matching rules that determine which subject properties are matched with which - expectation properties. - - - - - Gets an ordered collection of assertion rules that determine how subject properties are compared for equality with - expectation properties. - - - - - Gets or sets a value indicating whether or not the assertion must perform a deep comparison. - - - - - Gets a configuration that compares all declared properties of the subject with equally named properties of the expectation, - and includes the entire object graph. The names of the properties between the subject and expectation must match. - - - - - Gets a configuration that by default doesn't include any of the subject's properties and doesn't consider any nested objects - or collections. - - - - - Adds all public properties of the subject as far as they are defined on the declared type. - - - - - Adds all public properties of the subject based on its run-time type rather than its declared type. - - - - - Tries to match the properties of the subject with equally named properties on the expectation. Ignores those - properties that don't exist on the expectation. - - - - - Requires the expectation to have properties which are equally named to properties on the subject. - - - - - - Excludes the specified (nested) property from the structural equality check. - - - - - Excludes a (nested) property based on a predicate from the structural equality check. - - - - - Includes the specified property in the equality check. - - - This overrides the default behavior of including all declared properties. - - - - - The assertion to execute when the predicate is met. - - - - - Causes the structural equality check to include nested collections and complex types. - - - - - Causes the structural equality check to ignore any cyclic references. - - - By default, cyclic references within the object graph will cause an exception to be thrown. - - - - - Clears all selection rules, including those that were added by default. - - - - - Clears all matching rules, including those that were added by default. - - - - - Adds a selection rule to the ones allready added by default and which is evaluated after all existing rules. - - - - - Adds a matching rule to the ones allready added by default and which is evaluated before all existing rules. - - - - - Adds a matching rule to the ones allready added by default and which is evaluated before all existing rules - - - - - Returns a string that represents the current object. - - - A string that represents the current object. - - 2 - - - - Gets an ordered collection of selection rules that define what properties are included. - - - - - Gets an ordered collection of matching rules that determine which subject properties are matched with which - expectation properties. - - - - - Gets an ordered collection of assertion rules that determine how subject properties are compared for equality with - expectation properties. - - - - - Gets value indicating whether the equality check will include nested collections and complex types. - - - - - Gets value indicating how cyclic references should be handled. By default, it will throw an exception. - - - - - Defines additional overrides when used with - - - - - Allows overriding the way structural equality is applied to (nested) objects of tyoe - - - - - Allows overriding the way structural equality is applied to particular properties. - - - A predicate based on the of the subject that is used to identify the property for which the - override applies. - - - - - Gets a value indicating whether this step can handle the current subject and/or expectation. - - - - - Applies a step as part of the task to compare two objects for structural equality. - - - Should return true if the subject matches the expectation or if no additional assertions - have to be executed. Should return false otherwise. - - - May throw when preconditions are not met or if it detects mismatching data. - - - - - Indication of how cyclic references should be handled when validating equality of nested properties. - - - - - Cyclic references will be ignored. - - - - - Cyclic references will result in an exception. - - - - - Gets a value indicating whether this step can handle the current subject and/or expectation. - - - - - Applies a step as part of the task to compare two objects for structural equality. - - - Should return true if the subject matches the expectation or if no additional assertions - have to be executed. Should return false otherwise. - - - May throw when preconditions are not met or if it detects mismatching data. - - - - - Gets a value indicating whether this step can handle the current subject and/or expectation. - - - - - Applies a step as part of the task to compare two objects for structural equality. - - - Should return true if the subject matches the expectation or if no additional assertions - have to be executed. Should return false otherwise. - - - May throw when preconditions are not met or if it detects mismatching data. - - - - - Selection rule that removes a particular property from the structural comparison. - - - - - Adds or removes properties to/from the collection of subject properties that must be included while - comparing two objects for structural equality. - - - A collection of properties that was prepopulated by other selection rules. Can be empty. - - - The collection of properties after applying this rule. Can contain less or more than was passed in. - - - - - Returns a that represents this instance. - - - A that represents this instance. - - - - - Represents a rule that defines how to map the properties from the subject-under-test with the properties - on the expectation object. - - - - - Attempts to find a property on the expectation that should be compared with the - during a structural equality. - - - Whether or not a match is required or optional is up to the specific rule. If no match is found and this is not an issue, - simply return null. - - - The of the subject's property for which a match must be found. Can never - be null. - - - The expectation object for which a matching property must be returned. Can never be null. - - - The dotted path from the root object to the current property. Will never be null. - - - Returns the of the property with which to compare the subject with, or null - if no match was found. - - - - - Selection rule that includes a particular property in the structural comparison. - - - - - Adds or removes properties to/from the collection of subject properties that must be included while - comparing two objects for structural equality. - - - A collection of properties that was prepopulated by other selection rules. Can be empty. - - The collection of properties after applying this rule. Can contain less or more than was passed in. - - - - - Returns a that represents this instance. - - - A that represents this instance. - - - - - Provides information on a particular property during an assertion for structural equality of two object graphs. - - - - - Gets the property of the that was matched against the , - or null if is true. - - - - - Gets the value of the . - - - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - - - Zero or more objects to format using the placeholders in . - - - - - Gets a verification object associated with the current and . - - - - - Gets a value indicating whether the current context represents the root of the object graph. - - - - - Gets the value of the - - - - - Requires the expectation object to have a property with the exact same name. - - - - - Attempts to find a property on the expectation that should be compared with the - during a structural equality. - - - Whether or not a match is required or optional is up to the specific rule. If no match is found and this is not an issue, - simply return null. - - - The of the subject's property for which a match must be found. Can never - be null. - - - The expectation object for which a matching property must be returned. Can never be null. - - - The dotted path from the root object to the current property. Will never be null. - - - Returns the of the property with which to compare the subject with, or null - if no match was found. - - - - - Returns a string that represents the current object. - - - A string that represents the current object. - - 2 - - - - Provides methods for selecting one or more properties of an object and comparing them with another object. - - - - - Includes all properties of when comparing the subject with another object using . - - - - - Includes all properties of including those of the run-time type when comparing the subject - with another object using . - - - - - Includes all properties of when comparing the subject with another object using , - except those that the other object does not have. - - - - - Perform recursive property comparison of the child properties for objects that are of incompatible type. - - - Indication of how cyclic references in the nested properties should be handled. By default this will result in an - exception, but if is specified, cyclic references will just be ignored. - - - - - Includes all properties of when comparing the subject with another object using , - except those specified using a property expression. - - A single property expression to exclude. - Optional list of additional property expressions to exclude. - - - - Excludes the properties specified by the from the comparison. - - A single property expression to exclude. - Optional list of additional property expressions to exclude. - - - - Includes only those properties of when comparing the subject with another object using - that were specified using a property expression. - - A single property expression to include. - Optional list of additional property expressions to include. - - - - Asserts that the previously selected properties of have the same value as the equally named - properties of . - - The object to compare the current object with - - Property values are considered equal if, after converting them to the requested type, calling - returns true. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Gets a value indicating whether this step can handle the current subject and/or expectation. - - - - - Applies a step as part of the task to compare two objects for structural equality. - - - Should return true if the subject matches the expectation or if no additional assertions - have to be executed. Should return false otherwise. - - - May throw when preconditions are not met or if it detects mismatching data. - - - - - Gets the of the property that returned the current object, or - null if the current object represents the root object. - - - - - Gets the full path from the root object until the current property, separated by dots. - - - - - Gets a textual description of the current property based on the . - - - - - Gets the value of the - - - - - Gets the property of the that was matched against the , - or null if is true. - - - - - Gets the value of the . - - - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - - - Zero or more objects to format using the placeholders in . - - - - - Gets a value indicating whether the current context represents the root of the object graph. - - - - - Gets the compile-time type of the current object. If the current object is not the root object, then it returns the - same as the property does. - - - - - Gets the run-time type of the current object. - - - - - Gets a verification object associated with the current and . - - - - - Is responsible for validating the equality of one or more properties of a subject with another object. - - - - - Gets a value indicating whether this step can handle the current subject and/or expectation. - - - - - Applies a step as part of the task to compare two objects for structural equality. - - - Should return true if the subject matches the expectation or if no additional assertions - have to be executed. Should return false otherwise. - - - May throw when preconditions are not met or if it detects mismatching data. - - - - - Finds a property of the expectation with the exact same name, but doesn't require it. - - - - - Attempts to find a property on the expectation that should be compared with the - during a structural equality. - - - Whether or not a match is required or optional is up to the specific rule. If no match is found and this is not an issue, - simply return null. - - - The of the subject's property for which a match must be found. Can never - be null. - - - The expectation object for which a matching property must be returned. Can never be null. - - - The dotted path from the root object to the current property. Will never be null. - - - Returns the of the property with which to compare the subject with, or null - if no match was found. - - - - - Returns a string that represents the current object. - - - A string that represents the current object. - - 2 - - - - Extension methods on to allow for a more fluent way of specifying a . - - - Instead of
-
- TimeSpan.FromHours(12)
-
- you can write
-
- 12.Hours()
-
- Or even
-
- 12.Hours().And(30.Minutes()). -
- -
- - - Returns a based on a number of milliseconds. - - - - - Returns a based on a number of seconds. - - - - - Returns a based on a number of seconds, and add the specified - . - - - - - Returns a based on a number of minutes. - - - - - Returns a based on a number of minutes, and add the specified - . - - - - - Returns a based on a number of hours. - - - - - Returns a based on a number of hours, and add the specified - . - - - - - Returns a based on a number of days. - - - - - Returns a based on a number of days, and add the specified - . - - - - - Convenience method for chaining multiple calls to the methods provided by this class. - - - 23.Hours().And(59.Minutes()) - - - - - Extension methods for getting method and property selectors for a type. - - - - - Returns the types that are visible outside the specified . - - - - - Returns a method selector for the current . - - - - - Returns a method selector for the current . - - - - - Returns a property selector for the current . - - - - - Returns a property selector for the current . - - - - - Static class that allows for a 'fluent' selection of the types from an . - - - AllTypes.From(myAssembly)
- .ThatImplement<ISomeInterface>
- .Should()
- .BeDecoratedWith<SomeAttribute>() -
-
- - - Returns a for selecting the types that are visible outside the - specified . - - The assembly from which to select the types. - - - - Contains assertions for the objects returned by the parent . - - - - - Initializes a new instance of the class. - - The method to assert. - - - - Initializes a new instance of the class. - - The methods to assert. - - - - Asserts that the selected methods are virtual. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the selected methods are decorated with the specified . - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Gets the object which value is being asserted. - - - - - Allows for fluent selection of methods of a type through reflection. - - - - - Initializes a new instance of the class. - - The type from which to select methods. - - - - Initializes a new instance of the class. - - The types from which to select methods. - - - - Only select the methods that return the specified type - - - - - Only select the methods that are decorated with an attribute of the specified type. - - - - - The resulting objects. - - - - - Determines whether the specified method has a special name (like properties and events). - - - - - Returns an enumerator that iterates through the collection. - - - A that can be used to iterate through the collection. - - 1 - - - - Returns an enumerator that iterates through a collection. - - - An object that can be used to iterate through the collection. - - 2 - - - - Only select the methods that are public or internal. - - - - - Only select the methods without a return value - - - - - Contains assertions for the objects returned by the parent . - - - - - Initializes a new instance of the class, for a single . - - The property to assert. - - - - Initializes a new instance of the class, for a number of objects. - - The properties to assert. - - - - Asserts that the selected properties are virtual. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the selected methods are decorated with the specified . - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Gets the object which value is being asserted. - - - - - Allows for fluent selection of properties of a type through reflection. - - - - - Initializes a new instance of the class. - - The type from which to select properties. - - - - Initializes a new instance of the class. - - The types from which to select properties. - - - - Only select the properties that are decorated with an attribute of the specified type. - - - - - Only select the properties that return the specified type - - - - - The resulting objects. - - - - - Returns an enumerator that iterates through the collection. - - - A that can be used to iterate through the collection. - - 1 - - - - Returns an enumerator that iterates through a collection. - - - An object that can be used to iterate through the collection. - - 2 - - - - Only select the properties that have a public or internal getter. - - - - - Contains a number of methods to assert that a meets certain expectations. - - - - - Initializes a new instance of the class. - - - - - Asserts that the current type is equal to the specified type. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current type is equal to the specified type. - - The expected type - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Creates an error message in case the specifed type differs from the - type. - - - An empty if the two specified types are the same, or an error message that describes that - the two specified types are not the same. - - - - - Asserts that the current type is not equal to the specified type. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current type is not equal to the specified type. - - The unexpected type - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current is decorated with the specified . - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current is decorated with an attribute of type - that matches the specified . - - - The predicate that the attribute must match. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Gets the object which value is being asserted. - - - - - Contains a number of methods to assert that all s in a - meet certain expectations. - - - - - Initializes a new instance of the class. - - - - - Asserts that the current is decorated with the specified . - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current is decorated with an attribute of type - that matches the specified . - - - The predicate that the attribute must match. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Gets the object which value is being asserted. - - - - - Allows for fluent filtering a list of types. - - - - - The resulting objects. - - - - - Determines whether a type is a subclass of another type, but NOT the same type. - - - - - Determines whether a type implements an interface (but is not the interface itself). - - - - - Determines whether a type is decorated with a particular attribute. - - - - - Determines whether the namespace of type is exactly . - - - - - Determines whether the namespace of type is starts with . - - - - - Returns an enumerator that iterates through the collection. - - - A that can be used to iterate through the collection. - - 1 - - - - Returns an enumerator that iterates through a collection. - - - An object that can be used to iterate through the collection. - - 2 - - - - Contains a number of methods to assert that an is in the expected state. - - - - - Initializes a new instance of the class. - - - - - Asserts that the current equals the attribute. - - The expected attribute - - - - Asserts that the current equals the attribute. - - The expected attribute - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current does not equal the attribute, - using its implementation. - - The unexpected attribute - - - - Asserts that the current does not equal the attribute, - using its implementation. - - The unexpected attribute - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the is null. - - - - - Asserts that the is null. - - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Asserts that the is not null. - - - - - Asserts that the is not null. - - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Asserts that the current has the specified value. - - The expected value - - - - Asserts that the current has the specified value. - - The expected value - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Gets the object which value is being asserted. - - - - - Contains a number of methods to assert that an is in the expected state. - - - - - Initializes a new instance of the class. - - - - - Asserts that the current equals the document, - using its implementation. - - The expected document - - - - Asserts that the current equals the document, - using its implementation. - - The expected document - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current does not equal the document, - using its implementation. - - The unexpected document - - - - Asserts that the current does not equal the document, - using its implementation. - - The unexpected document - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the is null. - - - - - Asserts that the is null. - - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Asserts that the is not null. - - - - - Asserts that the is not null. - - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Asserts that the current has a root element with the specified - name. - - The name of the expected root element of the current document. - - - - Asserts that the current has a root element with the specified - name. - - The name of the expected root element of the current document. - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the element of the current has a direct - child element with the specified name. - - - The name of the expected child element of the current document's Root element. - - - - - Asserts that the element of the current has a direct - child element with the specified name. - - - The name of the expected child element of the current document's Root element. - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Gets the object which value is being asserted. - - - - - Contains a number of methods to assert that an is in the expected state. - - - - - Initializes a new instance of the class. - - - - - Asserts that the current equals the element. - - The expected element - - - - Asserts that the current equals the element. - - The expected element - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current does not equal the element, - using its implementation. - - The unexpected element - - - - Asserts that the current does not equal the element, - using its implementation. - - The unexpected element - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the is null. - - - - - Asserts that the is null. - - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Asserts that the is not null. - - - - - Asserts that the is not null. - - - A formatted phrase explaining why the assertion should be satisfied. If the phrase does not - start with the word because, it is prepended to the message. - - - Zero or more values to use for filling in any compatible placeholders. - - - - - Asserts that the current has an attribute with the specified - and . - - The name of the expected attribute - The value of the expected attribute - - - - Asserts that the current has an attribute with the specified - and . - - The name of the expected attribute - The value of the expected attribute - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Asserts that the current has a direct child element with the specified - name. - - The name of the expected child element - - - - Asserts that the current has a direct child element with the specified - name. - - The name of the expected child element - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Gets the object which value is being asserted. - - - - - Contains a number of methods to assert that an asynchronous method yields the expected result. - - - - - Asserts that the current throws an exception of type . - - - A formatted phrase as is supported by explaining why the assertion - is needed. If the phrase does not start with the word because, it is prepended automatically. - - - Zero or more objects to format using the placeholders in . - - - - - Gets the that is being asserted. - - -
-
diff --git a/packages/JsonFx.2.0.1209.2802/JsonFx.2.0.1209.2802.nupkg b/packages/JsonFx.2.0.1209.2802/JsonFx.2.0.1209.2802.nupkg deleted file mode 100644 index 90764b72..00000000 Binary files a/packages/JsonFx.2.0.1209.2802/JsonFx.2.0.1209.2802.nupkg and /dev/null differ diff --git a/packages/JsonFx.2.0.1209.2802/JsonFx.2.0.1209.2802.nuspec b/packages/JsonFx.2.0.1209.2802/JsonFx.2.0.1209.2802.nuspec deleted file mode 100644 index 685f513f..00000000 --- a/packages/JsonFx.2.0.1209.2802/JsonFx.2.0.1209.2802.nuspec +++ /dev/null @@ -1,19 +0,0 @@ - - - - JsonFx - 2.0.1209.2802 - JsonFx - Stephen McKamey - Stephen McKamey - https://raw.github.com/jsonfx/jsonfx/master/LICENSE.txt - https://github.com/jsonfx/jsonfx - https://raw.github.com/jsonfx/jsonfx/master/Logo_128.png - true - JsonFx serialization framework - JSON XML BSON JsonML LINQ serialization deserialization - - - - - \ No newline at end of file diff --git a/packages/JsonFx.2.0.1209.2802/lib/net20/JsonFx.dll b/packages/JsonFx.2.0.1209.2802/lib/net20/JsonFx.dll deleted file mode 100644 index b1068995..00000000 Binary files a/packages/JsonFx.2.0.1209.2802/lib/net20/JsonFx.dll and /dev/null differ diff --git a/packages/JsonFx.2.0.1209.2802/lib/net20/JsonFx.xml b/packages/JsonFx.2.0.1209.2802/lib/net20/JsonFx.xml deleted file mode 100644 index b6c3d402..00000000 --- a/packages/JsonFx.2.0.1209.2802/lib/net20/JsonFx.xml +++ /dev/null @@ -1,4561 +0,0 @@ - - - - JsonFx - - - - - JsonFx metadata - - - - - Ctor - - - - - - Outputs BSON bytes from an input stream of tokens - - - - - Outputs text from an input stream of JSON tokens - - token type - - - - Formats the token sequence to the output writer - - - - - - - Formats the token sequence as a string - - - - - - Formats the token sequence as a string - - - - - - Formats the token sequence to the output writer - - - - - - - Emits a document (or array) to the binary stream - - - - number of bytes written - - - - Emits a single element to the binary stream - - - - - number of bytes written - - - - Emits a string value - - - - number of bytes written - - - - Emits a binary value - - - - number of bytes written - - - - Emits a code_w_s value - - - - number of bytes written - - - - Generates a sequence of tokens from BSON bytes - - - - - Generates a sequence of tokens from a sequence of characters - - token type - - - - Tokenizes the input sequence into tokens - - - - - - - Tokenizes the input sequence into tokens - - - - - - - Gets the current position of the underlying input character sequence - - - Tokenizers not tracking index should return -1. - - - - - Gets a token sequence from the TextReader - - - - - - - Gets a token sequence from the string - - - - - - - Gets a token sequence from the reader - - - - - - - Gets the current position of the underlying stream - - - - - BSON MD5 Datatype - - - - - Ctor - - - - - - Ctor - - - - - - Ctor - - - - - - Converts MD5 to Guid - - - - - - - - Converts MD5 to Guid - - - - - - - Gets the hashcode of the underlying Guid - - - - - - BSON JavaScript Code With Scope Datatype - - - - - BSON JavaScript Code Datatype - - - - - Ctor - - - - - - Converts JavaScriptCode to string - - - - - - - - Converts JavaScriptCode to string - - - - - - - Gets the hashcode of the underlying string - - - - - - BSON Symbol Datatype - - - - - Ctor - - - - - - Converts Symbol to string - - - - - - - - Converts Symbol to string - - - - - - - Gets the hashcode of the underlying string - - - - - - BSON DBPointer Datatype (Deprecated) - - - - - Immutable BSON ObjectID Datatype - - - http://www.mongodb.org/display/DOCS/Object+IDs#ObjectIDs-TheBSONObjectIdDatatype - - - - - Ctor - - 12-byte object ID - - - - Ctor - - 4-byte seconds since Unit epoch - 3-byte machine ID - 2-byte process ID - 3-byte counter - - - - Converts an ObjectID to a hex string - - - - - - - Converts a hex string to an ObjectID - - - - - - - Converts an ObjectID to a byte array - - - - - - - Converts a byte array to an ObjectID - - - - - - - Gets the hashcode of the underlying string - - - - - - Gets the time associated with this ObjectID - - - - - Gets the machine id associated with this ObjectID - - - - - Gets the process id associated with this ObjectID - - - - - Gets the counter associated with this ObjectID - - - - - Generic binary holder - - - http://api.mongodb.org/java/2.0/org/bson/types/Binary.html - - - - - Ctor - - binary type code - byte date - - - - Converts an ObjectID to a hex string - - - - - - - Converts a hex string to an ObjectID - - - - - - - Converts an ObjectID to a byte array - - - - - - - Converts a byte array to an ObjectID - - - - - - - Gets the hashcode of the underlying string - - - - - - Gets a 4-bit number as a hex digit - - 0-15 - - - - - Gets the binary type code - - - - - Gets the binary type code - - - - - Gets the byte at the given index - - - - - Gets the length of the binary data - - - - - Designates a type as being able to format itself to raw BSON bytes - - - - - Designates a type as being able to format itself to raw bytes - - - - - Writes custom format to the output using either tokens or bytes - - - - total number of bytes written - - - - Determines the corresponding BSON element type - - - - - - Generalized delegate for invoking a constructor - - - - - - - Generalized delegate for invoking a method - - the instance object - the method parameters - - - - - Generalized delegate for getting a field or property value - - - - - - - Generalized delegate for setting a field or property value - - - - - - - Consumes a sequence of tokens to produce an object graph optionally coerced to a given type - - - - - Consumes a sequence of tokens to produce a sequence of objects, optionally coerced to a given type - - token type - - - - Parses the token sequence - - - - - - - Parses the token sequence, optionally coercing the result to Type targetType - - - optional type for coercion (null if not specified) - - - - - Parses the token sequence, coercing the result to Type TResult - - optional type for coercion (null if not specified) - - - - - - Parses the token stream coercing the result to TResult (type inferred from ) - - - - an example value used solely for Type inference - - - - - Ctor - - - - - - Parses the token stream coercing the result targetType - - - - - - - Parses the token stream coercing the result to targetType - - - - - - - - Parses the token stream coercing the result to TResult - - the result target type - - - - - - Parses the token stream coercing the result to TResult (inferred from ) - - - - an example value used solely for Type inference - - - - - Common Model Language grammar helper - - - Simplifies and guides syntax, and provides a set of reusable tokens to reduce redundant token instantiations - - - - - Marks the beginning of an array - - the local name of the array - ArrayBegin Token - - - - Marks the beginning of an array - - the local name of the array - the namespace of the document - ArrayBegin Token - - - - Marks the beginning of an array - - the name of the array - ArrayBegin Token - - - - Marks the beginning of an object - - the local name of the object - ObjectBegin Token - - - - Marks the beginning of an object - - the name of the object - ObjectBegin Token - - - - Marks the beginning of an object property - - the local name of the property - PropertyKey Token - - - - Marks the beginning of an object property - - the local name of the property - PropertyKey Token - - - - Marks the beginning of an object property - - the name of the property - PropertyKey Token - - - - A simple scalar value (typically serialized as a single primitive value) - - - Value Token - - - - Provides base implementation for standard deserializers - - - - - Provides base implementation for standard deserializers - - - - - A common interface for data deserializers - - - - - Deserializes a single object from the given input - - the input reader - a value used to trigger Type inference for (e.g. for deserializing anonymous objects) - the expected type of the serialized data - - - - Deserializes a single object from the given input - - the input reader - the expected type of the serialized data - - - - Serializes the data to the given output - - the input reader - - - - Deserializes a single object from the given input - - the input reader - the expected type of the serialized data - - - - Deserializes a single object from the given input - - the input text - a value used to trigger Type inference for (e.g. for deserializing anonymous objects) - the expected type of the serialized data - - - - Deserializes a single object from the given input - - the input text - the expected type of the serialized data - - - - Deserializes a single object from the given input - - the input text - - - - Deserializes a single object from the given input - - the input text - the expected type of the serialized data - - - - Deserializes a potentially endless sequence of objects from a stream source - - - - - character stream => token stream => object stream - - - - - Gets the supported content type of the serialized data - - - - - Gets the settings used for deserialization - - - - - Ctor - - - - - - Deserializes the data from the given input - - the input reader - a value used to trigger Type inference for (e.g. for deserializing anonymous objects) - the expected type of the serialized data - - - - Deserializes the data from the given input - - the input reader - the expected type of the serialized data - - - - Deserializes the data from the given input - - the input reader - - - - Deserializes the data from the given input - - the input reader - the expected type of the serialized data - - - - Deserializes the data from the given input - - the input text - a value used to trigger Type inference for (e.g. for deserializing anonymous objects) - the expected type of the serialized data - - - - Deserializes the data from the given input - - the input text - the expected type of the serialized data - - - - Deserializes the data from the given input - - the input text - - - - Deserializes the data from the given input - - the input text - the expected type of the serialized data - - - - Deserializes a potentially endless sequence of objects from a stream source - - a streamed source of objects - a sequence of objects - - character stream => token stream => object stream - - - - - Gets the supported content type of the serialized data - - - - - Gets the settings used for deserialization - - - - - Ctor - - - - - - Extension methods for selecting subsequences of sequences of tokens - - - - - Determines if the sequence represents a primitive - - - - - - - Determines if the sequence represents an object - - - - - - - Determines if the root object has any properties which satisfies the name - - - - true if any properties match the predicate - - - - Gets all properties of the root object - - - - all properties for the object - - - - Gets all properties of the root object - - - - all properties for the object - - - - Gets the properties of the root object which satisfies the - - - - matching properties for the root object - - - - Gets the properties of the root object which satisfies the - - - - matching properties for the root object - - - - Determines if the sequence represents an array - - - - - - - Gets all the items of the array - - - all items of the array - - - - Gets the items of the root array with indexes satisfying the - - - - items of the root array which statisfy the predicate - - - - ArrayItems iterator - - - - - - - - Gets all descendant values below the current root - - - - - - - Descendants iterator - - - - - - - Gets all descendant values below the current root, as well as the current root - - - - - - - DescendantsAndSelf iterator - - - - - - - Covers the sitation where a stream of sequences may be back to back - - - - - - - Splices out the sequence for the next complete value (object, array, primitive) - - - - - - - Splices out the sequence for the next complete value (object, array, primitive) - - - - - - - Skips over the next complete value (object, array, primitive) - - - - - - - Common Model Language tokens - - - - - - - - - - - - Generates a sequence of tokens from an object graph - - - - - Generates a sequence of tokens from an object graph - - token type - - - - Generates a sequence of tokens representing the value - - - - - - - Ctor - - - - - - Generates a sequence of tokens representing the value - - - - - - - Allows a mechanism for manipulating JSON serialization - - Defines the type this filter reads/writes - - - - Partially implements an IDataFilter - - - - - Allows a mechanism for manipulating serialization - - Defines the type of token stream this filter understands - Defines the type this filter reads/writes - - - - Allows a mechanism for manipulating serialization - - Defines the type of token stream this filter understands - - - - Allows a class to act as a factory for a type via input Token<T> sequence - - input tokens - - true if value was generated - - - - Allows a class to serialize a type as Token<T> sequence - - - - true if value was consumed - - - - Allows a class to act as a factory for a type via input Token<T> sequence - - input tokens - - true if value was generated - - - - Allows a class to serialize a type as Token<T> sequence - - - - true if value was consumed - - - - Defines a filter for JSON-style serialization of DateTime into ISO-8601 string - - - This is the format used by EcmaScript 5th edition Date.prototype.toJSON(...): - http://www.ecma-international.org/publications/files/ECMA-ST/ECMA-262.pdf - http://www.w3.org/TR/NOTE-datetime - http://en.wikipedia.org/wiki/ISO_8601 - - NOTE: This format limits expressing DateTime as either UTC or Unspecified. Local (i.e. Server Local) is converted to UTC. - - - - - Converts a ISO-8601 string to the corresponding DateTime representation - - ISO-8601 conformant date - UTC or Unspecified DateTime - true if parsing was successful - - - - Converts a DateTime to the corresponding ISO-8601 string representation - - - ISO-8601 conformant date - - - - Determines the precision of fractional seconds. - Defaults to EcmaScript precision of milliseconds. - - - - - Defines the precision of fractional seconds in ISO-8601 dates - - - - - Defines a filter for JSON-style serialization of DateTime into an ASP.NET Ajax Date string. - - - This is the format used by Microsoft ASP.NET Ajax: - http://weblogs.asp.net/bleroy/archive/2008/01/18/dates-and-json.aspx - - NOTE: This format is limited to expressing DateTime at the millisecond level as UTC only. - The WCF extension of adding a timezone is ignored as this returns UTC dates only. - - - - - Converts an ASP.NET Ajax date string to the corresponding DateTime representation - - ASP.NET Ajax date string - - true if parsing was successful - - - - Converts a DateTime to the corresponding ASP.NET Ajax date string representation - - - ASP.NET Ajax date string - - - - Provides base implementation for standard serializers - - - - - Provides base implementation of standard serializers - - - - - A common interface for data serializers - - - - - Serializes the data to the given output - - the output writer - the data to be serialized - - - - Serializes the data to the given output - - the data to be serialized - the serialized data - - - - Gets the content encoding for the serialized data - - - - - Gets the supported content types for the serialized data - - - - - Gets the supported file extensions for the serialized data - - - - - Gets the settings used for serialization - - - - - Ctor - - - - - - Serializes the data to the given output - - the data to be serialized - the output writer - - - - Serializes the data to the given output - - the data to be serialized - the serialized data - - - - Gets the walker for this DataWriter - - - - - - - Gets the formatter for this DataWriter - - - - - - - Gets the content encoding for the serialized data - - - - - Gets the supported content types for the serialized data - - - - - Gets the supported file extensions for the serialized data - - - - - Gets the settings used for serialization - - - - - Ctor - - - - - - Gets a walker for JSON - - - - - - - Gets the content encoding for the serialized data - - - - - Represents an ECMAScript identifier for serialization. - - - - - Designates a type as being able to format itself to raw text - - - - - Writes custom format to the output using either tokens or text - - - - - - - Ctor - - - - - Ctor - - - - - - Verifies is a valid EcmaScript identifier - - the identifier - identifier - - - - Verifies is a valid EcmaScript identifier - - the identifier - identifier - - - - Verifies is a valid EcmaScript variable expression - - the identifier - identifier - - http://www.ecma-international.org/publications/files/ECMA-ST/Ecma-262.pdf - - IdentifierName = - IdentifierStart | IdentifierName IdentifierPart - IdentifierStart = - Letter | '$' | '_' - IdentifierPart = - IdentifierStart | Digit - - - - - Trivial conversion method. Essentially performs a cast. - - - - - Supports conversion via System.Web.UI.PropertyConverter.ObjectFromString(Type, MemberInfo, string) - - - - - Implicit type conversion allows to be used directly as a String - - valid ECMAScript identifier - - - - - Implicit type conversion allows to be used directly with Strings - - valid ECMAScript identifier - - - - - Returns the identifier - - - - - - Compares identifiers - - - - - - - Returns the hash code for the identifier - - - - - - Gets the ECMAScript identifier represented by this instance - - - - - Formats data as full ECMAScript objects, rather than the limited set of JSON objects. - - - - - Outputs JSON text from an input stream of tokens - - - - - Outputs text from an input stream of JSON tokens - - token type - - - - Formats the token sequence to the output writer - - - - - - - Formats the token sequence as a string - - - - - - JSON serializer - - - - - Ctor - - - - - Ctor - - - - - - Ctor - - - - - - - Gets the formatter for JSON - - - - - - - Gets the supported content type for the serialized data - - - - - Gets the supported file extension for the serialized data - - - - - Outputs JSON text from an input stream of tokens - - - - - Ctor - - - - - - Formats the token sequence as a string - - - - - - Formats the token sequence to the writer - - - - - - - Converts an object to its string representation - - - - - - - Converts an enum to its string representation - - - - - - - Splits a bitwise-OR'd set of enums into a list. - - the enum type - the combined value - list of flag enums - - from PseudoCode.EnumHelper - - - - - Determines if a numeric value cannot be represented as IEEE-754. - - - - - http://stackoverflow.com/questions/1601646 - - - - - Gets and sets if '<' should be encoded in strings - Useful for when emitting directly into page - - - - - Ctor - - - - Defaults to encoding < chars for improved embedding within script blocks - - - - - Emits a block of script ensuring that a namespace is declared - - the output writer - the namespace to ensure - list of namespaces already emitted - determines if should emit pretty-printed - if was a namespaced identifier - - - - Outputs a .NET Regex as an ECMAScript RegExp literal. - Defaults to global matching off. - - - - - http://www.ecma-international.org/publications/files/ECMA-ST/Ecma-262.pdf - - - - - Outputs a .NET Regex as an ECMAScript RegExp literal. - - - - - - http://www.ecma-international.org/publications/files/ECMA-ST/Ecma-262.pdf - - - - - Defines a strategy for filtering HTML tags/attributes/styles/literals - - - - - Filters tags, optionally allowing altering of tag - - tag name - if true tag should be rendered - - - - Filters attributes, optionally allowing altering of attribute value - - tag name - attribute name - attribute value - if true attribute should be rendered - - - - Filters styles, optionally allowing altering of style value - - tag name - style name - style value - if true style should be rendered - - - - Filters literals, optionally allowing replacement of literal value - - the literal value - if true should be rendered - - - - Provides a mechanism for filtering HTML streams based upon a tag taxonomy - - - - - Determines if is "void" (i.e. "empty" or "full") tag - - lowercase tag name - if is a void tag - - http://www.w3.org/TR/html5/semantics.html - http://www.w3.org/TR/html401/index/elements.html - http://www.w3.org/TR/xhtml-modularization/abstract_modules.html#sec_5.2. - http://www.w3.org/TR/WD-html40-970917/index/elements.html - - - - - Determines if the tag is required to be closed - - lowercase tag name - if closing tag is optional - - http://www.w3.org/TR/html5/semantics.html - http://www.w3.org/TR/html401/index/elements.html - http://www.w3.org/TR/WD-html40-970917/index/elements.html - - - - - Categorizes the tag for heuristics about markup type - - lowercase tag name - the box type for a particular element - - http://www.w3.org/TR/html5/semantics.html - - - - - Defines a prioritized taxonomy of tags - - - The types are enumerated in ascending levels of risk for use in filtering HTML input - - - - - Literal text, no tags - - - - - Inline character level elements and text strings - - - Tags of this type typically do not disrupt the text flow - - - - - style elements - - - Tags of this type change the visual appearance of text - - - - - list elements - - - Tags of this type denote lists and typically change the text flow - - - - - Block-level elements - - - Tags of this type denote sections or change the text flow - - - - - Media elements - - - Tags of this type safely embed media content - - - - - Tabular elements - - - Tags of this type have a very specific structure and their own rendering model - - - - - Form elements - - - Tags of this type are used in the construction of forms for capturing user input - - - - - Script elements - - - Tags of this type represent a security risk to the containing document but must obey the browser security sandbox - - - - - Document elements - - - Tags of this type are used to construct the document itself - - - - - embedded elements - - - Tags of this type represent a large security risk to the containing document as plug-ins may circumvent the browser security sandbox - - - - - Unknown elements - - - - - Outputs markup text from an input stream of tokens - - - - - Ctor - - - - - - Resets the internal stack of elements - - - - - Formats the token sequence as a string - - - - - - Formats the token sequence to the writer - - - - - - - Emits a valid XML local-name (i.e. encodes invalid chars including ':') - - - - - Explicitly escaping ':' to maintain compatibility with XML Namespaces. - From XML 1.0, 5th ed. http://www.w3.org/TR/xml/#sec-common-syn - Name = NameStartChar (NameChar)* - NameStartChar = ":" - | [A-Z] - | "_" - | [a-z] - | [#xC0-#xD6] - | [#xD8-#xF6] - | [#xF8-#x2FF] - | [#x370-#x37D] - | [#x37F-#x1FFF] - | [#x200C-#x200D] - | [#x2070-#x218F] - | [#x2C00-#x2FEF] - | [#x3001-#xD7FF] - | [#xF900-#xFDCF] - | [#xFDF0-#xFFFD] - | [#x10000-#xEFFFF] - NameChar = NameStartChar - | "-" - | "." - | [0-9] - | #xB7 - | [#x0300-#x036F] - | [#x203F-#x2040] - - - - - - Emits valid XML character data - - - - encodes all non-ASCII chars - - - - - Emits valid XML attribute character data - - - - encodes all non-ASCII chars - - - - Gets and sets a value indicating if should emit canonical form - - - http://www.w3.org/TR/xml-c14n - - - - - Gets and sets a value indicating how should emit empty attributes - - - - - Gets and sets a value indicating if should encode text chars above the ASCII range - - - This option can help when the output is being embedded within an unknown encoding - - - - - HTML-style empty attributes do not emit a quoted string - - - http://www.w3.org/TR/html5/syntax.html#attributes-0 - - - - - XHTML-style empty attributes repeat the attribute name as its value - - - http://www.w3.org/TR/xhtml-media-types/#C_10 - http://www.w3.org/TR/xhtml1/#C_10 - http://www.w3.org/TR/html5/the-xhtml-syntax.html - - - - - XML-style empty attributes emit an empty quoted string - - - http://www.w3.org/TR/xml/#sec-starttags - - - - - Generates a sequence of tokens from a generalized model of markup text (e.g. HTML, XML, JBST, ASPX/ASCX, ASP, JSP, PHP, etc.) - - - This generates a stream of tokens like StAX (Streaming API for XML) - Unlike XML, this follows a more permissive markup format with automatic recovery most similar to HTML5. - - - - - Generates a sequence of tokens from a sequence of characters - - token type - - - - Tokenizes the input sequence into tokens - - - - - - - Tokenizes the input sequence into tokens - - - - - - - Gets the current column of the underlying input character sequence - - - Tokenizers not tracking columns should return -1. - - - - - Gets the current line of the underlying input character sequence - - - Tokenizers not tracking lines should return -1. - - - - - Gets the current position of the underlying input character sequence - - - Tokenizers not tracking index should return -1. - - - - - Decodes HTML-style entities into special characters - - - the entity text - - TODO: validate against HTML5-style entities - http://www.w3.org/TR/html5/tokenization.html#consume-a-character-reference - - - - - Decodes most known named entities - - - - - - - Checks for element start char - - - - - http://www.w3.org/TR/xml/#sec-common-syn - - - - - Checks for element name char - - - - - http://www.w3.org/TR/xml/#sec-common-syn - - - - - Gets a token sequence from the TextReader - - - - - - - Gets a token sequence from the string - - - - - - - Gets and sets if should attempt to auto-balance mismatched tags. - - - - - Gets and sets if should unwrap comments inside . - - - For example, in HTML this would include "script" and "style" tags. - - - - - Gets and sets a set of tags which should not have their content parsed. - - - For example, in HTML this would include "script" and "style" tags. - - - - - Gets the total number of characters read from the input - - - - - Gets the total number of lines read from the input - - - - - Gets the current position within the input - - - - - Ctor - - - - - Renders Common Model Tokens into a semantic HTML representation of the data structure - - - - - Consumes a sequence of tokens and produces a token sequence of a different type - - input token type - output token type - - - - Transforms the token sequence from to - - - - - - - Consumes a sequence of tokens and produces a token sequence of a different type - - - - - Formats the token sequence to the output - - - - - - - StringBuilder-like implementation built like List<char> - - - - - Ctor - - - - - Ctor - - - - - - Resets the buffer to an empty state - - - - - Appends a single char to the buffer - - - - - - - Appends a string value to the buffer - - - - - - - Copies the buffer value into a - - - - - - Gets the number of characters in the buffer - - - - - - Ctor - - - - - - Ctor - - - - - - - Ctor - - - - - - Ctor - - - - - - - - Supports forward-only iteration over an input sequence of - - - - - Supports forward-only iteration over an input sequence of - - - - - Supports forward-only iteration over an input sequence - - - - - Returns but does not remove the item at the front of the sequence. - - - - - - Returns and removes the item at the front of the sequence. - - - - - - Begins chunking at the current index - - - - - Ends chunking at the current index and returns the buffered sequence chunk - - - - - - Determines if the sequence has completed. - - - - - Gets a value indicating if is currently capturing a sequence - - - - - Gets the number of items currently chunked - - - - - Factory method for generic streams - - - - - - - - Returns but does not remove the item at the front of the sequence. - - - - - - Returns and removes the item at the front of the sequence. - - - - - - Determines if the input sequence has reached the end - - - - - Ctor - - - - - - Returns but does not remove the item at the front of the sequence. - - - - - - Returns and removes the item at the front of the sequence. - - - - - - Deferred execution of iterator - - - - - Determines if the input sequence has reached the end - - - - - Supports a simple iteration over a list with ability to capture a subsequence - - - - - Ctor - - - - - - Begins chunking at the current index - - - - - Ends chunking at the current index and returns the buffered chunk - - - - - - Returns but does not remove the item at the front of the sequence. - - - - - - Returns and removes the item at the front of the sequence. - - - - - - Deferred execution of iterator - - - - - Gets the number of characters currently chunked - - - - - - Determines if the input sequence has reached the end - - - - - Supports a simple iteration over a text input tracking line/column/position - - - - - Ends chunking at the current index and returns the buffered text chunk - - - - - - Ends chunking at the current index and writes the buffered text chunk into the provided StringBuilder - - - - - - Gets the total number of characters read from the input - - - - - Gets the total number of lines read from the input - - - - - Gets the current position within the input - - - - - Supports a simple iteration over a string tracking line/column/position - - - - - Ctor - - - - - - Begins chunking at the current index - - - - - Ends chunking at the current index and returns the buffered text chunk - - - - - - Ends chunking at the current index and returns the buffered text chunk - - - - - - Ends chunking at the current index and returns the buffered text chunk - - - - - - Returns but does not remove the item at the front of the sequence. - - - - - - Returns and removes the item at the front of the sequence. - - - - - - Deferred execution of iterator - - - - - Calculates index, line, and column statistics - - - - - Releases all resources used - - - - - Gets the total number of characters read from the input - - - - - Gets the total number of lines read from the input - - - - - Gets the current position within the input - - - - - Gets the number of characters currently chunked - - - - - Gets a value indicating if the is currently chunking - - - - - Determines if the input sequence has reached the end - - - - - Supports a simple iteration over a TextReader tracking line/column/position - - - - - Ctor - - - - - - Begins chunking at the current index - - - - - Ends chunking at the current index and returns the buffered text chunk - - - - - - Ends chunking at the current index and returns the buffered text chunk - - - - - - Ends chunking at the current index and returns the buffered text chunk - - - - - Returns but does not remove the item at the front of the sequence. - - - - - - Returns and removes the item at the front of the sequence. - - - - - - Deferred execution of iterator - - - - - Calculates index, line, and column statistics - - - - - - - Releases all resources used by the underlying reader - - - - - Gets the total number of characters read from the input - - - - - Gets the total number of lines read from the input - - - - - Gets the current position within the input - - - - - Gets the number of characters currently chunked - - - - - Gets a value indicating if the is currently chunking - - - - - Determines if the input sequence has reached the end - - - - - Formal language of tokens and symbols for JSON - - - - - Designates a property or field to not be serialized. - - - - - Specifies the naming to use for a property or field when serializing - - - - - Ctor - - - - - Ctor - - - - - - Gets and sets the name to be used in serialization - - - - - JSON deserializer - - - - - Ctor - - - - - Ctor - - - - - - Ctor - - - - - - - Gets the supported content type of the serialized data - - - - - Generates a sequence of tokens from JSON text - - - - - Gets a token sequence from the scanner stream - - - - - - - Scans for the longest valid EcmaScript identifier - - identifier - - http://www.ecma-international.org/publications/files/ECMA-ST/Ecma-262.pdf - - IdentifierName = - IdentifierStart | IdentifierName IdentifierPart - IdentifierStart = - Letter | '$' | '_' - IdentifierPart = - IdentifierStart | Digit - - - - - Gets a token sequence from the TextReader - - - - - - - Gets a token sequence from the string - - - - - - - Gets the total number of characters read from the input - - - - - Gets the total number of lines read from the input - - - - - Gets the current position within the input - - - - - It is an error for the next token to be a value delim - - - - - Forbidden but differentiates between empty array/object and just written - - - - - It is an error for the next token to NOT be a value delim - - - - - Specifies the name of the property which specifies if member should be serialized. - - - These properties can be marked private/protected/internal and it will still be recognized - - - - - Ctor - - the name of the property which controls serialization for this member - - - - Ctor - - the name of the property which controls serialization for this member - - - - Gets and sets the name of the property which - specifies if member should be serialized - - - - - Transforms markup tokens into Common Model tokens using the (lossless) JsonML model - - - JsonML Grammer: http://jsonml.org - - - - - Consumes a sequence of tokens and produces a token sequence of a different type - - - - - Determines how whitespace should be handled - - - - - Transforms Common Model tokens into markup tokens using the (lossless) JsonML model - - - JsonML Grammer: http://jsonml.org - - - - - Consumes a sequence of tokens and produces a token sequence of a different type - - - - - Controls name resolution for IDataReader / IDataWriter using JsonNameAttribute / JsonIgnoreAttribute / JsonPropertySpecifiedAttribute - - - This is the default strategy from JsonFx v1.0 - - - - - Controls name resolution for IDataReader / IDataWriter using plain old CLR object (POCO) names - - - - - Controls name resolution for IDataReader / IDataWriter - - - Provides an extensibility point to control member naming and visibility at a very granular level. - - - - - Gets a value indicating if the property is to be serialized. - - - - - - - - Gets a value indicating if the field is to be serialized. - - - - - - - Determines if the property or field should not be serialized. - - - - - - - - - Gets the serialized name for the member. - - - - - - - Allows a strategy to perform a custom sort order to outputted members - - - - - A common usage is to ensure that Attributes sort first - - - - - Gets a value indicating if the property is to be serialized. - - - - - default implementation is must be read/write properties, or immutable - - - - Gets a value indicating if the field is to be serialized. - - - - default implementation is must be public, non-readonly field - - - - Gets a delegate which determines if the property or field should not be serialized based upon its value. - - - if has a value equivalent to the DefaultValueAttribute - - This is useful when default values need not be serialized. - - - - - Gets the serialized name for the member. - - - - - - - Allows a strategy to perform a custom sort order to outputted members - - - - - A common usage is to ensure that Attributes sort first - - - - - Gets a value indicating if the property is to be serialized. - - - - - default implementation is must be read/write properties, or immutable - - - - Gets a value indicating if the field is to be serialized. - - - - default implementation is must be public, non-readonly field - - - - Gets a delegate which determines if the property or field should not be serialized based upon its value. - - - if has a value equivalent to the DefaultValueAttribute - - This is useful for excluding serialization of default values. - - - - - Gets the serialized name for the member. - - - - - - - Determines whitespace handling - - - - - Removes insignificant whitespace - - - - - Keep all whitespace - - - - - Condenses all whitespace to single spaces - - - - - Designates a type as being able to format itself to raw JSON text. - - - - - Ctor - - - - - Ctor - - - - - Gets and sets the starting delimiter - - - - - Gets and sets the ending delimiter - - - - - Gets and sets the context - - - - - Formal language of tokens and symbols for markup - - - - - Any of a number of unparsed tags which typically contain specialized processing instructions - - - The name of the token is the beginning and ending delimiters as a format string (not including the '<' or '>') - Includes the following types: - - "<!--", "-->" XML/HTML/SGML comment - "<!", ">" XML/SGML declaration (e.g. DOCTYPE or server-side includes) - - "<?=", "?>" PHP expression - "<?", "?>" PHP code block /XML processing instruction (e.g. the XML declaration) - - "<%--", "--%>" ASP/PSP/JSP-style code comment - "<%@", "%>" ASP/PSP/JSP directive - "<%=", "%>" ASP/PSP/JSP/JBST expression - "<%!", "%>" JSP/JBST declaration - "<%#", "%>" ASP.NET/JBST databind expression - "<%$", "%>" ASP.NET/JBST extension - "<%", "%>" ASP code block / JSP scriptlet / PSP code block - - - - - tokens - - - - - - - - - - - Maintains scope chain for namespace prefix mappings - - - - - Adds a new scope to the chain - - - - - - Gets the last scope off the chain - - - - - Gets and removes the last scope off the chain - - - - - - Finds the namespace URI for a given prefix within the curren scope chain - - - - - - - Finds the prefix for a given namespace URI within the curren scope chain - - - - - - - Checks if the matching begin tag exists on the stack - - - - - - Resets the internal state of the scope chain. - - - - - Looks up the prefix for the given namespace - - - - null if namespace is empty and no default prefix found - - - - Represents a scope boundary within a prefix scope chain - - - - - Returns if this scope boundary contains a mapping for a particular prefix - - - if this scope boundary contains a mapping for a particular prefix - - - - Returns if this scope boundary contains a mapping for a particular namespace - - - if this scope boundary contains a mapping for a particular namespace - - - - Returns if this scope boundary contains a mapping for a particular prefix - setting the namespace URI if one was found. - - - the resolved namespace URI - if this scope boundary contains a mapping for a particular prefix - - - - Returns if this scope boundary contains a mapping for a particular prefix - setting the prefix if one was found. - - - the resolved prefix - if this scope boundary contains a mapping for a particular prefix - - - - Gets and sets the tagname associated with this scope boundary - - - - - Gets and sets mappings between prefix and namespace URIs - - - - - - - Provides lookup capabilities for providers - - - - - Parses HTTP headers for Media-Types - - HTTP Accept header - HTTP Content-Type header - sequence of Media-Types - - http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html - - - - - - - - - - - - Controls name resolution for IDataReader / IDataWriter using convention-based name mapping - - - Converts standard .NET PascalCase naming convention into the specified naming convention. - http://msdn.microsoft.com/en-us/library/x2dbyw72.aspx - http://msdn.microsoft.com/en-us/library/141e06ef.aspx - http://msdn.microsoft.com/en-us/library/xzf533w0.aspx - - - - - Ctor - - - - - - Ctor - - - - - - - Gets the serialized name for the member. - - - - - - - Splits a multi-word name assuming standard .NET PascalCase conventions. - - - - - http://msdn.microsoft.com/en-us/library/x2dbyw72.aspx - http://msdn.microsoft.com/en-us/library/141e06ef.aspx - http://msdn.microsoft.com/en-us/library/xzf533w0.aspx - - - - - - Ctor - - - - - - - - Ctor - - - - - - - Represents a property or document name, and a corresponding namespace URI (or empty string). - Analogous to XML "expanded name": http://www.w3.org/TR/REC-xml-names/#dt-expname - - - Namespaces must be a URI, but local-name can be any non-null string. - It is up to formatters to determine how to properly represent names which are invalid for the format. - - - - - local-name - - - - - alias for the namespace - - - - - namespace - - - - - Determines if name should be treated like an attribute - - - - - Ctor - - a CLR Type used to generate the local-name - - This constructor implicitly delcares the namespace to be empty. - - - - - Ctor - - any string is a valid local-name - - This constructor implicitly delcares the namespace to be empty. - - - - - Ctor - - any string is a valid local-name - an absolute URI string, or null - thrown if is null - thrown if is an invalid absolute URI - - The namespace field follows XML recommendation of absolute URIs. - Relative URIs are officially deprecated for namespaces: http://www.w3.org/2000/09/xppa - - - - - Ctor - - any string is a valid local-name - an absolute URI string, or null - determines if name should be an attribute name - thrown if is null - thrown if is an invalid absolute URI - - The namespace field follows XML recommendation of absolute URIs. - Relative URIs are officially deprecated for namespaces: http://www.w3.org/2000/09/xppa - - - - - Gets the local-name for a Type - - - - - - - Gets the prefixed name or simply local-name if is not a fully qualified name - - true to generate a prefix if the prefix is empty but not the namespace - - - - - Gets the namespaced name or simply local-name if is not a fully qualified name - - - - - - Compares two values and returns an indication of their relative sort order. - - - - - Performs ordering according to XML Canonicalization document order http://www.w3.org/TR/xml-c14n#DocumentOrder - "An element's namespace nodes are sorted lexicographically by local name (the default namespace node, if one exists, has no local name and is therefore lexicographically least)." - "An element's attribute nodes are sorted lexicographically with namespace URI as the primary key and local name as the secondary key (an empty namespace URI is lexicographically least)." - - - - - Determines if this is an empty DataName - - - - - Indicates a graph cycle was detected during serialization - - - - - Indicates an error occurred during serialization - - - - - Ctor - - - - - Ctor - - - - - - Ctor - - - - - - - Ctor - - - - - - - Ctor - - - - - Ctor - - - - - - Ctor - - - - - - - Ctor - - - - - - - Gets the type of cycle which caused the error - - - - - Graph cycles are detected with a reference tracking, any repeated reference results in a null value - - - - - Graph cycles are detected with a reference tracking, any repeated reference results in an error - - - - - Graph cycles are detected with a maximum depth count, exceeding depth results in an error - - - - - Detects graph cycles by tracking graph depth - - - - - Defines an interface for detecting graph cycles - - - - - Begins tracking of the reference - - - true if graph cycle was detected - - - - Ends tracking of the reference - - - true if tracking was successfully completed - - - - Ctor - - - - - - Increments the depth - - - true if MaxDepth has not been exceeded - - - - Increments the depth - - - - - - Detects cycles by detecting duplicates in the a set of object references - - - - - Adds a reference to the set - - - true if object already existed within set - - - - Removes a reference from the set - - - - - - Controls deserialization settings for IDataReader - - - - - Ctor - - - - - Ctor - - - - - Ctor - - - - - Ctor - - - - - - Ctor - - - - - - Ctor - - - - - - Ctor - - - - - - Gets and sets if ValueTypes can accept values of null - - - If this is true and a ValueType T is assigned the value of null, - it will receive the value of default(T). - Setting this to false, throws an exception if null is - specified for a ValueType member. - - - - - Gets and sets if should verify that stream is empty after deserialzing each object - - - Setting to true allows reading a JSON stream inside other structures (e.g. JavaScript) - - - - - Gets manager of name resolution for IDataReader - - - - - Gets the custom filters - - - - - Controls the serialization settings for IDataWriter - - - - - Ctor - - - - - Ctor - - - - - Ctor - - - - - Ctor - - - - - - Ctor - - - - - - Ctor - - - - - - Ctor - - - - - - Gets and sets what to do when graph cycles (repeated references) are encounted - - - - - Gets and sets the maximum nesting depth - - - Depth is a fast and easy safegaurd against detecting graph cycles but may produce false positives - - - - - Gets and sets if output will be formatted for human reading. - - - - - Gets and sets the string to use for indentation - - - - - Gets and sets the line terminator string - - - - - Gets manager of name resolution for IDataReader - - - - - Gets the custom filters - - - - - Indicates an error occurred during deserialization - - - - - Ctor - - - - - - - Ctor - - - - - - - - - Ctor - - - - - - - - Ctor - - - - - - - - Ctor - - - - - - - Helper method which converts the index into Line and Column numbers - - - - - - - - Gets the character column in the stream where the error occurred - - - - - Gets the character position in the stream where the error occurred - - - - - Gets the character line in the stream where the error occurred - - - - - Indicates an error occurred during token consumption - - - - - - Ctor - - - - - Ctor - - - - - - Ctor - - - - - - - Ctor - - - - - - - Gets the token in the sequence where the error occurred - - - - - Indicates an error occurred during type coercion - - - - - Ctor - - - - - Ctor - - - - - - Ctor - - - - - - - Ctor - - - - - - - Provides lookup capabilities for finding matching IDataReader - - - - - Provides lookup capabilities for finding matching IDataReader - - - - - Ctor - - inject with all possible readers - - - - Finds an IDataReader by content-type header - - - - - - - Provides lookup capabilities for finding an IDataWriter - - - - - Provides lookup capabilities for finding an IDataWriter - - - - - Ctor - - inject with all possible writers - - - - Controls name resolution for IDataReader / IDataWriter by using pluggable delegate callbacks - - - - - Gets and sets the implementation for ignoring properties - - - - - Gets and sets the implementation for ignoring fields - - - - - Gets and sets the implementation for ignoring properties by value - - - - - Gets and sets the implementation for naming members - - - - - Gets and sets the implementation for sorting members - - - - - Controls name resolution for IDataReader / IDataWriter by combining an ordered sequence of any other strategies - - - Each strategy is invoked in order, the first to respond wins. - - - - - Ctor - - ordered sequence of strategies - - - - Ctor - - ordered sequence of strategies - - - - Gets a value indicating if the property is to be serialized. - - - - true if any strategy specifies should be ignored - - - - Gets a value indicating if the field is to be serialized. - - - true if any strategy specifies should be ignored - - - - Gets a delegate which determines if the property or field should not be serialized based upon its value. - - - true if any strategy specifies this should be ignored - - - - Gets the serialized name for the member. - - - - custom name if any strategy specifies one, otherwise null - - - - Allows a strategy to perform a custom sort order to outputted members - - - - - A common usage is to ensure that Attributes sort first - - - - - Controls name resolution for IDataReader / IDataWriter using DataContract attributes - - - http://msdn.microsoft.com/en-us/library/kd1dc9w5.aspx - - - - - CCtor - - - - - Gets a value indicating if the property is to be serialized. - - - - - - - - Gets a value indicating if the field is to be serialized. - - - - - - - Gets a delegate which determines if the property or field should not be serialized based upon its value. - - - - - - - Gets the serialized name for the member. - - - - - - - Gets a delegate which determines if the property or field should not be serialized based upon its value. - - - - - - - The original member info - - - - - The original member name - - - - - The member data name - - - - - The member type - - - - - The getter method - - - - - The setter method - - - - - The logic for determining if a value is ignored - - - - - Determines if map name is alternate (i.e. only used for deserialization) - - - - - Ctor - - MemberMap to clone - alternate name - - - - Ctor - - - - - - - - Ctor - - - - - - - - Ctor - - - - - Gets a sequence of the available factory arguments - - - - - Gets the factory associated with the given argument type - - - - - - - Cache of name resolution mappings for IDataReader / IDataWriter - - - - - Ctor - - - - - - Gets the serialized name of the class - - - - - - - Removes any cached member mappings. - - - - - Builds a mapping of member name to field/property - - - - - - Represents a single immutable token in an input sequence - - - - - The type of the token - - - - - The name of the token - - - - - The value of the token - - - - - Ctor - - - - - - Ctor - - - - - - - Ctor - - - - - - - Ctor - - - - - - - Returns a string that represents the current token. - - - - - - Gets the value of the token as a string - - - - - - Converts a value to a string giving opportunity for IConvertible, IFormattable - - - - - - - Converts token to a token of a different type - - - token with same values and different type - - - - Type Coercion Utility - - - - - Ctor - - - - - - - Ctor - - - - - - - Instantiates a new instance of objectType. - - - objectType instance - - - - Instantiates a new instance of objectType. - - - objectType instance - - - - Helper method to set value of a member. - - - - - - - - - - Coerces the object value to Type - - - - - - - - Coerces the object value to Type of - - - - - - - - Populates the properties of an object with the dictionary values. - - - - - - - - Populates the properties of an object with the dictionary values. - - - - - - - - Coerces an sequence of items into an array of Type elementType - - - - - - - - Finds a suitable concrete class for common collection interface types - - - - - - - Allows specific IDictionary<string, TVal> to deserialize as TVal - - IDictionary<string, TVal> Type - TVal Type - - - - Returns a common type which can hold previous values and the new value - - - - - - - - Determines if type can be assigned a null value. - - - - - - - Gets the attribute T for the given value. - - - Attribute Type - true if defined - - - - Gets the attribute of Type for the given value. - - - true if defined - - - - Gets the attribute T for the given value. - - - Attribute Type - requested attribute or not if not defined - - - - Gets the attribute of Type for the given value. - - - requested attribute or not if not defined - - - - Character Utility - - - These are either simpler definitions of character classes (e.g. letter is [a-zA-Z]), - or they implement platform-agnositic checks (read: "Silverlight workarounds"). - - - - - Checks if string is null, empty or entirely made up of whitespace - - - - - Essentially the same as String.IsNullOrWhiteSpace from .NET 4.0 - with a simplfied view of whitespace. - - - - - Checks if character is line ending, tab or space - - - - - - - - - - - - - - Checks if character matches [A-Za-z] - - - - - - - Checks if character matches [0-9] - - - - - - - Checks if character matches [0-9A-Fa-f] - - - - - - - Gets a 4-bit number as a hex digit - - 0-15 - - - - - Formats a number as a hex digit - - - - - - - Converts the value of a UTF-16 encoded character or surrogate pair at a specified - position in a string into a Unicode code point. - - - - - - - - Converts the specified Unicode code point into a UTF-16 encoded string. - - - - - - - XML serializer - - - XML serializer - - - - - Ctor - - - - - Ctor - - - - - - Ctor - - - - - - - Gets a tokenizer for XML - - - - - - Gets the supported content type for the serialized data - - - - - Transforms markup tokens into Common Model tokens using an XML-data model - - - - - Ctor - - - - - - Consumes a sequence of tokens and produces a token sequence of a different type - - - - - Formats the token sequence to the output - - - - - - - - Ctor - - - - - Ctor - - - - - - Gets a token sequence from the string - - - - - - - Gets a token sequence from the TextReader - - - - - - - Gets a token sequence from the XmlReader - - - - - - - Gets the total number of characters read from the input - - - - - Gets the total number of lines read from the input - - - - - Gets the current position within the input - - - - - XML serializer - - - - - Ctor - - - - - Ctor - - - - - - Ctor - - - - - - - Gets the formatter for XML - - - - - - - Gets the supported content type for the serialized data - - - - - Gets the supported file extension for the serialized data - - - - - Transforms Common Model tokens into markup tokens using an XML-data model - - - - - Ctor - - - - - - Consumes a sequence of tokens and produces a token sequence of a different type - - - - - Formats the token sequence to the output - - - - - - - Outputs XML text from an input stream of tokens - - - - - Ctor - - - - - - Formats the token sequence as a string - - - - - - Formats the token sequence to the writer - - - - - - - Formats the token sequence to the writer - - - - - - - Wraps an XmlWriter as a TextWriter - - - - - Ctor - - - - - - Gets the underlying XmlWriter - - - - - Controls name resolution for IDataReader / IDataWriter using attributes and conventions similar to XmlSerializer semantics - - - http://msdn.microsoft.com/en-us/library/83y7df3e.aspx - - - - - Gets a value indicating if the property is to be serialized. - - - - - default implementation is must be read/write properties, or immutable - - - - Gets a value indicating if the field is to be serialized. - - - - default implementation is must be public, non-readonly field - - - - Gets a delegate which determines if the property or field should not be serialized based upon its value. - - - if has a value equivalent to the DefaultValueAttribute or has a property named XXXSpecified which determines visibility - - This is useful when default values need not be serialized. - Under these situations XmlSerializer ignores properties based upon value: - - DefaultValue: http://msdn.microsoft.com/en-us/library/system.componentmodel.defaultvalueattribute.aspx - - Specified Properies: http://msdn.microsoft.com/en-us/library/bb402199.aspx - - ShouldSerialize Methods: http://msdn.microsoft.com/en-us/library/53b8022e.aspx - - - - - Gets the serialized name for the member. - - - - - - - Sorts members to ensure proper document order where attributes precede all child elements. - - - - - Performs the first stage of XML Canonicalization document order http://www.w3.org/TR/xml-c14n#DocumentOrder - "An element's namespace and attribute nodes have a document order position greater than the element but less than any child node of the element." - - - - - Generates delegates for getting/setting properties and field and invoking constructors - - - - - Creates a field getter delegate for the specified property or field - - PropertyInfo or FieldInfo - GetterDelegate for property or field, null otherwise - - Note: use with caution this method will expose private and protected constructors without safety checks. - - - - - Creates a field setter delegate for the specified property or field - - PropertyInfo or FieldInfo - SetterDelegate for property or field, null otherwise - - - - Creates a property getter delegate for the specified property - - - GetterDelegate if property CanRead, otherwise null - - Note: use with caution this method will expose private and protected constructors without safety checks. - - - - - Creates a property setter delegate for the specified property - - - GetterDelegate if property CanWrite, otherwise null - - Note: use with caution this method will expose private and protected constructors without safety checks. - - - - - Creates a field getter delegate for the specified field - - - GetterDelegate which returns field unless is enum in which will return enum value - - Note: use with caution this method will expose private and protected constructors without safety checks. - - - - - Creates a field setter delegate for the specified field - - - SetterDelegate unless field IsInitOnly then returns null - - Note: use with caution this method will expose private and protected constructors without safety checks. - - - - - Creates a proxy delegate accepting a target instance and corresponding arguments - - method to proxy - ProxyDelegate or null if cannot be invoked - - Note: use with caution this method will expose private and protected methods without safety checks. - - - - - Creates a default constructor delegate - - type to be created - FactoryDelegate or null if default constructor not found - - Note: use with caution this method will expose private and protected constructors without safety checks. - - - - - Creates a constructor delegate accepting specified arguments - - type to be created - constructor arguments type list - FactoryDelegate or null if constructor not found - - Note: use with caution this method will expose private and protected constructors without safety checks. - - - - - Creates a constructor delegate accepting specified arguments - - type to be created - constructor arguments type list - FactoryDelegate or null if constructor not found - - Note: use with caution this method will expose private and protected constructors without safety checks. - - - - diff --git a/packages/JsonFx.2.0.1209.2802/lib/net35/JsonFx.dll b/packages/JsonFx.2.0.1209.2802/lib/net35/JsonFx.dll deleted file mode 100644 index 6943bd7a..00000000 Binary files a/packages/JsonFx.2.0.1209.2802/lib/net35/JsonFx.dll and /dev/null differ diff --git a/packages/JsonFx.2.0.1209.2802/lib/net35/JsonFx.xml b/packages/JsonFx.2.0.1209.2802/lib/net35/JsonFx.xml deleted file mode 100644 index cef2d988..00000000 --- a/packages/JsonFx.2.0.1209.2802/lib/net35/JsonFx.xml +++ /dev/null @@ -1,4865 +0,0 @@ - - - - JsonFx - - - - - JsonFx metadata - - - - - Ctor - - - - - - Outputs BSON bytes from an input stream of tokens - - - - - Outputs text from an input stream of JSON tokens - - token type - - - - Formats the token sequence to the output writer - - - - - - - Formats the token sequence as a string - - - - - - Formats the token sequence as a string - - - - - - Formats the token sequence to the output writer - - - - - - - Emits a document (or array) to the binary stream - - - - number of bytes written - - - - Emits a single element to the binary stream - - - - - number of bytes written - - - - Emits a string value - - - - number of bytes written - - - - Emits a binary value - - - - number of bytes written - - - - Emits a code_w_s value - - - - number of bytes written - - - - Generates a sequence of tokens from BSON bytes - - - - - Generates a sequence of tokens from a sequence of characters - - token type - - - - Tokenizes the input sequence into tokens - - - - - - - Tokenizes the input sequence into tokens - - - - - - - Gets the current position of the underlying input character sequence - - - Tokenizers not tracking index should return -1. - - - - - Gets a token sequence from the TextReader - - - - - - - Gets a token sequence from the string - - - - - - - Gets a token sequence from the reader - - - - - - - Gets the current position of the underlying stream - - - - - BSON MD5 Datatype - - - - - Ctor - - - - - - Ctor - - - - - - Ctor - - - - - - Converts MD5 to Guid - - - - - - - - Converts MD5 to Guid - - - - - - - Gets the hashcode of the underlying Guid - - - - - - BSON JavaScript Code With Scope Datatype - - - - - BSON JavaScript Code Datatype - - - - - Ctor - - - - - - Converts JavaScriptCode to string - - - - - - - - Converts JavaScriptCode to string - - - - - - - Gets the hashcode of the underlying string - - - - - - BSON Symbol Datatype - - - - - Ctor - - - - - - Converts Symbol to string - - - - - - - - Converts Symbol to string - - - - - - - Gets the hashcode of the underlying string - - - - - - BSON DBPointer Datatype (Deprecated) - - - - - Immutable BSON ObjectID Datatype - - - http://www.mongodb.org/display/DOCS/Object+IDs#ObjectIDs-TheBSONObjectIdDatatype - - - - - Ctor - - 12-byte object ID - - - - Ctor - - 4-byte seconds since Unit epoch - 3-byte machine ID - 2-byte process ID - 3-byte counter - - - - Converts an ObjectID to a hex string - - - - - - - Converts a hex string to an ObjectID - - - - - - - Converts an ObjectID to a byte array - - - - - - - Converts a byte array to an ObjectID - - - - - - - Gets the hashcode of the underlying string - - - - - - Gets the time associated with this ObjectID - - - - - Gets the machine id associated with this ObjectID - - - - - Gets the process id associated with this ObjectID - - - - - Gets the counter associated with this ObjectID - - - - - Generic binary holder - - - http://api.mongodb.org/java/2.0/org/bson/types/Binary.html - - - - - Ctor - - binary type code - byte date - - - - Converts an ObjectID to a hex string - - - - - - - Converts a hex string to an ObjectID - - - - - - - Converts an ObjectID to a byte array - - - - - - - Converts a byte array to an ObjectID - - - - - - - Gets the hashcode of the underlying string - - - - - - Gets a 4-bit number as a hex digit - - 0-15 - - - - - Gets the binary type code - - - - - Gets the binary type code - - - - - Gets the byte at the given index - - - - - Gets the length of the binary data - - - - - Designates a type as being able to format itself to raw BSON bytes - - - - - Designates a type as being able to format itself to raw bytes - - - - - Writes custom format to the output using either tokens or bytes - - - - total number of bytes written - - - - Determines the corresponding BSON element type - - - - - - Generalized delegate for invoking a constructor - - - - - - - Generalized delegate for invoking a method - - the instance object - the method parameters - - - - - Generalized delegate for getting a field or property value - - - - - - - Generalized delegate for setting a field or property value - - - - - - - Consumes a sequence of tokens to produce an object graph optionally coerced to a given type - - - - - Consumes a sequence of tokens to produce a sequence of objects, optionally coerced to a given type - - token type - - - - Parses the token sequence - - - - - - - Parses the token sequence, optionally coercing the result to Type targetType - - - optional type for coercion (null if not specified) - - - - - Parses the token sequence, coercing the result to Type TResult - - optional type for coercion (null if not specified) - - - - - - Parses the token stream coercing the result to TResult (type inferred from ) - - - - an example value used solely for Type inference - - - - - Ctor - - - - - - Parses the token stream coercing the result targetType - - - - - - - Parses the token stream coercing the result to targetType - - - - - - - - Parses the token stream coercing the result to TResult - - the result target type - - - - - - Parses the token stream coercing the result to TResult (inferred from ) - - - - an example value used solely for Type inference - - - - - Common Model Language grammar helper - - - Simplifies and guides syntax, and provides a set of reusable tokens to reduce redundant token instantiations - - - - - Marks the beginning of an array - - the local name of the array - ArrayBegin Token - - - - Marks the beginning of an array - - the local name of the array - the namespace of the document - ArrayBegin Token - - - - Marks the beginning of an array - - the name of the array - ArrayBegin Token - - - - Marks the beginning of an object - - the local name of the object - ObjectBegin Token - - - - Marks the beginning of an object - - the name of the object - ObjectBegin Token - - - - Marks the beginning of an object property - - the local name of the property - PropertyKey Token - - - - Marks the beginning of an object property - - the local name of the property - PropertyKey Token - - - - Marks the beginning of an object property - - the name of the property - PropertyKey Token - - - - A simple scalar value (typically serialized as a single primitive value) - - - Value Token - - - - Provides base implementation for standard deserializers - - - Provides base implementation for standard deserializers - - - This partial class adds LINQ capabilities to the reader. - - - - - Provides base implementation for standard deserializers - - - - - A common interface for data deserializers - - - - - Deserializes a single object from the given input - - the input reader - a value used to trigger Type inference for (e.g. for deserializing anonymous objects) - the expected type of the serialized data - - - - Deserializes a single object from the given input - - the input reader - the expected type of the serialized data - - - - Serializes the data to the given output - - the input reader - - - - Deserializes a single object from the given input - - the input reader - the expected type of the serialized data - - - - Deserializes a single object from the given input - - the input text - a value used to trigger Type inference for (e.g. for deserializing anonymous objects) - the expected type of the serialized data - - - - Deserializes a single object from the given input - - the input text - the expected type of the serialized data - - - - Deserializes a single object from the given input - - the input text - - - - Deserializes a single object from the given input - - the input text - the expected type of the serialized data - - - - Deserializes a potentially endless sequence of objects from a stream source - - - - - character stream => token stream => object stream - - - - - Gets the supported content type of the serialized data - - - - - Gets the settings used for deserialization - - - - - Ctor - - - - - - Deserializes the data from the given input - - the input reader - a value used to trigger Type inference for (e.g. for deserializing anonymous objects) - the expected type of the serialized data - - - - Deserializes the data from the given input - - the input reader - the expected type of the serialized data - - - - Deserializes the data from the given input - - the input reader - - - - Deserializes the data from the given input - - the input reader - the expected type of the serialized data - - - - Deserializes the data from the given input - - the input text - a value used to trigger Type inference for (e.g. for deserializing anonymous objects) - the expected type of the serialized data - - - - Deserializes the data from the given input - - the input text - the expected type of the serialized data - - - - Deserializes the data from the given input - - the input text - - - - Deserializes the data from the given input - - the input text - the expected type of the serialized data - - - - Deserializes a potentially endless sequence of objects from a stream source - - a streamed source of objects - a sequence of objects - - character stream => token stream => object stream - - - - - Gets the supported content type of the serialized data - - - - - Gets the settings used for deserialization - - - - - A common interface for querying data readers - - - - - Begins a query of the given input - - the input reader - a value used to trigger Type inference for (e.g. for deserializing anonymous objects) - the expected type of the serialized data - - - - Begins a query of the given input - - the input reader - the expected type of the serialized data - - - - Serializes the data to the given output - - the input reader - - - - Begins a query of the given input - - the input reader - the expected type of the serialized data - - - - Begins a query of the given input - - the input text - a value used to trigger Type inference for (e.g. for deserializing anonymous objects) - the expected type of the serialized data - - - - Begins a query of the given input - - the input text - the expected type of the serialized data - - - - Begins a query of the given input - - the input text - - - - Begins a query of the given input - - the input text - the expected type of the serialized data - - - - Ctor - - - - - - Begins a query of the given input - - the input reader - a value used to trigger Type inference for (e.g. for deserializing anonymous objects) - the expected type of the serialized data - - - - Begins a query of the given input - - the input reader - the expected type of the serialized data - - - - Begins a query of the given input - - the input text - a value used to trigger Type inference for (e.g. for deserializing anonymous objects) - the expected type of the serialized data - - - - Begins a query of the given input - - the input text - the expected type of the serialized data - - - - Begins a query of the given input - - the input reader - a value used to trigger Type inference for (e.g. for deserializing anonymous objects) - the expected type of the serialized data - - - - Begins a query of the given input - - the input reader - the expected type of the serialized data - - - - Serializes the data to the given output - - the input reader - - - - Begins a query of the given input - - the input reader - the expected type of the serialized data - - - - Begins a query of the given input - - the input text - a value used to trigger Type inference for (e.g. for deserializing anonymous objects) - the expected type of the serialized data - - - - Begins a query of the given input - - the input text - the expected type of the serialized data - - - - Begins a query of the given input - - the input text - - - - Begins a query of the given input - - the input text - the expected type of the serialized data - - - - Extension methods for selecting subsequences of sequences of tokens - - - - - Determines if the sequence represents a primitive - - - - - - - Determines if the sequence represents an object - - - - - - - Determines if the root object has any properties which satisfies the name - - - - true if any properties match the predicate - - - - Gets all properties of the root object - - - - all properties for the object - - - - Gets all properties of the root object - - - - all properties for the object - - - - Gets the properties of the root object which satisfies the - - - - matching properties for the root object - - - - Gets the properties of the root object which satisfies the - - - - matching properties for the root object - - - - Determines if the sequence represents an array - - - - - - - Gets all the items of the array - - - all items of the array - - - - Gets the items of the root array with indexes satisfying the - - - - items of the root array which statisfy the predicate - - - - ArrayItems iterator - - - - - - - - Gets all descendant values below the current root - - - - - - - Descendants iterator - - - - - - - Gets all descendant values below the current root, as well as the current root - - - - - - - DescendantsAndSelf iterator - - - - - - - Covers the sitation where a stream of sequences may be back to back - - - - - - - Splices out the sequence for the next complete value (object, array, primitive) - - - - - - - Splices out the sequence for the next complete value (object, array, primitive) - - - - - - - Skips over the next complete value (object, array, primitive) - - - - - - - Common Model Language tokens - - - - - - - - - - - - Generates a sequence of tokens from an object graph - - - - - Generates a sequence of tokens from an object graph - - token type - - - - Generates a sequence of tokens representing the value - - - - - - - Ctor - - - - - - Generates a sequence of tokens representing the value - - - - - - - Allows a mechanism for manipulating JSON serialization - - Defines the type this filter reads/writes - - - - Partially implements an IDataFilter - - - - - Allows a mechanism for manipulating serialization - - Defines the type of token stream this filter understands - Defines the type this filter reads/writes - - - - Allows a mechanism for manipulating serialization - - Defines the type of token stream this filter understands - - - - Allows a class to act as a factory for a type via input Token<T> sequence - - input tokens - - true if value was generated - - - - Allows a class to serialize a type as Token<T> sequence - - - - true if value was consumed - - - - Allows a class to act as a factory for a type via input Token<T> sequence - - input tokens - - true if value was generated - - - - Allows a class to serialize a type as Token<T> sequence - - - - true if value was consumed - - - - Defines a filter for JSON-style serialization of DateTime into ISO-8601 string - - - This is the format used by EcmaScript 5th edition Date.prototype.toJSON(...): - http://www.ecma-international.org/publications/files/ECMA-ST/ECMA-262.pdf - http://www.w3.org/TR/NOTE-datetime - http://en.wikipedia.org/wiki/ISO_8601 - - NOTE: This format limits expressing DateTime as either UTC or Unspecified. Local (i.e. Server Local) is converted to UTC. - - - - - Converts a ISO-8601 string to the corresponding DateTime representation - - ISO-8601 conformant date - UTC or Unspecified DateTime - true if parsing was successful - - - - Converts a DateTime to the corresponding ISO-8601 string representation - - - ISO-8601 conformant date - - - - Determines the precision of fractional seconds. - Defaults to EcmaScript precision of milliseconds. - - - - - Defines the precision of fractional seconds in ISO-8601 dates - - - - - Defines a filter for JSON-style serialization of DateTime into an ASP.NET Ajax Date string. - - - This is the format used by Microsoft ASP.NET Ajax: - http://weblogs.asp.net/bleroy/archive/2008/01/18/dates-and-json.aspx - - NOTE: This format is limited to expressing DateTime at the millisecond level as UTC only. - The WCF extension of adding a timezone is ignored as this returns UTC dates only. - - - - - Converts an ASP.NET Ajax date string to the corresponding DateTime representation - - ASP.NET Ajax date string - - true if parsing was successful - - - - Converts a DateTime to the corresponding ASP.NET Ajax date string representation - - - ASP.NET Ajax date string - - - - Provides base implementation for standard serializers - - - - - Provides base implementation of standard serializers - - - - - A common interface for data serializers - - - - - Serializes the data to the given output - - the output writer - the data to be serialized - - - - Serializes the data to the given output - - the data to be serialized - the serialized data - - - - Gets the content encoding for the serialized data - - - - - Gets the supported content types for the serialized data - - - - - Gets the supported file extensions for the serialized data - - - - - Gets the settings used for serialization - - - - - Ctor - - - - - - Serializes the data to the given output - - the data to be serialized - the output writer - - - - Serializes the data to the given output - - the data to be serialized - the serialized data - - - - Gets the walker for this DataWriter - - - - - - - Gets the formatter for this DataWriter - - - - - - - Gets the content encoding for the serialized data - - - - - Gets the supported content types for the serialized data - - - - - Gets the supported file extensions for the serialized data - - - - - Gets the settings used for serialization - - - - - Ctor - - - - - - Gets a walker for JSON - - - - - - - Gets the content encoding for the serialized data - - - - - Represents an ECMAScript identifier for serialization. - - - - - Designates a type as being able to format itself to raw text - - - - - Writes custom format to the output using either tokens or text - - - - - - - Ctor - - - - - Ctor - - - - - - Verifies is a valid EcmaScript identifier - - the identifier - identifier - - - - Verifies is a valid EcmaScript identifier - - the identifier - identifier - - - - Verifies is a valid EcmaScript variable expression - - the identifier - identifier - - http://www.ecma-international.org/publications/files/ECMA-ST/Ecma-262.pdf - - IdentifierName = - IdentifierStart | IdentifierName IdentifierPart - IdentifierStart = - Letter | '$' | '_' - IdentifierPart = - IdentifierStart | Digit - - - - - Trivial conversion method. Essentially performs a cast. - - - - - Supports conversion via System.Web.UI.PropertyConverter.ObjectFromString(Type, MemberInfo, string) - - - - - Implicit type conversion allows to be used directly as a String - - valid ECMAScript identifier - - - - - Implicit type conversion allows to be used directly with Strings - - valid ECMAScript identifier - - - - - Returns the identifier - - - - - - Compares identifiers - - - - - - - Returns the hash code for the identifier - - - - - - Gets the ECMAScript identifier represented by this instance - - - - - Formats data as full ECMAScript objects, rather than the limited set of JSON objects. - - - - - Outputs JSON text from an input stream of tokens - - - - - Outputs text from an input stream of JSON tokens - - token type - - - - Formats the token sequence to the output writer - - - - - - - Formats the token sequence as a string - - - - - - JSON serializer - - - - - Ctor - - - - - Ctor - - - - - - Ctor - - - - - - - Gets the formatter for JSON - - - - - - - Gets the supported content type for the serialized data - - - - - Gets the supported file extension for the serialized data - - - - - Outputs JSON text from an input stream of tokens - - - - - Ctor - - - - - - Formats the token sequence as a string - - - - - - Formats the token sequence to the writer - - - - - - - Converts an object to its string representation - - - - - - - Converts an enum to its string representation - - - - - - - Splits a bitwise-OR'd set of enums into a list. - - the enum type - the combined value - list of flag enums - - from PseudoCode.EnumHelper - - - - - Determines if a numeric value cannot be represented as IEEE-754. - - - - - http://stackoverflow.com/questions/1601646 - - - - - Gets and sets if '<' should be encoded in strings - Useful for when emitting directly into page - - - - - Ctor - - - - Defaults to encoding < chars for improved embedding within script blocks - - - - - Emits a block of script ensuring that a namespace is declared - - the output writer - the namespace to ensure - list of namespaces already emitted - determines if should emit pretty-printed - if was a namespaced identifier - - - - Outputs a .NET Regex as an ECMAScript RegExp literal. - Defaults to global matching off. - - - - - http://www.ecma-international.org/publications/files/ECMA-ST/Ecma-262.pdf - - - - - Outputs a .NET Regex as an ECMAScript RegExp literal. - - - - - - http://www.ecma-international.org/publications/files/ECMA-ST/Ecma-262.pdf - - - - - Defines a strategy for filtering HTML tags/attributes/styles/literals - - - - - Filters tags, optionally allowing altering of tag - - tag name - if true tag should be rendered - - - - Filters attributes, optionally allowing altering of attribute value - - tag name - attribute name - attribute value - if true attribute should be rendered - - - - Filters styles, optionally allowing altering of style value - - tag name - style name - style value - if true style should be rendered - - - - Filters literals, optionally allowing replacement of literal value - - the literal value - if true should be rendered - - - - Provides a mechanism for filtering HTML streams based upon a tag taxonomy - - - - - Determines if is "void" (i.e. "empty" or "full") tag - - lowercase tag name - if is a void tag - - http://www.w3.org/TR/html5/semantics.html - http://www.w3.org/TR/html401/index/elements.html - http://www.w3.org/TR/xhtml-modularization/abstract_modules.html#sec_5.2. - http://www.w3.org/TR/WD-html40-970917/index/elements.html - - - - - Determines if the tag is required to be closed - - lowercase tag name - if closing tag is optional - - http://www.w3.org/TR/html5/semantics.html - http://www.w3.org/TR/html401/index/elements.html - http://www.w3.org/TR/WD-html40-970917/index/elements.html - - - - - Categorizes the tag for heuristics about markup type - - lowercase tag name - the box type for a particular element - - http://www.w3.org/TR/html5/semantics.html - - - - - Defines a prioritized taxonomy of tags - - - The types are enumerated in ascending levels of risk for use in filtering HTML input - - - - - Literal text, no tags - - - - - Inline character level elements and text strings - - - Tags of this type typically do not disrupt the text flow - - - - - style elements - - - Tags of this type change the visual appearance of text - - - - - list elements - - - Tags of this type denote lists and typically change the text flow - - - - - Block-level elements - - - Tags of this type denote sections or change the text flow - - - - - Media elements - - - Tags of this type safely embed media content - - - - - Tabular elements - - - Tags of this type have a very specific structure and their own rendering model - - - - - Form elements - - - Tags of this type are used in the construction of forms for capturing user input - - - - - Script elements - - - Tags of this type represent a security risk to the containing document but must obey the browser security sandbox - - - - - Document elements - - - Tags of this type are used to construct the document itself - - - - - embedded elements - - - Tags of this type represent a large security risk to the containing document as plug-ins may circumvent the browser security sandbox - - - - - Unknown elements - - - - - Outputs markup text from an input stream of tokens - - - - - Ctor - - - - - - Resets the internal stack of elements - - - - - Formats the token sequence as a string - - - - - - Formats the token sequence to the writer - - - - - - - Emits a valid XML local-name (i.e. encodes invalid chars including ':') - - - - - Explicitly escaping ':' to maintain compatibility with XML Namespaces. - From XML 1.0, 5th ed. http://www.w3.org/TR/xml/#sec-common-syn - Name = NameStartChar (NameChar)* - NameStartChar = ":" - | [A-Z] - | "_" - | [a-z] - | [#xC0-#xD6] - | [#xD8-#xF6] - | [#xF8-#x2FF] - | [#x370-#x37D] - | [#x37F-#x1FFF] - | [#x200C-#x200D] - | [#x2070-#x218F] - | [#x2C00-#x2FEF] - | [#x3001-#xD7FF] - | [#xF900-#xFDCF] - | [#xFDF0-#xFFFD] - | [#x10000-#xEFFFF] - NameChar = NameStartChar - | "-" - | "." - | [0-9] - | #xB7 - | [#x0300-#x036F] - | [#x203F-#x2040] - - - - - - Emits valid XML character data - - - - encodes all non-ASCII chars - - - - - Emits valid XML attribute character data - - - - encodes all non-ASCII chars - - - - Gets and sets a value indicating if should emit canonical form - - - http://www.w3.org/TR/xml-c14n - - - - - Gets and sets a value indicating how should emit empty attributes - - - - - Gets and sets a value indicating if should encode text chars above the ASCII range - - - This option can help when the output is being embedded within an unknown encoding - - - - - HTML-style empty attributes do not emit a quoted string - - - http://www.w3.org/TR/html5/syntax.html#attributes-0 - - - - - XHTML-style empty attributes repeat the attribute name as its value - - - http://www.w3.org/TR/xhtml-media-types/#C_10 - http://www.w3.org/TR/xhtml1/#C_10 - http://www.w3.org/TR/html5/the-xhtml-syntax.html - - - - - XML-style empty attributes emit an empty quoted string - - - http://www.w3.org/TR/xml/#sec-starttags - - - - - Generates a sequence of tokens from a generalized model of markup text (e.g. HTML, XML, JBST, ASPX/ASCX, ASP, JSP, PHP, etc.) - - - This generates a stream of tokens like StAX (Streaming API for XML) - Unlike XML, this follows a more permissive markup format with automatic recovery most similar to HTML5. - - - - - Generates a sequence of tokens from a sequence of characters - - token type - - - - Tokenizes the input sequence into tokens - - - - - - - Tokenizes the input sequence into tokens - - - - - - - Gets the current column of the underlying input character sequence - - - Tokenizers not tracking columns should return -1. - - - - - Gets the current line of the underlying input character sequence - - - Tokenizers not tracking lines should return -1. - - - - - Gets the current position of the underlying input character sequence - - - Tokenizers not tracking index should return -1. - - - - - Decodes HTML-style entities into special characters - - - the entity text - - TODO: validate against HTML5-style entities - http://www.w3.org/TR/html5/tokenization.html#consume-a-character-reference - - - - - Decodes most known named entities - - - - - - - Checks for element start char - - - - - http://www.w3.org/TR/xml/#sec-common-syn - - - - - Checks for element name char - - - - - http://www.w3.org/TR/xml/#sec-common-syn - - - - - Gets a token sequence from the TextReader - - - - - - - Gets a token sequence from the string - - - - - - - Gets and sets if should attempt to auto-balance mismatched tags. - - - - - Gets and sets if should unwrap comments inside . - - - For example, in HTML this would include "script" and "style" tags. - - - - - Gets and sets a set of tags which should not have their content parsed. - - - For example, in HTML this would include "script" and "style" tags. - - - - - Gets the total number of characters read from the input - - - - - Gets the total number of lines read from the input - - - - - Gets the current position within the input - - - - - Ctor - - - - - Renders Common Model Tokens into a semantic HTML representation of the data structure - - - - - Consumes a sequence of tokens and produces a token sequence of a different type - - input token type - output token type - - - - Transforms the token sequence from to - - - - - - - Consumes a sequence of tokens and produces a token sequence of a different type - - - - - Formats the token sequence to the output - - - - - - - StringBuilder-like implementation built like List<char> - - - - - Ctor - - - - - Ctor - - - - - - Resets the buffer to an empty state - - - - - Appends a single char to the buffer - - - - - - - Appends a string value to the buffer - - - - - - - Copies the buffer value into a - - - - - - Gets the number of characters in the buffer - - - - - - Ctor - - - - - - Ctor - - - - - - - Ctor - - - - - - Ctor - - - - - - - - Supports forward-only iteration over an input sequence of - - - - - Supports forward-only iteration over an input sequence of - - - - - Supports forward-only iteration over an input sequence - - - - - Returns but does not remove the item at the front of the sequence. - - - - - - Returns and removes the item at the front of the sequence. - - - - - - Begins chunking at the current index - - - - - Ends chunking at the current index and returns the buffered sequence chunk - - - - - - Determines if the sequence has completed. - - - - - Gets a value indicating if is currently capturing a sequence - - - - - Gets the number of items currently chunked - - - - - Factory method for generic streams - - - - - - - - Returns but does not remove the item at the front of the sequence. - - - - - - Returns and removes the item at the front of the sequence. - - - - - - Determines if the input sequence has reached the end - - - - - Ctor - - - - - - Returns but does not remove the item at the front of the sequence. - - - - - - Returns and removes the item at the front of the sequence. - - - - - - Deferred execution of iterator - - - - - Determines if the input sequence has reached the end - - - - - Supports a simple iteration over a list with ability to capture a subsequence - - - - - Ctor - - - - - - Begins chunking at the current index - - - - - Ends chunking at the current index and returns the buffered chunk - - - - - - Returns but does not remove the item at the front of the sequence. - - - - - - Returns and removes the item at the front of the sequence. - - - - - - Deferred execution of iterator - - - - - Gets the number of characters currently chunked - - - - - - Determines if the input sequence has reached the end - - - - - Supports a simple iteration over a text input tracking line/column/position - - - - - Ends chunking at the current index and returns the buffered text chunk - - - - - - Ends chunking at the current index and writes the buffered text chunk into the provided StringBuilder - - - - - - Gets the total number of characters read from the input - - - - - Gets the total number of lines read from the input - - - - - Gets the current position within the input - - - - - Supports a simple iteration over a string tracking line/column/position - - - - - Ctor - - - - - - Begins chunking at the current index - - - - - Ends chunking at the current index and returns the buffered text chunk - - - - - - Ends chunking at the current index and returns the buffered text chunk - - - - - - Ends chunking at the current index and returns the buffered text chunk - - - - - - Returns but does not remove the item at the front of the sequence. - - - - - - Returns and removes the item at the front of the sequence. - - - - - - Deferred execution of iterator - - - - - Calculates index, line, and column statistics - - - - - Releases all resources used - - - - - Gets the total number of characters read from the input - - - - - Gets the total number of lines read from the input - - - - - Gets the current position within the input - - - - - Gets the number of characters currently chunked - - - - - Gets a value indicating if the is currently chunking - - - - - Determines if the input sequence has reached the end - - - - - Supports a simple iteration over a TextReader tracking line/column/position - - - - - Ctor - - - - - - Begins chunking at the current index - - - - - Ends chunking at the current index and returns the buffered text chunk - - - - - - Ends chunking at the current index and returns the buffered text chunk - - - - - - Ends chunking at the current index and returns the buffered text chunk - - - - - Returns but does not remove the item at the front of the sequence. - - - - - - Returns and removes the item at the front of the sequence. - - - - - - Deferred execution of iterator - - - - - Calculates index, line, and column statistics - - - - - - - Releases all resources used by the underlying reader - - - - - Gets the total number of characters read from the input - - - - - Gets the total number of lines read from the input - - - - - Gets the current position within the input - - - - - Gets the number of characters currently chunked - - - - - Gets a value indicating if the is currently chunking - - - - - Determines if the input sequence has reached the end - - - - - Formal language of tokens and symbols for JSON - - - - - Designates a property or field to not be serialized. - - - - - Specifies the naming to use for a property or field when serializing - - - - - Ctor - - - - - Ctor - - - - - - Gets and sets the name to be used in serialization - - - - - JSON deserializer - - - - - Ctor - - - - - Ctor - - - - - - Ctor - - - - - - - Gets the supported content type of the serialized data - - - - - Generates a sequence of tokens from JSON text - - - - - Gets a token sequence from the scanner stream - - - - - - - Scans for the longest valid EcmaScript identifier - - identifier - - http://www.ecma-international.org/publications/files/ECMA-ST/Ecma-262.pdf - - IdentifierName = - IdentifierStart | IdentifierName IdentifierPart - IdentifierStart = - Letter | '$' | '_' - IdentifierPart = - IdentifierStart | Digit - - - - - Gets a token sequence from the TextReader - - - - - - - Gets a token sequence from the string - - - - - - - Gets the total number of characters read from the input - - - - - Gets the total number of lines read from the input - - - - - Gets the current position within the input - - - - - It is an error for the next token to be a value delim - - - - - Forbidden but differentiates between empty array/object and just written - - - - - It is an error for the next token to NOT be a value delim - - - - - Specifies the name of the property which specifies if member should be serialized. - - - These properties can be marked private/protected/internal and it will still be recognized - - - - - Ctor - - the name of the property which controls serialization for this member - - - - Ctor - - the name of the property which controls serialization for this member - - - - Gets and sets the name of the property which - specifies if member should be serialized - - - - - Transforms markup tokens into Common Model tokens using the (lossless) JsonML model - - - JsonML Grammer: http://jsonml.org - - - - - Consumes a sequence of tokens and produces a token sequence of a different type - - - - - Determines how whitespace should be handled - - - - - Transforms Common Model tokens into markup tokens using the (lossless) JsonML model - - - JsonML Grammer: http://jsonml.org - - - - - Consumes a sequence of tokens and produces a token sequence of a different type - - - - - Controls name resolution for IDataReader / IDataWriter using JsonNameAttribute / JsonIgnoreAttribute / JsonPropertySpecifiedAttribute - - - This is the default strategy from JsonFx v1.0 - - - - - Controls name resolution for IDataReader / IDataWriter using plain old CLR object (POCO) names - - - - - Controls name resolution for IDataReader / IDataWriter - - - Provides an extensibility point to control member naming and visibility at a very granular level. - - - - - Gets a value indicating if the property is to be serialized. - - - - - - - - Gets a value indicating if the field is to be serialized. - - - - - - - Determines if the property or field should not be serialized. - - - - - - - - - Gets the serialized name for the member. - - - - - - - Allows a strategy to perform a custom sort order to outputted members - - - - - A common usage is to ensure that Attributes sort first - - - - - Gets a value indicating if the property is to be serialized. - - - - - default implementation is must be read/write properties, or immutable - - - - Gets a value indicating if the field is to be serialized. - - - - default implementation is must be public, non-readonly field - - - - Gets a delegate which determines if the property or field should not be serialized based upon its value. - - - if has a value equivalent to the DefaultValueAttribute - - This is useful when default values need not be serialized. - - - - - Gets the serialized name for the member. - - - - - - - Allows a strategy to perform a custom sort order to outputted members - - - - - A common usage is to ensure that Attributes sort first - - - - - Gets a value indicating if the property is to be serialized. - - - - - default implementation is must be read/write properties, or immutable - - - - Gets a value indicating if the field is to be serialized. - - - - default implementation is must be public, non-readonly field - - - - Gets a delegate which determines if the property or field should not be serialized based upon its value. - - - if has a value equivalent to the DefaultValueAttribute - - This is useful for excluding serialization of default values. - - - - - Gets the serialized name for the member. - - - - - - - Determines whitespace handling - - - - - Removes insignificant whitespace - - - - - Keep all whitespace - - - - - Condenses all whitespace to single spaces - - - - - Designates a type as being able to format itself to raw JSON text. - - - - - Ctor - - - - - Ctor - - - - - Gets and sets the starting delimiter - - - - - Gets and sets the ending delimiter - - - - - Gets and sets the context - - - - - Formal language of tokens and symbols for markup - - - - - Any of a number of unparsed tags which typically contain specialized processing instructions - - - The name of the token is the beginning and ending delimiters as a format string (not including the '<' or '>') - Includes the following types: - - "<!--", "-->" XML/HTML/SGML comment - "<!", ">" XML/SGML declaration (e.g. DOCTYPE or server-side includes) - - "<?=", "?>" PHP expression - "<?", "?>" PHP code block /XML processing instruction (e.g. the XML declaration) - - "<%--", "--%>" ASP/PSP/JSP-style code comment - "<%@", "%>" ASP/PSP/JSP directive - "<%=", "%>" ASP/PSP/JSP/JBST expression - "<%!", "%>" JSP/JBST declaration - "<%#", "%>" ASP.NET/JBST databind expression - "<%$", "%>" ASP.NET/JBST extension - "<%", "%>" ASP code block / JSP scriptlet / PSP code block - - - - - tokens - - - - - - - - - - - Maintains scope chain for namespace prefix mappings - - - - - Adds a new scope to the chain - - - - - - Gets the last scope off the chain - - - - - Gets and removes the last scope off the chain - - - - - - Finds the namespace URI for a given prefix within the curren scope chain - - - - - - - Finds the prefix for a given namespace URI within the curren scope chain - - - - - - - Checks if the matching begin tag exists on the stack - - - - - - Resets the internal state of the scope chain. - - - - - Looks up the prefix for the given namespace - - - - null if namespace is empty and no default prefix found - - - - Represents a scope boundary within a prefix scope chain - - - - - Returns if this scope boundary contains a mapping for a particular prefix - - - if this scope boundary contains a mapping for a particular prefix - - - - Returns if this scope boundary contains a mapping for a particular namespace - - - if this scope boundary contains a mapping for a particular namespace - - - - Returns if this scope boundary contains a mapping for a particular prefix - setting the namespace URI if one was found. - - - the resolved namespace URI - if this scope boundary contains a mapping for a particular prefix - - - - Returns if this scope boundary contains a mapping for a particular prefix - setting the prefix if one was found. - - - the resolved prefix - if this scope boundary contains a mapping for a particular prefix - - - - Gets and sets the tagname associated with this scope boundary - - - - - Gets and sets mappings between prefix and namespace URIs - - - - - - - Provides lookup capabilities for providers - - - - - Parses HTTP headers for Media-Types - - HTTP Accept header - HTTP Content-Type header - sequence of Media-Types - - http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html - - - - - - - - - - - - Controls name resolution for IDataReader / IDataWriter using convention-based name mapping - - - Converts standard .NET PascalCase naming convention into the specified naming convention. - http://msdn.microsoft.com/en-us/library/x2dbyw72.aspx - http://msdn.microsoft.com/en-us/library/141e06ef.aspx - http://msdn.microsoft.com/en-us/library/xzf533w0.aspx - - - - - Ctor - - - - - - Ctor - - - - - - - Gets the serialized name for the member. - - - - - - - Splits a multi-word name assuming standard .NET PascalCase conventions. - - - - - http://msdn.microsoft.com/en-us/library/x2dbyw72.aspx - http://msdn.microsoft.com/en-us/library/141e06ef.aspx - http://msdn.microsoft.com/en-us/library/xzf533w0.aspx - - - - - - Ctor - - - - - - - - Ctor - - - - - - - Represents a property or document name, and a corresponding namespace URI (or empty string). - Analogous to XML "expanded name": http://www.w3.org/TR/REC-xml-names/#dt-expname - - - Namespaces must be a URI, but local-name can be any non-null string. - It is up to formatters to determine how to properly represent names which are invalid for the format. - - - - - local-name - - - - - alias for the namespace - - - - - namespace - - - - - Determines if name should be treated like an attribute - - - - - Ctor - - a CLR Type used to generate the local-name - - This constructor implicitly delcares the namespace to be empty. - - - - - Ctor - - any string is a valid local-name - - This constructor implicitly delcares the namespace to be empty. - - - - - Ctor - - any string is a valid local-name - an absolute URI string, or null - thrown if is null - thrown if is an invalid absolute URI - - The namespace field follows XML recommendation of absolute URIs. - Relative URIs are officially deprecated for namespaces: http://www.w3.org/2000/09/xppa - - - - - Ctor - - any string is a valid local-name - an absolute URI string, or null - determines if name should be an attribute name - thrown if is null - thrown if is an invalid absolute URI - - The namespace field follows XML recommendation of absolute URIs. - Relative URIs are officially deprecated for namespaces: http://www.w3.org/2000/09/xppa - - - - - Gets the local-name for a Type - - - - - - - Gets the prefixed name or simply local-name if is not a fully qualified name - - true to generate a prefix if the prefix is empty but not the namespace - - - - - Gets the namespaced name or simply local-name if is not a fully qualified name - - - - - - Compares two values and returns an indication of their relative sort order. - - - - - Performs ordering according to XML Canonicalization document order http://www.w3.org/TR/xml-c14n#DocumentOrder - "An element's namespace nodes are sorted lexicographically by local name (the default namespace node, if one exists, has no local name and is therefore lexicographically least)." - "An element's attribute nodes are sorted lexicographically with namespace URI as the primary key and local name as the secondary key (an empty namespace URI is lexicographically least)." - - - - - Determines if this is an empty DataName - - - - - Indicates a graph cycle was detected during serialization - - - - - Indicates an error occurred during serialization - - - - - Ctor - - - - - Ctor - - - - - - Ctor - - - - - - - Ctor - - - - - - - Ctor - - - - - Ctor - - - - - - Ctor - - - - - - - Ctor - - - - - - - Gets the type of cycle which caused the error - - - - - Graph cycles are detected with a reference tracking, any repeated reference results in a null value - - - - - Graph cycles are detected with a reference tracking, any repeated reference results in an error - - - - - Graph cycles are detected with a maximum depth count, exceeding depth results in an error - - - - - Detects graph cycles by tracking graph depth - - - - - Defines an interface for detecting graph cycles - - - - - Begins tracking of the reference - - - true if graph cycle was detected - - - - Ends tracking of the reference - - - true if tracking was successfully completed - - - - Ctor - - - - - - Increments the depth - - - true if MaxDepth has not been exceeded - - - - Increments the depth - - - - - - Detects cycles by detecting duplicates in the a set of object references - - - - - Adds a reference to the set - - - true if object already existed within set - - - - Removes a reference from the set - - - - - - Controls deserialization settings for IDataReader - - - - - Ctor - - - - - Ctor - - - - - Ctor - - - - - Ctor - - - - - - Ctor - - - - - - Ctor - - - - - - Ctor - - - - - - Gets and sets if ValueTypes can accept values of null - - - If this is true and a ValueType T is assigned the value of null, - it will receive the value of default(T). - Setting this to false, throws an exception if null is - specified for a ValueType member. - - - - - Gets and sets if should verify that stream is empty after deserialzing each object - - - Setting to true allows reading a JSON stream inside other structures (e.g. JavaScript) - - - - - Gets manager of name resolution for IDataReader - - - - - Gets the custom filters - - - - - Controls the serialization settings for IDataWriter - - - - - Ctor - - - - - Ctor - - - - - Ctor - - - - - Ctor - - - - - - Ctor - - - - - - Ctor - - - - - - Ctor - - - - - - Gets and sets what to do when graph cycles (repeated references) are encounted - - - - - Gets and sets the maximum nesting depth - - - Depth is a fast and easy safegaurd against detecting graph cycles but may produce false positives - - - - - Gets and sets if output will be formatted for human reading. - - - - - Gets and sets the string to use for indentation - - - - - Gets and sets the line terminator string - - - - - Gets manager of name resolution for IDataReader - - - - - Gets the custom filters - - - - - Indicates an error occurred during deserialization - - - - - Ctor - - - - - - - Ctor - - - - - - - - - Ctor - - - - - - - - Ctor - - - - - - - - Ctor - - - - - - - Helper method which converts the index into Line and Column numbers - - - - - - - - Gets the character column in the stream where the error occurred - - - - - Gets the character position in the stream where the error occurred - - - - - Gets the character line in the stream where the error occurred - - - - - Indicates an error occurred during token consumption - - - - - - Ctor - - - - - Ctor - - - - - - Ctor - - - - - - - Ctor - - - - - - - Gets the token in the sequence where the error occurred - - - - - Indicates an error occurred during type coercion - - - - - Ctor - - - - - Ctor - - - - - - Ctor - - - - - - - Ctor - - - - - - - Provides lookup capabilities for finding matching IDataReader - - - - - Provides lookup capabilities for finding matching IDataReader - - - - - Ctor - - inject with all possible readers - - - - Finds an IDataReader by content-type header - - - - - - - Provides lookup capabilities for finding an IDataWriter - - - - - Provides lookup capabilities for finding an IDataWriter - - - - - Ctor - - inject with all possible writers - - - - Controls name resolution for IDataReader / IDataWriter by using pluggable delegate callbacks - - - - - Gets and sets the implementation for ignoring properties - - - - - Gets and sets the implementation for ignoring fields - - - - - Gets and sets the implementation for ignoring properties by value - - - - - Gets and sets the implementation for naming members - - - - - Gets and sets the implementation for sorting members - - - - - Controls name resolution for IDataReader / IDataWriter by combining an ordered sequence of any other strategies - - - Each strategy is invoked in order, the first to respond wins. - - - - - Ctor - - ordered sequence of strategies - - - - Ctor - - ordered sequence of strategies - - - - Gets a value indicating if the property is to be serialized. - - - - true if any strategy specifies should be ignored - - - - Gets a value indicating if the field is to be serialized. - - - true if any strategy specifies should be ignored - - - - Gets a delegate which determines if the property or field should not be serialized based upon its value. - - - true if any strategy specifies this should be ignored - - - - Gets the serialized name for the member. - - - - custom name if any strategy specifies one, otherwise null - - - - Allows a strategy to perform a custom sort order to outputted members - - - - - A common usage is to ensure that Attributes sort first - - - - - Controls name resolution for IDataReader / IDataWriter using DataContract attributes - - - http://msdn.microsoft.com/en-us/library/kd1dc9w5.aspx - - - - - CCtor - - - - - Gets a value indicating if the property is to be serialized. - - - - - - - - Gets a value indicating if the field is to be serialized. - - - - - - - Gets a delegate which determines if the property or field should not be serialized based upon its value. - - - - - - - Gets the serialized name for the member. - - - - - - - Gets a delegate which determines if the property or field should not be serialized based upon its value. - - - - - - - The original member info - - - - - The original member name - - - - - The member data name - - - - - The member type - - - - - The getter method - - - - - The setter method - - - - - The logic for determining if a value is ignored - - - - - Determines if map name is alternate (i.e. only used for deserialization) - - - - - Ctor - - MemberMap to clone - alternate name - - - - Ctor - - - - - - - - Ctor - - - - - - - - Ctor - - - - - Gets a sequence of the available factory arguments - - - - - Gets the factory associated with the given argument type - - - - - - - Cache of name resolution mappings for IDataReader / IDataWriter - - - - - Ctor - - - - - - Gets the serialized name of the class - - - - - - - Removes any cached member mappings. - - - - - Builds a mapping of member name to field/property - - - - - - Represents a single immutable token in an input sequence - - - - - The type of the token - - - - - The name of the token - - - - - The value of the token - - - - - Ctor - - - - - - Ctor - - - - - - - Ctor - - - - - - - Ctor - - - - - - - Returns a string that represents the current token. - - - - - - Gets the value of the token as a string - - - - - - Converts a value to a string giving opportunity for IConvertible, IFormattable - - - - - - - Converts token to a token of a different type - - - token with same values and different type - - - - Type Coercion Utility - - - - - Ctor - - - - - - - Ctor - - - - - - - Instantiates a new instance of objectType. - - - objectType instance - - - - Instantiates a new instance of objectType. - - - objectType instance - - - - Helper method to set value of a member. - - - - - - - - - - Coerces the object value to Type - - - - - - - - Coerces the object value to Type of - - - - - - - - Populates the properties of an object with the dictionary values. - - - - - - - - Populates the properties of an object with the dictionary values. - - - - - - - - Coerces an sequence of items into an array of Type elementType - - - - - - - - Finds a suitable concrete class for common collection interface types - - - - - - - Allows specific IDictionary<string, TVal> to deserialize as TVal - - IDictionary<string, TVal> Type - TVal Type - - - - Returns a common type which can hold previous values and the new value - - - - - - - - Determines if type can be assigned a null value. - - - - - - - Gets the attribute T for the given value. - - - Attribute Type - true if defined - - - - Gets the attribute of Type for the given value. - - - true if defined - - - - Gets the attribute T for the given value. - - - Attribute Type - requested attribute or not if not defined - - - - Gets the attribute of Type for the given value. - - - requested attribute or not if not defined - - - - Character Utility - - - These are either simpler definitions of character classes (e.g. letter is [a-zA-Z]), - or they implement platform-agnositic checks (read: "Silverlight workarounds"). - - - - - Checks if string is null, empty or entirely made up of whitespace - - - - - Essentially the same as String.IsNullOrWhiteSpace from .NET 4.0 - with a simplfied view of whitespace. - - - - - Checks if character is line ending, tab or space - - - - - - - - - - - - - - Checks if character matches [A-Za-z] - - - - - - - Checks if character matches [0-9] - - - - - - - Checks if character matches [0-9A-Fa-f] - - - - - - - Gets a 4-bit number as a hex digit - - 0-15 - - - - - Formats a number as a hex digit - - - - - - - Converts the value of a UTF-16 encoded character or surrogate pair at a specified - position in a string into a Unicode code point. - - - - - - - - Converts the specified Unicode code point into a UTF-16 encoded string. - - - - - - - XML serializer - - - XML serializer - - - - - Ctor - - - - - Ctor - - - - - - Ctor - - - - - - - Gets a tokenizer for XML - - - - - - Gets the supported content type for the serialized data - - - - - Transforms markup tokens into Common Model tokens using an XML-data model - - - - - Ctor - - - - - - Consumes a sequence of tokens and produces a token sequence of a different type - - - - - Formats the token sequence to the output - - - - - - - - Ctor - - - - - Ctor - - - - - - Gets a token sequence from the string - - - - - - - Gets a token sequence from the TextReader - - - - - - - Gets a token sequence from the XmlReader - - - - - - - Gets the total number of characters read from the input - - - - - Gets the total number of lines read from the input - - - - - Gets the current position within the input - - - - - XML serializer - - - - - Ctor - - - - - Ctor - - - - - - Ctor - - - - - - - Gets the formatter for XML - - - - - - - Gets the supported content type for the serialized data - - - - - Gets the supported file extension for the serialized data - - - - - Transforms Common Model tokens into markup tokens using an XML-data model - - - - - Ctor - - - - - - Consumes a sequence of tokens and produces a token sequence of a different type - - - - - Formats the token sequence to the output - - - - - - - Outputs XML text from an input stream of tokens - - - - - Ctor - - - - - - Formats the token sequence as a string - - - - - - Formats the token sequence to the writer - - - - - - - Formats the token sequence to the writer - - - - - - - Wraps an XmlWriter as a TextWriter - - - - - Ctor - - - - - - Gets the underlying XmlWriter - - - - - Controls name resolution for IDataReader / IDataWriter using attributes and conventions similar to XmlSerializer semantics - - - http://msdn.microsoft.com/en-us/library/83y7df3e.aspx - - - - - Gets a value indicating if the property is to be serialized. - - - - - default implementation is must be read/write properties, or immutable - - - - Gets a value indicating if the field is to be serialized. - - - - default implementation is must be public, non-readonly field - - - - Gets a delegate which determines if the property or field should not be serialized based upon its value. - - - if has a value equivalent to the DefaultValueAttribute or has a property named XXXSpecified which determines visibility - - This is useful when default values need not be serialized. - Under these situations XmlSerializer ignores properties based upon value: - - DefaultValue: http://msdn.microsoft.com/en-us/library/system.componentmodel.defaultvalueattribute.aspx - - Specified Properies: http://msdn.microsoft.com/en-us/library/bb402199.aspx - - ShouldSerialize Methods: http://msdn.microsoft.com/en-us/library/53b8022e.aspx - - - - - Gets the serialized name for the member. - - - - - - - Sorts members to ensure proper document order where attributes precede all child elements. - - - - - Performs the first stage of XML Canonicalization document order http://www.w3.org/TR/xml-c14n#DocumentOrder - "An element's namespace and attribute nodes have a document order position greater than the element but less than any child node of the element." - - - - - Generates delegates for getting/setting properties and field and invoking constructors - - - - - Creates a field getter delegate for the specified property or field - - PropertyInfo or FieldInfo - GetterDelegate for property or field, null otherwise - - Note: use with caution this method will expose private and protected constructors without safety checks. - - - - - Creates a field setter delegate for the specified property or field - - PropertyInfo or FieldInfo - SetterDelegate for property or field, null otherwise - - - - Creates a property getter delegate for the specified property - - - GetterDelegate if property CanRead, otherwise null - - Note: use with caution this method will expose private and protected constructors without safety checks. - - - - - Creates a property setter delegate for the specified property - - - GetterDelegate if property CanWrite, otherwise null - - Note: use with caution this method will expose private and protected constructors without safety checks. - - - - - Creates a field getter delegate for the specified field - - - GetterDelegate which returns field unless is enum in which will return enum value - - Note: use with caution this method will expose private and protected constructors without safety checks. - - - - - Creates a field setter delegate for the specified field - - - SetterDelegate unless field IsInitOnly then returns null - - Note: use with caution this method will expose private and protected constructors without safety checks. - - - - - Creates a proxy delegate accepting a target instance and corresponding arguments - - method to proxy - ProxyDelegate or null if cannot be invoked - - Note: use with caution this method will expose private and protected methods without safety checks. - - - - - Creates a default constructor delegate - - type to be created - FactoryDelegate or null if default constructor not found - - Note: use with caution this method will expose private and protected constructors without safety checks. - - - - - Creates a constructor delegate accepting specified arguments - - type to be created - constructor arguments type list - FactoryDelegate or null if constructor not found - - Note: use with caution this method will expose private and protected constructors without safety checks. - - - - - Creates a constructor delegate accepting specified arguments - - type to be created - constructor arguments type list - FactoryDelegate or null if constructor not found - - Note: use with caution this method will expose private and protected constructors without safety checks. - - - - - Represents a query across a data source - - - - - - Ctor - - - - - - Ctor - - - - - - - Returns a string representation of the query - - - - - - Gets the query expression - - - - - Gets the query return type - - - - - Gets the underlying provider - - - - - Ctor - - - - - - - Ctor - - - - - - - Extends the query to all descendants - - - - - Extends the query to all descendants - - - - - Gets all items of the array - - - - - Gets the items of the array with indexes satisfying the - - - - - - Filters to only objects with a particular property name defined - - - - - - Filters to a lookup of only the properties which match the predicate - - - - - - Filters to only arrays - - - - - - Filters to only objects - - - - - - Filters to only simple values - - - - - - Boiler-plate implementation - - - - - - Ctor - - - - - Ctor - - - - - - - - - - - Searches for subsequences found by the expression and rehydrates into objects with the analyzer - - - - - Ctor - - - - - Ctor - - - - - - - Ctor - - - - - - diff --git a/packages/JsonFx.2.0.1209.2802/lib/net40/JsonFx.dll b/packages/JsonFx.2.0.1209.2802/lib/net40/JsonFx.dll deleted file mode 100644 index e97990a6..00000000 Binary files a/packages/JsonFx.2.0.1209.2802/lib/net40/JsonFx.dll and /dev/null differ diff --git a/packages/JsonFx.2.0.1209.2802/lib/net40/JsonFx.xml b/packages/JsonFx.2.0.1209.2802/lib/net40/JsonFx.xml deleted file mode 100644 index a08ebbcf..00000000 --- a/packages/JsonFx.2.0.1209.2802/lib/net40/JsonFx.xml +++ /dev/null @@ -1,4877 +0,0 @@ - - - - JsonFx - - - - - JsonFx metadata - - - - - Ctor - - - - - - Outputs BSON bytes from an input stream of tokens - - - - - Outputs text from an input stream of JSON tokens - - token type - - - - Formats the token sequence to the output writer - - - - - - - Formats the token sequence as a string - - - - - - Formats the token sequence as a string - - - - - - Formats the token sequence to the output writer - - - - - - - Emits a document (or array) to the binary stream - - - - number of bytes written - - - - Emits a single element to the binary stream - - - - - number of bytes written - - - - Emits a string value - - - - number of bytes written - - - - Emits a binary value - - - - number of bytes written - - - - Emits a code_w_s value - - - - number of bytes written - - - - Generates a sequence of tokens from BSON bytes - - - - - Generates a sequence of tokens from a sequence of characters - - token type - - - - Tokenizes the input sequence into tokens - - - - - - - Tokenizes the input sequence into tokens - - - - - - - Gets the current position of the underlying input character sequence - - - Tokenizers not tracking index should return -1. - - - - - Gets a token sequence from the TextReader - - - - - - - Gets a token sequence from the string - - - - - - - Gets a token sequence from the reader - - - - - - - Gets the current position of the underlying stream - - - - - BSON MD5 Datatype - - - - - Ctor - - - - - - Ctor - - - - - - Ctor - - - - - - Converts MD5 to Guid - - - - - - - - Converts MD5 to Guid - - - - - - - Gets the hashcode of the underlying Guid - - - - - - BSON JavaScript Code With Scope Datatype - - - - - BSON JavaScript Code Datatype - - - - - Ctor - - - - - - Converts JavaScriptCode to string - - - - - - - - Converts JavaScriptCode to string - - - - - - - Gets the hashcode of the underlying string - - - - - - BSON Symbol Datatype - - - - - Ctor - - - - - - Converts Symbol to string - - - - - - - - Converts Symbol to string - - - - - - - Gets the hashcode of the underlying string - - - - - - BSON DBPointer Datatype (Deprecated) - - - - - Immutable BSON ObjectID Datatype - - - http://www.mongodb.org/display/DOCS/Object+IDs#ObjectIDs-TheBSONObjectIdDatatype - - - - - Ctor - - 12-byte object ID - - - - Ctor - - 4-byte seconds since Unit epoch - 3-byte machine ID - 2-byte process ID - 3-byte counter - - - - Converts an ObjectID to a hex string - - - - - - - Converts a hex string to an ObjectID - - - - - - - Converts an ObjectID to a byte array - - - - - - - Converts a byte array to an ObjectID - - - - - - - Gets the hashcode of the underlying string - - - - - - Gets the time associated with this ObjectID - - - - - Gets the machine id associated with this ObjectID - - - - - Gets the process id associated with this ObjectID - - - - - Gets the counter associated with this ObjectID - - - - - Generic binary holder - - - http://api.mongodb.org/java/2.0/org/bson/types/Binary.html - - - - - Ctor - - binary type code - byte date - - - - Converts an ObjectID to a hex string - - - - - - - Converts a hex string to an ObjectID - - - - - - - Converts an ObjectID to a byte array - - - - - - - Converts a byte array to an ObjectID - - - - - - - Gets the hashcode of the underlying string - - - - - - Gets a 4-bit number as a hex digit - - 0-15 - - - - - Gets the binary type code - - - - - Gets the binary type code - - - - - Gets the byte at the given index - - - - - Gets the length of the binary data - - - - - Designates a type as being able to format itself to raw BSON bytes - - - - - Designates a type as being able to format itself to raw bytes - - - - - Writes custom format to the output using either tokens or bytes - - - - total number of bytes written - - - - Determines the corresponding BSON element type - - - - - - Generalized delegate for invoking a constructor - - - - - - - Generalized delegate for invoking a method - - the instance object - the method parameters - - - - - Generalized delegate for getting a field or property value - - - - - - - Generalized delegate for setting a field or property value - - - - - - - Consumes a sequence of tokens to produce an object graph optionally coerced to a given type - - - - - Consumes a sequence of tokens to produce a sequence of objects, optionally coerced to a given type - - token type - - - - Parses the token sequence - - - - - - - Parses the token sequence, optionally coercing the result to Type targetType - - - optional type for coercion (null if not specified) - - - - - Parses the token sequence, coercing the result to Type TResult - - optional type for coercion (null if not specified) - - - - - - Parses the token stream coercing the result to TResult (type inferred from ) - - - - an example value used solely for Type inference - - - - - Ctor - - - - - - Parses the token stream coercing the result targetType - - - - - - - Parses the token stream coercing the result to targetType - - - - - - - - Parses the token stream coercing the result to TResult - - the result target type - - - - - - Parses the token stream coercing the result to TResult (inferred from ) - - - - an example value used solely for Type inference - - - - - Common Model Language grammar helper - - - Simplifies and guides syntax, and provides a set of reusable tokens to reduce redundant token instantiations - - - - - Marks the beginning of an array - - the local name of the array - ArrayBegin Token - - - - Marks the beginning of an array - - the local name of the array - the namespace of the document - ArrayBegin Token - - - - Marks the beginning of an array - - the name of the array - ArrayBegin Token - - - - Marks the beginning of an object - - the local name of the object - ObjectBegin Token - - - - Marks the beginning of an object - - the name of the object - ObjectBegin Token - - - - Marks the beginning of an object property - - the local name of the property - PropertyKey Token - - - - Marks the beginning of an object property - - the local name of the property - PropertyKey Token - - - - Marks the beginning of an object property - - the name of the property - PropertyKey Token - - - - A simple scalar value (typically serialized as a single primitive value) - - - Value Token - - - - Provides base implementation for standard deserializers - - - Provides base implementation for standard deserializers - - - This partial class adds LINQ capabilities to the reader. - - - - - Provides base implementation for standard deserializers - - - - - A common interface for data deserializers - - - - - Deserializes a single object from the given input - - the input reader - a value used to trigger Type inference for (e.g. for deserializing anonymous objects) - the expected type of the serialized data - - - - Deserializes a single object from the given input - - the input reader - the expected type of the serialized data - - - - Serializes the data to the given output - - the input reader - - - - Deserializes a single object from the given input - - the input reader - the expected type of the serialized data - - - - Deserializes a single object from the given input - - the input text - a value used to trigger Type inference for (e.g. for deserializing anonymous objects) - the expected type of the serialized data - - - - Deserializes a single object from the given input - - the input text - the expected type of the serialized data - - - - Deserializes a single object from the given input - - the input text - - - - Deserializes a single object from the given input - - the input text - the expected type of the serialized data - - - - Deserializes a potentially endless sequence of objects from a stream source - - - - - character stream => token stream => object stream - - - - - Gets the supported content type of the serialized data - - - - - Gets the settings used for deserialization - - - - - Ctor - - - - - - Deserializes the data from the given input - - the input reader - a value used to trigger Type inference for (e.g. for deserializing anonymous objects) - the expected type of the serialized data - - - - Deserializes the data from the given input - - the input reader - the expected type of the serialized data - - - - Deserializes the data from the given input - - the input reader - - - - Deserializes the data from the given input - - the input reader - the expected type of the serialized data - - - - Deserializes the data from the given input - - the input text - a value used to trigger Type inference for (e.g. for deserializing anonymous objects) - the expected type of the serialized data - - - - Deserializes the data from the given input - - the input text - the expected type of the serialized data - - - - Deserializes the data from the given input - - the input text - - - - Deserializes the data from the given input - - the input text - the expected type of the serialized data - - - - Deserializes a potentially endless sequence of objects from a stream source - - a streamed source of objects - a sequence of objects - - character stream => token stream => object stream - - - - - Gets the supported content type of the serialized data - - - - - Gets the settings used for deserialization - - - - - A common interface for querying data readers - - - - - Begins a query of the given input - - the input reader - a value used to trigger Type inference for (e.g. for deserializing anonymous objects) - the expected type of the serialized data - - - - Begins a query of the given input - - the input reader - the expected type of the serialized data - - - - Serializes the data to the given output - - the input reader - - - - Begins a query of the given input - - the input reader - the expected type of the serialized data - - - - Begins a query of the given input - - the input text - a value used to trigger Type inference for (e.g. for deserializing anonymous objects) - the expected type of the serialized data - - - - Begins a query of the given input - - the input text - the expected type of the serialized data - - - - Begins a query of the given input - - the input text - - - - Begins a query of the given input - - the input text - the expected type of the serialized data - - - - Ctor - - - - - - Begins a query of the given input - - the input reader - a value used to trigger Type inference for (e.g. for deserializing anonymous objects) - the expected type of the serialized data - - - - Begins a query of the given input - - the input reader - the expected type of the serialized data - - - - Begins a query of the given input - - the input text - a value used to trigger Type inference for (e.g. for deserializing anonymous objects) - the expected type of the serialized data - - - - Begins a query of the given input - - the input text - the expected type of the serialized data - - - - Begins a query of the given input - - the input reader - a value used to trigger Type inference for (e.g. for deserializing anonymous objects) - the expected type of the serialized data - - - - Begins a query of the given input - - the input reader - the expected type of the serialized data - - - - Serializes the data to the given output - - the input reader - - - - Begins a query of the given input - - the input reader - the expected type of the serialized data - - - - Begins a query of the given input - - the input text - a value used to trigger Type inference for (e.g. for deserializing anonymous objects) - the expected type of the serialized data - - - - Begins a query of the given input - - the input text - the expected type of the serialized data - - - - Begins a query of the given input - - the input text - - - - Begins a query of the given input - - the input text - the expected type of the serialized data - - - - Extension methods for selecting subsequences of sequences of tokens - - - - - Determines if the sequence represents a primitive - - - - - - - Determines if the sequence represents an object - - - - - - - Determines if the root object has any properties which satisfies the name - - - - true if any properties match the predicate - - - - Gets all properties of the root object - - - - all properties for the object - - - - Gets all properties of the root object - - - - all properties for the object - - - - Gets the properties of the root object which satisfies the - - - - matching properties for the root object - - - - Gets the properties of the root object which satisfies the - - - - matching properties for the root object - - - - Determines if the sequence represents an array - - - - - - - Gets all the items of the array - - - all items of the array - - - - Gets the items of the root array with indexes satisfying the - - - - items of the root array which statisfy the predicate - - - - ArrayItems iterator - - - - - - - - Gets all descendant values below the current root - - - - - - - Descendants iterator - - - - - - - Gets all descendant values below the current root, as well as the current root - - - - - - - DescendantsAndSelf iterator - - - - - - - Covers the sitation where a stream of sequences may be back to back - - - - - - - Splices out the sequence for the next complete value (object, array, primitive) - - - - - - - Splices out the sequence for the next complete value (object, array, primitive) - - - - - - - Skips over the next complete value (object, array, primitive) - - - - - - - Common Model Language tokens - - - - - - - - - - - - Generates a sequence of tokens from an object graph - - - - - Generates a sequence of tokens from an object graph - - token type - - - - Generates a sequence of tokens representing the value - - - - - - - Ctor - - - - - - Generates a sequence of tokens representing the value - - - - - - - Allows a mechanism for manipulating JSON serialization - - Defines the type this filter reads/writes - - - - Partially implements an IDataFilter - - - - - Allows a mechanism for manipulating serialization - - Defines the type of token stream this filter understands - Defines the type this filter reads/writes - - - - Allows a mechanism for manipulating serialization - - Defines the type of token stream this filter understands - - - - Allows a class to act as a factory for a type via input Token<T> sequence - - input tokens - - true if value was generated - - - - Allows a class to serialize a type as Token<T> sequence - - - - true if value was consumed - - - - Allows a class to act as a factory for a type via input Token<T> sequence - - input tokens - - true if value was generated - - - - Allows a class to serialize a type as Token<T> sequence - - - - true if value was consumed - - - - Defines a filter for JSON-style serialization of DateTime into ISO-8601 string - - - This is the format used by EcmaScript 5th edition Date.prototype.toJSON(...): - http://www.ecma-international.org/publications/files/ECMA-ST/ECMA-262.pdf - http://www.w3.org/TR/NOTE-datetime - http://en.wikipedia.org/wiki/ISO_8601 - - NOTE: This format limits expressing DateTime as either UTC or Unspecified. Local (i.e. Server Local) is converted to UTC. - - - - - Converts a ISO-8601 string to the corresponding DateTime representation - - ISO-8601 conformant date - UTC or Unspecified DateTime - true if parsing was successful - - - - Converts a DateTime to the corresponding ISO-8601 string representation - - - ISO-8601 conformant date - - - - Determines the precision of fractional seconds. - Defaults to EcmaScript precision of milliseconds. - - - - - Defines the precision of fractional seconds in ISO-8601 dates - - - - - Defines a filter for JSON-style serialization of DateTime into an ASP.NET Ajax Date string. - - - This is the format used by Microsoft ASP.NET Ajax: - http://weblogs.asp.net/bleroy/archive/2008/01/18/dates-and-json.aspx - - NOTE: This format is limited to expressing DateTime at the millisecond level as UTC only. - The WCF extension of adding a timezone is ignored as this returns UTC dates only. - - - - - Converts an ASP.NET Ajax date string to the corresponding DateTime representation - - ASP.NET Ajax date string - - true if parsing was successful - - - - Converts a DateTime to the corresponding ASP.NET Ajax date string representation - - - ASP.NET Ajax date string - - - - Provides base implementation for standard serializers - - - - - Provides base implementation of standard serializers - - - - - A common interface for data serializers - - - - - Serializes the data to the given output - - the output writer - the data to be serialized - - - - Serializes the data to the given output - - the data to be serialized - the serialized data - - - - Gets the content encoding for the serialized data - - - - - Gets the supported content types for the serialized data - - - - - Gets the supported file extensions for the serialized data - - - - - Gets the settings used for serialization - - - - - Ctor - - - - - - Serializes the data to the given output - - the data to be serialized - the output writer - - - - Serializes the data to the given output - - the data to be serialized - the serialized data - - - - Gets the walker for this DataWriter - - - - - - - Gets the formatter for this DataWriter - - - - - - - Gets the content encoding for the serialized data - - - - - Gets the supported content types for the serialized data - - - - - Gets the supported file extensions for the serialized data - - - - - Gets the settings used for serialization - - - - - Ctor - - - - - - Gets a walker for JSON - - - - - - - Gets the content encoding for the serialized data - - - - - Represents an ECMAScript identifier for serialization. - - - - - Designates a type as being able to format itself to raw text - - - - - Writes custom format to the output using either tokens or text - - - - - - - Ctor - - - - - Ctor - - - - - - Verifies is a valid EcmaScript identifier - - the identifier - identifier - - - - Verifies is a valid EcmaScript identifier - - the identifier - identifier - - - - Verifies is a valid EcmaScript variable expression - - the identifier - identifier - - http://www.ecma-international.org/publications/files/ECMA-ST/Ecma-262.pdf - - IdentifierName = - IdentifierStart | IdentifierName IdentifierPart - IdentifierStart = - Letter | '$' | '_' - IdentifierPart = - IdentifierStart | Digit - - - - - Trivial conversion method. Essentially performs a cast. - - - - - Supports conversion via System.Web.UI.PropertyConverter.ObjectFromString(Type, MemberInfo, string) - - - - - Implicit type conversion allows to be used directly as a String - - valid ECMAScript identifier - - - - - Implicit type conversion allows to be used directly with Strings - - valid ECMAScript identifier - - - - - Returns the identifier - - - - - - Compares identifiers - - - - - - - Returns the hash code for the identifier - - - - - - Gets the ECMAScript identifier represented by this instance - - - - - Formats data as full ECMAScript objects, rather than the limited set of JSON objects. - - - - - Outputs JSON text from an input stream of tokens - - - - - Outputs text from an input stream of JSON tokens - - token type - - - - Formats the token sequence to the output writer - - - - - - - Formats the token sequence as a string - - - - - - JSON serializer - - - - - Ctor - - - - - Ctor - - - - - - Ctor - - - - - - - Gets the formatter for JSON - - - - - - - Gets the supported content type for the serialized data - - - - - Gets the supported file extension for the serialized data - - - - - Outputs JSON text from an input stream of tokens - - - - - Ctor - - - - - - Formats the token sequence as a string - - - - - - Formats the token sequence to the writer - - - - - - - Converts an object to its string representation - - - - - - - Converts an enum to its string representation - - - - - - - Splits a bitwise-OR'd set of enums into a list. - - the enum type - the combined value - list of flag enums - - from PseudoCode.EnumHelper - - - - - Determines if a numeric value cannot be represented as IEEE-754. - - - - - http://stackoverflow.com/questions/1601646 - - - - - Gets and sets if '<' should be encoded in strings - Useful for when emitting directly into page - - - - - Ctor - - - - Defaults to encoding < chars for improved embedding within script blocks - - - - - Emits a block of script ensuring that a namespace is declared - - the output writer - the namespace to ensure - list of namespaces already emitted - determines if should emit pretty-printed - if was a namespaced identifier - - - - Outputs a .NET Regex as an ECMAScript RegExp literal. - Defaults to global matching off. - - - - - http://www.ecma-international.org/publications/files/ECMA-ST/Ecma-262.pdf - - - - - Outputs a .NET Regex as an ECMAScript RegExp literal. - - - - - - http://www.ecma-international.org/publications/files/ECMA-ST/Ecma-262.pdf - - - - - Defines a strategy for filtering HTML tags/attributes/styles/literals - - - - - Filters tags, optionally allowing altering of tag - - tag name - if true tag should be rendered - - - - Filters attributes, optionally allowing altering of attribute value - - tag name - attribute name - attribute value - if true attribute should be rendered - - - - Filters styles, optionally allowing altering of style value - - tag name - style name - style value - if true style should be rendered - - - - Filters literals, optionally allowing replacement of literal value - - the literal value - if true should be rendered - - - - Provides a mechanism for filtering HTML streams based upon a tag taxonomy - - - - - Determines if is "void" (i.e. "empty" or "full") tag - - lowercase tag name - if is a void tag - - http://www.w3.org/TR/html5/semantics.html - http://www.w3.org/TR/html401/index/elements.html - http://www.w3.org/TR/xhtml-modularization/abstract_modules.html#sec_5.2. - http://www.w3.org/TR/WD-html40-970917/index/elements.html - - - - - Determines if the tag is required to be closed - - lowercase tag name - if closing tag is optional - - http://www.w3.org/TR/html5/semantics.html - http://www.w3.org/TR/html401/index/elements.html - http://www.w3.org/TR/WD-html40-970917/index/elements.html - - - - - Categorizes the tag for heuristics about markup type - - lowercase tag name - the box type for a particular element - - http://www.w3.org/TR/html5/semantics.html - - - - - Defines a prioritized taxonomy of tags - - - The types are enumerated in ascending levels of risk for use in filtering HTML input - - - - - Literal text, no tags - - - - - Inline character level elements and text strings - - - Tags of this type typically do not disrupt the text flow - - - - - style elements - - - Tags of this type change the visual appearance of text - - - - - list elements - - - Tags of this type denote lists and typically change the text flow - - - - - Block-level elements - - - Tags of this type denote sections or change the text flow - - - - - Media elements - - - Tags of this type safely embed media content - - - - - Tabular elements - - - Tags of this type have a very specific structure and their own rendering model - - - - - Form elements - - - Tags of this type are used in the construction of forms for capturing user input - - - - - Script elements - - - Tags of this type represent a security risk to the containing document but must obey the browser security sandbox - - - - - Document elements - - - Tags of this type are used to construct the document itself - - - - - embedded elements - - - Tags of this type represent a large security risk to the containing document as plug-ins may circumvent the browser security sandbox - - - - - Unknown elements - - - - - Outputs markup text from an input stream of tokens - - - - - Ctor - - - - - - Resets the internal stack of elements - - - - - Formats the token sequence as a string - - - - - - Formats the token sequence to the writer - - - - - - - Emits a valid XML local-name (i.e. encodes invalid chars including ':') - - - - - Explicitly escaping ':' to maintain compatibility with XML Namespaces. - From XML 1.0, 5th ed. http://www.w3.org/TR/xml/#sec-common-syn - Name = NameStartChar (NameChar)* - NameStartChar = ":" - | [A-Z] - | "_" - | [a-z] - | [#xC0-#xD6] - | [#xD8-#xF6] - | [#xF8-#x2FF] - | [#x370-#x37D] - | [#x37F-#x1FFF] - | [#x200C-#x200D] - | [#x2070-#x218F] - | [#x2C00-#x2FEF] - | [#x3001-#xD7FF] - | [#xF900-#xFDCF] - | [#xFDF0-#xFFFD] - | [#x10000-#xEFFFF] - NameChar = NameStartChar - | "-" - | "." - | [0-9] - | #xB7 - | [#x0300-#x036F] - | [#x203F-#x2040] - - - - - - Emits valid XML character data - - - - encodes all non-ASCII chars - - - - - Emits valid XML attribute character data - - - - encodes all non-ASCII chars - - - - Gets and sets a value indicating if should emit canonical form - - - http://www.w3.org/TR/xml-c14n - - - - - Gets and sets a value indicating how should emit empty attributes - - - - - Gets and sets a value indicating if should encode text chars above the ASCII range - - - This option can help when the output is being embedded within an unknown encoding - - - - - HTML-style empty attributes do not emit a quoted string - - - http://www.w3.org/TR/html5/syntax.html#attributes-0 - - - - - XHTML-style empty attributes repeat the attribute name as its value - - - http://www.w3.org/TR/xhtml-media-types/#C_10 - http://www.w3.org/TR/xhtml1/#C_10 - http://www.w3.org/TR/html5/the-xhtml-syntax.html - - - - - XML-style empty attributes emit an empty quoted string - - - http://www.w3.org/TR/xml/#sec-starttags - - - - - Generates a sequence of tokens from a generalized model of markup text (e.g. HTML, XML, JBST, ASPX/ASCX, ASP, JSP, PHP, etc.) - - - This generates a stream of tokens like StAX (Streaming API for XML) - Unlike XML, this follows a more permissive markup format with automatic recovery most similar to HTML5. - - - - - Generates a sequence of tokens from a sequence of characters - - token type - - - - Tokenizes the input sequence into tokens - - - - - - - Tokenizes the input sequence into tokens - - - - - - - Gets the current column of the underlying input character sequence - - - Tokenizers not tracking columns should return -1. - - - - - Gets the current line of the underlying input character sequence - - - Tokenizers not tracking lines should return -1. - - - - - Gets the current position of the underlying input character sequence - - - Tokenizers not tracking index should return -1. - - - - - Decodes HTML-style entities into special characters - - - the entity text - - TODO: validate against HTML5-style entities - http://www.w3.org/TR/html5/tokenization.html#consume-a-character-reference - - - - - Decodes most known named entities - - - - - - - Checks for element start char - - - - - http://www.w3.org/TR/xml/#sec-common-syn - - - - - Checks for element name char - - - - - http://www.w3.org/TR/xml/#sec-common-syn - - - - - Gets a token sequence from the TextReader - - - - - - - Gets a token sequence from the string - - - - - - - Gets and sets if should attempt to auto-balance mismatched tags. - - - - - Gets and sets if should unwrap comments inside . - - - For example, in HTML this would include "script" and "style" tags. - - - - - Gets and sets a set of tags which should not have their content parsed. - - - For example, in HTML this would include "script" and "style" tags. - - - - - Gets the total number of characters read from the input - - - - - Gets the total number of lines read from the input - - - - - Gets the current position within the input - - - - - Ctor - - - - - Renders Common Model Tokens into a semantic HTML representation of the data structure - - - - - Consumes a sequence of tokens and produces a token sequence of a different type - - input token type - output token type - - - - Transforms the token sequence from to - - - - - - - Consumes a sequence of tokens and produces a token sequence of a different type - - - - - Formats the token sequence to the output - - - - - - - StringBuilder-like implementation built like List<char> - - - - - Ctor - - - - - Ctor - - - - - - Resets the buffer to an empty state - - - - - Appends a single char to the buffer - - - - - - - Appends a string value to the buffer - - - - - - - Copies the buffer value into a - - - - - - Gets the number of characters in the buffer - - - - - - Ctor - - - - - - Ctor - - - - - - - Ctor - - - - - - Ctor - - - - - - - - Supports forward-only iteration over an input sequence of - - - - - Supports forward-only iteration over an input sequence of - - - - - Supports forward-only iteration over an input sequence - - - - - Returns but does not remove the item at the front of the sequence. - - - - - - Returns and removes the item at the front of the sequence. - - - - - - Begins chunking at the current index - - - - - Ends chunking at the current index and returns the buffered sequence chunk - - - - - - Determines if the sequence has completed. - - - - - Gets a value indicating if is currently capturing a sequence - - - - - Gets the number of items currently chunked - - - - - Factory method for generic streams - - - - - - - - Returns but does not remove the item at the front of the sequence. - - - - - - Returns and removes the item at the front of the sequence. - - - - - - Determines if the input sequence has reached the end - - - - - Ctor - - - - - - Returns but does not remove the item at the front of the sequence. - - - - - - Returns and removes the item at the front of the sequence. - - - - - - Deferred execution of iterator - - - - - Determines if the input sequence has reached the end - - - - - Supports a simple iteration over a list with ability to capture a subsequence - - - - - Ctor - - - - - - Begins chunking at the current index - - - - - Ends chunking at the current index and returns the buffered chunk - - - - - - Returns but does not remove the item at the front of the sequence. - - - - - - Returns and removes the item at the front of the sequence. - - - - - - Deferred execution of iterator - - - - - Gets the number of characters currently chunked - - - - - - Determines if the input sequence has reached the end - - - - - Supports a simple iteration over a text input tracking line/column/position - - - - - Ends chunking at the current index and returns the buffered text chunk - - - - - - Ends chunking at the current index and writes the buffered text chunk into the provided StringBuilder - - - - - - Gets the total number of characters read from the input - - - - - Gets the total number of lines read from the input - - - - - Gets the current position within the input - - - - - Supports a simple iteration over a string tracking line/column/position - - - - - Ctor - - - - - - Begins chunking at the current index - - - - - Ends chunking at the current index and returns the buffered text chunk - - - - - - Ends chunking at the current index and returns the buffered text chunk - - - - - - Ends chunking at the current index and returns the buffered text chunk - - - - - - Returns but does not remove the item at the front of the sequence. - - - - - - Returns and removes the item at the front of the sequence. - - - - - - Deferred execution of iterator - - - - - Calculates index, line, and column statistics - - - - - Releases all resources used - - - - - Gets the total number of characters read from the input - - - - - Gets the total number of lines read from the input - - - - - Gets the current position within the input - - - - - Gets the number of characters currently chunked - - - - - Gets a value indicating if the is currently chunking - - - - - Determines if the input sequence has reached the end - - - - - Supports a simple iteration over a TextReader tracking line/column/position - - - - - Ctor - - - - - - Begins chunking at the current index - - - - - Ends chunking at the current index and returns the buffered text chunk - - - - - - Ends chunking at the current index and returns the buffered text chunk - - - - - - Ends chunking at the current index and returns the buffered text chunk - - - - - Returns but does not remove the item at the front of the sequence. - - - - - - Returns and removes the item at the front of the sequence. - - - - - - Deferred execution of iterator - - - - - Calculates index, line, and column statistics - - - - - - - Releases all resources used by the underlying reader - - - - - Gets the total number of characters read from the input - - - - - Gets the total number of lines read from the input - - - - - Gets the current position within the input - - - - - Gets the number of characters currently chunked - - - - - Gets a value indicating if the is currently chunking - - - - - Determines if the input sequence has reached the end - - - - - Formal language of tokens and symbols for JSON - - - - - Designates a property or field to not be serialized. - - - - - Specifies the naming to use for a property or field when serializing - - - - - Ctor - - - - - Ctor - - - - - - Gets and sets the name to be used in serialization - - - - - JSON deserializer - - - - - Ctor - - - - - Ctor - - - - - - Ctor - - - - - - - Gets the supported content type of the serialized data - - - - - Generates a sequence of tokens from JSON text - - - - - Gets a token sequence from the scanner stream - - - - - - - Scans for the longest valid EcmaScript identifier - - identifier - - http://www.ecma-international.org/publications/files/ECMA-ST/Ecma-262.pdf - - IdentifierName = - IdentifierStart | IdentifierName IdentifierPart - IdentifierStart = - Letter | '$' | '_' - IdentifierPart = - IdentifierStart | Digit - - - - - Gets a token sequence from the TextReader - - - - - - - Gets a token sequence from the string - - - - - - - Gets the total number of characters read from the input - - - - - Gets the total number of lines read from the input - - - - - Gets the current position within the input - - - - - It is an error for the next token to be a value delim - - - - - Forbidden but differentiates between empty array/object and just written - - - - - It is an error for the next token to NOT be a value delim - - - - - Specifies the name of the property which specifies if member should be serialized. - - - These properties can be marked private/protected/internal and it will still be recognized - - - - - Ctor - - the name of the property which controls serialization for this member - - - - Ctor - - the name of the property which controls serialization for this member - - - - Gets and sets the name of the property which - specifies if member should be serialized - - - - - Transforms markup tokens into Common Model tokens using the (lossless) JsonML model - - - JsonML Grammer: http://jsonml.org - - - - - Consumes a sequence of tokens and produces a token sequence of a different type - - - - - Determines how whitespace should be handled - - - - - Transforms Common Model tokens into markup tokens using the (lossless) JsonML model - - - JsonML Grammer: http://jsonml.org - - - - - Consumes a sequence of tokens and produces a token sequence of a different type - - - - - Controls name resolution for IDataReader / IDataWriter using JsonNameAttribute / JsonIgnoreAttribute / JsonPropertySpecifiedAttribute - - - This is the default strategy from JsonFx v1.0 - - - - - Controls name resolution for IDataReader / IDataWriter using plain old CLR object (POCO) names - - - - - Controls name resolution for IDataReader / IDataWriter - - - Provides an extensibility point to control member naming and visibility at a very granular level. - - - - - Gets a value indicating if the property is to be serialized. - - - - - - - - Gets a value indicating if the field is to be serialized. - - - - - - - Determines if the property or field should not be serialized. - - - - - - - - - Gets the serialized name for the member. - - - - - - - Allows a strategy to perform a custom sort order to outputted members - - - - - A common usage is to ensure that Attributes sort first - - - - - Gets a value indicating if the property is to be serialized. - - - - - default implementation is must be read/write properties, or immutable - - - - Gets a value indicating if the field is to be serialized. - - - - default implementation is must be public, non-readonly field - - - - Gets a delegate which determines if the property or field should not be serialized based upon its value. - - - if has a value equivalent to the DefaultValueAttribute - - This is useful when default values need not be serialized. - - - - - Gets the serialized name for the member. - - - - - - - Allows a strategy to perform a custom sort order to outputted members - - - - - A common usage is to ensure that Attributes sort first - - - - - Gets a value indicating if the property is to be serialized. - - - - - default implementation is must be read/write properties, or immutable - - - - Gets a value indicating if the field is to be serialized. - - - - default implementation is must be public, non-readonly field - - - - Gets a delegate which determines if the property or field should not be serialized based upon its value. - - - if has a value equivalent to the DefaultValueAttribute - - This is useful for excluding serialization of default values. - - - - - Gets the serialized name for the member. - - - - - - - Determines whitespace handling - - - - - Removes insignificant whitespace - - - - - Keep all whitespace - - - - - Condenses all whitespace to single spaces - - - - - Designates a type as being able to format itself to raw JSON text. - - - - - Ctor - - - - - Ctor - - - - - Gets and sets the starting delimiter - - - - - Gets and sets the ending delimiter - - - - - Gets and sets the context - - - - - Formal language of tokens and symbols for markup - - - - - Any of a number of unparsed tags which typically contain specialized processing instructions - - - The name of the token is the beginning and ending delimiters as a format string (not including the '<' or '>') - Includes the following types: - - "<!--", "-->" XML/HTML/SGML comment - "<!", ">" XML/SGML declaration (e.g. DOCTYPE or server-side includes) - - "<?=", "?>" PHP expression - "<?", "?>" PHP code block /XML processing instruction (e.g. the XML declaration) - - "<%--", "--%>" ASP/PSP/JSP-style code comment - "<%@", "%>" ASP/PSP/JSP directive - "<%=", "%>" ASP/PSP/JSP/JBST expression - "<%!", "%>" JSP/JBST declaration - "<%#", "%>" ASP.NET/JBST databind expression - "<%$", "%>" ASP.NET/JBST extension - "<%", "%>" ASP code block / JSP scriptlet / PSP code block - - - - - tokens - - - - - - - - - - - Maintains scope chain for namespace prefix mappings - - - - - Adds a new scope to the chain - - - - - - Gets the last scope off the chain - - - - - Gets and removes the last scope off the chain - - - - - - Finds the namespace URI for a given prefix within the curren scope chain - - - - - - - Finds the prefix for a given namespace URI within the curren scope chain - - - - - - - Checks if the matching begin tag exists on the stack - - - - - - Resets the internal state of the scope chain. - - - - - Looks up the prefix for the given namespace - - - - null if namespace is empty and no default prefix found - - - - Represents a scope boundary within a prefix scope chain - - - - - Returns if this scope boundary contains a mapping for a particular prefix - - - if this scope boundary contains a mapping for a particular prefix - - - - Returns if this scope boundary contains a mapping for a particular namespace - - - if this scope boundary contains a mapping for a particular namespace - - - - Returns if this scope boundary contains a mapping for a particular prefix - setting the namespace URI if one was found. - - - the resolved namespace URI - if this scope boundary contains a mapping for a particular prefix - - - - Returns if this scope boundary contains a mapping for a particular prefix - setting the prefix if one was found. - - - the resolved prefix - if this scope boundary contains a mapping for a particular prefix - - - - Gets and sets the tagname associated with this scope boundary - - - - - Gets and sets mappings between prefix and namespace URIs - - - - - - - Provides lookup capabilities for providers - - - - - Parses HTTP headers for Media-Types - - HTTP Accept header - HTTP Content-Type header - sequence of Media-Types - - http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html - - - - - - - - - - - - Controls name resolution for IDataReader / IDataWriter using convention-based name mapping - - - Converts standard .NET PascalCase naming convention into the specified naming convention. - http://msdn.microsoft.com/en-us/library/x2dbyw72.aspx - http://msdn.microsoft.com/en-us/library/141e06ef.aspx - http://msdn.microsoft.com/en-us/library/xzf533w0.aspx - - - - - Ctor - - - - - - Ctor - - - - - - - Gets the serialized name for the member. - - - - - - - Splits a multi-word name assuming standard .NET PascalCase conventions. - - - - - http://msdn.microsoft.com/en-us/library/x2dbyw72.aspx - http://msdn.microsoft.com/en-us/library/141e06ef.aspx - http://msdn.microsoft.com/en-us/library/xzf533w0.aspx - - - - - - Ctor - - - - - - - - Ctor - - - - - - - Represents a property or document name, and a corresponding namespace URI (or empty string). - Analogous to XML "expanded name": http://www.w3.org/TR/REC-xml-names/#dt-expname - - - Namespaces must be a URI, but local-name can be any non-null string. - It is up to formatters to determine how to properly represent names which are invalid for the format. - - - - - local-name - - - - - alias for the namespace - - - - - namespace - - - - - Determines if name should be treated like an attribute - - - - - Ctor - - a CLR Type used to generate the local-name - - This constructor implicitly delcares the namespace to be empty. - - - - - Ctor - - any string is a valid local-name - - This constructor implicitly delcares the namespace to be empty. - - - - - Ctor - - any string is a valid local-name - an absolute URI string, or null - thrown if is null - thrown if is an invalid absolute URI - - The namespace field follows XML recommendation of absolute URIs. - Relative URIs are officially deprecated for namespaces: http://www.w3.org/2000/09/xppa - - - - - Ctor - - any string is a valid local-name - an absolute URI string, or null - determines if name should be an attribute name - thrown if is null - thrown if is an invalid absolute URI - - The namespace field follows XML recommendation of absolute URIs. - Relative URIs are officially deprecated for namespaces: http://www.w3.org/2000/09/xppa - - - - - Gets the local-name for a Type - - - - - - - Gets the prefixed name or simply local-name if is not a fully qualified name - - true to generate a prefix if the prefix is empty but not the namespace - - - - - Gets the namespaced name or simply local-name if is not a fully qualified name - - - - - - Compares two values and returns an indication of their relative sort order. - - - - - Performs ordering according to XML Canonicalization document order http://www.w3.org/TR/xml-c14n#DocumentOrder - "An element's namespace nodes are sorted lexicographically by local name (the default namespace node, if one exists, has no local name and is therefore lexicographically least)." - "An element's attribute nodes are sorted lexicographically with namespace URI as the primary key and local name as the secondary key (an empty namespace URI is lexicographically least)." - - - - - Determines if this is an empty DataName - - - - - Indicates a graph cycle was detected during serialization - - - - - Indicates an error occurred during serialization - - - - - Ctor - - - - - Ctor - - - - - - Ctor - - - - - - - Ctor - - - - - - - Ctor - - - - - Ctor - - - - - - Ctor - - - - - - - Ctor - - - - - - - Gets the type of cycle which caused the error - - - - - Graph cycles are detected with a reference tracking, any repeated reference results in a null value - - - - - Graph cycles are detected with a reference tracking, any repeated reference results in an error - - - - - Graph cycles are detected with a maximum depth count, exceeding depth results in an error - - - - - Detects graph cycles by tracking graph depth - - - - - Defines an interface for detecting graph cycles - - - - - Begins tracking of the reference - - - true if graph cycle was detected - - - - Ends tracking of the reference - - - true if tracking was successfully completed - - - - Ctor - - - - - - Increments the depth - - - true if MaxDepth has not been exceeded - - - - Increments the depth - - - - - - Detects cycles by detecting duplicates in the a set of object references - - - - - Adds a reference to the set - - - true if object already existed within set - - - - Removes a reference from the set - - - - - - Controls deserialization settings for IDataReader - - - - - Ctor - - - - - Ctor - - - - - Ctor - - - - - Ctor - - - - - - Ctor - - - - - - Ctor - - - - - - Ctor - - - - - - Gets and sets if ValueTypes can accept values of null - - - If this is true and a ValueType T is assigned the value of null, - it will receive the value of default(T). - Setting this to false, throws an exception if null is - specified for a ValueType member. - - - - - Gets and sets if should verify that stream is empty after deserialzing each object - - - Setting to true allows reading a JSON stream inside other structures (e.g. JavaScript) - - - - - Gets manager of name resolution for IDataReader - - - - - Gets the custom filters - - - - - Controls the serialization settings for IDataWriter - - - - - Ctor - - - - - Ctor - - - - - Ctor - - - - - Ctor - - - - - - Ctor - - - - - - Ctor - - - - - - Ctor - - - - - - Gets and sets what to do when graph cycles (repeated references) are encounted - - - - - Gets and sets the maximum nesting depth - - - Depth is a fast and easy safegaurd against detecting graph cycles but may produce false positives - - - - - Gets and sets if output will be formatted for human reading. - - - - - Gets and sets the string to use for indentation - - - - - Gets and sets the line terminator string - - - - - Gets manager of name resolution for IDataReader - - - - - Gets the custom filters - - - - - Indicates an error occurred during deserialization - - - - - Ctor - - - - - - - Ctor - - - - - - - - - Ctor - - - - - - - - Ctor - - - - - - - - Ctor - - - - - - - Helper method which converts the index into Line and Column numbers - - - - - - - - Gets the character column in the stream where the error occurred - - - - - Gets the character position in the stream where the error occurred - - - - - Gets the character line in the stream where the error occurred - - - - - Indicates an error occurred during token consumption - - - - - - Ctor - - - - - Ctor - - - - - - Ctor - - - - - - - Ctor - - - - - - - Gets the token in the sequence where the error occurred - - - - - Indicates an error occurred during type coercion - - - - - Ctor - - - - - Ctor - - - - - - Ctor - - - - - - - Ctor - - - - - - - Provides lookup capabilities for finding matching IDataReader - - - - - Provides lookup capabilities for finding matching IDataReader - - - - - Ctor - - inject with all possible readers - - - - Finds an IDataReader by content-type header - - - - - - - Provides lookup capabilities for finding an IDataWriter - - - - - Provides lookup capabilities for finding an IDataWriter - - - - - Ctor - - inject with all possible writers - - - - Controls name resolution for IDataReader / IDataWriter by using pluggable delegate callbacks - - - - - Gets and sets the implementation for ignoring properties - - - - - Gets and sets the implementation for ignoring fields - - - - - Gets and sets the implementation for ignoring properties by value - - - - - Gets and sets the implementation for naming members - - - - - Gets and sets the implementation for sorting members - - - - - Controls name resolution for IDataReader / IDataWriter by combining an ordered sequence of any other strategies - - - Each strategy is invoked in order, the first to respond wins. - - - - - Ctor - - ordered sequence of strategies - - - - Ctor - - ordered sequence of strategies - - - - Gets a value indicating if the property is to be serialized. - - - - true if any strategy specifies should be ignored - - - - Gets a value indicating if the field is to be serialized. - - - true if any strategy specifies should be ignored - - - - Gets a delegate which determines if the property or field should not be serialized based upon its value. - - - true if any strategy specifies this should be ignored - - - - Gets the serialized name for the member. - - - - custom name if any strategy specifies one, otherwise null - - - - Allows a strategy to perform a custom sort order to outputted members - - - - - A common usage is to ensure that Attributes sort first - - - - - Controls name resolution for IDataReader / IDataWriter using DataContract attributes - - - http://msdn.microsoft.com/en-us/library/kd1dc9w5.aspx - - - - - CCtor - - - - - Gets a value indicating if the property is to be serialized. - - - - - - - - Gets a value indicating if the field is to be serialized. - - - - - - - Gets a delegate which determines if the property or field should not be serialized based upon its value. - - - - - - - Gets the serialized name for the member. - - - - - - - Gets a delegate which determines if the property or field should not be serialized based upon its value. - - - - - - - The original member info - - - - - The original member name - - - - - The member data name - - - - - The member type - - - - - The getter method - - - - - The setter method - - - - - The logic for determining if a value is ignored - - - - - Determines if map name is alternate (i.e. only used for deserialization) - - - - - Ctor - - MemberMap to clone - alternate name - - - - Ctor - - - - - - - - Ctor - - - - - - - - Ctor - - - - - Gets a sequence of the available factory arguments - - - - - Gets the factory associated with the given argument type - - - - - - - Cache of name resolution mappings for IDataReader / IDataWriter - - - - - Ctor - - - - - - Gets the serialized name of the class - - - - - - - Removes any cached member mappings. - - - - - Builds a mapping of member name to field/property - - - - - - Represents a single immutable token in an input sequence - - - - - The type of the token - - - - - The name of the token - - - - - The value of the token - - - - - Ctor - - - - - - Ctor - - - - - - - Ctor - - - - - - - Ctor - - - - - - - Returns a string that represents the current token. - - - - - - Gets the value of the token as a string - - - - - - Converts a value to a string giving opportunity for IConvertible, IFormattable - - - - - - - Converts token to a token of a different type - - - token with same values and different type - - - - Type Coercion Utility - - - - - Ctor - - - - - - - Ctor - - - - - - - Instantiates a new instance of objectType. - - - objectType instance - - - - Instantiates a new instance of objectType. - - - objectType instance - - - - Helper method to set value of a member. - - - - - - - - - - Coerces the object value to Type - - - - - - - - Coerces the object value to Type of - - - - - - - - Populates the properties of an object with the dictionary values. - - - - - - - - Populates the properties of an object with the dictionary values. - - - - - - - - Coerces an sequence of items into an array of Type elementType - - - - - - - - Finds a suitable concrete class for common collection interface types - - - - - - - Allows specific IDictionary<string, TVal> to deserialize as TVal - - IDictionary<string, TVal> Type - TVal Type - - - - Returns a common type which can hold previous values and the new value - - - - - - - - Determines if type can be assigned a null value. - - - - - - - Gets the attribute T for the given value. - - - Attribute Type - true if defined - - - - Gets the attribute of Type for the given value. - - - true if defined - - - - Gets the attribute T for the given value. - - - Attribute Type - requested attribute or not if not defined - - - - Gets the attribute of Type for the given value. - - - requested attribute or not if not defined - - - - Character Utility - - - These are either simpler definitions of character classes (e.g. letter is [a-zA-Z]), - or they implement platform-agnositic checks (read: "Silverlight workarounds"). - - - - - Checks if string is null, empty or entirely made up of whitespace - - - - - Essentially the same as String.IsNullOrWhiteSpace from .NET 4.0 - with a simplfied view of whitespace. - - - - - Checks if character is line ending, tab or space - - - - - - - - - - - - - - Checks if character matches [A-Za-z] - - - - - - - Checks if character matches [0-9] - - - - - - - Checks if character matches [0-9A-Fa-f] - - - - - - - Gets a 4-bit number as a hex digit - - 0-15 - - - - - Formats a number as a hex digit - - - - - - - Converts the value of a UTF-16 encoded character or surrogate pair at a specified - position in a string into a Unicode code point. - - - - - - - - Converts the specified Unicode code point into a UTF-16 encoded string. - - - - - - - XML serializer - - - XML serializer - - - - - Ctor - - - - - Ctor - - - - - - Ctor - - - - - - - Gets a tokenizer for XML - - - - - - Gets the supported content type for the serialized data - - - - - Transforms markup tokens into Common Model tokens using an XML-data model - - - - - Ctor - - - - - - Consumes a sequence of tokens and produces a token sequence of a different type - - - - - Formats the token sequence to the output - - - - - - - - Ctor - - - - - Ctor - - - - - - Gets a token sequence from the string - - - - - - - Gets a token sequence from the TextReader - - - - - - - Gets a token sequence from the XmlReader - - - - - - - Gets the total number of characters read from the input - - - - - Gets the total number of lines read from the input - - - - - Gets the current position within the input - - - - - XML serializer - - - - - Ctor - - - - - Ctor - - - - - - Ctor - - - - - - - Gets the formatter for XML - - - - - - - Gets the supported content type for the serialized data - - - - - Gets the supported file extension for the serialized data - - - - - Transforms Common Model tokens into markup tokens using an XML-data model - - - - - Ctor - - - - - - Consumes a sequence of tokens and produces a token sequence of a different type - - - - - Formats the token sequence to the output - - - - - - - Outputs XML text from an input stream of tokens - - - - - Ctor - - - - - - Formats the token sequence as a string - - - - - - Formats the token sequence to the writer - - - - - - - Formats the token sequence to the writer - - - - - - - Wraps an XmlWriter as a TextWriter - - - - - Ctor - - - - - - Gets the underlying XmlWriter - - - - - Controls name resolution for IDataReader / IDataWriter using attributes and conventions similar to XmlSerializer semantics - - - http://msdn.microsoft.com/en-us/library/83y7df3e.aspx - - - - - Gets a value indicating if the property is to be serialized. - - - - - default implementation is must be read/write properties, or immutable - - - - Gets a value indicating if the field is to be serialized. - - - - default implementation is must be public, non-readonly field - - - - Gets a delegate which determines if the property or field should not be serialized based upon its value. - - - if has a value equivalent to the DefaultValueAttribute or has a property named XXXSpecified which determines visibility - - This is useful when default values need not be serialized. - Under these situations XmlSerializer ignores properties based upon value: - - DefaultValue: http://msdn.microsoft.com/en-us/library/system.componentmodel.defaultvalueattribute.aspx - - Specified Properies: http://msdn.microsoft.com/en-us/library/bb402199.aspx - - ShouldSerialize Methods: http://msdn.microsoft.com/en-us/library/53b8022e.aspx - - - - - Gets the serialized name for the member. - - - - - - - Sorts members to ensure proper document order where attributes precede all child elements. - - - - - Performs the first stage of XML Canonicalization document order http://www.w3.org/TR/xml-c14n#DocumentOrder - "An element's namespace and attribute nodes have a document order position greater than the element but less than any child node of the element." - - - - - Ctor - - - - - - Ctor - - - - - - Generates delegates for getting/setting properties and field and invoking constructors - - - - - Creates a field getter delegate for the specified property or field - - PropertyInfo or FieldInfo - GetterDelegate for property or field, null otherwise - - Note: use with caution this method will expose private and protected constructors without safety checks. - - - - - Creates a field setter delegate for the specified property or field - - PropertyInfo or FieldInfo - SetterDelegate for property or field, null otherwise - - - - Creates a property getter delegate for the specified property - - - GetterDelegate if property CanRead, otherwise null - - Note: use with caution this method will expose private and protected constructors without safety checks. - - - - - Creates a property setter delegate for the specified property - - - GetterDelegate if property CanWrite, otherwise null - - Note: use with caution this method will expose private and protected constructors without safety checks. - - - - - Creates a field getter delegate for the specified field - - - GetterDelegate which returns field unless is enum in which will return enum value - - Note: use with caution this method will expose private and protected constructors without safety checks. - - - - - Creates a field setter delegate for the specified field - - - SetterDelegate unless field IsInitOnly then returns null - - Note: use with caution this method will expose private and protected constructors without safety checks. - - - - - Creates a proxy delegate accepting a target instance and corresponding arguments - - method to proxy - ProxyDelegate or null if cannot be invoked - - Note: use with caution this method will expose private and protected methods without safety checks. - - - - - Creates a default constructor delegate - - type to be created - FactoryDelegate or null if default constructor not found - - Note: use with caution this method will expose private and protected constructors without safety checks. - - - - - Creates a constructor delegate accepting specified arguments - - type to be created - constructor arguments type list - FactoryDelegate or null if constructor not found - - Note: use with caution this method will expose private and protected constructors without safety checks. - - - - - Creates a constructor delegate accepting specified arguments - - type to be created - constructor arguments type list - FactoryDelegate or null if constructor not found - - Note: use with caution this method will expose private and protected constructors without safety checks. - - - - - Represents a query across a data source - - - - - - Ctor - - - - - - Ctor - - - - - - - Returns a string representation of the query - - - - - - Gets the query expression - - - - - Gets the query return type - - - - - Gets the underlying provider - - - - - Ctor - - - - - - - Ctor - - - - - - - Extends the query to all descendants - - - - - Extends the query to all descendants - - - - - Gets all items of the array - - - - - Gets the items of the array with indexes satisfying the - - - - - - Filters to only objects with a particular property name defined - - - - - - Filters to a lookup of only the properties which match the predicate - - - - - - Filters to only arrays - - - - - - Filters to only objects - - - - - - Filters to only simple values - - - - - - Boiler-plate implementation - - - - - - Ctor - - - - - Ctor - - - - - - - - - - - Searches for subsequences found by the expression and rehydrates into objects with the analyzer - - - - - Ctor - - - - - Ctor - - - - - - - Ctor - - - - - - diff --git a/packages/JsonFx.2.0.1209.2802/lib/sl35/JsonFx.dll b/packages/JsonFx.2.0.1209.2802/lib/sl35/JsonFx.dll deleted file mode 100644 index 756e3180..00000000 Binary files a/packages/JsonFx.2.0.1209.2802/lib/sl35/JsonFx.dll and /dev/null differ diff --git a/packages/JsonFx.2.0.1209.2802/lib/sl35/JsonFx.xml b/packages/JsonFx.2.0.1209.2802/lib/sl35/JsonFx.xml deleted file mode 100644 index e0bf95e5..00000000 --- a/packages/JsonFx.2.0.1209.2802/lib/sl35/JsonFx.xml +++ /dev/null @@ -1,4830 +0,0 @@ - - - - JsonFx - - - - - JsonFx metadata - - - - - Ctor - - - - - - Outputs BSON bytes from an input stream of tokens - - - - - Outputs text from an input stream of JSON tokens - - token type - - - - Formats the token sequence to the output writer - - - - - - - Formats the token sequence as a string - - - - - - Formats the token sequence as a string - - - - - - Formats the token sequence to the output writer - - - - - - - Emits a document (or array) to the binary stream - - - - number of bytes written - - - - Emits a single element to the binary stream - - - - - number of bytes written - - - - Emits a string value - - - - number of bytes written - - - - Emits a binary value - - - - number of bytes written - - - - Emits a code_w_s value - - - - number of bytes written - - - - Generates a sequence of tokens from BSON bytes - - - - - Generates a sequence of tokens from a sequence of characters - - token type - - - - Tokenizes the input sequence into tokens - - - - - - - Tokenizes the input sequence into tokens - - - - - - - Gets the current position of the underlying input character sequence - - - Tokenizers not tracking index should return -1. - - - - - Gets a token sequence from the TextReader - - - - - - - Gets a token sequence from the string - - - - - - - Gets a token sequence from the reader - - - - - - - Gets the current position of the underlying stream - - - - - BSON MD5 Datatype - - - - - Ctor - - - - - - Ctor - - - - - - Ctor - - - - - - Converts MD5 to Guid - - - - - - - - Converts MD5 to Guid - - - - - - - Gets the hashcode of the underlying Guid - - - - - - BSON JavaScript Code With Scope Datatype - - - - - BSON JavaScript Code Datatype - - - - - Ctor - - - - - - Converts JavaScriptCode to string - - - - - - - - Converts JavaScriptCode to string - - - - - - - Gets the hashcode of the underlying string - - - - - - BSON Symbol Datatype - - - - - Ctor - - - - - - Converts Symbol to string - - - - - - - - Converts Symbol to string - - - - - - - Gets the hashcode of the underlying string - - - - - - BSON DBPointer Datatype (Deprecated) - - - - - Immutable BSON ObjectID Datatype - - - http://www.mongodb.org/display/DOCS/Object+IDs#ObjectIDs-TheBSONObjectIdDatatype - - - - - Ctor - - 12-byte object ID - - - - Ctor - - 4-byte seconds since Unit epoch - 3-byte machine ID - 2-byte process ID - 3-byte counter - - - - Converts an ObjectID to a hex string - - - - - - - Converts a hex string to an ObjectID - - - - - - - Converts an ObjectID to a byte array - - - - - - - Converts a byte array to an ObjectID - - - - - - - Gets the hashcode of the underlying string - - - - - - Gets the time associated with this ObjectID - - - - - Gets the machine id associated with this ObjectID - - - - - Gets the process id associated with this ObjectID - - - - - Gets the counter associated with this ObjectID - - - - - Generic binary holder - - - http://api.mongodb.org/java/2.0/org/bson/types/Binary.html - - - - - Ctor - - binary type code - byte date - - - - Converts an ObjectID to a hex string - - - - - - - Converts a hex string to an ObjectID - - - - - - - Converts an ObjectID to a byte array - - - - - - - Converts a byte array to an ObjectID - - - - - - - Gets the hashcode of the underlying string - - - - - - Gets a 4-bit number as a hex digit - - 0-15 - - - - - Gets the binary type code - - - - - Gets the binary type code - - - - - Gets the byte at the given index - - - - - Gets the length of the binary data - - - - - Designates a type as being able to format itself to raw BSON bytes - - - - - Designates a type as being able to format itself to raw bytes - - - - - Writes custom format to the output using either tokens or bytes - - - - total number of bytes written - - - - Determines the corresponding BSON element type - - - - - - Generalized delegate for invoking a constructor - - - - - - - Generalized delegate for invoking a method - - the instance object - the method parameters - - - - - Generalized delegate for getting a field or property value - - - - - - - Generalized delegate for setting a field or property value - - - - - - - Consumes a sequence of tokens to produce an object graph optionally coerced to a given type - - - - - Consumes a sequence of tokens to produce a sequence of objects, optionally coerced to a given type - - token type - - - - Parses the token sequence - - - - - - - Parses the token sequence, optionally coercing the result to Type targetType - - - optional type for coercion (null if not specified) - - - - - Parses the token sequence, coercing the result to Type TResult - - optional type for coercion (null if not specified) - - - - - - Parses the token stream coercing the result to TResult (type inferred from ) - - - - an example value used solely for Type inference - - - - - Ctor - - - - - - Parses the token stream coercing the result targetType - - - - - - - Parses the token stream coercing the result to targetType - - - - - - - - Parses the token stream coercing the result to TResult - - the result target type - - - - - - Parses the token stream coercing the result to TResult (inferred from ) - - - - an example value used solely for Type inference - - - - - Common Model Language grammar helper - - - Simplifies and guides syntax, and provides a set of reusable tokens to reduce redundant token instantiations - - - - - Marks the beginning of an array - - the local name of the array - ArrayBegin Token - - - - Marks the beginning of an array - - the local name of the array - the namespace of the document - ArrayBegin Token - - - - Marks the beginning of an array - - the name of the array - ArrayBegin Token - - - - Marks the beginning of an object - - the local name of the object - ObjectBegin Token - - - - Marks the beginning of an object - - the name of the object - ObjectBegin Token - - - - Marks the beginning of an object property - - the local name of the property - PropertyKey Token - - - - Marks the beginning of an object property - - the local name of the property - PropertyKey Token - - - - Marks the beginning of an object property - - the name of the property - PropertyKey Token - - - - A simple scalar value (typically serialized as a single primitive value) - - - Value Token - - - - Provides base implementation for standard deserializers - - - Provides base implementation for standard deserializers - - - This partial class adds LINQ capabilities to the reader. - - - - - Provides base implementation for standard deserializers - - - - - A common interface for data deserializers - - - - - Deserializes a single object from the given input - - the input reader - a value used to trigger Type inference for (e.g. for deserializing anonymous objects) - the expected type of the serialized data - - - - Deserializes a single object from the given input - - the input reader - the expected type of the serialized data - - - - Serializes the data to the given output - - the input reader - - - - Deserializes a single object from the given input - - the input reader - the expected type of the serialized data - - - - Deserializes a single object from the given input - - the input text - a value used to trigger Type inference for (e.g. for deserializing anonymous objects) - the expected type of the serialized data - - - - Deserializes a single object from the given input - - the input text - the expected type of the serialized data - - - - Deserializes a single object from the given input - - the input text - - - - Deserializes a single object from the given input - - the input text - the expected type of the serialized data - - - - Deserializes a potentially endless sequence of objects from a stream source - - - - - character stream => token stream => object stream - - - - - Gets the supported content type of the serialized data - - - - - Gets the settings used for deserialization - - - - - Ctor - - - - - - Deserializes the data from the given input - - the input reader - a value used to trigger Type inference for (e.g. for deserializing anonymous objects) - the expected type of the serialized data - - - - Deserializes the data from the given input - - the input reader - the expected type of the serialized data - - - - Deserializes the data from the given input - - the input reader - - - - Deserializes the data from the given input - - the input reader - the expected type of the serialized data - - - - Deserializes the data from the given input - - the input text - a value used to trigger Type inference for (e.g. for deserializing anonymous objects) - the expected type of the serialized data - - - - Deserializes the data from the given input - - the input text - the expected type of the serialized data - - - - Deserializes the data from the given input - - the input text - - - - Deserializes the data from the given input - - the input text - the expected type of the serialized data - - - - Deserializes a potentially endless sequence of objects from a stream source - - a streamed source of objects - a sequence of objects - - character stream => token stream => object stream - - - - - Gets the supported content type of the serialized data - - - - - Gets the settings used for deserialization - - - - - A common interface for querying data readers - - - - - Begins a query of the given input - - the input reader - a value used to trigger Type inference for (e.g. for deserializing anonymous objects) - the expected type of the serialized data - - - - Begins a query of the given input - - the input reader - the expected type of the serialized data - - - - Serializes the data to the given output - - the input reader - - - - Begins a query of the given input - - the input reader - the expected type of the serialized data - - - - Begins a query of the given input - - the input text - a value used to trigger Type inference for (e.g. for deserializing anonymous objects) - the expected type of the serialized data - - - - Begins a query of the given input - - the input text - the expected type of the serialized data - - - - Begins a query of the given input - - the input text - - - - Begins a query of the given input - - the input text - the expected type of the serialized data - - - - Ctor - - - - - - Begins a query of the given input - - the input reader - a value used to trigger Type inference for (e.g. for deserializing anonymous objects) - the expected type of the serialized data - - - - Begins a query of the given input - - the input reader - the expected type of the serialized data - - - - Begins a query of the given input - - the input text - a value used to trigger Type inference for (e.g. for deserializing anonymous objects) - the expected type of the serialized data - - - - Begins a query of the given input - - the input text - the expected type of the serialized data - - - - Begins a query of the given input - - the input reader - a value used to trigger Type inference for (e.g. for deserializing anonymous objects) - the expected type of the serialized data - - - - Begins a query of the given input - - the input reader - the expected type of the serialized data - - - - Serializes the data to the given output - - the input reader - - - - Begins a query of the given input - - the input reader - the expected type of the serialized data - - - - Begins a query of the given input - - the input text - a value used to trigger Type inference for (e.g. for deserializing anonymous objects) - the expected type of the serialized data - - - - Begins a query of the given input - - the input text - the expected type of the serialized data - - - - Begins a query of the given input - - the input text - - - - Begins a query of the given input - - the input text - the expected type of the serialized data - - - - Extension methods for selecting subsequences of sequences of tokens - - - - - Determines if the sequence represents a primitive - - - - - - - Determines if the sequence represents an object - - - - - - - Determines if the root object has any properties which satisfies the name - - - - true if any properties match the predicate - - - - Gets all properties of the root object - - - - all properties for the object - - - - Gets all properties of the root object - - - - all properties for the object - - - - Gets the properties of the root object which satisfies the - - - - matching properties for the root object - - - - Gets the properties of the root object which satisfies the - - - - matching properties for the root object - - - - Determines if the sequence represents an array - - - - - - - Gets all the items of the array - - - all items of the array - - - - Gets the items of the root array with indexes satisfying the - - - - items of the root array which statisfy the predicate - - - - ArrayItems iterator - - - - - - - - Gets all descendant values below the current root - - - - - - - Descendants iterator - - - - - - - Gets all descendant values below the current root, as well as the current root - - - - - - - DescendantsAndSelf iterator - - - - - - - Covers the sitation where a stream of sequences may be back to back - - - - - - - Splices out the sequence for the next complete value (object, array, primitive) - - - - - - - Splices out the sequence for the next complete value (object, array, primitive) - - - - - - - Skips over the next complete value (object, array, primitive) - - - - - - - Common Model Language tokens - - - - - - - - - - - - Generates a sequence of tokens from an object graph - - - - - Generates a sequence of tokens from an object graph - - token type - - - - Generates a sequence of tokens representing the value - - - - - - - Ctor - - - - - - Generates a sequence of tokens representing the value - - - - - - - Allows a mechanism for manipulating JSON serialization - - Defines the type this filter reads/writes - - - - Partially implements an IDataFilter - - - - - Allows a mechanism for manipulating serialization - - Defines the type of token stream this filter understands - Defines the type this filter reads/writes - - - - Allows a mechanism for manipulating serialization - - Defines the type of token stream this filter understands - - - - Allows a class to act as a factory for a type via input Token<T> sequence - - input tokens - - true if value was generated - - - - Allows a class to serialize a type as Token<T> sequence - - - - true if value was consumed - - - - Allows a class to act as a factory for a type via input Token<T> sequence - - input tokens - - true if value was generated - - - - Allows a class to serialize a type as Token<T> sequence - - - - true if value was consumed - - - - Defines a filter for JSON-style serialization of DateTime into ISO-8601 string - - - This is the format used by EcmaScript 5th edition Date.prototype.toJSON(...): - http://www.ecma-international.org/publications/files/ECMA-ST/ECMA-262.pdf - http://www.w3.org/TR/NOTE-datetime - http://en.wikipedia.org/wiki/ISO_8601 - - NOTE: This format limits expressing DateTime as either UTC or Unspecified. Local (i.e. Server Local) is converted to UTC. - - - - - Converts a ISO-8601 string to the corresponding DateTime representation - - ISO-8601 conformant date - UTC or Unspecified DateTime - true if parsing was successful - - - - Converts a DateTime to the corresponding ISO-8601 string representation - - - ISO-8601 conformant date - - - - Determines the precision of fractional seconds. - Defaults to EcmaScript precision of milliseconds. - - - - - Defines the precision of fractional seconds in ISO-8601 dates - - - - - Defines a filter for JSON-style serialization of DateTime into an ASP.NET Ajax Date string. - - - This is the format used by Microsoft ASP.NET Ajax: - http://weblogs.asp.net/bleroy/archive/2008/01/18/dates-and-json.aspx - - NOTE: This format is limited to expressing DateTime at the millisecond level as UTC only. - The WCF extension of adding a timezone is ignored as this returns UTC dates only. - - - - - Converts an ASP.NET Ajax date string to the corresponding DateTime representation - - ASP.NET Ajax date string - - true if parsing was successful - - - - Converts a DateTime to the corresponding ASP.NET Ajax date string representation - - - ASP.NET Ajax date string - - - - Provides base implementation for standard serializers - - - - - Provides base implementation of standard serializers - - - - - A common interface for data serializers - - - - - Serializes the data to the given output - - the output writer - the data to be serialized - - - - Serializes the data to the given output - - the data to be serialized - the serialized data - - - - Gets the content encoding for the serialized data - - - - - Gets the supported content types for the serialized data - - - - - Gets the supported file extensions for the serialized data - - - - - Gets the settings used for serialization - - - - - Ctor - - - - - - Serializes the data to the given output - - the data to be serialized - the output writer - - - - Serializes the data to the given output - - the data to be serialized - the serialized data - - - - Gets the walker for this DataWriter - - - - - - - Gets the formatter for this DataWriter - - - - - - - Gets the content encoding for the serialized data - - - - - Gets the supported content types for the serialized data - - - - - Gets the supported file extensions for the serialized data - - - - - Gets the settings used for serialization - - - - - Ctor - - - - - - Gets a walker for JSON - - - - - - - Gets the content encoding for the serialized data - - - - - Represents an ECMAScript identifier for serialization. - - - - - Designates a type as being able to format itself to raw text - - - - - Writes custom format to the output using either tokens or text - - - - - - - Ctor - - - - - Ctor - - - - - - Verifies is a valid EcmaScript identifier - - the identifier - identifier - - - - Verifies is a valid EcmaScript identifier - - the identifier - identifier - - - - Verifies is a valid EcmaScript variable expression - - the identifier - identifier - - http://www.ecma-international.org/publications/files/ECMA-ST/Ecma-262.pdf - - IdentifierName = - IdentifierStart | IdentifierName IdentifierPart - IdentifierStart = - Letter | '$' | '_' - IdentifierPart = - IdentifierStart | Digit - - - - - Trivial conversion method. Essentially performs a cast. - - - - - Supports conversion via System.Web.UI.PropertyConverter.ObjectFromString(Type, MemberInfo, string) - - - - - Implicit type conversion allows to be used directly as a String - - valid ECMAScript identifier - - - - - Implicit type conversion allows to be used directly with Strings - - valid ECMAScript identifier - - - - - Returns the identifier - - - - - - Compares identifiers - - - - - - - Returns the hash code for the identifier - - - - - - Gets the ECMAScript identifier represented by this instance - - - - - Formats data as full ECMAScript objects, rather than the limited set of JSON objects. - - - - - Outputs JSON text from an input stream of tokens - - - - - Outputs text from an input stream of JSON tokens - - token type - - - - Formats the token sequence to the output writer - - - - - - - Formats the token sequence as a string - - - - - - JSON serializer - - - - - Ctor - - - - - Ctor - - - - - - Ctor - - - - - - - Gets the formatter for JSON - - - - - - - Gets the supported content type for the serialized data - - - - - Gets the supported file extension for the serialized data - - - - - Outputs JSON text from an input stream of tokens - - - - - Ctor - - - - - - Formats the token sequence as a string - - - - - - Formats the token sequence to the writer - - - - - - - Converts an object to its string representation - - - - - - - Converts an enum to its string representation - - - - - - - Splits a bitwise-OR'd set of enums into a list. - - the enum type - the combined value - list of flag enums - - from PseudoCode.EnumHelper - - - - - Determines if a numeric value cannot be represented as IEEE-754. - - - - - http://stackoverflow.com/questions/1601646 - - - - - Gets and sets if '<' should be encoded in strings - Useful for when emitting directly into page - - - - - Ctor - - - - Defaults to encoding < chars for improved embedding within script blocks - - - - - Emits a block of script ensuring that a namespace is declared - - the output writer - the namespace to ensure - list of namespaces already emitted - determines if should emit pretty-printed - if was a namespaced identifier - - - - Outputs a .NET Regex as an ECMAScript RegExp literal. - Defaults to global matching off. - - - - - http://www.ecma-international.org/publications/files/ECMA-ST/Ecma-262.pdf - - - - - Outputs a .NET Regex as an ECMAScript RegExp literal. - - - - - - http://www.ecma-international.org/publications/files/ECMA-ST/Ecma-262.pdf - - - - - Defines a strategy for filtering HTML tags/attributes/styles/literals - - - - - Filters tags, optionally allowing altering of tag - - tag name - if true tag should be rendered - - - - Filters attributes, optionally allowing altering of attribute value - - tag name - attribute name - attribute value - if true attribute should be rendered - - - - Filters styles, optionally allowing altering of style value - - tag name - style name - style value - if true style should be rendered - - - - Filters literals, optionally allowing replacement of literal value - - the literal value - if true should be rendered - - - - Provides a mechanism for filtering HTML streams based upon a tag taxonomy - - - - - Determines if is "void" (i.e. "empty" or "full") tag - - lowercase tag name - if is a void tag - - http://www.w3.org/TR/html5/semantics.html - http://www.w3.org/TR/html401/index/elements.html - http://www.w3.org/TR/xhtml-modularization/abstract_modules.html#sec_5.2. - http://www.w3.org/TR/WD-html40-970917/index/elements.html - - - - - Determines if the tag is required to be closed - - lowercase tag name - if closing tag is optional - - http://www.w3.org/TR/html5/semantics.html - http://www.w3.org/TR/html401/index/elements.html - http://www.w3.org/TR/WD-html40-970917/index/elements.html - - - - - Categorizes the tag for heuristics about markup type - - lowercase tag name - the box type for a particular element - - http://www.w3.org/TR/html5/semantics.html - - - - - Defines a prioritized taxonomy of tags - - - The types are enumerated in ascending levels of risk for use in filtering HTML input - - - - - Literal text, no tags - - - - - Inline character level elements and text strings - - - Tags of this type typically do not disrupt the text flow - - - - - style elements - - - Tags of this type change the visual appearance of text - - - - - list elements - - - Tags of this type denote lists and typically change the text flow - - - - - Block-level elements - - - Tags of this type denote sections or change the text flow - - - - - Media elements - - - Tags of this type safely embed media content - - - - - Tabular elements - - - Tags of this type have a very specific structure and their own rendering model - - - - - Form elements - - - Tags of this type are used in the construction of forms for capturing user input - - - - - Script elements - - - Tags of this type represent a security risk to the containing document but must obey the browser security sandbox - - - - - Document elements - - - Tags of this type are used to construct the document itself - - - - - embedded elements - - - Tags of this type represent a large security risk to the containing document as plug-ins may circumvent the browser security sandbox - - - - - Unknown elements - - - - - Outputs markup text from an input stream of tokens - - - - - Ctor - - - - - - Resets the internal stack of elements - - - - - Formats the token sequence as a string - - - - - - Formats the token sequence to the writer - - - - - - - Emits a valid XML local-name (i.e. encodes invalid chars including ':') - - - - - Explicitly escaping ':' to maintain compatibility with XML Namespaces. - From XML 1.0, 5th ed. http://www.w3.org/TR/xml/#sec-common-syn - Name = NameStartChar (NameChar)* - NameStartChar = ":" - | [A-Z] - | "_" - | [a-z] - | [#xC0-#xD6] - | [#xD8-#xF6] - | [#xF8-#x2FF] - | [#x370-#x37D] - | [#x37F-#x1FFF] - | [#x200C-#x200D] - | [#x2070-#x218F] - | [#x2C00-#x2FEF] - | [#x3001-#xD7FF] - | [#xF900-#xFDCF] - | [#xFDF0-#xFFFD] - | [#x10000-#xEFFFF] - NameChar = NameStartChar - | "-" - | "." - | [0-9] - | #xB7 - | [#x0300-#x036F] - | [#x203F-#x2040] - - - - - - Emits valid XML character data - - - - encodes all non-ASCII chars - - - - - Emits valid XML attribute character data - - - - encodes all non-ASCII chars - - - - Gets and sets a value indicating if should emit canonical form - - - http://www.w3.org/TR/xml-c14n - - - - - Gets and sets a value indicating how should emit empty attributes - - - - - Gets and sets a value indicating if should encode text chars above the ASCII range - - - This option can help when the output is being embedded within an unknown encoding - - - - - HTML-style empty attributes do not emit a quoted string - - - http://www.w3.org/TR/html5/syntax.html#attributes-0 - - - - - XHTML-style empty attributes repeat the attribute name as its value - - - http://www.w3.org/TR/xhtml-media-types/#C_10 - http://www.w3.org/TR/xhtml1/#C_10 - http://www.w3.org/TR/html5/the-xhtml-syntax.html - - - - - XML-style empty attributes emit an empty quoted string - - - http://www.w3.org/TR/xml/#sec-starttags - - - - - Generates a sequence of tokens from a generalized model of markup text (e.g. HTML, XML, JBST, ASPX/ASCX, ASP, JSP, PHP, etc.) - - - This generates a stream of tokens like StAX (Streaming API for XML) - Unlike XML, this follows a more permissive markup format with automatic recovery most similar to HTML5. - - - - - Generates a sequence of tokens from a sequence of characters - - token type - - - - Tokenizes the input sequence into tokens - - - - - - - Tokenizes the input sequence into tokens - - - - - - - Gets the current column of the underlying input character sequence - - - Tokenizers not tracking columns should return -1. - - - - - Gets the current line of the underlying input character sequence - - - Tokenizers not tracking lines should return -1. - - - - - Gets the current position of the underlying input character sequence - - - Tokenizers not tracking index should return -1. - - - - - Decodes HTML-style entities into special characters - - - the entity text - - TODO: validate against HTML5-style entities - http://www.w3.org/TR/html5/tokenization.html#consume-a-character-reference - - - - - Decodes most known named entities - - - - - - - Checks for element start char - - - - - http://www.w3.org/TR/xml/#sec-common-syn - - - - - Checks for element name char - - - - - http://www.w3.org/TR/xml/#sec-common-syn - - - - - Gets a token sequence from the TextReader - - - - - - - Gets a token sequence from the string - - - - - - - Gets and sets if should attempt to auto-balance mismatched tags. - - - - - Gets and sets if should unwrap comments inside . - - - For example, in HTML this would include "script" and "style" tags. - - - - - Gets and sets a set of tags which should not have their content parsed. - - - For example, in HTML this would include "script" and "style" tags. - - - - - Gets the total number of characters read from the input - - - - - Gets the total number of lines read from the input - - - - - Gets the current position within the input - - - - - Ctor - - - - - Renders Common Model Tokens into a semantic HTML representation of the data structure - - - - - Consumes a sequence of tokens and produces a token sequence of a different type - - input token type - output token type - - - - Transforms the token sequence from to - - - - - - - Consumes a sequence of tokens and produces a token sequence of a different type - - - - - Formats the token sequence to the output - - - - - - - StringBuilder-like implementation built like List<char> - - - - - Ctor - - - - - Ctor - - - - - - Resets the buffer to an empty state - - - - - Appends a single char to the buffer - - - - - - - Appends a string value to the buffer - - - - - - - Copies the buffer value into a - - - - - - Gets the number of characters in the buffer - - - - - - Ctor - - - - - - Ctor - - - - - - - Ctor - - - - - - Ctor - - - - - - - - Supports forward-only iteration over an input sequence of - - - - - Supports forward-only iteration over an input sequence of - - - - - Supports forward-only iteration over an input sequence - - - - - Returns but does not remove the item at the front of the sequence. - - - - - - Returns and removes the item at the front of the sequence. - - - - - - Begins chunking at the current index - - - - - Ends chunking at the current index and returns the buffered sequence chunk - - - - - - Determines if the sequence has completed. - - - - - Gets a value indicating if is currently capturing a sequence - - - - - Gets the number of items currently chunked - - - - - Factory method for generic streams - - - - - - - - Returns but does not remove the item at the front of the sequence. - - - - - - Returns and removes the item at the front of the sequence. - - - - - - Determines if the input sequence has reached the end - - - - - Ctor - - - - - - Returns but does not remove the item at the front of the sequence. - - - - - - Returns and removes the item at the front of the sequence. - - - - - - Deferred execution of iterator - - - - - Determines if the input sequence has reached the end - - - - - Supports a simple iteration over a list with ability to capture a subsequence - - - - - Ctor - - - - - - Begins chunking at the current index - - - - - Ends chunking at the current index and returns the buffered chunk - - - - - - Returns but does not remove the item at the front of the sequence. - - - - - - Returns and removes the item at the front of the sequence. - - - - - - Deferred execution of iterator - - - - - Gets the number of characters currently chunked - - - - - - Determines if the input sequence has reached the end - - - - - Supports a simple iteration over a text input tracking line/column/position - - - - - Ends chunking at the current index and returns the buffered text chunk - - - - - - Ends chunking at the current index and writes the buffered text chunk into the provided StringBuilder - - - - - - Gets the total number of characters read from the input - - - - - Gets the total number of lines read from the input - - - - - Gets the current position within the input - - - - - Supports a simple iteration over a string tracking line/column/position - - - - - Ctor - - - - - - Begins chunking at the current index - - - - - Ends chunking at the current index and returns the buffered text chunk - - - - - - Ends chunking at the current index and returns the buffered text chunk - - - - - - Ends chunking at the current index and returns the buffered text chunk - - - - - - Returns but does not remove the item at the front of the sequence. - - - - - - Returns and removes the item at the front of the sequence. - - - - - - Deferred execution of iterator - - - - - Calculates index, line, and column statistics - - - - - Releases all resources used - - - - - Gets the total number of characters read from the input - - - - - Gets the total number of lines read from the input - - - - - Gets the current position within the input - - - - - Gets the number of characters currently chunked - - - - - Gets a value indicating if the is currently chunking - - - - - Determines if the input sequence has reached the end - - - - - Supports a simple iteration over a TextReader tracking line/column/position - - - - - Ctor - - - - - - Begins chunking at the current index - - - - - Ends chunking at the current index and returns the buffered text chunk - - - - - - Ends chunking at the current index and returns the buffered text chunk - - - - - - Ends chunking at the current index and returns the buffered text chunk - - - - - Returns but does not remove the item at the front of the sequence. - - - - - - Returns and removes the item at the front of the sequence. - - - - - - Deferred execution of iterator - - - - - Calculates index, line, and column statistics - - - - - - - Releases all resources used by the underlying reader - - - - - Gets the total number of characters read from the input - - - - - Gets the total number of lines read from the input - - - - - Gets the current position within the input - - - - - Gets the number of characters currently chunked - - - - - Gets a value indicating if the is currently chunking - - - - - Determines if the input sequence has reached the end - - - - - Formal language of tokens and symbols for JSON - - - - - Designates a property or field to not be serialized. - - - - - Specifies the naming to use for a property or field when serializing - - - - - Ctor - - - - - Ctor - - - - - - Gets and sets the name to be used in serialization - - - - - JSON deserializer - - - - - Ctor - - - - - Ctor - - - - - - Ctor - - - - - - - Gets the supported content type of the serialized data - - - - - Generates a sequence of tokens from JSON text - - - - - Gets a token sequence from the scanner stream - - - - - - - Scans for the longest valid EcmaScript identifier - - identifier - - http://www.ecma-international.org/publications/files/ECMA-ST/Ecma-262.pdf - - IdentifierName = - IdentifierStart | IdentifierName IdentifierPart - IdentifierStart = - Letter | '$' | '_' - IdentifierPart = - IdentifierStart | Digit - - - - - Gets a token sequence from the TextReader - - - - - - - Gets a token sequence from the string - - - - - - - Gets the total number of characters read from the input - - - - - Gets the total number of lines read from the input - - - - - Gets the current position within the input - - - - - It is an error for the next token to be a value delim - - - - - Forbidden but differentiates between empty array/object and just written - - - - - It is an error for the next token to NOT be a value delim - - - - - Specifies the name of the property which specifies if member should be serialized. - - - These properties can be marked private/protected/internal and it will still be recognized - - - - - Ctor - - the name of the property which controls serialization for this member - - - - Ctor - - the name of the property which controls serialization for this member - - - - Gets and sets the name of the property which - specifies if member should be serialized - - - - - Transforms markup tokens into Common Model tokens using the (lossless) JsonML model - - - JsonML Grammer: http://jsonml.org - - - - - Consumes a sequence of tokens and produces a token sequence of a different type - - - - - Determines how whitespace should be handled - - - - - Transforms Common Model tokens into markup tokens using the (lossless) JsonML model - - - JsonML Grammer: http://jsonml.org - - - - - Consumes a sequence of tokens and produces a token sequence of a different type - - - - - Controls name resolution for IDataReader / IDataWriter using JsonNameAttribute / JsonIgnoreAttribute / JsonPropertySpecifiedAttribute - - - This is the default strategy from JsonFx v1.0 - - - - - Controls name resolution for IDataReader / IDataWriter using plain old CLR object (POCO) names - - - - - Controls name resolution for IDataReader / IDataWriter - - - Provides an extensibility point to control member naming and visibility at a very granular level. - - - - - Gets a value indicating if the property is to be serialized. - - - - - - - - Gets a value indicating if the field is to be serialized. - - - - - - - Determines if the property or field should not be serialized. - - - - - - - - - Gets the serialized name for the member. - - - - - - - Allows a strategy to perform a custom sort order to outputted members - - - - - A common usage is to ensure that Attributes sort first - - - - - Gets a value indicating if the property is to be serialized. - - - - - default implementation is must be read/write properties, or immutable - - - - Gets a value indicating if the field is to be serialized. - - - - default implementation is must be public, non-readonly field - - - - Gets a delegate which determines if the property or field should not be serialized based upon its value. - - - if has a value equivalent to the DefaultValueAttribute - - This is useful when default values need not be serialized. - - - - - Gets the serialized name for the member. - - - - - - - Allows a strategy to perform a custom sort order to outputted members - - - - - A common usage is to ensure that Attributes sort first - - - - - Gets a value indicating if the property is to be serialized. - - - - - default implementation is must be read/write properties, or immutable - - - - Gets a value indicating if the field is to be serialized. - - - - default implementation is must be public, non-readonly field - - - - Gets a delegate which determines if the property or field should not be serialized based upon its value. - - - if has a value equivalent to the DefaultValueAttribute - - This is useful for excluding serialization of default values. - - - - - Gets the serialized name for the member. - - - - - - - Determines whitespace handling - - - - - Removes insignificant whitespace - - - - - Keep all whitespace - - - - - Condenses all whitespace to single spaces - - - - - Designates a type as being able to format itself to raw JSON text. - - - - - Ctor - - - - - Ctor - - - - - Gets and sets the starting delimiter - - - - - Gets and sets the ending delimiter - - - - - Gets and sets the context - - - - - Formal language of tokens and symbols for markup - - - - - Any of a number of unparsed tags which typically contain specialized processing instructions - - - The name of the token is the beginning and ending delimiters as a format string (not including the '<' or '>') - Includes the following types: - - "<!--", "-->" XML/HTML/SGML comment - "<!", ">" XML/SGML declaration (e.g. DOCTYPE or server-side includes) - - "<?=", "?>" PHP expression - "<?", "?>" PHP code block /XML processing instruction (e.g. the XML declaration) - - "<%--", "--%>" ASP/PSP/JSP-style code comment - "<%@", "%>" ASP/PSP/JSP directive - "<%=", "%>" ASP/PSP/JSP/JBST expression - "<%!", "%>" JSP/JBST declaration - "<%#", "%>" ASP.NET/JBST databind expression - "<%$", "%>" ASP.NET/JBST extension - "<%", "%>" ASP code block / JSP scriptlet / PSP code block - - - - - tokens - - - - - - - - - - - Maintains scope chain for namespace prefix mappings - - - - - Adds a new scope to the chain - - - - - - Gets the last scope off the chain - - - - - Gets and removes the last scope off the chain - - - - - - Finds the namespace URI for a given prefix within the curren scope chain - - - - - - - Finds the prefix for a given namespace URI within the curren scope chain - - - - - - - Checks if the matching begin tag exists on the stack - - - - - - Resets the internal state of the scope chain. - - - - - Looks up the prefix for the given namespace - - - - null if namespace is empty and no default prefix found - - - - Represents a scope boundary within a prefix scope chain - - - - - Returns if this scope boundary contains a mapping for a particular prefix - - - if this scope boundary contains a mapping for a particular prefix - - - - Returns if this scope boundary contains a mapping for a particular namespace - - - if this scope boundary contains a mapping for a particular namespace - - - - Returns if this scope boundary contains a mapping for a particular prefix - setting the namespace URI if one was found. - - - the resolved namespace URI - if this scope boundary contains a mapping for a particular prefix - - - - Returns if this scope boundary contains a mapping for a particular prefix - setting the prefix if one was found. - - - the resolved prefix - if this scope boundary contains a mapping for a particular prefix - - - - Gets and sets the tagname associated with this scope boundary - - - - - Gets and sets mappings between prefix and namespace URIs - - - - - - - Provides lookup capabilities for providers - - - - - Parses HTTP headers for Media-Types - - HTTP Accept header - HTTP Content-Type header - sequence of Media-Types - - http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html - - - - - - - - - - - - Controls name resolution for IDataReader / IDataWriter using convention-based name mapping - - - Converts standard .NET PascalCase naming convention into the specified naming convention. - http://msdn.microsoft.com/en-us/library/x2dbyw72.aspx - http://msdn.microsoft.com/en-us/library/141e06ef.aspx - http://msdn.microsoft.com/en-us/library/xzf533w0.aspx - - - - - Ctor - - - - - - Ctor - - - - - - - Gets the serialized name for the member. - - - - - - - Splits a multi-word name assuming standard .NET PascalCase conventions. - - - - - http://msdn.microsoft.com/en-us/library/x2dbyw72.aspx - http://msdn.microsoft.com/en-us/library/141e06ef.aspx - http://msdn.microsoft.com/en-us/library/xzf533w0.aspx - - - - - - Ctor - - - - - - - - Ctor - - - - - - - Represents a property or document name, and a corresponding namespace URI (or empty string). - Analogous to XML "expanded name": http://www.w3.org/TR/REC-xml-names/#dt-expname - - - Namespaces must be a URI, but local-name can be any non-null string. - It is up to formatters to determine how to properly represent names which are invalid for the format. - - - - - local-name - - - - - alias for the namespace - - - - - namespace - - - - - Determines if name should be treated like an attribute - - - - - Ctor - - a CLR Type used to generate the local-name - - This constructor implicitly delcares the namespace to be empty. - - - - - Ctor - - any string is a valid local-name - - This constructor implicitly delcares the namespace to be empty. - - - - - Ctor - - any string is a valid local-name - an absolute URI string, or null - thrown if is null - thrown if is an invalid absolute URI - - The namespace field follows XML recommendation of absolute URIs. - Relative URIs are officially deprecated for namespaces: http://www.w3.org/2000/09/xppa - - - - - Ctor - - any string is a valid local-name - an absolute URI string, or null - determines if name should be an attribute name - thrown if is null - thrown if is an invalid absolute URI - - The namespace field follows XML recommendation of absolute URIs. - Relative URIs are officially deprecated for namespaces: http://www.w3.org/2000/09/xppa - - - - - Gets the local-name for a Type - - - - - - - Gets the prefixed name or simply local-name if is not a fully qualified name - - true to generate a prefix if the prefix is empty but not the namespace - - - - - Gets the namespaced name or simply local-name if is not a fully qualified name - - - - - - Compares two values and returns an indication of their relative sort order. - - - - - Performs ordering according to XML Canonicalization document order http://www.w3.org/TR/xml-c14n#DocumentOrder - "An element's namespace nodes are sorted lexicographically by local name (the default namespace node, if one exists, has no local name and is therefore lexicographically least)." - "An element's attribute nodes are sorted lexicographically with namespace URI as the primary key and local name as the secondary key (an empty namespace URI is lexicographically least)." - - - - - Determines if this is an empty DataName - - - - - Indicates a graph cycle was detected during serialization - - - - - Indicates an error occurred during serialization - - - - - Ctor - - - - - Ctor - - - - - - Ctor - - - - - - - Ctor - - - - - Ctor - - - - - - Ctor - - - - - - - Gets the type of cycle which caused the error - - - - - Graph cycles are detected with a reference tracking, any repeated reference results in a null value - - - - - Graph cycles are detected with a reference tracking, any repeated reference results in an error - - - - - Graph cycles are detected with a maximum depth count, exceeding depth results in an error - - - - - Detects graph cycles by tracking graph depth - - - - - Defines an interface for detecting graph cycles - - - - - Begins tracking of the reference - - - true if graph cycle was detected - - - - Ends tracking of the reference - - - true if tracking was successfully completed - - - - Ctor - - - - - - Increments the depth - - - true if MaxDepth has not been exceeded - - - - Increments the depth - - - - - - Detects cycles by detecting duplicates in the a set of object references - - - - - Adds a reference to the set - - - true if object already existed within set - - - - Removes a reference from the set - - - - - - Controls deserialization settings for IDataReader - - - - - Ctor - - - - - Ctor - - - - - Ctor - - - - - Ctor - - - - - - Ctor - - - - - - Ctor - - - - - - Ctor - - - - - - Gets and sets if ValueTypes can accept values of null - - - If this is true and a ValueType T is assigned the value of null, - it will receive the value of default(T). - Setting this to false, throws an exception if null is - specified for a ValueType member. - - - - - Gets and sets if should verify that stream is empty after deserialzing each object - - - Setting to true allows reading a JSON stream inside other structures (e.g. JavaScript) - - - - - Gets manager of name resolution for IDataReader - - - - - Gets the custom filters - - - - - Controls the serialization settings for IDataWriter - - - - - Ctor - - - - - Ctor - - - - - Ctor - - - - - Ctor - - - - - - Ctor - - - - - - Ctor - - - - - - Ctor - - - - - - Gets and sets what to do when graph cycles (repeated references) are encounted - - - - - Gets and sets the maximum nesting depth - - - Depth is a fast and easy safegaurd against detecting graph cycles but may produce false positives - - - - - Gets and sets if output will be formatted for human reading. - - - - - Gets and sets the string to use for indentation - - - - - Gets and sets the line terminator string - - - - - Gets manager of name resolution for IDataReader - - - - - Gets the custom filters - - - - - Indicates an error occurred during deserialization - - - - - Ctor - - - - - - - Ctor - - - - - - - - - Ctor - - - - - - - - Ctor - - - - - - - - Helper method which converts the index into Line and Column numbers - - - - - - - - Gets the character column in the stream where the error occurred - - - - - Gets the character position in the stream where the error occurred - - - - - Gets the character line in the stream where the error occurred - - - - - Indicates an error occurred during token consumption - - - - - - Ctor - - - - - Ctor - - - - - - Ctor - - - - - - - Gets the token in the sequence where the error occurred - - - - - Indicates an error occurred during type coercion - - - - - Ctor - - - - - Ctor - - - - - - Ctor - - - - - - - Provides lookup capabilities for finding matching IDataReader - - - - - Provides lookup capabilities for finding matching IDataReader - - - - - Ctor - - inject with all possible readers - - - - Finds an IDataReader by content-type header - - - - - - - Provides lookup capabilities for finding an IDataWriter - - - - - Provides lookup capabilities for finding an IDataWriter - - - - - Ctor - - inject with all possible writers - - - - Controls name resolution for IDataReader / IDataWriter by using pluggable delegate callbacks - - - - - Gets and sets the implementation for ignoring properties - - - - - Gets and sets the implementation for ignoring fields - - - - - Gets and sets the implementation for ignoring properties by value - - - - - Gets and sets the implementation for naming members - - - - - Gets and sets the implementation for sorting members - - - - - Controls name resolution for IDataReader / IDataWriter by combining an ordered sequence of any other strategies - - - Each strategy is invoked in order, the first to respond wins. - - - - - Ctor - - ordered sequence of strategies - - - - Ctor - - ordered sequence of strategies - - - - Gets a value indicating if the property is to be serialized. - - - - true if any strategy specifies should be ignored - - - - Gets a value indicating if the field is to be serialized. - - - true if any strategy specifies should be ignored - - - - Gets a delegate which determines if the property or field should not be serialized based upon its value. - - - true if any strategy specifies this should be ignored - - - - Gets the serialized name for the member. - - - - custom name if any strategy specifies one, otherwise null - - - - Allows a strategy to perform a custom sort order to outputted members - - - - - A common usage is to ensure that Attributes sort first - - - - - Controls name resolution for IDataReader / IDataWriter using DataContract attributes - - - http://msdn.microsoft.com/en-us/library/kd1dc9w5.aspx - - - - - CCtor - - - - - Gets a value indicating if the property is to be serialized. - - - - - - - - Gets a value indicating if the field is to be serialized. - - - - - - - Gets a delegate which determines if the property or field should not be serialized based upon its value. - - - - - - - Gets the serialized name for the member. - - - - - - - Gets a delegate which determines if the property or field should not be serialized based upon its value. - - - - - - - The original member info - - - - - The original member name - - - - - The member data name - - - - - The member type - - - - - The getter method - - - - - The setter method - - - - - The logic for determining if a value is ignored - - - - - Determines if map name is alternate (i.e. only used for deserialization) - - - - - Ctor - - MemberMap to clone - alternate name - - - - Ctor - - - - - - - - Ctor - - - - - - - - Ctor - - - - - Gets a sequence of the available factory arguments - - - - - Gets the factory associated with the given argument type - - - - - - - Cache of name resolution mappings for IDataReader / IDataWriter - - - - - Ctor - - - - - - Gets the serialized name of the class - - - - - - - Removes any cached member mappings. - - - - - Builds a mapping of member name to field/property - - - - - - Represents a single immutable token in an input sequence - - - - - The type of the token - - - - - The name of the token - - - - - The value of the token - - - - - Ctor - - - - - - Ctor - - - - - - - Ctor - - - - - - - Ctor - - - - - - - Returns a string that represents the current token. - - - - - - Gets the value of the token as a string - - - - - - Converts a value to a string giving opportunity for IConvertible, IFormattable - - - - - - - Converts token to a token of a different type - - - token with same values and different type - - - - Type Coercion Utility - - - - - Ctor - - - - - - - Ctor - - - - - - - Instantiates a new instance of objectType. - - - objectType instance - - - - Instantiates a new instance of objectType. - - - objectType instance - - - - Helper method to set value of a member. - - - - - - - - - - Coerces the object value to Type - - - - - - - - Coerces the object value to Type of - - - - - - - - Populates the properties of an object with the dictionary values. - - - - - - - - Populates the properties of an object with the dictionary values. - - - - - - - - Coerces an sequence of items into an array of Type elementType - - - - - - - - Finds a suitable concrete class for common collection interface types - - - - - - - Allows specific IDictionary<string, TVal> to deserialize as TVal - - IDictionary<string, TVal> Type - TVal Type - - - - Returns a common type which can hold previous values and the new value - - - - - - - - Determines if type can be assigned a null value. - - - - - - - Gets the attribute T for the given value. - - - Attribute Type - true if defined - - - - Gets the attribute of Type for the given value. - - - true if defined - - - - Gets the attribute T for the given value. - - - Attribute Type - requested attribute or not if not defined - - - - Gets the attribute of Type for the given value. - - - requested attribute or not if not defined - - - - Character Utility - - - These are either simpler definitions of character classes (e.g. letter is [a-zA-Z]), - or they implement platform-agnositic checks (read: "Silverlight workarounds"). - - - - - Checks if string is null, empty or entirely made up of whitespace - - - - - Essentially the same as String.IsNullOrWhiteSpace from .NET 4.0 - with a simplfied view of whitespace. - - - - - Checks if character is line ending, tab or space - - - - - - - - - - - - - - Checks if character matches [A-Za-z] - - - - - - - Checks if character matches [0-9] - - - - - - - Checks if character matches [0-9A-Fa-f] - - - - - - - Gets a 4-bit number as a hex digit - - 0-15 - - - - - Formats a number as a hex digit - - - - - - - Converts the value of a UTF-16 encoded character or surrogate pair at a specified - position in a string into a Unicode code point. - - - - - - - - Converts the specified Unicode code point into a UTF-16 encoded string. - - - - - - - XML serializer - - - XML serializer - - - - - Ctor - - - - - Ctor - - - - - - Ctor - - - - - - - Gets a tokenizer for XML - - - - - - Gets the supported content type for the serialized data - - - - - Transforms markup tokens into Common Model tokens using an XML-data model - - - - - Ctor - - - - - - Consumes a sequence of tokens and produces a token sequence of a different type - - - - - Formats the token sequence to the output - - - - - - - - Ctor - - - - - Ctor - - - - - - Gets a token sequence from the string - - - - - - - Gets a token sequence from the TextReader - - - - - - - Gets a token sequence from the XmlReader - - - - - - - Gets the total number of characters read from the input - - - - - Gets the total number of lines read from the input - - - - - Gets the current position within the input - - - - - XML serializer - - - - - Ctor - - - - - Ctor - - - - - - Ctor - - - - - - - Gets the formatter for XML - - - - - - - Gets the supported content type for the serialized data - - - - - Gets the supported file extension for the serialized data - - - - - Transforms Common Model tokens into markup tokens using an XML-data model - - - - - Ctor - - - - - - Consumes a sequence of tokens and produces a token sequence of a different type - - - - - Formats the token sequence to the output - - - - - - - Outputs XML text from an input stream of tokens - - - - - Ctor - - - - - - Formats the token sequence as a string - - - - - - Formats the token sequence to the writer - - - - - - - Formats the token sequence to the writer - - - - - - - Wraps an XmlWriter as a TextWriter - - - - - Ctor - - - - - - Gets the underlying XmlWriter - - - - - Controls name resolution for IDataReader / IDataWriter using attributes and conventions similar to XmlSerializer semantics - - - http://msdn.microsoft.com/en-us/library/83y7df3e.aspx - - - - - Gets a value indicating if the property is to be serialized. - - - - - default implementation is must be read/write properties, or immutable - - - - Gets a value indicating if the field is to be serialized. - - - - default implementation is must be public, non-readonly field - - - - Gets a delegate which determines if the property or field should not be serialized based upon its value. - - - if has a value equivalent to the DefaultValueAttribute or has a property named XXXSpecified which determines visibility - - This is useful when default values need not be serialized. - Under these situations XmlSerializer ignores properties based upon value: - - DefaultValue: http://msdn.microsoft.com/en-us/library/system.componentmodel.defaultvalueattribute.aspx - - Specified Properies: http://msdn.microsoft.com/en-us/library/bb402199.aspx - - ShouldSerialize Methods: http://msdn.microsoft.com/en-us/library/53b8022e.aspx - - - - - Gets the serialized name for the member. - - - - - - - Sorts members to ensure proper document order where attributes precede all child elements. - - - - - Performs the first stage of XML Canonicalization document order http://www.w3.org/TR/xml-c14n#DocumentOrder - "An element's namespace and attribute nodes have a document order position greater than the element but less than any child node of the element." - - - - - Generates delegates for getting/setting properties and field and invoking constructors - - - - - Creates a field getter delegate for the specified property or field - - PropertyInfo or FieldInfo - GetterDelegate for property or field, null otherwise - - Note: use with caution this method will expose private and protected constructors without safety checks. - - - - - Creates a field setter delegate for the specified property or field - - PropertyInfo or FieldInfo - SetterDelegate for property or field, null otherwise - - - - Creates a property getter delegate for the specified property - - - GetterDelegate if property CanRead, otherwise null - - Note: use with caution this method will expose private and protected constructors without safety checks. - - - - - Creates a property setter delegate for the specified property - - - GetterDelegate if property CanWrite, otherwise null - - Note: use with caution this method will expose private and protected constructors without safety checks. - - - - - Creates a field getter delegate for the specified field - - - GetterDelegate which returns field unless is enum in which will return enum value - - Note: use with caution this method will expose private and protected constructors without safety checks. - - - - - Creates a field setter delegate for the specified field - - - SetterDelegate unless field IsInitOnly then returns null - - Note: use with caution this method will expose private and protected constructors without safety checks. - - - - - Creates a proxy delegate accepting a target instance and corresponding arguments - - method to proxy - ProxyDelegate or null if cannot be invoked - - Note: use with caution this method will expose private and protected methods without safety checks. - - - - - Creates a default constructor delegate - - type to be created - FactoryDelegate or null if default constructor not found - - Note: use with caution this method will expose private and protected constructors without safety checks. - - - - - Creates a constructor delegate accepting specified arguments - - type to be created - constructor arguments type list - FactoryDelegate or null if constructor not found - - Note: use with caution this method will expose private and protected constructors without safety checks. - - - - - Creates a constructor delegate accepting specified arguments - - type to be created - constructor arguments type list - FactoryDelegate or null if constructor not found - - Note: use with caution this method will expose private and protected constructors without safety checks. - - - - - Represents a query across a data source - - - - - - Ctor - - - - - - Ctor - - - - - - - Returns a string representation of the query - - - - - - Gets the query expression - - - - - Gets the query return type - - - - - Gets the underlying provider - - - - - Ctor - - - - - - - Ctor - - - - - - - Extends the query to all descendants - - - - - Extends the query to all descendants - - - - - Gets all items of the array - - - - - Gets the items of the array with indexes satisfying the - - - - - - Filters to only objects with a particular property name defined - - - - - - Filters to a lookup of only the properties which match the predicate - - - - - - Filters to only arrays - - - - - - Filters to only objects - - - - - - Filters to only simple values - - - - - - Boiler-plate implementation - - - - - - Ctor - - - - - Ctor - - - - - - - - - - - Searches for subsequences found by the expression and rehydrates into objects with the analyzer - - - - - Ctor - - - - - Ctor - - - - - - - Ctor - - - - - - diff --git a/packages/JsonFx.2.0.1209.2802/lib/sl40-wp/JsonFx.dll b/packages/JsonFx.2.0.1209.2802/lib/sl40-wp/JsonFx.dll deleted file mode 100644 index dc48d82a..00000000 Binary files a/packages/JsonFx.2.0.1209.2802/lib/sl40-wp/JsonFx.dll and /dev/null differ diff --git a/packages/JsonFx.2.0.1209.2802/lib/sl40-wp/JsonFx.xml b/packages/JsonFx.2.0.1209.2802/lib/sl40-wp/JsonFx.xml deleted file mode 100644 index b9393532..00000000 --- a/packages/JsonFx.2.0.1209.2802/lib/sl40-wp/JsonFx.xml +++ /dev/null @@ -1,4526 +0,0 @@ - - - - JsonFx - - - - - JsonFx metadata - - - - - Ctor - - - - - - Outputs BSON bytes from an input stream of tokens - - - - - Outputs text from an input stream of JSON tokens - - token type - - - - Formats the token sequence to the output writer - - - - - - - Formats the token sequence as a string - - - - - - Formats the token sequence as a string - - - - - - Formats the token sequence to the output writer - - - - - - - Emits a document (or array) to the binary stream - - - - number of bytes written - - - - Emits a single element to the binary stream - - - - - number of bytes written - - - - Emits a string value - - - - number of bytes written - - - - Emits a binary value - - - - number of bytes written - - - - Emits a code_w_s value - - - - number of bytes written - - - - Generates a sequence of tokens from BSON bytes - - - - - Generates a sequence of tokens from a sequence of characters - - token type - - - - Tokenizes the input sequence into tokens - - - - - - - Tokenizes the input sequence into tokens - - - - - - - Gets the current position of the underlying input character sequence - - - Tokenizers not tracking index should return -1. - - - - - Gets a token sequence from the TextReader - - - - - - - Gets a token sequence from the string - - - - - - - Gets a token sequence from the reader - - - - - - - Gets the current position of the underlying stream - - - - - BSON MD5 Datatype - - - - - Ctor - - - - - - Ctor - - - - - - Ctor - - - - - - Converts MD5 to Guid - - - - - - - - Converts MD5 to Guid - - - - - - - Gets the hashcode of the underlying Guid - - - - - - BSON JavaScript Code With Scope Datatype - - - - - BSON JavaScript Code Datatype - - - - - Ctor - - - - - - Converts JavaScriptCode to string - - - - - - - - Converts JavaScriptCode to string - - - - - - - Gets the hashcode of the underlying string - - - - - - BSON Symbol Datatype - - - - - Ctor - - - - - - Converts Symbol to string - - - - - - - - Converts Symbol to string - - - - - - - Gets the hashcode of the underlying string - - - - - - BSON DBPointer Datatype (Deprecated) - - - - - Immutable BSON ObjectID Datatype - - - http://www.mongodb.org/display/DOCS/Object+IDs#ObjectIDs-TheBSONObjectIdDatatype - - - - - Ctor - - 12-byte object ID - - - - Ctor - - 4-byte seconds since Unit epoch - 3-byte machine ID - 2-byte process ID - 3-byte counter - - - - Converts an ObjectID to a hex string - - - - - - - Converts a hex string to an ObjectID - - - - - - - Converts an ObjectID to a byte array - - - - - - - Converts a byte array to an ObjectID - - - - - - - Gets the hashcode of the underlying string - - - - - - Gets the time associated with this ObjectID - - - - - Gets the machine id associated with this ObjectID - - - - - Gets the process id associated with this ObjectID - - - - - Gets the counter associated with this ObjectID - - - - - Generic binary holder - - - http://api.mongodb.org/java/2.0/org/bson/types/Binary.html - - - - - Ctor - - binary type code - byte date - - - - Converts an ObjectID to a hex string - - - - - - - Converts a hex string to an ObjectID - - - - - - - Converts an ObjectID to a byte array - - - - - - - Converts a byte array to an ObjectID - - - - - - - Gets the hashcode of the underlying string - - - - - - Gets a 4-bit number as a hex digit - - 0-15 - - - - - Gets the binary type code - - - - - Gets the binary type code - - - - - Gets the byte at the given index - - - - - Gets the length of the binary data - - - - - Designates a type as being able to format itself to raw BSON bytes - - - - - Designates a type as being able to format itself to raw bytes - - - - - Writes custom format to the output using either tokens or bytes - - - - total number of bytes written - - - - Determines the corresponding BSON element type - - - - - - Generalized delegate for invoking a constructor - - - - - - - Generalized delegate for invoking a method - - the instance object - the method parameters - - - - - Generalized delegate for getting a field or property value - - - - - - - Generalized delegate for setting a field or property value - - - - - - - Consumes a sequence of tokens to produce an object graph optionally coerced to a given type - - - - - Consumes a sequence of tokens to produce a sequence of objects, optionally coerced to a given type - - token type - - - - Parses the token sequence - - - - - - - Parses the token sequence, optionally coercing the result to Type targetType - - - optional type for coercion (null if not specified) - - - - - Parses the token sequence, coercing the result to Type TResult - - optional type for coercion (null if not specified) - - - - - - Parses the token stream coercing the result to TResult (type inferred from ) - - - - an example value used solely for Type inference - - - - - Ctor - - - - - - Parses the token stream coercing the result targetType - - - - - - - Parses the token stream coercing the result to targetType - - - - - - - - Parses the token stream coercing the result to TResult - - the result target type - - - - - - Parses the token stream coercing the result to TResult (inferred from ) - - - - an example value used solely for Type inference - - - - - Common Model Language grammar helper - - - Simplifies and guides syntax, and provides a set of reusable tokens to reduce redundant token instantiations - - - - - Marks the beginning of an array - - the local name of the array - ArrayBegin Token - - - - Marks the beginning of an array - - the local name of the array - the namespace of the document - ArrayBegin Token - - - - Marks the beginning of an array - - the name of the array - ArrayBegin Token - - - - Marks the beginning of an object - - the local name of the object - ObjectBegin Token - - - - Marks the beginning of an object - - the name of the object - ObjectBegin Token - - - - Marks the beginning of an object property - - the local name of the property - PropertyKey Token - - - - Marks the beginning of an object property - - the local name of the property - PropertyKey Token - - - - Marks the beginning of an object property - - the name of the property - PropertyKey Token - - - - A simple scalar value (typically serialized as a single primitive value) - - - Value Token - - - - Provides base implementation for standard deserializers - - - - - Provides base implementation for standard deserializers - - - - - A common interface for data deserializers - - - - - Deserializes a single object from the given input - - the input reader - a value used to trigger Type inference for (e.g. for deserializing anonymous objects) - the expected type of the serialized data - - - - Deserializes a single object from the given input - - the input reader - the expected type of the serialized data - - - - Serializes the data to the given output - - the input reader - - - - Deserializes a single object from the given input - - the input reader - the expected type of the serialized data - - - - Deserializes a single object from the given input - - the input text - a value used to trigger Type inference for (e.g. for deserializing anonymous objects) - the expected type of the serialized data - - - - Deserializes a single object from the given input - - the input text - the expected type of the serialized data - - - - Deserializes a single object from the given input - - the input text - - - - Deserializes a single object from the given input - - the input text - the expected type of the serialized data - - - - Deserializes a potentially endless sequence of objects from a stream source - - - - - character stream => token stream => object stream - - - - - Gets the supported content type of the serialized data - - - - - Gets the settings used for deserialization - - - - - Ctor - - - - - - Deserializes the data from the given input - - the input reader - a value used to trigger Type inference for (e.g. for deserializing anonymous objects) - the expected type of the serialized data - - - - Deserializes the data from the given input - - the input reader - the expected type of the serialized data - - - - Deserializes the data from the given input - - the input reader - - - - Deserializes the data from the given input - - the input reader - the expected type of the serialized data - - - - Deserializes the data from the given input - - the input text - a value used to trigger Type inference for (e.g. for deserializing anonymous objects) - the expected type of the serialized data - - - - Deserializes the data from the given input - - the input text - the expected type of the serialized data - - - - Deserializes the data from the given input - - the input text - - - - Deserializes the data from the given input - - the input text - the expected type of the serialized data - - - - Deserializes a potentially endless sequence of objects from a stream source - - a streamed source of objects - a sequence of objects - - character stream => token stream => object stream - - - - - Gets the supported content type of the serialized data - - - - - Gets the settings used for deserialization - - - - - Ctor - - - - - - Extension methods for selecting subsequences of sequences of tokens - - - - - Determines if the sequence represents a primitive - - - - - - - Determines if the sequence represents an object - - - - - - - Determines if the root object has any properties which satisfies the name - - - - true if any properties match the predicate - - - - Gets all properties of the root object - - - - all properties for the object - - - - Gets all properties of the root object - - - - all properties for the object - - - - Gets the properties of the root object which satisfies the - - - - matching properties for the root object - - - - Gets the properties of the root object which satisfies the - - - - matching properties for the root object - - - - Determines if the sequence represents an array - - - - - - - Gets all the items of the array - - - all items of the array - - - - Gets the items of the root array with indexes satisfying the - - - - items of the root array which statisfy the predicate - - - - ArrayItems iterator - - - - - - - - Gets all descendant values below the current root - - - - - - - Descendants iterator - - - - - - - Gets all descendant values below the current root, as well as the current root - - - - - - - DescendantsAndSelf iterator - - - - - - - Covers the sitation where a stream of sequences may be back to back - - - - - - - Splices out the sequence for the next complete value (object, array, primitive) - - - - - - - Splices out the sequence for the next complete value (object, array, primitive) - - - - - - - Skips over the next complete value (object, array, primitive) - - - - - - - Common Model Language tokens - - - - - - - - - - - - Generates a sequence of tokens from an object graph - - - - - Generates a sequence of tokens from an object graph - - token type - - - - Generates a sequence of tokens representing the value - - - - - - - Ctor - - - - - - Generates a sequence of tokens representing the value - - - - - - - Allows a mechanism for manipulating JSON serialization - - Defines the type this filter reads/writes - - - - Partially implements an IDataFilter - - - - - Allows a mechanism for manipulating serialization - - Defines the type of token stream this filter understands - Defines the type this filter reads/writes - - - - Allows a mechanism for manipulating serialization - - Defines the type of token stream this filter understands - - - - Allows a class to act as a factory for a type via input Token<T> sequence - - input tokens - - true if value was generated - - - - Allows a class to serialize a type as Token<T> sequence - - - - true if value was consumed - - - - Allows a class to act as a factory for a type via input Token<T> sequence - - input tokens - - true if value was generated - - - - Allows a class to serialize a type as Token<T> sequence - - - - true if value was consumed - - - - Defines a filter for JSON-style serialization of DateTime into ISO-8601 string - - - This is the format used by EcmaScript 5th edition Date.prototype.toJSON(...): - http://www.ecma-international.org/publications/files/ECMA-ST/ECMA-262.pdf - http://www.w3.org/TR/NOTE-datetime - http://en.wikipedia.org/wiki/ISO_8601 - - NOTE: This format limits expressing DateTime as either UTC or Unspecified. Local (i.e. Server Local) is converted to UTC. - - - - - Converts a ISO-8601 string to the corresponding DateTime representation - - ISO-8601 conformant date - UTC or Unspecified DateTime - true if parsing was successful - - - - Converts a DateTime to the corresponding ISO-8601 string representation - - - ISO-8601 conformant date - - - - Determines the precision of fractional seconds. - Defaults to EcmaScript precision of milliseconds. - - - - - Defines the precision of fractional seconds in ISO-8601 dates - - - - - Defines a filter for JSON-style serialization of DateTime into an ASP.NET Ajax Date string. - - - This is the format used by Microsoft ASP.NET Ajax: - http://weblogs.asp.net/bleroy/archive/2008/01/18/dates-and-json.aspx - - NOTE: This format is limited to expressing DateTime at the millisecond level as UTC only. - The WCF extension of adding a timezone is ignored as this returns UTC dates only. - - - - - Converts an ASP.NET Ajax date string to the corresponding DateTime representation - - ASP.NET Ajax date string - - true if parsing was successful - - - - Converts a DateTime to the corresponding ASP.NET Ajax date string representation - - - ASP.NET Ajax date string - - - - Provides base implementation for standard serializers - - - - - Provides base implementation of standard serializers - - - - - A common interface for data serializers - - - - - Serializes the data to the given output - - the output writer - the data to be serialized - - - - Serializes the data to the given output - - the data to be serialized - the serialized data - - - - Gets the content encoding for the serialized data - - - - - Gets the supported content types for the serialized data - - - - - Gets the supported file extensions for the serialized data - - - - - Gets the settings used for serialization - - - - - Ctor - - - - - - Serializes the data to the given output - - the data to be serialized - the output writer - - - - Serializes the data to the given output - - the data to be serialized - the serialized data - - - - Gets the walker for this DataWriter - - - - - - - Gets the formatter for this DataWriter - - - - - - - Gets the content encoding for the serialized data - - - - - Gets the supported content types for the serialized data - - - - - Gets the supported file extensions for the serialized data - - - - - Gets the settings used for serialization - - - - - Ctor - - - - - - Gets a walker for JSON - - - - - - - Gets the content encoding for the serialized data - - - - - Represents an ECMAScript identifier for serialization. - - - - - Designates a type as being able to format itself to raw text - - - - - Writes custom format to the output using either tokens or text - - - - - - - Ctor - - - - - Ctor - - - - - - Verifies is a valid EcmaScript identifier - - the identifier - identifier - - - - Verifies is a valid EcmaScript identifier - - the identifier - identifier - - - - Verifies is a valid EcmaScript variable expression - - the identifier - identifier - - http://www.ecma-international.org/publications/files/ECMA-ST/Ecma-262.pdf - - IdentifierName = - IdentifierStart | IdentifierName IdentifierPart - IdentifierStart = - Letter | '$' | '_' - IdentifierPart = - IdentifierStart | Digit - - - - - Trivial conversion method. Essentially performs a cast. - - - - - Supports conversion via System.Web.UI.PropertyConverter.ObjectFromString(Type, MemberInfo, string) - - - - - Implicit type conversion allows to be used directly as a String - - valid ECMAScript identifier - - - - - Implicit type conversion allows to be used directly with Strings - - valid ECMAScript identifier - - - - - Returns the identifier - - - - - - Compares identifiers - - - - - - - Returns the hash code for the identifier - - - - - - Gets the ECMAScript identifier represented by this instance - - - - - Formats data as full ECMAScript objects, rather than the limited set of JSON objects. - - - - - Outputs JSON text from an input stream of tokens - - - - - Outputs text from an input stream of JSON tokens - - token type - - - - Formats the token sequence to the output writer - - - - - - - Formats the token sequence as a string - - - - - - JSON serializer - - - - - Ctor - - - - - Ctor - - - - - - Ctor - - - - - - - Gets the formatter for JSON - - - - - - - Gets the supported content type for the serialized data - - - - - Gets the supported file extension for the serialized data - - - - - Outputs JSON text from an input stream of tokens - - - - - Ctor - - - - - - Formats the token sequence as a string - - - - - - Formats the token sequence to the writer - - - - - - - Converts an object to its string representation - - - - - - - Converts an enum to its string representation - - - - - - - Splits a bitwise-OR'd set of enums into a list. - - the enum type - the combined value - list of flag enums - - from PseudoCode.EnumHelper - - - - - Determines if a numeric value cannot be represented as IEEE-754. - - - - - http://stackoverflow.com/questions/1601646 - - - - - Gets and sets if '<' should be encoded in strings - Useful for when emitting directly into page - - - - - Ctor - - - - Defaults to encoding < chars for improved embedding within script blocks - - - - - Emits a block of script ensuring that a namespace is declared - - the output writer - the namespace to ensure - list of namespaces already emitted - determines if should emit pretty-printed - if was a namespaced identifier - - - - Outputs a .NET Regex as an ECMAScript RegExp literal. - Defaults to global matching off. - - - - - http://www.ecma-international.org/publications/files/ECMA-ST/Ecma-262.pdf - - - - - Outputs a .NET Regex as an ECMAScript RegExp literal. - - - - - - http://www.ecma-international.org/publications/files/ECMA-ST/Ecma-262.pdf - - - - - Defines a strategy for filtering HTML tags/attributes/styles/literals - - - - - Filters tags, optionally allowing altering of tag - - tag name - if true tag should be rendered - - - - Filters attributes, optionally allowing altering of attribute value - - tag name - attribute name - attribute value - if true attribute should be rendered - - - - Filters styles, optionally allowing altering of style value - - tag name - style name - style value - if true style should be rendered - - - - Filters literals, optionally allowing replacement of literal value - - the literal value - if true should be rendered - - - - Provides a mechanism for filtering HTML streams based upon a tag taxonomy - - - - - Determines if is "void" (i.e. "empty" or "full") tag - - lowercase tag name - if is a void tag - - http://www.w3.org/TR/html5/semantics.html - http://www.w3.org/TR/html401/index/elements.html - http://www.w3.org/TR/xhtml-modularization/abstract_modules.html#sec_5.2. - http://www.w3.org/TR/WD-html40-970917/index/elements.html - - - - - Determines if the tag is required to be closed - - lowercase tag name - if closing tag is optional - - http://www.w3.org/TR/html5/semantics.html - http://www.w3.org/TR/html401/index/elements.html - http://www.w3.org/TR/WD-html40-970917/index/elements.html - - - - - Categorizes the tag for heuristics about markup type - - lowercase tag name - the box type for a particular element - - http://www.w3.org/TR/html5/semantics.html - - - - - Defines a prioritized taxonomy of tags - - - The types are enumerated in ascending levels of risk for use in filtering HTML input - - - - - Literal text, no tags - - - - - Inline character level elements and text strings - - - Tags of this type typically do not disrupt the text flow - - - - - style elements - - - Tags of this type change the visual appearance of text - - - - - list elements - - - Tags of this type denote lists and typically change the text flow - - - - - Block-level elements - - - Tags of this type denote sections or change the text flow - - - - - Media elements - - - Tags of this type safely embed media content - - - - - Tabular elements - - - Tags of this type have a very specific structure and their own rendering model - - - - - Form elements - - - Tags of this type are used in the construction of forms for capturing user input - - - - - Script elements - - - Tags of this type represent a security risk to the containing document but must obey the browser security sandbox - - - - - Document elements - - - Tags of this type are used to construct the document itself - - - - - embedded elements - - - Tags of this type represent a large security risk to the containing document as plug-ins may circumvent the browser security sandbox - - - - - Unknown elements - - - - - Outputs markup text from an input stream of tokens - - - - - Ctor - - - - - - Resets the internal stack of elements - - - - - Formats the token sequence as a string - - - - - - Formats the token sequence to the writer - - - - - - - Emits a valid XML local-name (i.e. encodes invalid chars including ':') - - - - - Explicitly escaping ':' to maintain compatibility with XML Namespaces. - From XML 1.0, 5th ed. http://www.w3.org/TR/xml/#sec-common-syn - Name = NameStartChar (NameChar)* - NameStartChar = ":" - | [A-Z] - | "_" - | [a-z] - | [#xC0-#xD6] - | [#xD8-#xF6] - | [#xF8-#x2FF] - | [#x370-#x37D] - | [#x37F-#x1FFF] - | [#x200C-#x200D] - | [#x2070-#x218F] - | [#x2C00-#x2FEF] - | [#x3001-#xD7FF] - | [#xF900-#xFDCF] - | [#xFDF0-#xFFFD] - | [#x10000-#xEFFFF] - NameChar = NameStartChar - | "-" - | "." - | [0-9] - | #xB7 - | [#x0300-#x036F] - | [#x203F-#x2040] - - - - - - Emits valid XML character data - - - - encodes all non-ASCII chars - - - - - Emits valid XML attribute character data - - - - encodes all non-ASCII chars - - - - Gets and sets a value indicating if should emit canonical form - - - http://www.w3.org/TR/xml-c14n - - - - - Gets and sets a value indicating how should emit empty attributes - - - - - Gets and sets a value indicating if should encode text chars above the ASCII range - - - This option can help when the output is being embedded within an unknown encoding - - - - - HTML-style empty attributes do not emit a quoted string - - - http://www.w3.org/TR/html5/syntax.html#attributes-0 - - - - - XHTML-style empty attributes repeat the attribute name as its value - - - http://www.w3.org/TR/xhtml-media-types/#C_10 - http://www.w3.org/TR/xhtml1/#C_10 - http://www.w3.org/TR/html5/the-xhtml-syntax.html - - - - - XML-style empty attributes emit an empty quoted string - - - http://www.w3.org/TR/xml/#sec-starttags - - - - - Generates a sequence of tokens from a generalized model of markup text (e.g. HTML, XML, JBST, ASPX/ASCX, ASP, JSP, PHP, etc.) - - - This generates a stream of tokens like StAX (Streaming API for XML) - Unlike XML, this follows a more permissive markup format with automatic recovery most similar to HTML5. - - - - - Generates a sequence of tokens from a sequence of characters - - token type - - - - Tokenizes the input sequence into tokens - - - - - - - Tokenizes the input sequence into tokens - - - - - - - Gets the current column of the underlying input character sequence - - - Tokenizers not tracking columns should return -1. - - - - - Gets the current line of the underlying input character sequence - - - Tokenizers not tracking lines should return -1. - - - - - Gets the current position of the underlying input character sequence - - - Tokenizers not tracking index should return -1. - - - - - Decodes HTML-style entities into special characters - - - the entity text - - TODO: validate against HTML5-style entities - http://www.w3.org/TR/html5/tokenization.html#consume-a-character-reference - - - - - Decodes most known named entities - - - - - - - Checks for element start char - - - - - http://www.w3.org/TR/xml/#sec-common-syn - - - - - Checks for element name char - - - - - http://www.w3.org/TR/xml/#sec-common-syn - - - - - Gets a token sequence from the TextReader - - - - - - - Gets a token sequence from the string - - - - - - - Gets and sets if should attempt to auto-balance mismatched tags. - - - - - Gets and sets if should unwrap comments inside . - - - For example, in HTML this would include "script" and "style" tags. - - - - - Gets and sets a set of tags which should not have their content parsed. - - - For example, in HTML this would include "script" and "style" tags. - - - - - Gets the total number of characters read from the input - - - - - Gets the total number of lines read from the input - - - - - Gets the current position within the input - - - - - Ctor - - - - - Renders Common Model Tokens into a semantic HTML representation of the data structure - - - - - Consumes a sequence of tokens and produces a token sequence of a different type - - input token type - output token type - - - - Transforms the token sequence from to - - - - - - - Consumes a sequence of tokens and produces a token sequence of a different type - - - - - Formats the token sequence to the output - - - - - - - StringBuilder-like implementation built like List<char> - - - - - Ctor - - - - - Ctor - - - - - - Resets the buffer to an empty state - - - - - Appends a single char to the buffer - - - - - - - Appends a string value to the buffer - - - - - - - Copies the buffer value into a - - - - - - Gets the number of characters in the buffer - - - - - - Ctor - - - - - - Ctor - - - - - - - Ctor - - - - - - Ctor - - - - - - - - Supports forward-only iteration over an input sequence of - - - - - Supports forward-only iteration over an input sequence of - - - - - Supports forward-only iteration over an input sequence - - - - - Returns but does not remove the item at the front of the sequence. - - - - - - Returns and removes the item at the front of the sequence. - - - - - - Begins chunking at the current index - - - - - Ends chunking at the current index and returns the buffered sequence chunk - - - - - - Determines if the sequence has completed. - - - - - Gets a value indicating if is currently capturing a sequence - - - - - Gets the number of items currently chunked - - - - - Factory method for generic streams - - - - - - - - Returns but does not remove the item at the front of the sequence. - - - - - - Returns and removes the item at the front of the sequence. - - - - - - Determines if the input sequence has reached the end - - - - - Ctor - - - - - - Returns but does not remove the item at the front of the sequence. - - - - - - Returns and removes the item at the front of the sequence. - - - - - - Deferred execution of iterator - - - - - Determines if the input sequence has reached the end - - - - - Supports a simple iteration over a list with ability to capture a subsequence - - - - - Ctor - - - - - - Begins chunking at the current index - - - - - Ends chunking at the current index and returns the buffered chunk - - - - - - Returns but does not remove the item at the front of the sequence. - - - - - - Returns and removes the item at the front of the sequence. - - - - - - Deferred execution of iterator - - - - - Gets the number of characters currently chunked - - - - - - Determines if the input sequence has reached the end - - - - - Supports a simple iteration over a text input tracking line/column/position - - - - - Ends chunking at the current index and returns the buffered text chunk - - - - - - Ends chunking at the current index and writes the buffered text chunk into the provided StringBuilder - - - - - - Gets the total number of characters read from the input - - - - - Gets the total number of lines read from the input - - - - - Gets the current position within the input - - - - - Supports a simple iteration over a string tracking line/column/position - - - - - Ctor - - - - - - Begins chunking at the current index - - - - - Ends chunking at the current index and returns the buffered text chunk - - - - - - Ends chunking at the current index and returns the buffered text chunk - - - - - - Ends chunking at the current index and returns the buffered text chunk - - - - - - Returns but does not remove the item at the front of the sequence. - - - - - - Returns and removes the item at the front of the sequence. - - - - - - Deferred execution of iterator - - - - - Calculates index, line, and column statistics - - - - - Releases all resources used - - - - - Gets the total number of characters read from the input - - - - - Gets the total number of lines read from the input - - - - - Gets the current position within the input - - - - - Gets the number of characters currently chunked - - - - - Gets a value indicating if the is currently chunking - - - - - Determines if the input sequence has reached the end - - - - - Supports a simple iteration over a TextReader tracking line/column/position - - - - - Ctor - - - - - - Begins chunking at the current index - - - - - Ends chunking at the current index and returns the buffered text chunk - - - - - - Ends chunking at the current index and returns the buffered text chunk - - - - - - Ends chunking at the current index and returns the buffered text chunk - - - - - Returns but does not remove the item at the front of the sequence. - - - - - - Returns and removes the item at the front of the sequence. - - - - - - Deferred execution of iterator - - - - - Calculates index, line, and column statistics - - - - - - - Releases all resources used by the underlying reader - - - - - Gets the total number of characters read from the input - - - - - Gets the total number of lines read from the input - - - - - Gets the current position within the input - - - - - Gets the number of characters currently chunked - - - - - Gets a value indicating if the is currently chunking - - - - - Determines if the input sequence has reached the end - - - - - Formal language of tokens and symbols for JSON - - - - - Designates a property or field to not be serialized. - - - - - Specifies the naming to use for a property or field when serializing - - - - - Ctor - - - - - Ctor - - - - - - Gets and sets the name to be used in serialization - - - - - JSON deserializer - - - - - Ctor - - - - - Ctor - - - - - - Ctor - - - - - - - Gets the supported content type of the serialized data - - - - - Generates a sequence of tokens from JSON text - - - - - Gets a token sequence from the scanner stream - - - - - - - Scans for the longest valid EcmaScript identifier - - identifier - - http://www.ecma-international.org/publications/files/ECMA-ST/Ecma-262.pdf - - IdentifierName = - IdentifierStart | IdentifierName IdentifierPart - IdentifierStart = - Letter | '$' | '_' - IdentifierPart = - IdentifierStart | Digit - - - - - Gets a token sequence from the TextReader - - - - - - - Gets a token sequence from the string - - - - - - - Gets the total number of characters read from the input - - - - - Gets the total number of lines read from the input - - - - - Gets the current position within the input - - - - - It is an error for the next token to be a value delim - - - - - Forbidden but differentiates between empty array/object and just written - - - - - It is an error for the next token to NOT be a value delim - - - - - Specifies the name of the property which specifies if member should be serialized. - - - These properties can be marked private/protected/internal and it will still be recognized - - - - - Ctor - - the name of the property which controls serialization for this member - - - - Ctor - - the name of the property which controls serialization for this member - - - - Gets and sets the name of the property which - specifies if member should be serialized - - - - - Transforms markup tokens into Common Model tokens using the (lossless) JsonML model - - - JsonML Grammer: http://jsonml.org - - - - - Consumes a sequence of tokens and produces a token sequence of a different type - - - - - Determines how whitespace should be handled - - - - - Transforms Common Model tokens into markup tokens using the (lossless) JsonML model - - - JsonML Grammer: http://jsonml.org - - - - - Consumes a sequence of tokens and produces a token sequence of a different type - - - - - Controls name resolution for IDataReader / IDataWriter using JsonNameAttribute / JsonIgnoreAttribute / JsonPropertySpecifiedAttribute - - - This is the default strategy from JsonFx v1.0 - - - - - Controls name resolution for IDataReader / IDataWriter using plain old CLR object (POCO) names - - - - - Controls name resolution for IDataReader / IDataWriter - - - Provides an extensibility point to control member naming and visibility at a very granular level. - - - - - Gets a value indicating if the property is to be serialized. - - - - - - - - Gets a value indicating if the field is to be serialized. - - - - - - - Determines if the property or field should not be serialized. - - - - - - - - - Gets the serialized name for the member. - - - - - - - Allows a strategy to perform a custom sort order to outputted members - - - - - A common usage is to ensure that Attributes sort first - - - - - Gets a value indicating if the property is to be serialized. - - - - - default implementation is must be read/write properties, or immutable - - - - Gets a value indicating if the field is to be serialized. - - - - default implementation is must be public, non-readonly field - - - - Gets a delegate which determines if the property or field should not be serialized based upon its value. - - - if has a value equivalent to the DefaultValueAttribute - - This is useful when default values need not be serialized. - - - - - Gets the serialized name for the member. - - - - - - - Allows a strategy to perform a custom sort order to outputted members - - - - - A common usage is to ensure that Attributes sort first - - - - - Gets a value indicating if the property is to be serialized. - - - - - default implementation is must be read/write properties, or immutable - - - - Gets a value indicating if the field is to be serialized. - - - - default implementation is must be public, non-readonly field - - - - Gets a delegate which determines if the property or field should not be serialized based upon its value. - - - if has a value equivalent to the DefaultValueAttribute - - This is useful for excluding serialization of default values. - - - - - Gets the serialized name for the member. - - - - - - - Determines whitespace handling - - - - - Removes insignificant whitespace - - - - - Keep all whitespace - - - - - Condenses all whitespace to single spaces - - - - - Designates a type as being able to format itself to raw JSON text. - - - - - Ctor - - - - - Ctor - - - - - Gets and sets the starting delimiter - - - - - Gets and sets the ending delimiter - - - - - Gets and sets the context - - - - - Formal language of tokens and symbols for markup - - - - - Any of a number of unparsed tags which typically contain specialized processing instructions - - - The name of the token is the beginning and ending delimiters as a format string (not including the '<' or '>') - Includes the following types: - - "<!--", "-->" XML/HTML/SGML comment - "<!", ">" XML/SGML declaration (e.g. DOCTYPE or server-side includes) - - "<?=", "?>" PHP expression - "<?", "?>" PHP code block /XML processing instruction (e.g. the XML declaration) - - "<%--", "--%>" ASP/PSP/JSP-style code comment - "<%@", "%>" ASP/PSP/JSP directive - "<%=", "%>" ASP/PSP/JSP/JBST expression - "<%!", "%>" JSP/JBST declaration - "<%#", "%>" ASP.NET/JBST databind expression - "<%$", "%>" ASP.NET/JBST extension - "<%", "%>" ASP code block / JSP scriptlet / PSP code block - - - - - tokens - - - - - - - - - - - Maintains scope chain for namespace prefix mappings - - - - - Adds a new scope to the chain - - - - - - Gets the last scope off the chain - - - - - Gets and removes the last scope off the chain - - - - - - Finds the namespace URI for a given prefix within the curren scope chain - - - - - - - Finds the prefix for a given namespace URI within the curren scope chain - - - - - - - Checks if the matching begin tag exists on the stack - - - - - - Resets the internal state of the scope chain. - - - - - Looks up the prefix for the given namespace - - - - null if namespace is empty and no default prefix found - - - - Represents a scope boundary within a prefix scope chain - - - - - Returns if this scope boundary contains a mapping for a particular prefix - - - if this scope boundary contains a mapping for a particular prefix - - - - Returns if this scope boundary contains a mapping for a particular namespace - - - if this scope boundary contains a mapping for a particular namespace - - - - Returns if this scope boundary contains a mapping for a particular prefix - setting the namespace URI if one was found. - - - the resolved namespace URI - if this scope boundary contains a mapping for a particular prefix - - - - Returns if this scope boundary contains a mapping for a particular prefix - setting the prefix if one was found. - - - the resolved prefix - if this scope boundary contains a mapping for a particular prefix - - - - Gets and sets the tagname associated with this scope boundary - - - - - Gets and sets mappings between prefix and namespace URIs - - - - - - - Provides lookup capabilities for providers - - - - - Parses HTTP headers for Media-Types - - HTTP Accept header - HTTP Content-Type header - sequence of Media-Types - - http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html - - - - - - - - - - - - Controls name resolution for IDataReader / IDataWriter using convention-based name mapping - - - Converts standard .NET PascalCase naming convention into the specified naming convention. - http://msdn.microsoft.com/en-us/library/x2dbyw72.aspx - http://msdn.microsoft.com/en-us/library/141e06ef.aspx - http://msdn.microsoft.com/en-us/library/xzf533w0.aspx - - - - - Ctor - - - - - - Ctor - - - - - - - Gets the serialized name for the member. - - - - - - - Splits a multi-word name assuming standard .NET PascalCase conventions. - - - - - http://msdn.microsoft.com/en-us/library/x2dbyw72.aspx - http://msdn.microsoft.com/en-us/library/141e06ef.aspx - http://msdn.microsoft.com/en-us/library/xzf533w0.aspx - - - - - - Ctor - - - - - - - - Ctor - - - - - - - Represents a property or document name, and a corresponding namespace URI (or empty string). - Analogous to XML "expanded name": http://www.w3.org/TR/REC-xml-names/#dt-expname - - - Namespaces must be a URI, but local-name can be any non-null string. - It is up to formatters to determine how to properly represent names which are invalid for the format. - - - - - local-name - - - - - alias for the namespace - - - - - namespace - - - - - Determines if name should be treated like an attribute - - - - - Ctor - - a CLR Type used to generate the local-name - - This constructor implicitly delcares the namespace to be empty. - - - - - Ctor - - any string is a valid local-name - - This constructor implicitly delcares the namespace to be empty. - - - - - Ctor - - any string is a valid local-name - an absolute URI string, or null - thrown if is null - thrown if is an invalid absolute URI - - The namespace field follows XML recommendation of absolute URIs. - Relative URIs are officially deprecated for namespaces: http://www.w3.org/2000/09/xppa - - - - - Ctor - - any string is a valid local-name - an absolute URI string, or null - determines if name should be an attribute name - thrown if is null - thrown if is an invalid absolute URI - - The namespace field follows XML recommendation of absolute URIs. - Relative URIs are officially deprecated for namespaces: http://www.w3.org/2000/09/xppa - - - - - Gets the local-name for a Type - - - - - - - Gets the prefixed name or simply local-name if is not a fully qualified name - - true to generate a prefix if the prefix is empty but not the namespace - - - - - Gets the namespaced name or simply local-name if is not a fully qualified name - - - - - - Compares two values and returns an indication of their relative sort order. - - - - - Performs ordering according to XML Canonicalization document order http://www.w3.org/TR/xml-c14n#DocumentOrder - "An element's namespace nodes are sorted lexicographically by local name (the default namespace node, if one exists, has no local name and is therefore lexicographically least)." - "An element's attribute nodes are sorted lexicographically with namespace URI as the primary key and local name as the secondary key (an empty namespace URI is lexicographically least)." - - - - - Determines if this is an empty DataName - - - - - Indicates a graph cycle was detected during serialization - - - - - Indicates an error occurred during serialization - - - - - Ctor - - - - - Ctor - - - - - - Ctor - - - - - - - Ctor - - - - - Ctor - - - - - - Ctor - - - - - - - Gets the type of cycle which caused the error - - - - - Graph cycles are detected with a reference tracking, any repeated reference results in a null value - - - - - Graph cycles are detected with a reference tracking, any repeated reference results in an error - - - - - Graph cycles are detected with a maximum depth count, exceeding depth results in an error - - - - - Detects graph cycles by tracking graph depth - - - - - Defines an interface for detecting graph cycles - - - - - Begins tracking of the reference - - - true if graph cycle was detected - - - - Ends tracking of the reference - - - true if tracking was successfully completed - - - - Ctor - - - - - - Increments the depth - - - true if MaxDepth has not been exceeded - - - - Increments the depth - - - - - - Detects cycles by detecting duplicates in the a set of object references - - - - - Adds a reference to the set - - - true if object already existed within set - - - - Removes a reference from the set - - - - - - Controls deserialization settings for IDataReader - - - - - Ctor - - - - - Ctor - - - - - Ctor - - - - - Ctor - - - - - - Ctor - - - - - - Ctor - - - - - - Ctor - - - - - - Gets and sets if ValueTypes can accept values of null - - - If this is true and a ValueType T is assigned the value of null, - it will receive the value of default(T). - Setting this to false, throws an exception if null is - specified for a ValueType member. - - - - - Gets and sets if should verify that stream is empty after deserialzing each object - - - Setting to true allows reading a JSON stream inside other structures (e.g. JavaScript) - - - - - Gets manager of name resolution for IDataReader - - - - - Gets the custom filters - - - - - Controls the serialization settings for IDataWriter - - - - - Ctor - - - - - Ctor - - - - - Ctor - - - - - Ctor - - - - - - Ctor - - - - - - Ctor - - - - - - Ctor - - - - - - Gets and sets what to do when graph cycles (repeated references) are encounted - - - - - Gets and sets the maximum nesting depth - - - Depth is a fast and easy safegaurd against detecting graph cycles but may produce false positives - - - - - Gets and sets if output will be formatted for human reading. - - - - - Gets and sets the string to use for indentation - - - - - Gets and sets the line terminator string - - - - - Gets manager of name resolution for IDataReader - - - - - Gets the custom filters - - - - - Indicates an error occurred during deserialization - - - - - Ctor - - - - - - - Ctor - - - - - - - - - Ctor - - - - - - - - Ctor - - - - - - - - Helper method which converts the index into Line and Column numbers - - - - - - - - Gets the character column in the stream where the error occurred - - - - - Gets the character position in the stream where the error occurred - - - - - Gets the character line in the stream where the error occurred - - - - - Indicates an error occurred during token consumption - - - - - - Ctor - - - - - Ctor - - - - - - Ctor - - - - - - - Gets the token in the sequence where the error occurred - - - - - Indicates an error occurred during type coercion - - - - - Ctor - - - - - Ctor - - - - - - Ctor - - - - - - - Provides lookup capabilities for finding matching IDataReader - - - - - Provides lookup capabilities for finding matching IDataReader - - - - - Ctor - - inject with all possible readers - - - - Finds an IDataReader by content-type header - - - - - - - Provides lookup capabilities for finding an IDataWriter - - - - - Provides lookup capabilities for finding an IDataWriter - - - - - Ctor - - inject with all possible writers - - - - Controls name resolution for IDataReader / IDataWriter by using pluggable delegate callbacks - - - - - Gets and sets the implementation for ignoring properties - - - - - Gets and sets the implementation for ignoring fields - - - - - Gets and sets the implementation for ignoring properties by value - - - - - Gets and sets the implementation for naming members - - - - - Gets and sets the implementation for sorting members - - - - - Controls name resolution for IDataReader / IDataWriter by combining an ordered sequence of any other strategies - - - Each strategy is invoked in order, the first to respond wins. - - - - - Ctor - - ordered sequence of strategies - - - - Ctor - - ordered sequence of strategies - - - - Gets a value indicating if the property is to be serialized. - - - - true if any strategy specifies should be ignored - - - - Gets a value indicating if the field is to be serialized. - - - true if any strategy specifies should be ignored - - - - Gets a delegate which determines if the property or field should not be serialized based upon its value. - - - true if any strategy specifies this should be ignored - - - - Gets the serialized name for the member. - - - - custom name if any strategy specifies one, otherwise null - - - - Allows a strategy to perform a custom sort order to outputted members - - - - - A common usage is to ensure that Attributes sort first - - - - - Controls name resolution for IDataReader / IDataWriter using DataContract attributes - - - http://msdn.microsoft.com/en-us/library/kd1dc9w5.aspx - - - - - CCtor - - - - - Gets a value indicating if the property is to be serialized. - - - - - - - - Gets a value indicating if the field is to be serialized. - - - - - - - Gets a delegate which determines if the property or field should not be serialized based upon its value. - - - - - - - Gets the serialized name for the member. - - - - - - - Gets a delegate which determines if the property or field should not be serialized based upon its value. - - - - - - - The original member info - - - - - The original member name - - - - - The member data name - - - - - The member type - - - - - The getter method - - - - - The setter method - - - - - The logic for determining if a value is ignored - - - - - Determines if map name is alternate (i.e. only used for deserialization) - - - - - Ctor - - MemberMap to clone - alternate name - - - - Ctor - - - - - - - - Ctor - - - - - - - - Ctor - - - - - Gets a sequence of the available factory arguments - - - - - Gets the factory associated with the given argument type - - - - - - - Cache of name resolution mappings for IDataReader / IDataWriter - - - - - Ctor - - - - - - Gets the serialized name of the class - - - - - - - Removes any cached member mappings. - - - - - Builds a mapping of member name to field/property - - - - - - Represents a single immutable token in an input sequence - - - - - The type of the token - - - - - The name of the token - - - - - The value of the token - - - - - Ctor - - - - - - Ctor - - - - - - - Ctor - - - - - - - Ctor - - - - - - - Returns a string that represents the current token. - - - - - - Gets the value of the token as a string - - - - - - Converts a value to a string giving opportunity for IConvertible, IFormattable - - - - - - - Converts token to a token of a different type - - - token with same values and different type - - - - Type Coercion Utility - - - - - Ctor - - - - - - - Ctor - - - - - - - Instantiates a new instance of objectType. - - - objectType instance - - - - Instantiates a new instance of objectType. - - - objectType instance - - - - Helper method to set value of a member. - - - - - - - - - - Coerces the object value to Type - - - - - - - - Coerces the object value to Type of - - - - - - - - Populates the properties of an object with the dictionary values. - - - - - - - - Populates the properties of an object with the dictionary values. - - - - - - - - Coerces an sequence of items into an array of Type elementType - - - - - - - - Finds a suitable concrete class for common collection interface types - - - - - - - Allows specific IDictionary<string, TVal> to deserialize as TVal - - IDictionary<string, TVal> Type - TVal Type - - - - Returns a common type which can hold previous values and the new value - - - - - - - - Determines if type can be assigned a null value. - - - - - - - Gets the attribute T for the given value. - - - Attribute Type - true if defined - - - - Gets the attribute of Type for the given value. - - - true if defined - - - - Gets the attribute T for the given value. - - - Attribute Type - requested attribute or not if not defined - - - - Gets the attribute of Type for the given value. - - - requested attribute or not if not defined - - - - Character Utility - - - These are either simpler definitions of character classes (e.g. letter is [a-zA-Z]), - or they implement platform-agnositic checks (read: "Silverlight workarounds"). - - - - - Checks if string is null, empty or entirely made up of whitespace - - - - - Essentially the same as String.IsNullOrWhiteSpace from .NET 4.0 - with a simplfied view of whitespace. - - - - - Checks if character is line ending, tab or space - - - - - - - - - - - - - - Checks if character matches [A-Za-z] - - - - - - - Checks if character matches [0-9] - - - - - - - Checks if character matches [0-9A-Fa-f] - - - - - - - Gets a 4-bit number as a hex digit - - 0-15 - - - - - Formats a number as a hex digit - - - - - - - Converts the value of a UTF-16 encoded character or surrogate pair at a specified - position in a string into a Unicode code point. - - - - - - - - Converts the specified Unicode code point into a UTF-16 encoded string. - - - - - - - XML serializer - - - XML serializer - - - - - Ctor - - - - - Ctor - - - - - - Ctor - - - - - - - Gets a tokenizer for XML - - - - - - Gets the supported content type for the serialized data - - - - - Transforms markup tokens into Common Model tokens using an XML-data model - - - - - Ctor - - - - - - Consumes a sequence of tokens and produces a token sequence of a different type - - - - - Formats the token sequence to the output - - - - - - - - Ctor - - - - - Ctor - - - - - - Gets a token sequence from the string - - - - - - - Gets a token sequence from the TextReader - - - - - - - Gets a token sequence from the XmlReader - - - - - - - Gets the total number of characters read from the input - - - - - Gets the total number of lines read from the input - - - - - Gets the current position within the input - - - - - XML serializer - - - - - Ctor - - - - - Ctor - - - - - - Ctor - - - - - - - Gets the formatter for XML - - - - - - - Gets the supported content type for the serialized data - - - - - Gets the supported file extension for the serialized data - - - - - Transforms Common Model tokens into markup tokens using an XML-data model - - - - - Ctor - - - - - - Consumes a sequence of tokens and produces a token sequence of a different type - - - - - Formats the token sequence to the output - - - - - - - Outputs XML text from an input stream of tokens - - - - - Ctor - - - - - - Formats the token sequence as a string - - - - - - Formats the token sequence to the writer - - - - - - - Formats the token sequence to the writer - - - - - - - Wraps an XmlWriter as a TextWriter - - - - - Ctor - - - - - - Gets the underlying XmlWriter - - - - - Controls name resolution for IDataReader / IDataWriter using attributes and conventions similar to XmlSerializer semantics - - - http://msdn.microsoft.com/en-us/library/83y7df3e.aspx - - - - - Gets a value indicating if the property is to be serialized. - - - - - default implementation is must be read/write properties, or immutable - - - - Gets a value indicating if the field is to be serialized. - - - - default implementation is must be public, non-readonly field - - - - Gets a delegate which determines if the property or field should not be serialized based upon its value. - - - if has a value equivalent to the DefaultValueAttribute or has a property named XXXSpecified which determines visibility - - This is useful when default values need not be serialized. - Under these situations XmlSerializer ignores properties based upon value: - - DefaultValue: http://msdn.microsoft.com/en-us/library/system.componentmodel.defaultvalueattribute.aspx - - Specified Properies: http://msdn.microsoft.com/en-us/library/bb402199.aspx - - ShouldSerialize Methods: http://msdn.microsoft.com/en-us/library/53b8022e.aspx - - - - - Gets the serialized name for the member. - - - - - - - Sorts members to ensure proper document order where attributes precede all child elements. - - - - - Performs the first stage of XML Canonicalization document order http://www.w3.org/TR/xml-c14n#DocumentOrder - "An element's namespace and attribute nodes have a document order position greater than the element but less than any child node of the element." - - - - - Generates delegates for getting/setting properties and field and invoking constructors - - - - - Creates a field getter delegate for the specified property or field - - PropertyInfo or FieldInfo - GetterDelegate for property or field, null otherwise - - Note: use with caution this method will expose private and protected constructors without safety checks. - - - - - Creates a field setter delegate for the specified property or field - - PropertyInfo or FieldInfo - SetterDelegate for property or field, null otherwise - - - - Creates a property getter delegate for the specified property - - - GetterDelegate if property CanRead, otherwise null - - Note: use with caution this method will expose private and protected constructors without safety checks. - - - - - Creates a property setter delegate for the specified property - - - GetterDelegate if property CanWrite, otherwise null - - Note: use with caution this method will expose private and protected constructors without safety checks. - - - - - Creates a field getter delegate for the specified field - - - GetterDelegate which returns field unless is enum in which will return enum value - - Note: use with caution this method will expose private and protected constructors without safety checks. - - - - - Creates a field setter delegate for the specified field - - - SetterDelegate unless field IsInitOnly then returns null - - Note: use with caution this method will expose private and protected constructors without safety checks. - - - - - Creates a proxy delegate accepting a target instance and corresponding arguments - - method to proxy - ProxyDelegate or null if cannot be invoked - - Note: use with caution this method will expose private and protected methods without safety checks. - - - - - Creates a default constructor delegate - - type to be created - FactoryDelegate or null if default constructor not found - - Note: use with caution this method will expose private and protected constructors without safety checks. - - - - - Creates a constructor delegate accepting specified arguments - - type to be created - constructor arguments type list - FactoryDelegate or null if constructor not found - - Note: use with caution this method will expose private and protected constructors without safety checks. - - - - - Creates a constructor delegate accepting specified arguments - - type to be created - constructor arguments type list - FactoryDelegate or null if constructor not found - - Note: use with caution this method will expose private and protected constructors without safety checks. - - - - diff --git a/packages/JsonFx.2.0.1209.2802/lib/sl40/JsonFx.dll b/packages/JsonFx.2.0.1209.2802/lib/sl40/JsonFx.dll deleted file mode 100644 index 0d1c1e51..00000000 Binary files a/packages/JsonFx.2.0.1209.2802/lib/sl40/JsonFx.dll and /dev/null differ diff --git a/packages/JsonFx.2.0.1209.2802/lib/sl40/JsonFx.xml b/packages/JsonFx.2.0.1209.2802/lib/sl40/JsonFx.xml deleted file mode 100644 index 08dadc47..00000000 --- a/packages/JsonFx.2.0.1209.2802/lib/sl40/JsonFx.xml +++ /dev/null @@ -1,4842 +0,0 @@ - - - - JsonFx - - - - - JsonFx metadata - - - - - Ctor - - - - - - Outputs BSON bytes from an input stream of tokens - - - - - Outputs text from an input stream of JSON tokens - - token type - - - - Formats the token sequence to the output writer - - - - - - - Formats the token sequence as a string - - - - - - Formats the token sequence as a string - - - - - - Formats the token sequence to the output writer - - - - - - - Emits a document (or array) to the binary stream - - - - number of bytes written - - - - Emits a single element to the binary stream - - - - - number of bytes written - - - - Emits a string value - - - - number of bytes written - - - - Emits a binary value - - - - number of bytes written - - - - Emits a code_w_s value - - - - number of bytes written - - - - Generates a sequence of tokens from BSON bytes - - - - - Generates a sequence of tokens from a sequence of characters - - token type - - - - Tokenizes the input sequence into tokens - - - - - - - Tokenizes the input sequence into tokens - - - - - - - Gets the current position of the underlying input character sequence - - - Tokenizers not tracking index should return -1. - - - - - Gets a token sequence from the TextReader - - - - - - - Gets a token sequence from the string - - - - - - - Gets a token sequence from the reader - - - - - - - Gets the current position of the underlying stream - - - - - BSON MD5 Datatype - - - - - Ctor - - - - - - Ctor - - - - - - Ctor - - - - - - Converts MD5 to Guid - - - - - - - - Converts MD5 to Guid - - - - - - - Gets the hashcode of the underlying Guid - - - - - - BSON JavaScript Code With Scope Datatype - - - - - BSON JavaScript Code Datatype - - - - - Ctor - - - - - - Converts JavaScriptCode to string - - - - - - - - Converts JavaScriptCode to string - - - - - - - Gets the hashcode of the underlying string - - - - - - BSON Symbol Datatype - - - - - Ctor - - - - - - Converts Symbol to string - - - - - - - - Converts Symbol to string - - - - - - - Gets the hashcode of the underlying string - - - - - - BSON DBPointer Datatype (Deprecated) - - - - - Immutable BSON ObjectID Datatype - - - http://www.mongodb.org/display/DOCS/Object+IDs#ObjectIDs-TheBSONObjectIdDatatype - - - - - Ctor - - 12-byte object ID - - - - Ctor - - 4-byte seconds since Unit epoch - 3-byte machine ID - 2-byte process ID - 3-byte counter - - - - Converts an ObjectID to a hex string - - - - - - - Converts a hex string to an ObjectID - - - - - - - Converts an ObjectID to a byte array - - - - - - - Converts a byte array to an ObjectID - - - - - - - Gets the hashcode of the underlying string - - - - - - Gets the time associated with this ObjectID - - - - - Gets the machine id associated with this ObjectID - - - - - Gets the process id associated with this ObjectID - - - - - Gets the counter associated with this ObjectID - - - - - Generic binary holder - - - http://api.mongodb.org/java/2.0/org/bson/types/Binary.html - - - - - Ctor - - binary type code - byte date - - - - Converts an ObjectID to a hex string - - - - - - - Converts a hex string to an ObjectID - - - - - - - Converts an ObjectID to a byte array - - - - - - - Converts a byte array to an ObjectID - - - - - - - Gets the hashcode of the underlying string - - - - - - Gets a 4-bit number as a hex digit - - 0-15 - - - - - Gets the binary type code - - - - - Gets the binary type code - - - - - Gets the byte at the given index - - - - - Gets the length of the binary data - - - - - Designates a type as being able to format itself to raw BSON bytes - - - - - Designates a type as being able to format itself to raw bytes - - - - - Writes custom format to the output using either tokens or bytes - - - - total number of bytes written - - - - Determines the corresponding BSON element type - - - - - - Generalized delegate for invoking a constructor - - - - - - - Generalized delegate for invoking a method - - the instance object - the method parameters - - - - - Generalized delegate for getting a field or property value - - - - - - - Generalized delegate for setting a field or property value - - - - - - - Consumes a sequence of tokens to produce an object graph optionally coerced to a given type - - - - - Consumes a sequence of tokens to produce a sequence of objects, optionally coerced to a given type - - token type - - - - Parses the token sequence - - - - - - - Parses the token sequence, optionally coercing the result to Type targetType - - - optional type for coercion (null if not specified) - - - - - Parses the token sequence, coercing the result to Type TResult - - optional type for coercion (null if not specified) - - - - - - Parses the token stream coercing the result to TResult (type inferred from ) - - - - an example value used solely for Type inference - - - - - Ctor - - - - - - Parses the token stream coercing the result targetType - - - - - - - Parses the token stream coercing the result to targetType - - - - - - - - Parses the token stream coercing the result to TResult - - the result target type - - - - - - Parses the token stream coercing the result to TResult (inferred from ) - - - - an example value used solely for Type inference - - - - - Common Model Language grammar helper - - - Simplifies and guides syntax, and provides a set of reusable tokens to reduce redundant token instantiations - - - - - Marks the beginning of an array - - the local name of the array - ArrayBegin Token - - - - Marks the beginning of an array - - the local name of the array - the namespace of the document - ArrayBegin Token - - - - Marks the beginning of an array - - the name of the array - ArrayBegin Token - - - - Marks the beginning of an object - - the local name of the object - ObjectBegin Token - - - - Marks the beginning of an object - - the name of the object - ObjectBegin Token - - - - Marks the beginning of an object property - - the local name of the property - PropertyKey Token - - - - Marks the beginning of an object property - - the local name of the property - PropertyKey Token - - - - Marks the beginning of an object property - - the name of the property - PropertyKey Token - - - - A simple scalar value (typically serialized as a single primitive value) - - - Value Token - - - - Provides base implementation for standard deserializers - - - Provides base implementation for standard deserializers - - - This partial class adds LINQ capabilities to the reader. - - - - - Provides base implementation for standard deserializers - - - - - A common interface for data deserializers - - - - - Deserializes a single object from the given input - - the input reader - a value used to trigger Type inference for (e.g. for deserializing anonymous objects) - the expected type of the serialized data - - - - Deserializes a single object from the given input - - the input reader - the expected type of the serialized data - - - - Serializes the data to the given output - - the input reader - - - - Deserializes a single object from the given input - - the input reader - the expected type of the serialized data - - - - Deserializes a single object from the given input - - the input text - a value used to trigger Type inference for (e.g. for deserializing anonymous objects) - the expected type of the serialized data - - - - Deserializes a single object from the given input - - the input text - the expected type of the serialized data - - - - Deserializes a single object from the given input - - the input text - - - - Deserializes a single object from the given input - - the input text - the expected type of the serialized data - - - - Deserializes a potentially endless sequence of objects from a stream source - - - - - character stream => token stream => object stream - - - - - Gets the supported content type of the serialized data - - - - - Gets the settings used for deserialization - - - - - Ctor - - - - - - Deserializes the data from the given input - - the input reader - a value used to trigger Type inference for (e.g. for deserializing anonymous objects) - the expected type of the serialized data - - - - Deserializes the data from the given input - - the input reader - the expected type of the serialized data - - - - Deserializes the data from the given input - - the input reader - - - - Deserializes the data from the given input - - the input reader - the expected type of the serialized data - - - - Deserializes the data from the given input - - the input text - a value used to trigger Type inference for (e.g. for deserializing anonymous objects) - the expected type of the serialized data - - - - Deserializes the data from the given input - - the input text - the expected type of the serialized data - - - - Deserializes the data from the given input - - the input text - - - - Deserializes the data from the given input - - the input text - the expected type of the serialized data - - - - Deserializes a potentially endless sequence of objects from a stream source - - a streamed source of objects - a sequence of objects - - character stream => token stream => object stream - - - - - Gets the supported content type of the serialized data - - - - - Gets the settings used for deserialization - - - - - A common interface for querying data readers - - - - - Begins a query of the given input - - the input reader - a value used to trigger Type inference for (e.g. for deserializing anonymous objects) - the expected type of the serialized data - - - - Begins a query of the given input - - the input reader - the expected type of the serialized data - - - - Serializes the data to the given output - - the input reader - - - - Begins a query of the given input - - the input reader - the expected type of the serialized data - - - - Begins a query of the given input - - the input text - a value used to trigger Type inference for (e.g. for deserializing anonymous objects) - the expected type of the serialized data - - - - Begins a query of the given input - - the input text - the expected type of the serialized data - - - - Begins a query of the given input - - the input text - - - - Begins a query of the given input - - the input text - the expected type of the serialized data - - - - Ctor - - - - - - Begins a query of the given input - - the input reader - a value used to trigger Type inference for (e.g. for deserializing anonymous objects) - the expected type of the serialized data - - - - Begins a query of the given input - - the input reader - the expected type of the serialized data - - - - Begins a query of the given input - - the input text - a value used to trigger Type inference for (e.g. for deserializing anonymous objects) - the expected type of the serialized data - - - - Begins a query of the given input - - the input text - the expected type of the serialized data - - - - Begins a query of the given input - - the input reader - a value used to trigger Type inference for (e.g. for deserializing anonymous objects) - the expected type of the serialized data - - - - Begins a query of the given input - - the input reader - the expected type of the serialized data - - - - Serializes the data to the given output - - the input reader - - - - Begins a query of the given input - - the input reader - the expected type of the serialized data - - - - Begins a query of the given input - - the input text - a value used to trigger Type inference for (e.g. for deserializing anonymous objects) - the expected type of the serialized data - - - - Begins a query of the given input - - the input text - the expected type of the serialized data - - - - Begins a query of the given input - - the input text - - - - Begins a query of the given input - - the input text - the expected type of the serialized data - - - - Extension methods for selecting subsequences of sequences of tokens - - - - - Determines if the sequence represents a primitive - - - - - - - Determines if the sequence represents an object - - - - - - - Determines if the root object has any properties which satisfies the name - - - - true if any properties match the predicate - - - - Gets all properties of the root object - - - - all properties for the object - - - - Gets all properties of the root object - - - - all properties for the object - - - - Gets the properties of the root object which satisfies the - - - - matching properties for the root object - - - - Gets the properties of the root object which satisfies the - - - - matching properties for the root object - - - - Determines if the sequence represents an array - - - - - - - Gets all the items of the array - - - all items of the array - - - - Gets the items of the root array with indexes satisfying the - - - - items of the root array which statisfy the predicate - - - - ArrayItems iterator - - - - - - - - Gets all descendant values below the current root - - - - - - - Descendants iterator - - - - - - - Gets all descendant values below the current root, as well as the current root - - - - - - - DescendantsAndSelf iterator - - - - - - - Covers the sitation where a stream of sequences may be back to back - - - - - - - Splices out the sequence for the next complete value (object, array, primitive) - - - - - - - Splices out the sequence for the next complete value (object, array, primitive) - - - - - - - Skips over the next complete value (object, array, primitive) - - - - - - - Common Model Language tokens - - - - - - - - - - - - Generates a sequence of tokens from an object graph - - - - - Generates a sequence of tokens from an object graph - - token type - - - - Generates a sequence of tokens representing the value - - - - - - - Ctor - - - - - - Generates a sequence of tokens representing the value - - - - - - - Allows a mechanism for manipulating JSON serialization - - Defines the type this filter reads/writes - - - - Partially implements an IDataFilter - - - - - Allows a mechanism for manipulating serialization - - Defines the type of token stream this filter understands - Defines the type this filter reads/writes - - - - Allows a mechanism for manipulating serialization - - Defines the type of token stream this filter understands - - - - Allows a class to act as a factory for a type via input Token<T> sequence - - input tokens - - true if value was generated - - - - Allows a class to serialize a type as Token<T> sequence - - - - true if value was consumed - - - - Allows a class to act as a factory for a type via input Token<T> sequence - - input tokens - - true if value was generated - - - - Allows a class to serialize a type as Token<T> sequence - - - - true if value was consumed - - - - Defines a filter for JSON-style serialization of DateTime into ISO-8601 string - - - This is the format used by EcmaScript 5th edition Date.prototype.toJSON(...): - http://www.ecma-international.org/publications/files/ECMA-ST/ECMA-262.pdf - http://www.w3.org/TR/NOTE-datetime - http://en.wikipedia.org/wiki/ISO_8601 - - NOTE: This format limits expressing DateTime as either UTC or Unspecified. Local (i.e. Server Local) is converted to UTC. - - - - - Converts a ISO-8601 string to the corresponding DateTime representation - - ISO-8601 conformant date - UTC or Unspecified DateTime - true if parsing was successful - - - - Converts a DateTime to the corresponding ISO-8601 string representation - - - ISO-8601 conformant date - - - - Determines the precision of fractional seconds. - Defaults to EcmaScript precision of milliseconds. - - - - - Defines the precision of fractional seconds in ISO-8601 dates - - - - - Defines a filter for JSON-style serialization of DateTime into an ASP.NET Ajax Date string. - - - This is the format used by Microsoft ASP.NET Ajax: - http://weblogs.asp.net/bleroy/archive/2008/01/18/dates-and-json.aspx - - NOTE: This format is limited to expressing DateTime at the millisecond level as UTC only. - The WCF extension of adding a timezone is ignored as this returns UTC dates only. - - - - - Converts an ASP.NET Ajax date string to the corresponding DateTime representation - - ASP.NET Ajax date string - - true if parsing was successful - - - - Converts a DateTime to the corresponding ASP.NET Ajax date string representation - - - ASP.NET Ajax date string - - - - Provides base implementation for standard serializers - - - - - Provides base implementation of standard serializers - - - - - A common interface for data serializers - - - - - Serializes the data to the given output - - the output writer - the data to be serialized - - - - Serializes the data to the given output - - the data to be serialized - the serialized data - - - - Gets the content encoding for the serialized data - - - - - Gets the supported content types for the serialized data - - - - - Gets the supported file extensions for the serialized data - - - - - Gets the settings used for serialization - - - - - Ctor - - - - - - Serializes the data to the given output - - the data to be serialized - the output writer - - - - Serializes the data to the given output - - the data to be serialized - the serialized data - - - - Gets the walker for this DataWriter - - - - - - - Gets the formatter for this DataWriter - - - - - - - Gets the content encoding for the serialized data - - - - - Gets the supported content types for the serialized data - - - - - Gets the supported file extensions for the serialized data - - - - - Gets the settings used for serialization - - - - - Ctor - - - - - - Gets a walker for JSON - - - - - - - Gets the content encoding for the serialized data - - - - - Represents an ECMAScript identifier for serialization. - - - - - Designates a type as being able to format itself to raw text - - - - - Writes custom format to the output using either tokens or text - - - - - - - Ctor - - - - - Ctor - - - - - - Verifies is a valid EcmaScript identifier - - the identifier - identifier - - - - Verifies is a valid EcmaScript identifier - - the identifier - identifier - - - - Verifies is a valid EcmaScript variable expression - - the identifier - identifier - - http://www.ecma-international.org/publications/files/ECMA-ST/Ecma-262.pdf - - IdentifierName = - IdentifierStart | IdentifierName IdentifierPart - IdentifierStart = - Letter | '$' | '_' - IdentifierPart = - IdentifierStart | Digit - - - - - Trivial conversion method. Essentially performs a cast. - - - - - Supports conversion via System.Web.UI.PropertyConverter.ObjectFromString(Type, MemberInfo, string) - - - - - Implicit type conversion allows to be used directly as a String - - valid ECMAScript identifier - - - - - Implicit type conversion allows to be used directly with Strings - - valid ECMAScript identifier - - - - - Returns the identifier - - - - - - Compares identifiers - - - - - - - Returns the hash code for the identifier - - - - - - Gets the ECMAScript identifier represented by this instance - - - - - Formats data as full ECMAScript objects, rather than the limited set of JSON objects. - - - - - Outputs JSON text from an input stream of tokens - - - - - Outputs text from an input stream of JSON tokens - - token type - - - - Formats the token sequence to the output writer - - - - - - - Formats the token sequence as a string - - - - - - JSON serializer - - - - - Ctor - - - - - Ctor - - - - - - Ctor - - - - - - - Gets the formatter for JSON - - - - - - - Gets the supported content type for the serialized data - - - - - Gets the supported file extension for the serialized data - - - - - Outputs JSON text from an input stream of tokens - - - - - Ctor - - - - - - Formats the token sequence as a string - - - - - - Formats the token sequence to the writer - - - - - - - Converts an object to its string representation - - - - - - - Converts an enum to its string representation - - - - - - - Splits a bitwise-OR'd set of enums into a list. - - the enum type - the combined value - list of flag enums - - from PseudoCode.EnumHelper - - - - - Determines if a numeric value cannot be represented as IEEE-754. - - - - - http://stackoverflow.com/questions/1601646 - - - - - Gets and sets if '<' should be encoded in strings - Useful for when emitting directly into page - - - - - Ctor - - - - Defaults to encoding < chars for improved embedding within script blocks - - - - - Emits a block of script ensuring that a namespace is declared - - the output writer - the namespace to ensure - list of namespaces already emitted - determines if should emit pretty-printed - if was a namespaced identifier - - - - Outputs a .NET Regex as an ECMAScript RegExp literal. - Defaults to global matching off. - - - - - http://www.ecma-international.org/publications/files/ECMA-ST/Ecma-262.pdf - - - - - Outputs a .NET Regex as an ECMAScript RegExp literal. - - - - - - http://www.ecma-international.org/publications/files/ECMA-ST/Ecma-262.pdf - - - - - Defines a strategy for filtering HTML tags/attributes/styles/literals - - - - - Filters tags, optionally allowing altering of tag - - tag name - if true tag should be rendered - - - - Filters attributes, optionally allowing altering of attribute value - - tag name - attribute name - attribute value - if true attribute should be rendered - - - - Filters styles, optionally allowing altering of style value - - tag name - style name - style value - if true style should be rendered - - - - Filters literals, optionally allowing replacement of literal value - - the literal value - if true should be rendered - - - - Provides a mechanism for filtering HTML streams based upon a tag taxonomy - - - - - Determines if is "void" (i.e. "empty" or "full") tag - - lowercase tag name - if is a void tag - - http://www.w3.org/TR/html5/semantics.html - http://www.w3.org/TR/html401/index/elements.html - http://www.w3.org/TR/xhtml-modularization/abstract_modules.html#sec_5.2. - http://www.w3.org/TR/WD-html40-970917/index/elements.html - - - - - Determines if the tag is required to be closed - - lowercase tag name - if closing tag is optional - - http://www.w3.org/TR/html5/semantics.html - http://www.w3.org/TR/html401/index/elements.html - http://www.w3.org/TR/WD-html40-970917/index/elements.html - - - - - Categorizes the tag for heuristics about markup type - - lowercase tag name - the box type for a particular element - - http://www.w3.org/TR/html5/semantics.html - - - - - Defines a prioritized taxonomy of tags - - - The types are enumerated in ascending levels of risk for use in filtering HTML input - - - - - Literal text, no tags - - - - - Inline character level elements and text strings - - - Tags of this type typically do not disrupt the text flow - - - - - style elements - - - Tags of this type change the visual appearance of text - - - - - list elements - - - Tags of this type denote lists and typically change the text flow - - - - - Block-level elements - - - Tags of this type denote sections or change the text flow - - - - - Media elements - - - Tags of this type safely embed media content - - - - - Tabular elements - - - Tags of this type have a very specific structure and their own rendering model - - - - - Form elements - - - Tags of this type are used in the construction of forms for capturing user input - - - - - Script elements - - - Tags of this type represent a security risk to the containing document but must obey the browser security sandbox - - - - - Document elements - - - Tags of this type are used to construct the document itself - - - - - embedded elements - - - Tags of this type represent a large security risk to the containing document as plug-ins may circumvent the browser security sandbox - - - - - Unknown elements - - - - - Outputs markup text from an input stream of tokens - - - - - Ctor - - - - - - Resets the internal stack of elements - - - - - Formats the token sequence as a string - - - - - - Formats the token sequence to the writer - - - - - - - Emits a valid XML local-name (i.e. encodes invalid chars including ':') - - - - - Explicitly escaping ':' to maintain compatibility with XML Namespaces. - From XML 1.0, 5th ed. http://www.w3.org/TR/xml/#sec-common-syn - Name = NameStartChar (NameChar)* - NameStartChar = ":" - | [A-Z] - | "_" - | [a-z] - | [#xC0-#xD6] - | [#xD8-#xF6] - | [#xF8-#x2FF] - | [#x370-#x37D] - | [#x37F-#x1FFF] - | [#x200C-#x200D] - | [#x2070-#x218F] - | [#x2C00-#x2FEF] - | [#x3001-#xD7FF] - | [#xF900-#xFDCF] - | [#xFDF0-#xFFFD] - | [#x10000-#xEFFFF] - NameChar = NameStartChar - | "-" - | "." - | [0-9] - | #xB7 - | [#x0300-#x036F] - | [#x203F-#x2040] - - - - - - Emits valid XML character data - - - - encodes all non-ASCII chars - - - - - Emits valid XML attribute character data - - - - encodes all non-ASCII chars - - - - Gets and sets a value indicating if should emit canonical form - - - http://www.w3.org/TR/xml-c14n - - - - - Gets and sets a value indicating how should emit empty attributes - - - - - Gets and sets a value indicating if should encode text chars above the ASCII range - - - This option can help when the output is being embedded within an unknown encoding - - - - - HTML-style empty attributes do not emit a quoted string - - - http://www.w3.org/TR/html5/syntax.html#attributes-0 - - - - - XHTML-style empty attributes repeat the attribute name as its value - - - http://www.w3.org/TR/xhtml-media-types/#C_10 - http://www.w3.org/TR/xhtml1/#C_10 - http://www.w3.org/TR/html5/the-xhtml-syntax.html - - - - - XML-style empty attributes emit an empty quoted string - - - http://www.w3.org/TR/xml/#sec-starttags - - - - - Generates a sequence of tokens from a generalized model of markup text (e.g. HTML, XML, JBST, ASPX/ASCX, ASP, JSP, PHP, etc.) - - - This generates a stream of tokens like StAX (Streaming API for XML) - Unlike XML, this follows a more permissive markup format with automatic recovery most similar to HTML5. - - - - - Generates a sequence of tokens from a sequence of characters - - token type - - - - Tokenizes the input sequence into tokens - - - - - - - Tokenizes the input sequence into tokens - - - - - - - Gets the current column of the underlying input character sequence - - - Tokenizers not tracking columns should return -1. - - - - - Gets the current line of the underlying input character sequence - - - Tokenizers not tracking lines should return -1. - - - - - Gets the current position of the underlying input character sequence - - - Tokenizers not tracking index should return -1. - - - - - Decodes HTML-style entities into special characters - - - the entity text - - TODO: validate against HTML5-style entities - http://www.w3.org/TR/html5/tokenization.html#consume-a-character-reference - - - - - Decodes most known named entities - - - - - - - Checks for element start char - - - - - http://www.w3.org/TR/xml/#sec-common-syn - - - - - Checks for element name char - - - - - http://www.w3.org/TR/xml/#sec-common-syn - - - - - Gets a token sequence from the TextReader - - - - - - - Gets a token sequence from the string - - - - - - - Gets and sets if should attempt to auto-balance mismatched tags. - - - - - Gets and sets if should unwrap comments inside . - - - For example, in HTML this would include "script" and "style" tags. - - - - - Gets and sets a set of tags which should not have their content parsed. - - - For example, in HTML this would include "script" and "style" tags. - - - - - Gets the total number of characters read from the input - - - - - Gets the total number of lines read from the input - - - - - Gets the current position within the input - - - - - Ctor - - - - - Renders Common Model Tokens into a semantic HTML representation of the data structure - - - - - Consumes a sequence of tokens and produces a token sequence of a different type - - input token type - output token type - - - - Transforms the token sequence from to - - - - - - - Consumes a sequence of tokens and produces a token sequence of a different type - - - - - Formats the token sequence to the output - - - - - - - StringBuilder-like implementation built like List<char> - - - - - Ctor - - - - - Ctor - - - - - - Resets the buffer to an empty state - - - - - Appends a single char to the buffer - - - - - - - Appends a string value to the buffer - - - - - - - Copies the buffer value into a - - - - - - Gets the number of characters in the buffer - - - - - - Ctor - - - - - - Ctor - - - - - - - Ctor - - - - - - Ctor - - - - - - - - Supports forward-only iteration over an input sequence of - - - - - Supports forward-only iteration over an input sequence of - - - - - Supports forward-only iteration over an input sequence - - - - - Returns but does not remove the item at the front of the sequence. - - - - - - Returns and removes the item at the front of the sequence. - - - - - - Begins chunking at the current index - - - - - Ends chunking at the current index and returns the buffered sequence chunk - - - - - - Determines if the sequence has completed. - - - - - Gets a value indicating if is currently capturing a sequence - - - - - Gets the number of items currently chunked - - - - - Factory method for generic streams - - - - - - - - Returns but does not remove the item at the front of the sequence. - - - - - - Returns and removes the item at the front of the sequence. - - - - - - Determines if the input sequence has reached the end - - - - - Ctor - - - - - - Returns but does not remove the item at the front of the sequence. - - - - - - Returns and removes the item at the front of the sequence. - - - - - - Deferred execution of iterator - - - - - Determines if the input sequence has reached the end - - - - - Supports a simple iteration over a list with ability to capture a subsequence - - - - - Ctor - - - - - - Begins chunking at the current index - - - - - Ends chunking at the current index and returns the buffered chunk - - - - - - Returns but does not remove the item at the front of the sequence. - - - - - - Returns and removes the item at the front of the sequence. - - - - - - Deferred execution of iterator - - - - - Gets the number of characters currently chunked - - - - - - Determines if the input sequence has reached the end - - - - - Supports a simple iteration over a text input tracking line/column/position - - - - - Ends chunking at the current index and returns the buffered text chunk - - - - - - Ends chunking at the current index and writes the buffered text chunk into the provided StringBuilder - - - - - - Gets the total number of characters read from the input - - - - - Gets the total number of lines read from the input - - - - - Gets the current position within the input - - - - - Supports a simple iteration over a string tracking line/column/position - - - - - Ctor - - - - - - Begins chunking at the current index - - - - - Ends chunking at the current index and returns the buffered text chunk - - - - - - Ends chunking at the current index and returns the buffered text chunk - - - - - - Ends chunking at the current index and returns the buffered text chunk - - - - - - Returns but does not remove the item at the front of the sequence. - - - - - - Returns and removes the item at the front of the sequence. - - - - - - Deferred execution of iterator - - - - - Calculates index, line, and column statistics - - - - - Releases all resources used - - - - - Gets the total number of characters read from the input - - - - - Gets the total number of lines read from the input - - - - - Gets the current position within the input - - - - - Gets the number of characters currently chunked - - - - - Gets a value indicating if the is currently chunking - - - - - Determines if the input sequence has reached the end - - - - - Supports a simple iteration over a TextReader tracking line/column/position - - - - - Ctor - - - - - - Begins chunking at the current index - - - - - Ends chunking at the current index and returns the buffered text chunk - - - - - - Ends chunking at the current index and returns the buffered text chunk - - - - - - Ends chunking at the current index and returns the buffered text chunk - - - - - Returns but does not remove the item at the front of the sequence. - - - - - - Returns and removes the item at the front of the sequence. - - - - - - Deferred execution of iterator - - - - - Calculates index, line, and column statistics - - - - - - - Releases all resources used by the underlying reader - - - - - Gets the total number of characters read from the input - - - - - Gets the total number of lines read from the input - - - - - Gets the current position within the input - - - - - Gets the number of characters currently chunked - - - - - Gets a value indicating if the is currently chunking - - - - - Determines if the input sequence has reached the end - - - - - Formal language of tokens and symbols for JSON - - - - - Designates a property or field to not be serialized. - - - - - Specifies the naming to use for a property or field when serializing - - - - - Ctor - - - - - Ctor - - - - - - Gets and sets the name to be used in serialization - - - - - JSON deserializer - - - - - Ctor - - - - - Ctor - - - - - - Ctor - - - - - - - Gets the supported content type of the serialized data - - - - - Generates a sequence of tokens from JSON text - - - - - Gets a token sequence from the scanner stream - - - - - - - Scans for the longest valid EcmaScript identifier - - identifier - - http://www.ecma-international.org/publications/files/ECMA-ST/Ecma-262.pdf - - IdentifierName = - IdentifierStart | IdentifierName IdentifierPart - IdentifierStart = - Letter | '$' | '_' - IdentifierPart = - IdentifierStart | Digit - - - - - Gets a token sequence from the TextReader - - - - - - - Gets a token sequence from the string - - - - - - - Gets the total number of characters read from the input - - - - - Gets the total number of lines read from the input - - - - - Gets the current position within the input - - - - - It is an error for the next token to be a value delim - - - - - Forbidden but differentiates between empty array/object and just written - - - - - It is an error for the next token to NOT be a value delim - - - - - Specifies the name of the property which specifies if member should be serialized. - - - These properties can be marked private/protected/internal and it will still be recognized - - - - - Ctor - - the name of the property which controls serialization for this member - - - - Ctor - - the name of the property which controls serialization for this member - - - - Gets and sets the name of the property which - specifies if member should be serialized - - - - - Transforms markup tokens into Common Model tokens using the (lossless) JsonML model - - - JsonML Grammer: http://jsonml.org - - - - - Consumes a sequence of tokens and produces a token sequence of a different type - - - - - Determines how whitespace should be handled - - - - - Transforms Common Model tokens into markup tokens using the (lossless) JsonML model - - - JsonML Grammer: http://jsonml.org - - - - - Consumes a sequence of tokens and produces a token sequence of a different type - - - - - Controls name resolution for IDataReader / IDataWriter using JsonNameAttribute / JsonIgnoreAttribute / JsonPropertySpecifiedAttribute - - - This is the default strategy from JsonFx v1.0 - - - - - Controls name resolution for IDataReader / IDataWriter using plain old CLR object (POCO) names - - - - - Controls name resolution for IDataReader / IDataWriter - - - Provides an extensibility point to control member naming and visibility at a very granular level. - - - - - Gets a value indicating if the property is to be serialized. - - - - - - - - Gets a value indicating if the field is to be serialized. - - - - - - - Determines if the property or field should not be serialized. - - - - - - - - - Gets the serialized name for the member. - - - - - - - Allows a strategy to perform a custom sort order to outputted members - - - - - A common usage is to ensure that Attributes sort first - - - - - Gets a value indicating if the property is to be serialized. - - - - - default implementation is must be read/write properties, or immutable - - - - Gets a value indicating if the field is to be serialized. - - - - default implementation is must be public, non-readonly field - - - - Gets a delegate which determines if the property or field should not be serialized based upon its value. - - - if has a value equivalent to the DefaultValueAttribute - - This is useful when default values need not be serialized. - - - - - Gets the serialized name for the member. - - - - - - - Allows a strategy to perform a custom sort order to outputted members - - - - - A common usage is to ensure that Attributes sort first - - - - - Gets a value indicating if the property is to be serialized. - - - - - default implementation is must be read/write properties, or immutable - - - - Gets a value indicating if the field is to be serialized. - - - - default implementation is must be public, non-readonly field - - - - Gets a delegate which determines if the property or field should not be serialized based upon its value. - - - if has a value equivalent to the DefaultValueAttribute - - This is useful for excluding serialization of default values. - - - - - Gets the serialized name for the member. - - - - - - - Determines whitespace handling - - - - - Removes insignificant whitespace - - - - - Keep all whitespace - - - - - Condenses all whitespace to single spaces - - - - - Designates a type as being able to format itself to raw JSON text. - - - - - Ctor - - - - - Ctor - - - - - Gets and sets the starting delimiter - - - - - Gets and sets the ending delimiter - - - - - Gets and sets the context - - - - - Formal language of tokens and symbols for markup - - - - - Any of a number of unparsed tags which typically contain specialized processing instructions - - - The name of the token is the beginning and ending delimiters as a format string (not including the '<' or '>') - Includes the following types: - - "<!--", "-->" XML/HTML/SGML comment - "<!", ">" XML/SGML declaration (e.g. DOCTYPE or server-side includes) - - "<?=", "?>" PHP expression - "<?", "?>" PHP code block /XML processing instruction (e.g. the XML declaration) - - "<%--", "--%>" ASP/PSP/JSP-style code comment - "<%@", "%>" ASP/PSP/JSP directive - "<%=", "%>" ASP/PSP/JSP/JBST expression - "<%!", "%>" JSP/JBST declaration - "<%#", "%>" ASP.NET/JBST databind expression - "<%$", "%>" ASP.NET/JBST extension - "<%", "%>" ASP code block / JSP scriptlet / PSP code block - - - - - tokens - - - - - - - - - - - Maintains scope chain for namespace prefix mappings - - - - - Adds a new scope to the chain - - - - - - Gets the last scope off the chain - - - - - Gets and removes the last scope off the chain - - - - - - Finds the namespace URI for a given prefix within the curren scope chain - - - - - - - Finds the prefix for a given namespace URI within the curren scope chain - - - - - - - Checks if the matching begin tag exists on the stack - - - - - - Resets the internal state of the scope chain. - - - - - Looks up the prefix for the given namespace - - - - null if namespace is empty and no default prefix found - - - - Represents a scope boundary within a prefix scope chain - - - - - Returns if this scope boundary contains a mapping for a particular prefix - - - if this scope boundary contains a mapping for a particular prefix - - - - Returns if this scope boundary contains a mapping for a particular namespace - - - if this scope boundary contains a mapping for a particular namespace - - - - Returns if this scope boundary contains a mapping for a particular prefix - setting the namespace URI if one was found. - - - the resolved namespace URI - if this scope boundary contains a mapping for a particular prefix - - - - Returns if this scope boundary contains a mapping for a particular prefix - setting the prefix if one was found. - - - the resolved prefix - if this scope boundary contains a mapping for a particular prefix - - - - Gets and sets the tagname associated with this scope boundary - - - - - Gets and sets mappings between prefix and namespace URIs - - - - - - - Provides lookup capabilities for providers - - - - - Parses HTTP headers for Media-Types - - HTTP Accept header - HTTP Content-Type header - sequence of Media-Types - - http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html - - - - - - - - - - - - Controls name resolution for IDataReader / IDataWriter using convention-based name mapping - - - Converts standard .NET PascalCase naming convention into the specified naming convention. - http://msdn.microsoft.com/en-us/library/x2dbyw72.aspx - http://msdn.microsoft.com/en-us/library/141e06ef.aspx - http://msdn.microsoft.com/en-us/library/xzf533w0.aspx - - - - - Ctor - - - - - - Ctor - - - - - - - Gets the serialized name for the member. - - - - - - - Splits a multi-word name assuming standard .NET PascalCase conventions. - - - - - http://msdn.microsoft.com/en-us/library/x2dbyw72.aspx - http://msdn.microsoft.com/en-us/library/141e06ef.aspx - http://msdn.microsoft.com/en-us/library/xzf533w0.aspx - - - - - - Ctor - - - - - - - - Ctor - - - - - - - Represents a property or document name, and a corresponding namespace URI (or empty string). - Analogous to XML "expanded name": http://www.w3.org/TR/REC-xml-names/#dt-expname - - - Namespaces must be a URI, but local-name can be any non-null string. - It is up to formatters to determine how to properly represent names which are invalid for the format. - - - - - local-name - - - - - alias for the namespace - - - - - namespace - - - - - Determines if name should be treated like an attribute - - - - - Ctor - - a CLR Type used to generate the local-name - - This constructor implicitly delcares the namespace to be empty. - - - - - Ctor - - any string is a valid local-name - - This constructor implicitly delcares the namespace to be empty. - - - - - Ctor - - any string is a valid local-name - an absolute URI string, or null - thrown if is null - thrown if is an invalid absolute URI - - The namespace field follows XML recommendation of absolute URIs. - Relative URIs are officially deprecated for namespaces: http://www.w3.org/2000/09/xppa - - - - - Ctor - - any string is a valid local-name - an absolute URI string, or null - determines if name should be an attribute name - thrown if is null - thrown if is an invalid absolute URI - - The namespace field follows XML recommendation of absolute URIs. - Relative URIs are officially deprecated for namespaces: http://www.w3.org/2000/09/xppa - - - - - Gets the local-name for a Type - - - - - - - Gets the prefixed name or simply local-name if is not a fully qualified name - - true to generate a prefix if the prefix is empty but not the namespace - - - - - Gets the namespaced name or simply local-name if is not a fully qualified name - - - - - - Compares two values and returns an indication of their relative sort order. - - - - - Performs ordering according to XML Canonicalization document order http://www.w3.org/TR/xml-c14n#DocumentOrder - "An element's namespace nodes are sorted lexicographically by local name (the default namespace node, if one exists, has no local name and is therefore lexicographically least)." - "An element's attribute nodes are sorted lexicographically with namespace URI as the primary key and local name as the secondary key (an empty namespace URI is lexicographically least)." - - - - - Determines if this is an empty DataName - - - - - Indicates a graph cycle was detected during serialization - - - - - Indicates an error occurred during serialization - - - - - Ctor - - - - - Ctor - - - - - - Ctor - - - - - - - Ctor - - - - - Ctor - - - - - - Ctor - - - - - - - Gets the type of cycle which caused the error - - - - - Graph cycles are detected with a reference tracking, any repeated reference results in a null value - - - - - Graph cycles are detected with a reference tracking, any repeated reference results in an error - - - - - Graph cycles are detected with a maximum depth count, exceeding depth results in an error - - - - - Detects graph cycles by tracking graph depth - - - - - Defines an interface for detecting graph cycles - - - - - Begins tracking of the reference - - - true if graph cycle was detected - - - - Ends tracking of the reference - - - true if tracking was successfully completed - - - - Ctor - - - - - - Increments the depth - - - true if MaxDepth has not been exceeded - - - - Increments the depth - - - - - - Detects cycles by detecting duplicates in the a set of object references - - - - - Adds a reference to the set - - - true if object already existed within set - - - - Removes a reference from the set - - - - - - Controls deserialization settings for IDataReader - - - - - Ctor - - - - - Ctor - - - - - Ctor - - - - - Ctor - - - - - - Ctor - - - - - - Ctor - - - - - - Ctor - - - - - - Gets and sets if ValueTypes can accept values of null - - - If this is true and a ValueType T is assigned the value of null, - it will receive the value of default(T). - Setting this to false, throws an exception if null is - specified for a ValueType member. - - - - - Gets and sets if should verify that stream is empty after deserialzing each object - - - Setting to true allows reading a JSON stream inside other structures (e.g. JavaScript) - - - - - Gets manager of name resolution for IDataReader - - - - - Gets the custom filters - - - - - Controls the serialization settings for IDataWriter - - - - - Ctor - - - - - Ctor - - - - - Ctor - - - - - Ctor - - - - - - Ctor - - - - - - Ctor - - - - - - Ctor - - - - - - Gets and sets what to do when graph cycles (repeated references) are encounted - - - - - Gets and sets the maximum nesting depth - - - Depth is a fast and easy safegaurd against detecting graph cycles but may produce false positives - - - - - Gets and sets if output will be formatted for human reading. - - - - - Gets and sets the string to use for indentation - - - - - Gets and sets the line terminator string - - - - - Gets manager of name resolution for IDataReader - - - - - Gets the custom filters - - - - - Indicates an error occurred during deserialization - - - - - Ctor - - - - - - - Ctor - - - - - - - - - Ctor - - - - - - - - Ctor - - - - - - - - Helper method which converts the index into Line and Column numbers - - - - - - - - Gets the character column in the stream where the error occurred - - - - - Gets the character position in the stream where the error occurred - - - - - Gets the character line in the stream where the error occurred - - - - - Indicates an error occurred during token consumption - - - - - - Ctor - - - - - Ctor - - - - - - Ctor - - - - - - - Gets the token in the sequence where the error occurred - - - - - Indicates an error occurred during type coercion - - - - - Ctor - - - - - Ctor - - - - - - Ctor - - - - - - - Provides lookup capabilities for finding matching IDataReader - - - - - Provides lookup capabilities for finding matching IDataReader - - - - - Ctor - - inject with all possible readers - - - - Finds an IDataReader by content-type header - - - - - - - Provides lookup capabilities for finding an IDataWriter - - - - - Provides lookup capabilities for finding an IDataWriter - - - - - Ctor - - inject with all possible writers - - - - Controls name resolution for IDataReader / IDataWriter by using pluggable delegate callbacks - - - - - Gets and sets the implementation for ignoring properties - - - - - Gets and sets the implementation for ignoring fields - - - - - Gets and sets the implementation for ignoring properties by value - - - - - Gets and sets the implementation for naming members - - - - - Gets and sets the implementation for sorting members - - - - - Controls name resolution for IDataReader / IDataWriter by combining an ordered sequence of any other strategies - - - Each strategy is invoked in order, the first to respond wins. - - - - - Ctor - - ordered sequence of strategies - - - - Ctor - - ordered sequence of strategies - - - - Gets a value indicating if the property is to be serialized. - - - - true if any strategy specifies should be ignored - - - - Gets a value indicating if the field is to be serialized. - - - true if any strategy specifies should be ignored - - - - Gets a delegate which determines if the property or field should not be serialized based upon its value. - - - true if any strategy specifies this should be ignored - - - - Gets the serialized name for the member. - - - - custom name if any strategy specifies one, otherwise null - - - - Allows a strategy to perform a custom sort order to outputted members - - - - - A common usage is to ensure that Attributes sort first - - - - - Controls name resolution for IDataReader / IDataWriter using DataContract attributes - - - http://msdn.microsoft.com/en-us/library/kd1dc9w5.aspx - - - - - CCtor - - - - - Gets a value indicating if the property is to be serialized. - - - - - - - - Gets a value indicating if the field is to be serialized. - - - - - - - Gets a delegate which determines if the property or field should not be serialized based upon its value. - - - - - - - Gets the serialized name for the member. - - - - - - - Gets a delegate which determines if the property or field should not be serialized based upon its value. - - - - - - - The original member info - - - - - The original member name - - - - - The member data name - - - - - The member type - - - - - The getter method - - - - - The setter method - - - - - The logic for determining if a value is ignored - - - - - Determines if map name is alternate (i.e. only used for deserialization) - - - - - Ctor - - MemberMap to clone - alternate name - - - - Ctor - - - - - - - - Ctor - - - - - - - - Ctor - - - - - Gets a sequence of the available factory arguments - - - - - Gets the factory associated with the given argument type - - - - - - - Cache of name resolution mappings for IDataReader / IDataWriter - - - - - Ctor - - - - - - Gets the serialized name of the class - - - - - - - Removes any cached member mappings. - - - - - Builds a mapping of member name to field/property - - - - - - Represents a single immutable token in an input sequence - - - - - The type of the token - - - - - The name of the token - - - - - The value of the token - - - - - Ctor - - - - - - Ctor - - - - - - - Ctor - - - - - - - Ctor - - - - - - - Returns a string that represents the current token. - - - - - - Gets the value of the token as a string - - - - - - Converts a value to a string giving opportunity for IConvertible, IFormattable - - - - - - - Converts token to a token of a different type - - - token with same values and different type - - - - Type Coercion Utility - - - - - Ctor - - - - - - - Ctor - - - - - - - Instantiates a new instance of objectType. - - - objectType instance - - - - Instantiates a new instance of objectType. - - - objectType instance - - - - Helper method to set value of a member. - - - - - - - - - - Coerces the object value to Type - - - - - - - - Coerces the object value to Type of - - - - - - - - Populates the properties of an object with the dictionary values. - - - - - - - - Populates the properties of an object with the dictionary values. - - - - - - - - Coerces an sequence of items into an array of Type elementType - - - - - - - - Finds a suitable concrete class for common collection interface types - - - - - - - Allows specific IDictionary<string, TVal> to deserialize as TVal - - IDictionary<string, TVal> Type - TVal Type - - - - Returns a common type which can hold previous values and the new value - - - - - - - - Determines if type can be assigned a null value. - - - - - - - Gets the attribute T for the given value. - - - Attribute Type - true if defined - - - - Gets the attribute of Type for the given value. - - - true if defined - - - - Gets the attribute T for the given value. - - - Attribute Type - requested attribute or not if not defined - - - - Gets the attribute of Type for the given value. - - - requested attribute or not if not defined - - - - Character Utility - - - These are either simpler definitions of character classes (e.g. letter is [a-zA-Z]), - or they implement platform-agnositic checks (read: "Silverlight workarounds"). - - - - - Checks if string is null, empty or entirely made up of whitespace - - - - - Essentially the same as String.IsNullOrWhiteSpace from .NET 4.0 - with a simplfied view of whitespace. - - - - - Checks if character is line ending, tab or space - - - - - - - - - - - - - - Checks if character matches [A-Za-z] - - - - - - - Checks if character matches [0-9] - - - - - - - Checks if character matches [0-9A-Fa-f] - - - - - - - Gets a 4-bit number as a hex digit - - 0-15 - - - - - Formats a number as a hex digit - - - - - - - Converts the value of a UTF-16 encoded character or surrogate pair at a specified - position in a string into a Unicode code point. - - - - - - - - Converts the specified Unicode code point into a UTF-16 encoded string. - - - - - - - XML serializer - - - XML serializer - - - - - Ctor - - - - - Ctor - - - - - - Ctor - - - - - - - Gets a tokenizer for XML - - - - - - Gets the supported content type for the serialized data - - - - - Transforms markup tokens into Common Model tokens using an XML-data model - - - - - Ctor - - - - - - Consumes a sequence of tokens and produces a token sequence of a different type - - - - - Formats the token sequence to the output - - - - - - - - Ctor - - - - - Ctor - - - - - - Gets a token sequence from the string - - - - - - - Gets a token sequence from the TextReader - - - - - - - Gets a token sequence from the XmlReader - - - - - - - Gets the total number of characters read from the input - - - - - Gets the total number of lines read from the input - - - - - Gets the current position within the input - - - - - XML serializer - - - - - Ctor - - - - - Ctor - - - - - - Ctor - - - - - - - Gets the formatter for XML - - - - - - - Gets the supported content type for the serialized data - - - - - Gets the supported file extension for the serialized data - - - - - Transforms Common Model tokens into markup tokens using an XML-data model - - - - - Ctor - - - - - - Consumes a sequence of tokens and produces a token sequence of a different type - - - - - Formats the token sequence to the output - - - - - - - Outputs XML text from an input stream of tokens - - - - - Ctor - - - - - - Formats the token sequence as a string - - - - - - Formats the token sequence to the writer - - - - - - - Formats the token sequence to the writer - - - - - - - Wraps an XmlWriter as a TextWriter - - - - - Ctor - - - - - - Gets the underlying XmlWriter - - - - - Controls name resolution for IDataReader / IDataWriter using attributes and conventions similar to XmlSerializer semantics - - - http://msdn.microsoft.com/en-us/library/83y7df3e.aspx - - - - - Gets a value indicating if the property is to be serialized. - - - - - default implementation is must be read/write properties, or immutable - - - - Gets a value indicating if the field is to be serialized. - - - - default implementation is must be public, non-readonly field - - - - Gets a delegate which determines if the property or field should not be serialized based upon its value. - - - if has a value equivalent to the DefaultValueAttribute or has a property named XXXSpecified which determines visibility - - This is useful when default values need not be serialized. - Under these situations XmlSerializer ignores properties based upon value: - - DefaultValue: http://msdn.microsoft.com/en-us/library/system.componentmodel.defaultvalueattribute.aspx - - Specified Properies: http://msdn.microsoft.com/en-us/library/bb402199.aspx - - ShouldSerialize Methods: http://msdn.microsoft.com/en-us/library/53b8022e.aspx - - - - - Gets the serialized name for the member. - - - - - - - Sorts members to ensure proper document order where attributes precede all child elements. - - - - - Performs the first stage of XML Canonicalization document order http://www.w3.org/TR/xml-c14n#DocumentOrder - "An element's namespace and attribute nodes have a document order position greater than the element but less than any child node of the element." - - - - - Ctor - - - - - - Ctor - - - - - - Generates delegates for getting/setting properties and field and invoking constructors - - - - - Creates a field getter delegate for the specified property or field - - PropertyInfo or FieldInfo - GetterDelegate for property or field, null otherwise - - Note: use with caution this method will expose private and protected constructors without safety checks. - - - - - Creates a field setter delegate for the specified property or field - - PropertyInfo or FieldInfo - SetterDelegate for property or field, null otherwise - - - - Creates a property getter delegate for the specified property - - - GetterDelegate if property CanRead, otherwise null - - Note: use with caution this method will expose private and protected constructors without safety checks. - - - - - Creates a property setter delegate for the specified property - - - GetterDelegate if property CanWrite, otherwise null - - Note: use with caution this method will expose private and protected constructors without safety checks. - - - - - Creates a field getter delegate for the specified field - - - GetterDelegate which returns field unless is enum in which will return enum value - - Note: use with caution this method will expose private and protected constructors without safety checks. - - - - - Creates a field setter delegate for the specified field - - - SetterDelegate unless field IsInitOnly then returns null - - Note: use with caution this method will expose private and protected constructors without safety checks. - - - - - Creates a proxy delegate accepting a target instance and corresponding arguments - - method to proxy - ProxyDelegate or null if cannot be invoked - - Note: use with caution this method will expose private and protected methods without safety checks. - - - - - Creates a default constructor delegate - - type to be created - FactoryDelegate or null if default constructor not found - - Note: use with caution this method will expose private and protected constructors without safety checks. - - - - - Creates a constructor delegate accepting specified arguments - - type to be created - constructor arguments type list - FactoryDelegate or null if constructor not found - - Note: use with caution this method will expose private and protected constructors without safety checks. - - - - - Creates a constructor delegate accepting specified arguments - - type to be created - constructor arguments type list - FactoryDelegate or null if constructor not found - - Note: use with caution this method will expose private and protected constructors without safety checks. - - - - - Represents a query across a data source - - - - - - Ctor - - - - - - Ctor - - - - - - - Returns a string representation of the query - - - - - - Gets the query expression - - - - - Gets the query return type - - - - - Gets the underlying provider - - - - - Ctor - - - - - - - Ctor - - - - - - - Extends the query to all descendants - - - - - Extends the query to all descendants - - - - - Gets all items of the array - - - - - Gets the items of the array with indexes satisfying the - - - - - - Filters to only objects with a particular property name defined - - - - - - Filters to a lookup of only the properties which match the predicate - - - - - - Filters to only arrays - - - - - - Filters to only objects - - - - - - Filters to only simple values - - - - - - Boiler-plate implementation - - - - - - Ctor - - - - - Ctor - - - - - - - - - - - Searches for subsequences found by the expression and rehydrates into objects with the analyzer - - - - - Ctor - - - - - Ctor - - - - - - - Ctor - - - - - - diff --git a/packages/JsonFx.2.0.1209.2802/lib/wp40/JsonFx.dll b/packages/JsonFx.2.0.1209.2802/lib/wp40/JsonFx.dll deleted file mode 100644 index dec53f2e..00000000 Binary files a/packages/JsonFx.2.0.1209.2802/lib/wp40/JsonFx.dll and /dev/null differ diff --git a/packages/JsonFx.2.0.1209.2802/lib/wp40/JsonFx.xml b/packages/JsonFx.2.0.1209.2802/lib/wp40/JsonFx.xml deleted file mode 100644 index b9393532..00000000 --- a/packages/JsonFx.2.0.1209.2802/lib/wp40/JsonFx.xml +++ /dev/null @@ -1,4526 +0,0 @@ - - - - JsonFx - - - - - JsonFx metadata - - - - - Ctor - - - - - - Outputs BSON bytes from an input stream of tokens - - - - - Outputs text from an input stream of JSON tokens - - token type - - - - Formats the token sequence to the output writer - - - - - - - Formats the token sequence as a string - - - - - - Formats the token sequence as a string - - - - - - Formats the token sequence to the output writer - - - - - - - Emits a document (or array) to the binary stream - - - - number of bytes written - - - - Emits a single element to the binary stream - - - - - number of bytes written - - - - Emits a string value - - - - number of bytes written - - - - Emits a binary value - - - - number of bytes written - - - - Emits a code_w_s value - - - - number of bytes written - - - - Generates a sequence of tokens from BSON bytes - - - - - Generates a sequence of tokens from a sequence of characters - - token type - - - - Tokenizes the input sequence into tokens - - - - - - - Tokenizes the input sequence into tokens - - - - - - - Gets the current position of the underlying input character sequence - - - Tokenizers not tracking index should return -1. - - - - - Gets a token sequence from the TextReader - - - - - - - Gets a token sequence from the string - - - - - - - Gets a token sequence from the reader - - - - - - - Gets the current position of the underlying stream - - - - - BSON MD5 Datatype - - - - - Ctor - - - - - - Ctor - - - - - - Ctor - - - - - - Converts MD5 to Guid - - - - - - - - Converts MD5 to Guid - - - - - - - Gets the hashcode of the underlying Guid - - - - - - BSON JavaScript Code With Scope Datatype - - - - - BSON JavaScript Code Datatype - - - - - Ctor - - - - - - Converts JavaScriptCode to string - - - - - - - - Converts JavaScriptCode to string - - - - - - - Gets the hashcode of the underlying string - - - - - - BSON Symbol Datatype - - - - - Ctor - - - - - - Converts Symbol to string - - - - - - - - Converts Symbol to string - - - - - - - Gets the hashcode of the underlying string - - - - - - BSON DBPointer Datatype (Deprecated) - - - - - Immutable BSON ObjectID Datatype - - - http://www.mongodb.org/display/DOCS/Object+IDs#ObjectIDs-TheBSONObjectIdDatatype - - - - - Ctor - - 12-byte object ID - - - - Ctor - - 4-byte seconds since Unit epoch - 3-byte machine ID - 2-byte process ID - 3-byte counter - - - - Converts an ObjectID to a hex string - - - - - - - Converts a hex string to an ObjectID - - - - - - - Converts an ObjectID to a byte array - - - - - - - Converts a byte array to an ObjectID - - - - - - - Gets the hashcode of the underlying string - - - - - - Gets the time associated with this ObjectID - - - - - Gets the machine id associated with this ObjectID - - - - - Gets the process id associated with this ObjectID - - - - - Gets the counter associated with this ObjectID - - - - - Generic binary holder - - - http://api.mongodb.org/java/2.0/org/bson/types/Binary.html - - - - - Ctor - - binary type code - byte date - - - - Converts an ObjectID to a hex string - - - - - - - Converts a hex string to an ObjectID - - - - - - - Converts an ObjectID to a byte array - - - - - - - Converts a byte array to an ObjectID - - - - - - - Gets the hashcode of the underlying string - - - - - - Gets a 4-bit number as a hex digit - - 0-15 - - - - - Gets the binary type code - - - - - Gets the binary type code - - - - - Gets the byte at the given index - - - - - Gets the length of the binary data - - - - - Designates a type as being able to format itself to raw BSON bytes - - - - - Designates a type as being able to format itself to raw bytes - - - - - Writes custom format to the output using either tokens or bytes - - - - total number of bytes written - - - - Determines the corresponding BSON element type - - - - - - Generalized delegate for invoking a constructor - - - - - - - Generalized delegate for invoking a method - - the instance object - the method parameters - - - - - Generalized delegate for getting a field or property value - - - - - - - Generalized delegate for setting a field or property value - - - - - - - Consumes a sequence of tokens to produce an object graph optionally coerced to a given type - - - - - Consumes a sequence of tokens to produce a sequence of objects, optionally coerced to a given type - - token type - - - - Parses the token sequence - - - - - - - Parses the token sequence, optionally coercing the result to Type targetType - - - optional type for coercion (null if not specified) - - - - - Parses the token sequence, coercing the result to Type TResult - - optional type for coercion (null if not specified) - - - - - - Parses the token stream coercing the result to TResult (type inferred from ) - - - - an example value used solely for Type inference - - - - - Ctor - - - - - - Parses the token stream coercing the result targetType - - - - - - - Parses the token stream coercing the result to targetType - - - - - - - - Parses the token stream coercing the result to TResult - - the result target type - - - - - - Parses the token stream coercing the result to TResult (inferred from ) - - - - an example value used solely for Type inference - - - - - Common Model Language grammar helper - - - Simplifies and guides syntax, and provides a set of reusable tokens to reduce redundant token instantiations - - - - - Marks the beginning of an array - - the local name of the array - ArrayBegin Token - - - - Marks the beginning of an array - - the local name of the array - the namespace of the document - ArrayBegin Token - - - - Marks the beginning of an array - - the name of the array - ArrayBegin Token - - - - Marks the beginning of an object - - the local name of the object - ObjectBegin Token - - - - Marks the beginning of an object - - the name of the object - ObjectBegin Token - - - - Marks the beginning of an object property - - the local name of the property - PropertyKey Token - - - - Marks the beginning of an object property - - the local name of the property - PropertyKey Token - - - - Marks the beginning of an object property - - the name of the property - PropertyKey Token - - - - A simple scalar value (typically serialized as a single primitive value) - - - Value Token - - - - Provides base implementation for standard deserializers - - - - - Provides base implementation for standard deserializers - - - - - A common interface for data deserializers - - - - - Deserializes a single object from the given input - - the input reader - a value used to trigger Type inference for (e.g. for deserializing anonymous objects) - the expected type of the serialized data - - - - Deserializes a single object from the given input - - the input reader - the expected type of the serialized data - - - - Serializes the data to the given output - - the input reader - - - - Deserializes a single object from the given input - - the input reader - the expected type of the serialized data - - - - Deserializes a single object from the given input - - the input text - a value used to trigger Type inference for (e.g. for deserializing anonymous objects) - the expected type of the serialized data - - - - Deserializes a single object from the given input - - the input text - the expected type of the serialized data - - - - Deserializes a single object from the given input - - the input text - - - - Deserializes a single object from the given input - - the input text - the expected type of the serialized data - - - - Deserializes a potentially endless sequence of objects from a stream source - - - - - character stream => token stream => object stream - - - - - Gets the supported content type of the serialized data - - - - - Gets the settings used for deserialization - - - - - Ctor - - - - - - Deserializes the data from the given input - - the input reader - a value used to trigger Type inference for (e.g. for deserializing anonymous objects) - the expected type of the serialized data - - - - Deserializes the data from the given input - - the input reader - the expected type of the serialized data - - - - Deserializes the data from the given input - - the input reader - - - - Deserializes the data from the given input - - the input reader - the expected type of the serialized data - - - - Deserializes the data from the given input - - the input text - a value used to trigger Type inference for (e.g. for deserializing anonymous objects) - the expected type of the serialized data - - - - Deserializes the data from the given input - - the input text - the expected type of the serialized data - - - - Deserializes the data from the given input - - the input text - - - - Deserializes the data from the given input - - the input text - the expected type of the serialized data - - - - Deserializes a potentially endless sequence of objects from a stream source - - a streamed source of objects - a sequence of objects - - character stream => token stream => object stream - - - - - Gets the supported content type of the serialized data - - - - - Gets the settings used for deserialization - - - - - Ctor - - - - - - Extension methods for selecting subsequences of sequences of tokens - - - - - Determines if the sequence represents a primitive - - - - - - - Determines if the sequence represents an object - - - - - - - Determines if the root object has any properties which satisfies the name - - - - true if any properties match the predicate - - - - Gets all properties of the root object - - - - all properties for the object - - - - Gets all properties of the root object - - - - all properties for the object - - - - Gets the properties of the root object which satisfies the - - - - matching properties for the root object - - - - Gets the properties of the root object which satisfies the - - - - matching properties for the root object - - - - Determines if the sequence represents an array - - - - - - - Gets all the items of the array - - - all items of the array - - - - Gets the items of the root array with indexes satisfying the - - - - items of the root array which statisfy the predicate - - - - ArrayItems iterator - - - - - - - - Gets all descendant values below the current root - - - - - - - Descendants iterator - - - - - - - Gets all descendant values below the current root, as well as the current root - - - - - - - DescendantsAndSelf iterator - - - - - - - Covers the sitation where a stream of sequences may be back to back - - - - - - - Splices out the sequence for the next complete value (object, array, primitive) - - - - - - - Splices out the sequence for the next complete value (object, array, primitive) - - - - - - - Skips over the next complete value (object, array, primitive) - - - - - - - Common Model Language tokens - - - - - - - - - - - - Generates a sequence of tokens from an object graph - - - - - Generates a sequence of tokens from an object graph - - token type - - - - Generates a sequence of tokens representing the value - - - - - - - Ctor - - - - - - Generates a sequence of tokens representing the value - - - - - - - Allows a mechanism for manipulating JSON serialization - - Defines the type this filter reads/writes - - - - Partially implements an IDataFilter - - - - - Allows a mechanism for manipulating serialization - - Defines the type of token stream this filter understands - Defines the type this filter reads/writes - - - - Allows a mechanism for manipulating serialization - - Defines the type of token stream this filter understands - - - - Allows a class to act as a factory for a type via input Token<T> sequence - - input tokens - - true if value was generated - - - - Allows a class to serialize a type as Token<T> sequence - - - - true if value was consumed - - - - Allows a class to act as a factory for a type via input Token<T> sequence - - input tokens - - true if value was generated - - - - Allows a class to serialize a type as Token<T> sequence - - - - true if value was consumed - - - - Defines a filter for JSON-style serialization of DateTime into ISO-8601 string - - - This is the format used by EcmaScript 5th edition Date.prototype.toJSON(...): - http://www.ecma-international.org/publications/files/ECMA-ST/ECMA-262.pdf - http://www.w3.org/TR/NOTE-datetime - http://en.wikipedia.org/wiki/ISO_8601 - - NOTE: This format limits expressing DateTime as either UTC or Unspecified. Local (i.e. Server Local) is converted to UTC. - - - - - Converts a ISO-8601 string to the corresponding DateTime representation - - ISO-8601 conformant date - UTC or Unspecified DateTime - true if parsing was successful - - - - Converts a DateTime to the corresponding ISO-8601 string representation - - - ISO-8601 conformant date - - - - Determines the precision of fractional seconds. - Defaults to EcmaScript precision of milliseconds. - - - - - Defines the precision of fractional seconds in ISO-8601 dates - - - - - Defines a filter for JSON-style serialization of DateTime into an ASP.NET Ajax Date string. - - - This is the format used by Microsoft ASP.NET Ajax: - http://weblogs.asp.net/bleroy/archive/2008/01/18/dates-and-json.aspx - - NOTE: This format is limited to expressing DateTime at the millisecond level as UTC only. - The WCF extension of adding a timezone is ignored as this returns UTC dates only. - - - - - Converts an ASP.NET Ajax date string to the corresponding DateTime representation - - ASP.NET Ajax date string - - true if parsing was successful - - - - Converts a DateTime to the corresponding ASP.NET Ajax date string representation - - - ASP.NET Ajax date string - - - - Provides base implementation for standard serializers - - - - - Provides base implementation of standard serializers - - - - - A common interface for data serializers - - - - - Serializes the data to the given output - - the output writer - the data to be serialized - - - - Serializes the data to the given output - - the data to be serialized - the serialized data - - - - Gets the content encoding for the serialized data - - - - - Gets the supported content types for the serialized data - - - - - Gets the supported file extensions for the serialized data - - - - - Gets the settings used for serialization - - - - - Ctor - - - - - - Serializes the data to the given output - - the data to be serialized - the output writer - - - - Serializes the data to the given output - - the data to be serialized - the serialized data - - - - Gets the walker for this DataWriter - - - - - - - Gets the formatter for this DataWriter - - - - - - - Gets the content encoding for the serialized data - - - - - Gets the supported content types for the serialized data - - - - - Gets the supported file extensions for the serialized data - - - - - Gets the settings used for serialization - - - - - Ctor - - - - - - Gets a walker for JSON - - - - - - - Gets the content encoding for the serialized data - - - - - Represents an ECMAScript identifier for serialization. - - - - - Designates a type as being able to format itself to raw text - - - - - Writes custom format to the output using either tokens or text - - - - - - - Ctor - - - - - Ctor - - - - - - Verifies is a valid EcmaScript identifier - - the identifier - identifier - - - - Verifies is a valid EcmaScript identifier - - the identifier - identifier - - - - Verifies is a valid EcmaScript variable expression - - the identifier - identifier - - http://www.ecma-international.org/publications/files/ECMA-ST/Ecma-262.pdf - - IdentifierName = - IdentifierStart | IdentifierName IdentifierPart - IdentifierStart = - Letter | '$' | '_' - IdentifierPart = - IdentifierStart | Digit - - - - - Trivial conversion method. Essentially performs a cast. - - - - - Supports conversion via System.Web.UI.PropertyConverter.ObjectFromString(Type, MemberInfo, string) - - - - - Implicit type conversion allows to be used directly as a String - - valid ECMAScript identifier - - - - - Implicit type conversion allows to be used directly with Strings - - valid ECMAScript identifier - - - - - Returns the identifier - - - - - - Compares identifiers - - - - - - - Returns the hash code for the identifier - - - - - - Gets the ECMAScript identifier represented by this instance - - - - - Formats data as full ECMAScript objects, rather than the limited set of JSON objects. - - - - - Outputs JSON text from an input stream of tokens - - - - - Outputs text from an input stream of JSON tokens - - token type - - - - Formats the token sequence to the output writer - - - - - - - Formats the token sequence as a string - - - - - - JSON serializer - - - - - Ctor - - - - - Ctor - - - - - - Ctor - - - - - - - Gets the formatter for JSON - - - - - - - Gets the supported content type for the serialized data - - - - - Gets the supported file extension for the serialized data - - - - - Outputs JSON text from an input stream of tokens - - - - - Ctor - - - - - - Formats the token sequence as a string - - - - - - Formats the token sequence to the writer - - - - - - - Converts an object to its string representation - - - - - - - Converts an enum to its string representation - - - - - - - Splits a bitwise-OR'd set of enums into a list. - - the enum type - the combined value - list of flag enums - - from PseudoCode.EnumHelper - - - - - Determines if a numeric value cannot be represented as IEEE-754. - - - - - http://stackoverflow.com/questions/1601646 - - - - - Gets and sets if '<' should be encoded in strings - Useful for when emitting directly into page - - - - - Ctor - - - - Defaults to encoding < chars for improved embedding within script blocks - - - - - Emits a block of script ensuring that a namespace is declared - - the output writer - the namespace to ensure - list of namespaces already emitted - determines if should emit pretty-printed - if was a namespaced identifier - - - - Outputs a .NET Regex as an ECMAScript RegExp literal. - Defaults to global matching off. - - - - - http://www.ecma-international.org/publications/files/ECMA-ST/Ecma-262.pdf - - - - - Outputs a .NET Regex as an ECMAScript RegExp literal. - - - - - - http://www.ecma-international.org/publications/files/ECMA-ST/Ecma-262.pdf - - - - - Defines a strategy for filtering HTML tags/attributes/styles/literals - - - - - Filters tags, optionally allowing altering of tag - - tag name - if true tag should be rendered - - - - Filters attributes, optionally allowing altering of attribute value - - tag name - attribute name - attribute value - if true attribute should be rendered - - - - Filters styles, optionally allowing altering of style value - - tag name - style name - style value - if true style should be rendered - - - - Filters literals, optionally allowing replacement of literal value - - the literal value - if true should be rendered - - - - Provides a mechanism for filtering HTML streams based upon a tag taxonomy - - - - - Determines if is "void" (i.e. "empty" or "full") tag - - lowercase tag name - if is a void tag - - http://www.w3.org/TR/html5/semantics.html - http://www.w3.org/TR/html401/index/elements.html - http://www.w3.org/TR/xhtml-modularization/abstract_modules.html#sec_5.2. - http://www.w3.org/TR/WD-html40-970917/index/elements.html - - - - - Determines if the tag is required to be closed - - lowercase tag name - if closing tag is optional - - http://www.w3.org/TR/html5/semantics.html - http://www.w3.org/TR/html401/index/elements.html - http://www.w3.org/TR/WD-html40-970917/index/elements.html - - - - - Categorizes the tag for heuristics about markup type - - lowercase tag name - the box type for a particular element - - http://www.w3.org/TR/html5/semantics.html - - - - - Defines a prioritized taxonomy of tags - - - The types are enumerated in ascending levels of risk for use in filtering HTML input - - - - - Literal text, no tags - - - - - Inline character level elements and text strings - - - Tags of this type typically do not disrupt the text flow - - - - - style elements - - - Tags of this type change the visual appearance of text - - - - - list elements - - - Tags of this type denote lists and typically change the text flow - - - - - Block-level elements - - - Tags of this type denote sections or change the text flow - - - - - Media elements - - - Tags of this type safely embed media content - - - - - Tabular elements - - - Tags of this type have a very specific structure and their own rendering model - - - - - Form elements - - - Tags of this type are used in the construction of forms for capturing user input - - - - - Script elements - - - Tags of this type represent a security risk to the containing document but must obey the browser security sandbox - - - - - Document elements - - - Tags of this type are used to construct the document itself - - - - - embedded elements - - - Tags of this type represent a large security risk to the containing document as plug-ins may circumvent the browser security sandbox - - - - - Unknown elements - - - - - Outputs markup text from an input stream of tokens - - - - - Ctor - - - - - - Resets the internal stack of elements - - - - - Formats the token sequence as a string - - - - - - Formats the token sequence to the writer - - - - - - - Emits a valid XML local-name (i.e. encodes invalid chars including ':') - - - - - Explicitly escaping ':' to maintain compatibility with XML Namespaces. - From XML 1.0, 5th ed. http://www.w3.org/TR/xml/#sec-common-syn - Name = NameStartChar (NameChar)* - NameStartChar = ":" - | [A-Z] - | "_" - | [a-z] - | [#xC0-#xD6] - | [#xD8-#xF6] - | [#xF8-#x2FF] - | [#x370-#x37D] - | [#x37F-#x1FFF] - | [#x200C-#x200D] - | [#x2070-#x218F] - | [#x2C00-#x2FEF] - | [#x3001-#xD7FF] - | [#xF900-#xFDCF] - | [#xFDF0-#xFFFD] - | [#x10000-#xEFFFF] - NameChar = NameStartChar - | "-" - | "." - | [0-9] - | #xB7 - | [#x0300-#x036F] - | [#x203F-#x2040] - - - - - - Emits valid XML character data - - - - encodes all non-ASCII chars - - - - - Emits valid XML attribute character data - - - - encodes all non-ASCII chars - - - - Gets and sets a value indicating if should emit canonical form - - - http://www.w3.org/TR/xml-c14n - - - - - Gets and sets a value indicating how should emit empty attributes - - - - - Gets and sets a value indicating if should encode text chars above the ASCII range - - - This option can help when the output is being embedded within an unknown encoding - - - - - HTML-style empty attributes do not emit a quoted string - - - http://www.w3.org/TR/html5/syntax.html#attributes-0 - - - - - XHTML-style empty attributes repeat the attribute name as its value - - - http://www.w3.org/TR/xhtml-media-types/#C_10 - http://www.w3.org/TR/xhtml1/#C_10 - http://www.w3.org/TR/html5/the-xhtml-syntax.html - - - - - XML-style empty attributes emit an empty quoted string - - - http://www.w3.org/TR/xml/#sec-starttags - - - - - Generates a sequence of tokens from a generalized model of markup text (e.g. HTML, XML, JBST, ASPX/ASCX, ASP, JSP, PHP, etc.) - - - This generates a stream of tokens like StAX (Streaming API for XML) - Unlike XML, this follows a more permissive markup format with automatic recovery most similar to HTML5. - - - - - Generates a sequence of tokens from a sequence of characters - - token type - - - - Tokenizes the input sequence into tokens - - - - - - - Tokenizes the input sequence into tokens - - - - - - - Gets the current column of the underlying input character sequence - - - Tokenizers not tracking columns should return -1. - - - - - Gets the current line of the underlying input character sequence - - - Tokenizers not tracking lines should return -1. - - - - - Gets the current position of the underlying input character sequence - - - Tokenizers not tracking index should return -1. - - - - - Decodes HTML-style entities into special characters - - - the entity text - - TODO: validate against HTML5-style entities - http://www.w3.org/TR/html5/tokenization.html#consume-a-character-reference - - - - - Decodes most known named entities - - - - - - - Checks for element start char - - - - - http://www.w3.org/TR/xml/#sec-common-syn - - - - - Checks for element name char - - - - - http://www.w3.org/TR/xml/#sec-common-syn - - - - - Gets a token sequence from the TextReader - - - - - - - Gets a token sequence from the string - - - - - - - Gets and sets if should attempt to auto-balance mismatched tags. - - - - - Gets and sets if should unwrap comments inside . - - - For example, in HTML this would include "script" and "style" tags. - - - - - Gets and sets a set of tags which should not have their content parsed. - - - For example, in HTML this would include "script" and "style" tags. - - - - - Gets the total number of characters read from the input - - - - - Gets the total number of lines read from the input - - - - - Gets the current position within the input - - - - - Ctor - - - - - Renders Common Model Tokens into a semantic HTML representation of the data structure - - - - - Consumes a sequence of tokens and produces a token sequence of a different type - - input token type - output token type - - - - Transforms the token sequence from to - - - - - - - Consumes a sequence of tokens and produces a token sequence of a different type - - - - - Formats the token sequence to the output - - - - - - - StringBuilder-like implementation built like List<char> - - - - - Ctor - - - - - Ctor - - - - - - Resets the buffer to an empty state - - - - - Appends a single char to the buffer - - - - - - - Appends a string value to the buffer - - - - - - - Copies the buffer value into a - - - - - - Gets the number of characters in the buffer - - - - - - Ctor - - - - - - Ctor - - - - - - - Ctor - - - - - - Ctor - - - - - - - - Supports forward-only iteration over an input sequence of - - - - - Supports forward-only iteration over an input sequence of - - - - - Supports forward-only iteration over an input sequence - - - - - Returns but does not remove the item at the front of the sequence. - - - - - - Returns and removes the item at the front of the sequence. - - - - - - Begins chunking at the current index - - - - - Ends chunking at the current index and returns the buffered sequence chunk - - - - - - Determines if the sequence has completed. - - - - - Gets a value indicating if is currently capturing a sequence - - - - - Gets the number of items currently chunked - - - - - Factory method for generic streams - - - - - - - - Returns but does not remove the item at the front of the sequence. - - - - - - Returns and removes the item at the front of the sequence. - - - - - - Determines if the input sequence has reached the end - - - - - Ctor - - - - - - Returns but does not remove the item at the front of the sequence. - - - - - - Returns and removes the item at the front of the sequence. - - - - - - Deferred execution of iterator - - - - - Determines if the input sequence has reached the end - - - - - Supports a simple iteration over a list with ability to capture a subsequence - - - - - Ctor - - - - - - Begins chunking at the current index - - - - - Ends chunking at the current index and returns the buffered chunk - - - - - - Returns but does not remove the item at the front of the sequence. - - - - - - Returns and removes the item at the front of the sequence. - - - - - - Deferred execution of iterator - - - - - Gets the number of characters currently chunked - - - - - - Determines if the input sequence has reached the end - - - - - Supports a simple iteration over a text input tracking line/column/position - - - - - Ends chunking at the current index and returns the buffered text chunk - - - - - - Ends chunking at the current index and writes the buffered text chunk into the provided StringBuilder - - - - - - Gets the total number of characters read from the input - - - - - Gets the total number of lines read from the input - - - - - Gets the current position within the input - - - - - Supports a simple iteration over a string tracking line/column/position - - - - - Ctor - - - - - - Begins chunking at the current index - - - - - Ends chunking at the current index and returns the buffered text chunk - - - - - - Ends chunking at the current index and returns the buffered text chunk - - - - - - Ends chunking at the current index and returns the buffered text chunk - - - - - - Returns but does not remove the item at the front of the sequence. - - - - - - Returns and removes the item at the front of the sequence. - - - - - - Deferred execution of iterator - - - - - Calculates index, line, and column statistics - - - - - Releases all resources used - - - - - Gets the total number of characters read from the input - - - - - Gets the total number of lines read from the input - - - - - Gets the current position within the input - - - - - Gets the number of characters currently chunked - - - - - Gets a value indicating if the is currently chunking - - - - - Determines if the input sequence has reached the end - - - - - Supports a simple iteration over a TextReader tracking line/column/position - - - - - Ctor - - - - - - Begins chunking at the current index - - - - - Ends chunking at the current index and returns the buffered text chunk - - - - - - Ends chunking at the current index and returns the buffered text chunk - - - - - - Ends chunking at the current index and returns the buffered text chunk - - - - - Returns but does not remove the item at the front of the sequence. - - - - - - Returns and removes the item at the front of the sequence. - - - - - - Deferred execution of iterator - - - - - Calculates index, line, and column statistics - - - - - - - Releases all resources used by the underlying reader - - - - - Gets the total number of characters read from the input - - - - - Gets the total number of lines read from the input - - - - - Gets the current position within the input - - - - - Gets the number of characters currently chunked - - - - - Gets a value indicating if the is currently chunking - - - - - Determines if the input sequence has reached the end - - - - - Formal language of tokens and symbols for JSON - - - - - Designates a property or field to not be serialized. - - - - - Specifies the naming to use for a property or field when serializing - - - - - Ctor - - - - - Ctor - - - - - - Gets and sets the name to be used in serialization - - - - - JSON deserializer - - - - - Ctor - - - - - Ctor - - - - - - Ctor - - - - - - - Gets the supported content type of the serialized data - - - - - Generates a sequence of tokens from JSON text - - - - - Gets a token sequence from the scanner stream - - - - - - - Scans for the longest valid EcmaScript identifier - - identifier - - http://www.ecma-international.org/publications/files/ECMA-ST/Ecma-262.pdf - - IdentifierName = - IdentifierStart | IdentifierName IdentifierPart - IdentifierStart = - Letter | '$' | '_' - IdentifierPart = - IdentifierStart | Digit - - - - - Gets a token sequence from the TextReader - - - - - - - Gets a token sequence from the string - - - - - - - Gets the total number of characters read from the input - - - - - Gets the total number of lines read from the input - - - - - Gets the current position within the input - - - - - It is an error for the next token to be a value delim - - - - - Forbidden but differentiates between empty array/object and just written - - - - - It is an error for the next token to NOT be a value delim - - - - - Specifies the name of the property which specifies if member should be serialized. - - - These properties can be marked private/protected/internal and it will still be recognized - - - - - Ctor - - the name of the property which controls serialization for this member - - - - Ctor - - the name of the property which controls serialization for this member - - - - Gets and sets the name of the property which - specifies if member should be serialized - - - - - Transforms markup tokens into Common Model tokens using the (lossless) JsonML model - - - JsonML Grammer: http://jsonml.org - - - - - Consumes a sequence of tokens and produces a token sequence of a different type - - - - - Determines how whitespace should be handled - - - - - Transforms Common Model tokens into markup tokens using the (lossless) JsonML model - - - JsonML Grammer: http://jsonml.org - - - - - Consumes a sequence of tokens and produces a token sequence of a different type - - - - - Controls name resolution for IDataReader / IDataWriter using JsonNameAttribute / JsonIgnoreAttribute / JsonPropertySpecifiedAttribute - - - This is the default strategy from JsonFx v1.0 - - - - - Controls name resolution for IDataReader / IDataWriter using plain old CLR object (POCO) names - - - - - Controls name resolution for IDataReader / IDataWriter - - - Provides an extensibility point to control member naming and visibility at a very granular level. - - - - - Gets a value indicating if the property is to be serialized. - - - - - - - - Gets a value indicating if the field is to be serialized. - - - - - - - Determines if the property or field should not be serialized. - - - - - - - - - Gets the serialized name for the member. - - - - - - - Allows a strategy to perform a custom sort order to outputted members - - - - - A common usage is to ensure that Attributes sort first - - - - - Gets a value indicating if the property is to be serialized. - - - - - default implementation is must be read/write properties, or immutable - - - - Gets a value indicating if the field is to be serialized. - - - - default implementation is must be public, non-readonly field - - - - Gets a delegate which determines if the property or field should not be serialized based upon its value. - - - if has a value equivalent to the DefaultValueAttribute - - This is useful when default values need not be serialized. - - - - - Gets the serialized name for the member. - - - - - - - Allows a strategy to perform a custom sort order to outputted members - - - - - A common usage is to ensure that Attributes sort first - - - - - Gets a value indicating if the property is to be serialized. - - - - - default implementation is must be read/write properties, or immutable - - - - Gets a value indicating if the field is to be serialized. - - - - default implementation is must be public, non-readonly field - - - - Gets a delegate which determines if the property or field should not be serialized based upon its value. - - - if has a value equivalent to the DefaultValueAttribute - - This is useful for excluding serialization of default values. - - - - - Gets the serialized name for the member. - - - - - - - Determines whitespace handling - - - - - Removes insignificant whitespace - - - - - Keep all whitespace - - - - - Condenses all whitespace to single spaces - - - - - Designates a type as being able to format itself to raw JSON text. - - - - - Ctor - - - - - Ctor - - - - - Gets and sets the starting delimiter - - - - - Gets and sets the ending delimiter - - - - - Gets and sets the context - - - - - Formal language of tokens and symbols for markup - - - - - Any of a number of unparsed tags which typically contain specialized processing instructions - - - The name of the token is the beginning and ending delimiters as a format string (not including the '<' or '>') - Includes the following types: - - "<!--", "-->" XML/HTML/SGML comment - "<!", ">" XML/SGML declaration (e.g. DOCTYPE or server-side includes) - - "<?=", "?>" PHP expression - "<?", "?>" PHP code block /XML processing instruction (e.g. the XML declaration) - - "<%--", "--%>" ASP/PSP/JSP-style code comment - "<%@", "%>" ASP/PSP/JSP directive - "<%=", "%>" ASP/PSP/JSP/JBST expression - "<%!", "%>" JSP/JBST declaration - "<%#", "%>" ASP.NET/JBST databind expression - "<%$", "%>" ASP.NET/JBST extension - "<%", "%>" ASP code block / JSP scriptlet / PSP code block - - - - - tokens - - - - - - - - - - - Maintains scope chain for namespace prefix mappings - - - - - Adds a new scope to the chain - - - - - - Gets the last scope off the chain - - - - - Gets and removes the last scope off the chain - - - - - - Finds the namespace URI for a given prefix within the curren scope chain - - - - - - - Finds the prefix for a given namespace URI within the curren scope chain - - - - - - - Checks if the matching begin tag exists on the stack - - - - - - Resets the internal state of the scope chain. - - - - - Looks up the prefix for the given namespace - - - - null if namespace is empty and no default prefix found - - - - Represents a scope boundary within a prefix scope chain - - - - - Returns if this scope boundary contains a mapping for a particular prefix - - - if this scope boundary contains a mapping for a particular prefix - - - - Returns if this scope boundary contains a mapping for a particular namespace - - - if this scope boundary contains a mapping for a particular namespace - - - - Returns if this scope boundary contains a mapping for a particular prefix - setting the namespace URI if one was found. - - - the resolved namespace URI - if this scope boundary contains a mapping for a particular prefix - - - - Returns if this scope boundary contains a mapping for a particular prefix - setting the prefix if one was found. - - - the resolved prefix - if this scope boundary contains a mapping for a particular prefix - - - - Gets and sets the tagname associated with this scope boundary - - - - - Gets and sets mappings between prefix and namespace URIs - - - - - - - Provides lookup capabilities for providers - - - - - Parses HTTP headers for Media-Types - - HTTP Accept header - HTTP Content-Type header - sequence of Media-Types - - http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html - - - - - - - - - - - - Controls name resolution for IDataReader / IDataWriter using convention-based name mapping - - - Converts standard .NET PascalCase naming convention into the specified naming convention. - http://msdn.microsoft.com/en-us/library/x2dbyw72.aspx - http://msdn.microsoft.com/en-us/library/141e06ef.aspx - http://msdn.microsoft.com/en-us/library/xzf533w0.aspx - - - - - Ctor - - - - - - Ctor - - - - - - - Gets the serialized name for the member. - - - - - - - Splits a multi-word name assuming standard .NET PascalCase conventions. - - - - - http://msdn.microsoft.com/en-us/library/x2dbyw72.aspx - http://msdn.microsoft.com/en-us/library/141e06ef.aspx - http://msdn.microsoft.com/en-us/library/xzf533w0.aspx - - - - - - Ctor - - - - - - - - Ctor - - - - - - - Represents a property or document name, and a corresponding namespace URI (or empty string). - Analogous to XML "expanded name": http://www.w3.org/TR/REC-xml-names/#dt-expname - - - Namespaces must be a URI, but local-name can be any non-null string. - It is up to formatters to determine how to properly represent names which are invalid for the format. - - - - - local-name - - - - - alias for the namespace - - - - - namespace - - - - - Determines if name should be treated like an attribute - - - - - Ctor - - a CLR Type used to generate the local-name - - This constructor implicitly delcares the namespace to be empty. - - - - - Ctor - - any string is a valid local-name - - This constructor implicitly delcares the namespace to be empty. - - - - - Ctor - - any string is a valid local-name - an absolute URI string, or null - thrown if is null - thrown if is an invalid absolute URI - - The namespace field follows XML recommendation of absolute URIs. - Relative URIs are officially deprecated for namespaces: http://www.w3.org/2000/09/xppa - - - - - Ctor - - any string is a valid local-name - an absolute URI string, or null - determines if name should be an attribute name - thrown if is null - thrown if is an invalid absolute URI - - The namespace field follows XML recommendation of absolute URIs. - Relative URIs are officially deprecated for namespaces: http://www.w3.org/2000/09/xppa - - - - - Gets the local-name for a Type - - - - - - - Gets the prefixed name or simply local-name if is not a fully qualified name - - true to generate a prefix if the prefix is empty but not the namespace - - - - - Gets the namespaced name or simply local-name if is not a fully qualified name - - - - - - Compares two values and returns an indication of their relative sort order. - - - - - Performs ordering according to XML Canonicalization document order http://www.w3.org/TR/xml-c14n#DocumentOrder - "An element's namespace nodes are sorted lexicographically by local name (the default namespace node, if one exists, has no local name and is therefore lexicographically least)." - "An element's attribute nodes are sorted lexicographically with namespace URI as the primary key and local name as the secondary key (an empty namespace URI is lexicographically least)." - - - - - Determines if this is an empty DataName - - - - - Indicates a graph cycle was detected during serialization - - - - - Indicates an error occurred during serialization - - - - - Ctor - - - - - Ctor - - - - - - Ctor - - - - - - - Ctor - - - - - Ctor - - - - - - Ctor - - - - - - - Gets the type of cycle which caused the error - - - - - Graph cycles are detected with a reference tracking, any repeated reference results in a null value - - - - - Graph cycles are detected with a reference tracking, any repeated reference results in an error - - - - - Graph cycles are detected with a maximum depth count, exceeding depth results in an error - - - - - Detects graph cycles by tracking graph depth - - - - - Defines an interface for detecting graph cycles - - - - - Begins tracking of the reference - - - true if graph cycle was detected - - - - Ends tracking of the reference - - - true if tracking was successfully completed - - - - Ctor - - - - - - Increments the depth - - - true if MaxDepth has not been exceeded - - - - Increments the depth - - - - - - Detects cycles by detecting duplicates in the a set of object references - - - - - Adds a reference to the set - - - true if object already existed within set - - - - Removes a reference from the set - - - - - - Controls deserialization settings for IDataReader - - - - - Ctor - - - - - Ctor - - - - - Ctor - - - - - Ctor - - - - - - Ctor - - - - - - Ctor - - - - - - Ctor - - - - - - Gets and sets if ValueTypes can accept values of null - - - If this is true and a ValueType T is assigned the value of null, - it will receive the value of default(T). - Setting this to false, throws an exception if null is - specified for a ValueType member. - - - - - Gets and sets if should verify that stream is empty after deserialzing each object - - - Setting to true allows reading a JSON stream inside other structures (e.g. JavaScript) - - - - - Gets manager of name resolution for IDataReader - - - - - Gets the custom filters - - - - - Controls the serialization settings for IDataWriter - - - - - Ctor - - - - - Ctor - - - - - Ctor - - - - - Ctor - - - - - - Ctor - - - - - - Ctor - - - - - - Ctor - - - - - - Gets and sets what to do when graph cycles (repeated references) are encounted - - - - - Gets and sets the maximum nesting depth - - - Depth is a fast and easy safegaurd against detecting graph cycles but may produce false positives - - - - - Gets and sets if output will be formatted for human reading. - - - - - Gets and sets the string to use for indentation - - - - - Gets and sets the line terminator string - - - - - Gets manager of name resolution for IDataReader - - - - - Gets the custom filters - - - - - Indicates an error occurred during deserialization - - - - - Ctor - - - - - - - Ctor - - - - - - - - - Ctor - - - - - - - - Ctor - - - - - - - - Helper method which converts the index into Line and Column numbers - - - - - - - - Gets the character column in the stream where the error occurred - - - - - Gets the character position in the stream where the error occurred - - - - - Gets the character line in the stream where the error occurred - - - - - Indicates an error occurred during token consumption - - - - - - Ctor - - - - - Ctor - - - - - - Ctor - - - - - - - Gets the token in the sequence where the error occurred - - - - - Indicates an error occurred during type coercion - - - - - Ctor - - - - - Ctor - - - - - - Ctor - - - - - - - Provides lookup capabilities for finding matching IDataReader - - - - - Provides lookup capabilities for finding matching IDataReader - - - - - Ctor - - inject with all possible readers - - - - Finds an IDataReader by content-type header - - - - - - - Provides lookup capabilities for finding an IDataWriter - - - - - Provides lookup capabilities for finding an IDataWriter - - - - - Ctor - - inject with all possible writers - - - - Controls name resolution for IDataReader / IDataWriter by using pluggable delegate callbacks - - - - - Gets and sets the implementation for ignoring properties - - - - - Gets and sets the implementation for ignoring fields - - - - - Gets and sets the implementation for ignoring properties by value - - - - - Gets and sets the implementation for naming members - - - - - Gets and sets the implementation for sorting members - - - - - Controls name resolution for IDataReader / IDataWriter by combining an ordered sequence of any other strategies - - - Each strategy is invoked in order, the first to respond wins. - - - - - Ctor - - ordered sequence of strategies - - - - Ctor - - ordered sequence of strategies - - - - Gets a value indicating if the property is to be serialized. - - - - true if any strategy specifies should be ignored - - - - Gets a value indicating if the field is to be serialized. - - - true if any strategy specifies should be ignored - - - - Gets a delegate which determines if the property or field should not be serialized based upon its value. - - - true if any strategy specifies this should be ignored - - - - Gets the serialized name for the member. - - - - custom name if any strategy specifies one, otherwise null - - - - Allows a strategy to perform a custom sort order to outputted members - - - - - A common usage is to ensure that Attributes sort first - - - - - Controls name resolution for IDataReader / IDataWriter using DataContract attributes - - - http://msdn.microsoft.com/en-us/library/kd1dc9w5.aspx - - - - - CCtor - - - - - Gets a value indicating if the property is to be serialized. - - - - - - - - Gets a value indicating if the field is to be serialized. - - - - - - - Gets a delegate which determines if the property or field should not be serialized based upon its value. - - - - - - - Gets the serialized name for the member. - - - - - - - Gets a delegate which determines if the property or field should not be serialized based upon its value. - - - - - - - The original member info - - - - - The original member name - - - - - The member data name - - - - - The member type - - - - - The getter method - - - - - The setter method - - - - - The logic for determining if a value is ignored - - - - - Determines if map name is alternate (i.e. only used for deserialization) - - - - - Ctor - - MemberMap to clone - alternate name - - - - Ctor - - - - - - - - Ctor - - - - - - - - Ctor - - - - - Gets a sequence of the available factory arguments - - - - - Gets the factory associated with the given argument type - - - - - - - Cache of name resolution mappings for IDataReader / IDataWriter - - - - - Ctor - - - - - - Gets the serialized name of the class - - - - - - - Removes any cached member mappings. - - - - - Builds a mapping of member name to field/property - - - - - - Represents a single immutable token in an input sequence - - - - - The type of the token - - - - - The name of the token - - - - - The value of the token - - - - - Ctor - - - - - - Ctor - - - - - - - Ctor - - - - - - - Ctor - - - - - - - Returns a string that represents the current token. - - - - - - Gets the value of the token as a string - - - - - - Converts a value to a string giving opportunity for IConvertible, IFormattable - - - - - - - Converts token to a token of a different type - - - token with same values and different type - - - - Type Coercion Utility - - - - - Ctor - - - - - - - Ctor - - - - - - - Instantiates a new instance of objectType. - - - objectType instance - - - - Instantiates a new instance of objectType. - - - objectType instance - - - - Helper method to set value of a member. - - - - - - - - - - Coerces the object value to Type - - - - - - - - Coerces the object value to Type of - - - - - - - - Populates the properties of an object with the dictionary values. - - - - - - - - Populates the properties of an object with the dictionary values. - - - - - - - - Coerces an sequence of items into an array of Type elementType - - - - - - - - Finds a suitable concrete class for common collection interface types - - - - - - - Allows specific IDictionary<string, TVal> to deserialize as TVal - - IDictionary<string, TVal> Type - TVal Type - - - - Returns a common type which can hold previous values and the new value - - - - - - - - Determines if type can be assigned a null value. - - - - - - - Gets the attribute T for the given value. - - - Attribute Type - true if defined - - - - Gets the attribute of Type for the given value. - - - true if defined - - - - Gets the attribute T for the given value. - - - Attribute Type - requested attribute or not if not defined - - - - Gets the attribute of Type for the given value. - - - requested attribute or not if not defined - - - - Character Utility - - - These are either simpler definitions of character classes (e.g. letter is [a-zA-Z]), - or they implement platform-agnositic checks (read: "Silverlight workarounds"). - - - - - Checks if string is null, empty or entirely made up of whitespace - - - - - Essentially the same as String.IsNullOrWhiteSpace from .NET 4.0 - with a simplfied view of whitespace. - - - - - Checks if character is line ending, tab or space - - - - - - - - - - - - - - Checks if character matches [A-Za-z] - - - - - - - Checks if character matches [0-9] - - - - - - - Checks if character matches [0-9A-Fa-f] - - - - - - - Gets a 4-bit number as a hex digit - - 0-15 - - - - - Formats a number as a hex digit - - - - - - - Converts the value of a UTF-16 encoded character or surrogate pair at a specified - position in a string into a Unicode code point. - - - - - - - - Converts the specified Unicode code point into a UTF-16 encoded string. - - - - - - - XML serializer - - - XML serializer - - - - - Ctor - - - - - Ctor - - - - - - Ctor - - - - - - - Gets a tokenizer for XML - - - - - - Gets the supported content type for the serialized data - - - - - Transforms markup tokens into Common Model tokens using an XML-data model - - - - - Ctor - - - - - - Consumes a sequence of tokens and produces a token sequence of a different type - - - - - Formats the token sequence to the output - - - - - - - - Ctor - - - - - Ctor - - - - - - Gets a token sequence from the string - - - - - - - Gets a token sequence from the TextReader - - - - - - - Gets a token sequence from the XmlReader - - - - - - - Gets the total number of characters read from the input - - - - - Gets the total number of lines read from the input - - - - - Gets the current position within the input - - - - - XML serializer - - - - - Ctor - - - - - Ctor - - - - - - Ctor - - - - - - - Gets the formatter for XML - - - - - - - Gets the supported content type for the serialized data - - - - - Gets the supported file extension for the serialized data - - - - - Transforms Common Model tokens into markup tokens using an XML-data model - - - - - Ctor - - - - - - Consumes a sequence of tokens and produces a token sequence of a different type - - - - - Formats the token sequence to the output - - - - - - - Outputs XML text from an input stream of tokens - - - - - Ctor - - - - - - Formats the token sequence as a string - - - - - - Formats the token sequence to the writer - - - - - - - Formats the token sequence to the writer - - - - - - - Wraps an XmlWriter as a TextWriter - - - - - Ctor - - - - - - Gets the underlying XmlWriter - - - - - Controls name resolution for IDataReader / IDataWriter using attributes and conventions similar to XmlSerializer semantics - - - http://msdn.microsoft.com/en-us/library/83y7df3e.aspx - - - - - Gets a value indicating if the property is to be serialized. - - - - - default implementation is must be read/write properties, or immutable - - - - Gets a value indicating if the field is to be serialized. - - - - default implementation is must be public, non-readonly field - - - - Gets a delegate which determines if the property or field should not be serialized based upon its value. - - - if has a value equivalent to the DefaultValueAttribute or has a property named XXXSpecified which determines visibility - - This is useful when default values need not be serialized. - Under these situations XmlSerializer ignores properties based upon value: - - DefaultValue: http://msdn.microsoft.com/en-us/library/system.componentmodel.defaultvalueattribute.aspx - - Specified Properies: http://msdn.microsoft.com/en-us/library/bb402199.aspx - - ShouldSerialize Methods: http://msdn.microsoft.com/en-us/library/53b8022e.aspx - - - - - Gets the serialized name for the member. - - - - - - - Sorts members to ensure proper document order where attributes precede all child elements. - - - - - Performs the first stage of XML Canonicalization document order http://www.w3.org/TR/xml-c14n#DocumentOrder - "An element's namespace and attribute nodes have a document order position greater than the element but less than any child node of the element." - - - - - Generates delegates for getting/setting properties and field and invoking constructors - - - - - Creates a field getter delegate for the specified property or field - - PropertyInfo or FieldInfo - GetterDelegate for property or field, null otherwise - - Note: use with caution this method will expose private and protected constructors without safety checks. - - - - - Creates a field setter delegate for the specified property or field - - PropertyInfo or FieldInfo - SetterDelegate for property or field, null otherwise - - - - Creates a property getter delegate for the specified property - - - GetterDelegate if property CanRead, otherwise null - - Note: use with caution this method will expose private and protected constructors without safety checks. - - - - - Creates a property setter delegate for the specified property - - - GetterDelegate if property CanWrite, otherwise null - - Note: use with caution this method will expose private and protected constructors without safety checks. - - - - - Creates a field getter delegate for the specified field - - - GetterDelegate which returns field unless is enum in which will return enum value - - Note: use with caution this method will expose private and protected constructors without safety checks. - - - - - Creates a field setter delegate for the specified field - - - SetterDelegate unless field IsInitOnly then returns null - - Note: use with caution this method will expose private and protected constructors without safety checks. - - - - - Creates a proxy delegate accepting a target instance and corresponding arguments - - method to proxy - ProxyDelegate or null if cannot be invoked - - Note: use with caution this method will expose private and protected methods without safety checks. - - - - - Creates a default constructor delegate - - type to be created - FactoryDelegate or null if default constructor not found - - Note: use with caution this method will expose private and protected constructors without safety checks. - - - - - Creates a constructor delegate accepting specified arguments - - type to be created - constructor arguments type list - FactoryDelegate or null if constructor not found - - Note: use with caution this method will expose private and protected constructors without safety checks. - - - - - Creates a constructor delegate accepting specified arguments - - type to be created - constructor arguments type list - FactoryDelegate or null if constructor not found - - Note: use with caution this method will expose private and protected constructors without safety checks. - - - - diff --git a/packages/NUnit.3.0.1/CHANGES.txt b/packages/NUnit.3.0.1/CHANGES.txt deleted file mode 100644 index 7fd9f65c..00000000 --- a/packages/NUnit.3.0.1/CHANGES.txt +++ /dev/null @@ -1,924 +0,0 @@ -NUnit 3.0.1 - December 1, 2015 - -Console Runner - - * The Nunit.Runners NuGet package was updated to become a meta-package that pulls in the NUnit.Console package - * Reinstated the --pause command line option that will display a message box allowing you to attach a debugger if the --debug option does not work - -Issues Resolved - - * 994 Add max number of Agents to the NUnit project file - * 1014 Ensure NUnit API assembly updates with MSI installs - * 1024 Added --pause flag to console runner - * 1030 Update Nunit.Runners package to 3.0 - * 1033 "No arguments were provided" with Theory and Values combination - * 1035 Check null arguments - * 1037 Async tests not working on Windows 10 Universal - * 1041 NUnit2XmlResult Writer is reporting Sucess when test fails - * 1042 NUnit2 reports on 3.0 is different than 2.6.4 - * 1046 FloatingPointNumerics.AreAlmostEqualUlps throws OverflowException - * 1049 Cannot select Generic tests from command line - * 1050 Do not expose System.Runtime.CompilerServices.ExtensionAttribute to public - * 1054 Create nuget feeds for CI builds on Appveyor - * 1055 nunit3 console runner --where option does not return error on invalid selection string - * 1060 Remove "Version 3" from NUnit Nuget Package - * 1061 Nunit30Settings.xml becomes corrupted - * 1062 Console.WriteLine statements in "OneTimeSetUp" and "OneTimeTearDown" annotated methods are not directed to the console when using nunit3-console.exe runner - * 1063 Error in Random Test - -NUnit 3.0.0 Final Release - November 15, 2015 - -Issues Resolved - - * 635 Mono 4.0 Support - -NUnit 3.0.0 Release Candidate 3 - November 13, 2015 - -Engine - - * The engine now only sets the config file for project.nunit to project.config if project.config exists. Otherwise, each assembly uses its own config, provided it is run in a separate AppDomain by itself. - - NOTE: It is not possible for multiple assemblies in the same AppDomain to use different configs. This is not an NUnit limitation, it's just how configs work! - -Issues Resolved - - * 856 Extensions support for third party runners in NUnit 3.0 - * 1003 Delete TeamCityEventHandler as it is not used - * 1015 Specifying .nunit project and --framework on command line causes crash - * 1017 Remove Assert.Multiple from framework - -NUnit 3.0.0 Release Candidate 2 - November 8, 2015 - -Engine - - * The IDriverFactory extensibility interface has been modified. - -Issues Resolved - - * 970 Define PARALLEL in CF build of nunitlite - * 978 It should be possible to determine version of NUnit using nunit console tool - * 983 Inconsistent return codes depending on ProcessModel - * 986 Update docs for parallel execution - * 988 Don't run portable tests from NUnit Console - * 990 V2 driver is passing invalid filter elements to NUnit - * 991 Mono.Options should not be exposed to public directly - * 993 Give error message when a regex filter is used with NUnit V2 - * 997 Add missing XML Documentation - * 1008 NUnitLite namespace not updated in the NuGet Packages - -NUnit 3.0.0 Release Candidate - November 1, 2015 - -Framework - - * The portable build now supports ASP.NET 5 and the new Core CLR. - - NOTE: The `nunit3-console` runner cannot run tests that reference the portable build. - You may run such tests using NUnitLite or a platform-specific runner. - - * `TestCaseAttribute` and `TestCaseData` now allow modifying the test name without replacing it entirely. - * The Silverlight packages are now separate downloads. - -NUnitLite - - * The NUnitLite runner now produces the same output display and XML results as the console runner. - -Engine - - * The format of the XML result file has been finalized and documented. - -Console Runner - - * The console runner program is now called `nunit3-console`. - * Console runner output has been modified so that the summary comes at the end, to reduce the need for scrolling. - -Issues Resolved - - * 59 Length of generated test names should be limited - * 68 Customization of test case name generation - * 404 Split tests between nunitlite.runner and nunit.framework - * 575 Add support for ASP.NET 5 and the new Core CLR - * 783 Package separately for Silverlight - * 833 Intermittent failure of WorkItemQueueTests.StopQueue_WithWorkers - * 859 NUnit-Console output - move Test Run Summary to end - * 867 Remove Warnings from Ignored tests - * 868 Review skipped tests - * 887 Move environment and settings elements to the assembly suite in the result file - * 899 Colors for ColorConsole on grey background are too light - * 904 InternalPreserveStackTrace is not supported on all Portable platforms - * 914 Unclear error message from console runner when assembly has no tests - * 916 Console runner dies when test agent dies - * 918 Console runner --where parameter is case sensitive - * 920 Remove addins\nunit.engine.api.dll from NuGet package - * 929 Rename nunit-console.exe - * 931 Remove beta warnings from NuGet packages - * 936 Explicit skipped tests not displayed - * 939 Installer complains about .NET even if already installed - * 940 Confirm or modify list of packages for release - * 947 Breaking API change in ValueSourceAttribute - * 949 Update copyright in NUnit Console - * 954 NUnitLite XML output is not consistent with the engine's - * 955 NUnitLite does not display the where clause - * 959 Restore filter options for NUnitLite portable build - * 960 Intermittent failure of CategoryFilterTests - * 967 Run Settings Report is not being displayed. - -NUnit 3.0.0 Beta 5 - October 16, 2015 - -Framework - - * Parameterized test cases now support nullable arguments. - * The NUnit framework may now be built for the .NET Core framework. Note that this is only available through building the source code. A binary will be available in the next release. - -Engine - - * The engine now runs multiple test assemblies in parallel by default - * The output XML now includes more information about the test run, including the text of the command used, any engine settings and the filter used to select tests. - * Extensions may now specify data in an identifying attribute, for use by the engine in deciding whether to load that extension. - - -Console Runner - - * The console now displays all settings used by the engine to run tests as well as the filter used to select tests. - * The console runner accepts a new option --maxagents. If multiple assemblies are run in separate processes, this value may be used to limit the number that are executed simultaneously in parallel. - * The console runner no longer accepts the --include and --exclude options. Instead, the new --where option provides a more general way to express which tests will be executed, such as --where "cat==Fast && Priority==High". See the docs for details of the syntax. - * The new --debug option causes NUnit to break in the debugger immediately before tests are run. This simplifies debugging, especially when the test is run in a separate process. - -Issues Resolved - - * 41 Check for zeroes in Assert messages - * 254 Finalize XML format for test results - * 275 NUnitEqualityComparer fails to compare IEquatable where second object is derived from T - * 304 Run test Assemblies in parallel - * 374 New syntax for selecting tests to be run - * 515 OSPlatform.IsMacOSX doesn't work - * 573 nunit-console hangs on Mac OS X after all tests have run - * 669 TeamCity service message should have assembly name as a part of test name. - * 689 The TeamCity service message "testFinished" should have an integer value in the "duration" attribute - * 713 Include command information in XML - * 719 We have no way to configure tests for several assemblies using NUnit project file and the common installation from msi file - * 735 Workers number in xml report file cannot be found - * 784 Build Portable Framework on Linux - * 790 Allow Extensions to provide data through an attribute - * 794 Make it easier to debug tests as well as NUnit itself - * 801 NUnit calls Dispose multiple times - * 814 Support nullable types with TestCase - * 818 Possible error in Merge Pull Request #797 - * 821 Wrapped method results in loss of result information - * 822 Test for Debugger in NUnitTestAssemblyRunner probably should not be in CF build - * 824 Remove unused System.Reflection using statements - * 826 Randomizer uniqueness tests fail randomly! - * 828 Merge pull request #827 (issue 826) - * 830 Add ability to report test results synchronously to test runners - * 837 Enumerators not disposed when comparing IEnumerables - * 840 Add missing copyright notices - * 844 Pull Request #835 (Issue #814) does not build in CF - * 847 Add new --process:inprocess and --inprocess options - * 850 Test runner fails if test name contains invalid xml characters - * 851 'Exclude' console option is not working in NUnit Lite - * 853 Cannot run NUnit Console from another directory - * 860 Use CDATA section for message, stack-trace and output elements of XML - * 863 Eliminate core engine - * 865 Intermittent failures of StopWatchTests - * 869 Tests that use directory separator char to determine platform misreport Linux on MaxOSX - * 870 NUnit Console Runtime Environment misreports on MacOSX - * 874 Add .NET Core Framework - * 878 Cannot exclude MacOSX or XBox platforms when running on CF - * 892 Fixed test runner returning early when executing more than one test run. - * 894 Give nunit.engine and nunit.engine.api assemblies strong names - * 896 NUnit 3.0 console runner not placing test result xml in --work directory - -NUnit 3.0.0 Beta 4 - August 25, 2015 - -Framework - - * A new RetryAttribute allows retrying of failing tests. - * New SupersetConstraint and Is.SupersetOf syntax complement SubsetConstraint. - * Tests skipped due to ExplicitAttribute are now reported as skipped. - -Engine - - * We now use Cecil to examine assemblies prior to loading them. - * Extensions are no longer based on Mono.Addins but use our own extension framework. - -Issues Resolved - - * 125 3rd-party dependencies should be downloaded on demand - * 283 What should we do when a user extension does something bad? - * 585 RetryAttribute - * 642 Restructure MSBuild script - * 649 Change how we zip packages - * 654 ReflectionOnlyLoad and ReflectionOnlyLoadFrom - * 664 Invalid "id" attribute in the report for case "test started" - * 685 In the some cases when tests cannot be started NUnit returns exit code "0" - * 728 Missing Assert.That overload - * 741 Explicit Tests get run when using --exclude - * 746 Framework should send events for all tests - * 747 NUnit should apply attributes even if test is non-runnable - * 749 Review Use of Mono.Addins for Engine Extensibility - * 750 Include Explicit Tests in Test Results - * 753 Feature request: Is.SupersetOf() assertion constraint - * 755 TimeOut attribute doesn't work with TestCaseSource Attribute - * 757 Implement some way to wait for execution to complete in ITestEngineRunner - * 760 Packaging targets do not run on Linux - * 766 Added overloads for True()/False() accepting booleans - * 778 Build and build.cmd scripts invoke nuget.exe improperly - * 780 Teamcity fix - * 782 No sources for 2.6.4 - -NUnit 3.0.0 Beta 3 - July 15, 2015 - -Framework - - * The RangeAttribute has been extended to support more data types including - uint, long and ulong - * Added platform support for Windows 10 and fixed issues with Windows 8 and - 8.1 support - * Added async support to the portable version of NUnit Framework - * The named members of the TestCaseSource and ValueSource attributes must now be - static. - * RandomAttribute has been extended to add support for new data types including - uint, long, ulong, short, ushort, float, byte and sbyte - * TestContext.Random has also been extended to add support for new data types including - uint, long, ulong, short, ushort, float, byte, sbyte and decimal - * Removed the dependency on Microsoft.Bcl.Async from the NUnit Framework assembly - targeting .NET 4.0. If you want to write async tests in .NET 4.0, you will need - to reference the NuGet package yourself. - * Added a new TestFixtureSource attribute which is the equivalent to TestCaseSource - but provides for instantiation of fixtures. - * Significant improvements have been made in how NUnit deduces the type arguments of - generic methods based on the arguments provided. - -Engine - - * If the target framework is not specified, test assemblies that are compiled - to target .NET 4.5 will no longer run in .NET 4.0 compatibility mode - - Console - - * If the console is run without arguments, it will now display help - -Issues Resolved - - * 47 Extensions to RangeAttribute - * 237 System.Uri .ctor works not properly under Nunit - * 244 NUnit should properly distinguish between .NET 4.0 and 4.5 - * 310 Target framework not specified on the AppDomain when running against .Net 4.5 - * 321 Rationalize how we count tests - * 472 Overflow exception and DivideByZero exception from the RangeAttribute - * 524 int and char do not compare correctly? - * 539 Truncation of string arguments - * 544 AsyncTestMethodTests for 4.5 Framework fails frequently on Travis CI - * 656 Unused parameter in Console.WriteLine found - * 670 Failing Tests in TeamCity Build - * 673 Ensure proper disposal of engine objects - * 674 Engine does not release test assemblies - * 679 Windows 10 Support - * 682 Add Async Support to Portable Framework - * 683 Make FrameworkController available in portable build - * 687 TestAgency does not launch agent process correctly if runtime type is not specified (i.e. v4.0) - * 692 PlatformAttribute_OperatingSystemBitNess fails when running in 32-bit process - * 693 Generic Test Method cannot determine type arguments for fixture when passed as IEnumerable - * 698 Require TestCaseSource and ValueSource named members to be static - * 703 TeamCity non-equal flowid for 'testStarted' and 'testFinished' messages - * 712 Extensions to RandomAttribute - * 715 Provide a data source attribute at TestFixture Level - * 718 RangeConstraint gives error with from and two args of differing types - * 723 Does nunit.nuspec require dependency on Microsoft.Bcl.Async? - * 724 Adds support for Nullable to Assert.IsTrue and Assert.IsFalse - * 734 Console without parameters doesn't show help - -NUnit 3.0.0 Beta 2 - May 12, 2015 - -Framework - - * The Compact Framework version of the framework is now packaged separately - and will be distributed as a ZIP file and as a NuGet package. - * The NUnit 2.x RepeatAttribute was added back into the framework. - * Added Throws.ArgumentNullException - * Added GetString methods to NUnit.Framework.Internal.RandomGenerator to - create repeatable random strings for testing - * When checking the equality of DateTimeOffset, you can now use the - WithSameOffset modifier - * Some classes intended for internal usage that were public for testing - have now been made internal. Additional classes will be made internal - for the final 3.0 release. - -Engine - - * Added a core engine which is a non-extensible, minimal engine for use by - devices and similar situations where reduced functionality is compensated - for by reduced size and simplicity of usage. See - https://github.com/nunit/dev/wiki/Core-Engine for more information. - -Issues Resolved - - * 22 Add OSArchitecture Attribute to Environment node in result xml - * 24 Assert on Dictionary Content - * 48 Explicit seems to conflict with Ignore - * 168 Create NUnit 3.0 documentation - * 196 Compare DateTimeOffsets including the offset in the comparison - * 217 New icon for the 3.0 release - * 316 NUnitLite TextUI Runner - * 320 No Tests found: Using parametrized Fixture and TestCaseSource - * 360 Better exception message when using non-BCL class in property - * 454 Rare registry configurations may cause NUnit to fail - * 478 RepeatAttribute - * 481 Testing multiple assemblies in nunitlite - * 538 Potential bug using TestContext in constructors - * 546 Enable Parallel in NUnitLite/CF (or more) builds - * 551 TextRunner not passing the NumWorkers option to the ITestAssemblyRunner - * 556 Executed tests should always return a non-zero duration - * 559 Fix text of NuGet packages - * 560 Fix PackageVersion property on wix install projects - * 562 Program.cs in NUnitLite NuGet package is incorrect - * 564 NUnitLite Nuget package is Beta 1a, Framework is Beta 1 - * 565 NUnitLite Nuget package adds Program.cs to a VB Project - * 568 Isolate packaging from building - * 570 ThrowsConstraint failure message should include stack trace of actual exception - * 576 Throws.ArgumentNullException would be nice - * 577 Documentation on some members of Throws falsely claims that they return `TargetInvocationException` constraints - * 579 No documentation for recommended usage of TestCaseSourceAttribute - * 580 TeamCity Service Message Uses Incorrect Test Name with NUnit2Driver - * 582 Test Ids Are Not Unique - * 583 TeamCity service messages to support parallel test execution - * 584 Non-runnable assembly has incorrect ResultState - * 609 Add support for integration with TeamCity - * 611 Remove unused --teamcity option from CF build of NUnitLite - * 612 MaxTime doesn't work when used for TestCase - * 621 Core Engine - * 622 nunit-console fails when use --output - * 628 Modify IService interface and simplify ServiceContext - * 631 Separate packaging for the compact framework - * 646 ConfigurationManager.AppSettings Params Return Null under Beta 1 - * 648 Passing 2 or more test assemblies targeting > .NET 2.0 to nunit-console fails - -NUnit 3.0.0 Beta 1 - March 25, 2015 - -General - - * There is now a master windows installer for the framework, engine and console runner. - -Framework - - * We no longer create a separate framework build for .NET 3.5. The 2.0 and - 3.5 builds were essentially the same, so the former should now be used - under both runtimes. - * A new Constraint, DictionaryContainsKeyConstraint, may be used to test - that a specified key is present in a dictionary. - * LevelOfParallelizationAttribute has been renamed to LevelOfParallelismAttribute. - * The Silverlight runner now displays output in color and includes any - text output created by the tests. - * The class and method names of each test are included in the output xml - where applicable. - * String arguments used in test case names are now truncated to 40 rather - than 20 characters. - -Engine - - * The engine API has now been finalized. It permits specifying a minimum - version of the engine that a runner is able to use. The best installed - version of the engine will be loaded. Third-party runners may override - the selection process by including a copy of the engine in their - installation directory and specifying that it must be used. - * The V2 framework driver now uses the event listener and test listener - passed to it by the runner. This corrects several outstanding issues - caused by events not being received and allows selecting V2 tests to - be run from the command-line, in the same way that V3 tests are selected. - -Console - - * The console now defaults to not using shadowcopy. There is a new option - --shadowcopy to turn it on if needed. - -Issues Resolved - - * 224 Silverlight Support - * 318 TestActionAttribute: Retrieving the TestFixture - * 428 Add ExpectedExceptionAttribute to C# samples - * 440 Automatic selection of Test Engine to use - * 450 Create master install that includes the framework, engine and console installs - * 477 Assert does not work with ArraySegment - * 482 nunit-console has multiple errors related to -framework option - * 483 Adds constraint for asserting that a dictionary contains a particular key - * 484 Missing file in NUnit.Console nuget package - * 485 Can't run v2 tests with nunit-console 3.0 - * 487 NUnitLite can't load assemblies by their file name - * 488 Async setup and teardown still don't work - * 497 Framework installer shold register the portable framework - * 504 Option --workers:0 is ignored - * 508 Travis builds with failure in engine tests show as successful - * 509 Under linux, not all mono profiles are listed as available - * 512 Drop the .NET 3.5 build - * 517 V2 FrameworkDriver does not make use of passed in TestEventListener - * 523 Provide an option to disable shadowcopy in NUnit v3 - * 528 V2 FrameworkDriver does not make use of passed in TestFilter - * 530 Color display for Silverlight runner - * 531 Display text output from tests in Silverlight runner - * 534 Add classname and methodname to test result xml - * 541 Console help doesn't indicate defaults - -NUnit 3.0.0 Alpha 5 - January 30, 2015 - -General - - * A Windows installer is now included in the release packages. - -Framework - - * TestCaseAttribute now allows arguments with default values to be omitted. Additionaly, it accepts a Platform property to specify the platforms on which the test case should be run. - * TestFixture and TestCase attributes now enforce the requirement that a reason needs to be provided when ignoring a test. - * SetUp, TearDown, OneTimeSetUp and OneTimeTearDown methods may now be async. - * String arguments over 20 characters in length are truncated when used as part of a test name. - -Engine - - * The engine is now extensible using Mono.Addins. In this release, extension points are provided for FrameworkDrivers, ProjectLoaders and OutputWriters. The following addins are bundled as a part of NUnit: - * A FrameworkDriver that allows running NUnit V2 tests under NUnit 3.0. - * ProjectLoaders for NUnit and Visual Studio projects. - * An OutputWriter that creates XML output in NUnit V2 format. - * DomainUsage now defaults to Multiple if not specified by the runner - -Console - - * New options supported: - * --testlist provides a list of tests to run in a file - * --stoponerror indicates that the run should terminate when any test fails. - -Issues Resolved - - * 20 TestCaseAttribute needs Platform property. - * 60 NUnit should support async setup, teardown, fixture setup and fixture teardown. - * 257 TestCaseAttribute should not require parameters with default values to be specified. - * 266 Pluggable framework drivers. - * 368 Create addin model. - * 369 Project loader addins - * 370 OutputWriter addins - * 403 Move ConsoleOptions.cs and Options.cs to Common and share... - * 419 Create Windows Installer for NUnit. - * 427 [TestFixture(Ignore=true)] should not be allowed. - * 437 Errors in tests under Linux due to hard-coded paths. - * 441 NUnit-Console should support --testlist option - * 442 Add --stoponerror option back to nunit-console. - * 456 Fix memory leak in RuntimeFramework. - * 459 Remove the Mixed Platforms build configuration. - * 468 Change default domain usage to multiple. - * 469 Truncate string arguments in test names in order to limit the length. - -NUnit 3.0.0 Alpha 4 - December 30, 2014 - -Framework - - * ApartmentAttribute has been added, replacing STAAttribute and MTAAttribute. - * Unnecessary overloads of Assert.That and Assume.That have been removed. - * Multiple SetUpFixtures may be specified in a single namespace. - * Improvements to the Pairwise strategy test case generation algorithm. - * The new NUnitLite runner --testlist option, allows a list of tests to be kept in a file. - -Engine - - * A driver is now included, which allows running NUnit 2.x tests under NUnit 3.0. - * The engine can now load and run tests specified in a number of project formats: - * NUnit (.nunit) - * Visual Studio C# projects (.csproj) - * Visual Studio F# projects (.vjsproj) - * Visual Studio Visual Basic projects (.vbproj) - * Visual Studio solutions (.sln) - * Legacy C++ and Visual JScript projects (.csproj and .vjsproj) are also supported - * Support for the current C++ format (.csxproj) is not yet available - * Creation of output files like TestResult.xml in various formats is now a - service of the engine, available to any runner. - -Console - - * The command-line may now include any number of assemblies and/or supported projects. - -Issues Resolved - - * 37 Multiple SetUpFixtures should be permitted on same namespace - * 210 TestContext.WriteLine in an AppDomain causes an error - * 227 Add support for VS projects and solutions - * 231 Update C# samples to use NUnit 3.0 - * 233 Update F# samples to use NUnit 3.0 - * 234 Update C++ samples to use NUnit 3.0 - * 265 Reorganize console reports for nunit-console and nunitlite - * 299 No full path to assembly in XML file under Compact Framework - * 301 Command-line length - * 363 Make Xml result output an engine service - * 377 CombiningStrategyAttributes don't work correctly on generic methods - * 388 Improvements to NUnitLite runner output - * 390 Specify exactly what happens when a test times out - * 396 ApartmentAttribute - * 397 CF nunitlite runner assembly has the wrong name - * 407 Assert.Pass() with ]]> in message crashes console runner - * 414 Simplify Assert overloads - * 416 NUnit 2.x Framework Driver - * 417 Complete work on NUnit projects - * 420 Create Settings file in proper location - -NUnit 3.0.0 Alpha 3 - November 29, 2014 - -Breaking Changes - - * NUnitLite tests must reference both the nunit.framework and nunitlite assemblies. - -Framework - - * The NUnit and NUnitLite frameworks have now been merged. There is no longer any distinction - between them in terms of features, although some features are not available on all platforms. - * The release includes two new framework builds: compact framework 3.5 and portable. The portable - library is compatible with .NET 4.5, Silverlight 5.0, Windows 8, Windows Phone 8.1, - Windows Phone Silverlight 8, Mono for Android and MonoTouch. - * A number of previously unsupported features are available for the Compact Framework: - - Generic methods as tests - - RegexConstraint - - TimeoutAttribute - - FileAssert, DirectoryAssert and file-related constraints - -Engine - - * The logic of runtime selection has now changed so that each assembly runs by default - in a separate process using the runtime for which it was built. - * On 64-bit systems, each test process is automatically created as 32-bit or 64-bit, - depending on the platform specified for the test assembly. - -Console - - * The console runner now runs tests in a separate process per assembly by default. They may - still be run in process or in a single separate process by use of command-line options. - * The console runner now starts in the highest version of the .NET runtime available, making - it simpler to debug tests by specifying that they should run in-process on the command-line. - * The -x86 command-line option is provided to force execution in a 32-bit process on a 64-bit system. - * A writeability check is performed for each output result file before trying to run the tests. - * The -teamcity option is now supported. - -Issues Resolved - - * 12 Compact framework should support generic methods - * 145 NUnit-console fails if test result message contains invalid xml characters - * 155 Create utility classes for platform-specific code - * 223 Common code for NUnitLite console runner and NUnit-Console - * 225 Compact Framework Support - * 238 Improvements to running 32 bit tests on a 64 bit system - * 261 Add portable nunitlite build - * 284 NUnitLite Unification - * 293 CF does not have a CurrentDirectory - * 306 Assure NUnit can write resultfile - * 308 Early disposal of runners - * 309 NUnit-Console should support incremental output under TeamCity - * 325 Add RegexConstraint to compact framework build - * 326 Add TimeoutAttribute to compact framework build - * 327 Allow generic test methods in the compact framework - * 328 Use .NET Stopwatch class for compact framework builds - * 331 Alpha 2 CF does not build - * 333 Add parallel execution to desktop builds of NUnitLite - * 334 Include File-related constraints and syntax in NUnitLite builds - * 335 Re-introduce 'Classic' NUnit syntax in NUnitLite - * 336 Document use of separate obj directories per build in our projects - * 337 Update Standard Defines page for .NET 3.0 - * 341 Move the NUnitLite runners to separate assemblies - * 367 Refactor XML Escaping Tests - * 372 CF Build TestAssemblyRunnerTests - * 373 Minor CF Test Fixes - * 378 Correct documentation for PairwiseAttribute - * 386 Console Output Improvements - -NUnit 3.0.0 Alpha 2 - November 2, 2014 - -Breaking Changes - - * The console runner no longer displays test results in the debugger. - * The NUnitLite compact framework 2.0 build has been removed. - * All addin support has been removed from the framework. Documentation of NUnit 3.0 extensibility features will be published in time for the beta release. In the interim, please ask for support on the nunit-discuss list. - -General - - * A separate solution has been created for Linux - * We now have continuous integration builds under both Travis and Appveyor - * The compact framework 3.5 build is now working and will be supported in future releases. - -New Features - - * The console runner now automatically detects 32- versus 64-bit test assemblies. - * The NUnitLite report output has been standardized to match that of nunit-console. - * The NUnitLite command-line has been standardized to match that of nunit-console where they share the same options. - * Both nunit-console and NUnitLite now display output in color. - * ActionAttributes now allow specification of multiple targets on the attribute as designed. This didn't work in the first alpha. - * OneTimeSetUp and OneTimeTearDown failures are now shown on the test report. Individual test failures after OneTimeSetUp failure are no longer shown. - * The console runner refuses to run tests build with older versions of NUnit. A plugin will be available to run older tests in the future. - -Issues Resolved - - * 222 Color console for NUnitLite - * 229 Timing failures in tests - * 241 Remove reference to Microslft BCL packages - * 243 Create solution for Linux - * 245 Multiple targets on action attributes not implemented - * 246 C++ tests do not compile in VS2013 - * 247 Eliminate trace display when running tests in debug - * 255 Add new result states for more precision in where failures occur - * 256 ContainsConstraint break when used with AndConstraint - * 264 Stacktrace displays too many entries - * 269 Add manifest to nunit-console and nunit-agent - * 270 OneTimeSetUp failure results in too much output - * 271 Invalid tests should be treated as errors - * 274 Command line options should be case insensitive - * 276 NUnit-console should not reference nunit.framework - * 278 New result states (ChildFailure and SetupFailure) break NUnit2XmlOutputWriter - * 282 Get tests for NUnit2XmlOutputWriter working - * 288 Set up Appveyor CI build - * 290 Stack trace still displays too many items - * 315 NUnit 3.0 alpha: Cannot run in console on my assembly - * 319 CI builds are not treating test failures as failures of the build - * 322 Remove Stopwatch tests where they test the real .NET Stopwatch - -NUnit 3.0.0 Alpha 1 - September 22, 2014 - -Breaking Changes - - * Legacy suites are no longer supported - * Assert.NullOrEmpty is no longer supported (Use Is.Null.Or.Empty) - -General - - * MsBuild is now used for the build rather than NAnt - * The framework test harness has been removed now that nunit-console is at a point where it can run the tests. - -New Features - - * Action Attributes have been added with the same features as in NUnit 2.6.3. - * TestContext now has a method that allows writing to the XML output. - * TestContext.CurrentContext.Result now provides the error message and stack trace during teardown. - * Does prefix operator supplies several added constraints. - -Issues Resolved - - * 6 Log4net not working with NUnit - * 13 Standardize commandline options for nunitlite runner - * 17 No allowance is currently made for nullable arguents in TestCase parameter conversions - * 33 TestCaseSource cannot refer to a parameterized test fixture - * 54 Store message and stack trace in TestContext for use in TearDown - * 111 Implement Changes to File, Directory and Path Assertions - * 112 Implement Action Attributes - * 156 Accessing multiple AppDomains within unit tests result in SerializationException - * 163 Add --trace option to NUnitLite - * 167 Create interim documentation for the alpha release - * 169 Design and implement distribution of NUnit packages - * 171 Assert.That should work with any lambda returning bool - * 175 Test Harness should return an error if any tests fail - * 180 Errors in Linux CI build - * 181 Replace NAnt with MsBuild / XBuild - * 183 Standardize commandline options for test harness - * 188 No output from NUnitLite when selected test is not found - * 189 Add string operators to Does prefix - * 193 TestWorkerTests.BusyExecutedIdleEventsCalledInSequence fails occasionally - * 197 Deprecate or remove Assert.NullOrEmpty - * 202 Eliminate legacy suites - * 203 Combine framework, engine and console runner in a single solution and repository - * 209 Make Ignore attribute's reason mandatory - * 215 Running 32-bit tests on a 64-bit OS - * 219 Teardown failures are not reported - -Console Issues Resolved (Old nunit-console project, now combined with nunit) - - * 2 Failure in TestFixtureSetUp is not reported correctly - * 5 CI Server for nunit-console - * 6 System.NullReferenceException on start nunit-console-x86 - * 21 NUnitFrameworkDriverTests fail if not run from same directory - * 24 'Debug' value for /trace option is deprecated in 2.6.3 - * 38 Confusing Excluded categories output - -NUnit 2.9.7 - August 8, 2014 - -Breaking Changes - - * NUnit no longer supports void async test methods. You should use a Task return Type instead. - * The ExpectedExceptionAttribute is no longer supported. Use Assert.Throws() or Assert.That(..., Throws) instead for a more precise specification of where the exception is expected to be thrown. - -New Features - - * Parallel test execution is supported down to the Fixture level. Use ParallelizableAttribute to indicate types that may be run in parallel. - * Async tests are supported for .NET 4.0 if the user has installed support for them. - * A new FileExistsConstraint has been added along with FileAssert.Exists and FileAssert.DoesNotExist - * ExpectedResult is now supported on simple (non-TestCase) tests. - * The Ignore attribute now takes a named parameter Until, which allows specifying a date after which the test is no longer ignored. - * The following new values are now recognized by PlatformAttribute: Win7, Win8, Win8.1, Win2012Server, Win2012ServerR2, NT6.1, NT6.2, 32-bit, 64-bit - * TimeoutAttribute is now supported under Silverlight - * ValuesAttribute may be used without any values on an enum or boolean argument. All possible values are used. - * You may now specify a tolerance using Within when testing equality of DateTimeOffset values. - * The XML output now includes a start and end time for each test. - -Issues Resolved - - * 8 [SetUpFixture] is not working as expected - * 14 CI Server for NUnit Framework - * 21 Is.InRange Constraint Ambiguity - * 27 Values attribute support for enum types - * 29 Specifying a tolerance with "Within" doesn't work for DateTimeOffset data types - * 31 Report start and end time of test execution - * 36 Make RequiresThread, RequiresSTA, RequiresMTA inheritable - * 45 Need of Enddate together with Ignore - * 55 Incorrect XML comments for CollectionAssert.IsSubsetOf - * 62 Matches(Constraint) does not work as expected - * 63 Async support should handle Task return type without state machine - * 64 AsyncStateMachineAttribute should only be checked by name - * 65 Update NUnit Wiki to show the new location of samples - * 66 Parallel Test Execution within test assemblies - * 67 Allow Expected Result on simple tests - * 70 EquivalentTo isn't compatible with IgnoreCase for dictioneries - * 75 Async tests should be supported for projects that target .NET 4.0 - * 82 nunit-framework tests are timing out on Linux - * 83 Path-related tests fail on Linux - * 85 Culture-dependent NUnit tests fail on non-English machine - * 88 TestCaseSourceAttribute documentation - * 90 EquivalentTo isn't compatible with IgnoreCase for char - * 100 Changes to Tolerance definitions - * 110 Add new platforms to PlatformAttribute - * 113 Remove ExpectedException - * 118 Workarounds for missing InternalPreserveStackTrace in mono - * 121 Test harness does not honor the --worker option when set to zero - * 129 Standardize Timeout in the Silverlight build - * 130 Add FileAssert.Exists and FileAssert.DoesNotExist - * 132 Drop support for void async methods - * 153 Surprising behavior of DelayedConstraint pollingInterval - * 161 Update API to support stopping an ongoing test run - -NOTE: Bug Fixes below this point refer to the number of the bug in Launchpad. - -NUnit 2.9.6 - October 4, 2013 - -Main Features - - * Separate projects for nunit-console and nunit.engine - * New builds for .NET 4.5 and Silverlight - * TestContext is now supported - * External API is now stable; internal interfaces are separate from API - * Tests may be run in parallel on separate threads - * Solutions and projects now use VS2012 (except for Compact framework) - -Bug Fixes - - * 463470 We should encapsulate references to pre-2.0 collections - * 498690 Assert.That() doesn't like properties with scoped setters - * 501784 Theory tests do not work correctly when using null parameters - * 531873 Feature: Extraction of unit tests from NUnit test assembly and calling appropriate one - * 611325 Allow Teardown to detect if last test failed - * 611938 Generic Test Instances disappear - * 655882 Make CategoryAttribute inherited - * 664081 Add Server2008 R2 and Windows 7 to PlatformAttribute - * 671432 Upgrade NAnt to Latest Release - * 676560 Assert.AreEqual does not support IEquatable - * 691129 Add Category parameter to TestFixture - * 697069 Feature request: dynamic location for TestResult.xml - * 708173 NUnit's logic for comparing arrays - use Comparer if it is provided - * 709062 "System.ArgumentException : Cannot compare" when the element is a list - * 712156 Tests cannot use AppDomain.SetPrincipalPolicy - * 719184 Platformdependency in src/ClientUtilities/util/Services/DomainManager.cs:40 - * 719187 Using Path.GetTempPath() causes conflicts in shared temporary folders - * 735851 Add detection of 3.0, 3.5 and 4.0 frameworks to PlatformAttribute - * 736062 Deadlock when EventListener performs a Trace call + EventPump synchronisation - * 756843 Failing assertion does not show non-linear tolerance mode - * 766749 net-2.0\nunit-console-x86.exe.config should have a element and also enable loadFromRemoteSources - * 770471 Assert.IsEmpty does not support IEnumerable - * 785460 Add Category parameter to TestCaseSourceAttribute - * 787106 EqualConstraint provides inadequate failure information for IEnumerables - * 792466 TestContext MethodName - * 794115 HashSet incorrectly reported - * 800089 Assert.Throws() hides details of inner AssertionException - * 848713 Feature request: Add switch for console to break on any test case error - * 878376 Add 'Exactly(n)' to the NUnit constraint syntax - * 882137 When no tests are run, higher level suites display as Inconclusive - * 882517 NUnit 2.5.10 doesn't recognize TestFixture if there are only TestCaseSource inside - * 885173 Tests are still executed after cancellation by user - * 885277 Exception when project calls for a runtime using only 2 digits - * 885604 Feature request: Explicit named parameter to TestCaseAttribute - * 890129 DelayedConstraint doesn't appear to poll properties of objects - * 892844 Not using Mono 4.0 profile under Windows - * 893919 DelayedConstraint fails polling properties on references which are initially null - * 896973 Console output lines are run together under Linux - * 897289 Is.Empty constraint has unclear failure message - * 898192 Feature Request: Is.Negative, Is.Positive - * 898256 IEnumerable for Datapoints doesn't work - * 899178 Wrong failure message for parameterized tests that expect exceptions - * 904841 After exiting for timeout the teardown method is not executed - * 908829 TestCase attribute does not play well with variadic test functions - * 910218 NUnit should add a trailing separator to the ApplicationBase - * 920472 CollectionAssert.IsNotEmpty must dispose Enumerator - * 922455 Add Support for Windows 8 and Windows 2012 Server to PlatformAttribute - * 928246 Use assembly.Location instead of assembly.CodeBase - * 958766 For development work under TeamCity, we need to support nunit2 formatted output under direct-runner - * 1000181 Parameterized TestFixture with System.Type as constructor arguments fails - * 1000213 Inconclusive message Not in report output - * 1023084 Add Enum support to RandomAttribute - * 1028188 Add Support for Silverlight - * 1029785 Test loaded from remote folder failed to run with exception System.IODirectory - * 1037144 Add MonoTouch support to PlatformAttribute - * 1041365 Add MaxOsX and Xbox support to platform attribute - * 1057981 C#5 async tests are not supported - * 1060631 Add .NET 4.5 build - * 1064014 Simple async tests should not return Task - * 1071164 Support async methods in usage scenarios of Throws constraints - * 1071343 Runner.Load fails on CF if the test assembly contains a generic method - * 1071861 Error in Path Constraints - * 1072379 Report test execution time at a higher resolution - * 1074568 Assert/Assume should support an async method for the ActualValueDelegate - * 1082330 Better Exception if SetCulture attribute is applied multiple times - * 1111834 Expose Random Object as part of the test context - * 1111838 Include Random Seed in Test Report - * 1172979 Add Category Support to nunitlite Runner - * 1203361 Randomizer uniqueness tests sometimes fail - * 1221712 When non-existing test method is specified in -test, result is still "Tests run: 1, Passed: 1" - * 1223294 System.NullReferenceException thrown when ExpectedExceptionAttribute is used in a static class - * 1225542 Standardize commandline options for test harness - -Bug Fixes in 2.9.6 But Not Listed Here in the Release - - * 541699 Silverlight Support - * 1222148 /framework switch does not recognize net-4.5 - * 1228979 Theories with all test cases inconclusive are not reported as failures - - -NUnit 2.9.5 - July 30, 2010 - -Bug Fixes - - * 483836 Allow non-public test fixtures consistently - * 487878 Tests in generic class without proper TestFixture attribute should be invalid - * 498656 TestCase should show array values in GUI - * 513989 Is.Empty should work for directories - * 519912 Thread.CurrentPrincipal Set In TestFixtureSetUp Not Maintained Between Tests - * 532488 constraints from ConstraintExpression/ConstraintBuilder are not reusable - * 590717 categorie contains dash or trail spaces is not selectable - * 590970 static TestFixtureSetUp/TestFixtureTearDown methods in base classes are not run - * 595683 NUnit console runner fails to load assemblies - * 600627 Assertion message formatted poorly by PropertyConstraint - * 601108 Duplicate test using abstract test fixtures - * 601645 Parametered test should try to convert data type from source to parameter - * 605432 ToString not working properly for some properties - * 606548 Deprecate Directory Assert in 2.5 and remove it in 3.0 - * 608875 NUnit Equality Comparer incorrectly defines equality for Dictionary objects - -NUnit 2.9.4 - May 4, 2010 - -Bug Fixes - - * 419411 Fixture With No Tests Shows as Non-Runnable - * 459219 Changes to thread princpal cause failures under .NET 4.0 - * 459224 Culture test failure under .NET 4.0 - * 462019 Line endings needs to be better controlled in source - * 462418 Assume.That() fails if I specify a message - * 483845 TestCase expected return value cannot be null - * 488002 Should not report tests in abstract class as invalid - * 490679 Category in TestCaseData clashes with Category on ParameterizedMethodSuite - * 501352 VS2010 projects have not been updated for new directory structure - * 504018 Automatic Values For Theory Test Parameters Not Provided For bool And enum - * 505899 'Description' parameter in both TestAttribute and TestCaseAttribute is not allowed - * 523335 TestFixtureTearDown in static class not executed - * 556971 Datapoint(s)Attribute should work on IEnumerable as well as on Arrays - * 561436 SetCulture broken with 2.5.4 - * 563532 DatapointsAttribute should be allowed on properties and methods - -NUnit 2.9.3 - October 26, 2009 - -Main Features - - * Created new API for controlling framework - * New builds for .Net 3.5 and 4.0, compact framework 3.5 - * Support for old style tests has been removed - * New adhoc runner for testing the framework - -Bug Fixes - - * 432805 Some Framework Tests don't run on Linux - * 440109 Full Framework does not support "Contains" - -NUnit 2.9.2 - September 19, 2009 - -Main Features - - * NUnitLite code is now merged with NUnit - * Added NUnitLite runner to the framework code - * Added Compact framework builds - -Bug Fixes - - * 430100 Assert.Catch should return T - * 432566 NUnitLite shows empty string as argument - * 432573 Mono test should be at runtime - -NUnit 2.9.1 - August 27, 2009 - -General - - * Created a separate project for the framework and framework tests - * Changed license to MIT / X11 - * Created Windows installer for the framework - -Bug Fixes - - * 400502 NUnitEqualityComparer.StreamsE­qual fails for same stream - * 400508 TestCaseSource attirbute is not working when Type is given - * 400510 TestCaseData variable length ctor drops values - * 417557 Add SetUICultureAttribute from NUnit 2.5.2 - * 417559 Add Ignore to TestFixture, TestCase and TestCaseData - * 417560 Merge Assert.Throws and Assert.Catch changes from NUnit 2.5.2 - * 417564 TimeoutAttribute on Assembly diff --git a/packages/NUnit.3.0.1/LICENSE.txt b/packages/NUnit.3.0.1/LICENSE.txt deleted file mode 100644 index 38fa0c3b..00000000 --- a/packages/NUnit.3.0.1/LICENSE.txt +++ /dev/null @@ -1,20 +0,0 @@ -Copyright (c) 2015 Charlie Poole - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in -all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -THE SOFTWARE. - diff --git a/packages/NUnit.3.0.1/NOTICES.txt b/packages/NUnit.3.0.1/NOTICES.txt deleted file mode 100644 index 2d57979f..00000000 --- a/packages/NUnit.3.0.1/NOTICES.txt +++ /dev/null @@ -1,5 +0,0 @@ -NUnit 3.0 is based on earlier versions of NUnit, with Portions - -Copyright (c) 2002-2014 Charlie Poole or -Copyright (c) 2002-2004 James W. Newkirk, Michael C. Two, Alexei A. Vorontsov or -Copyright (c) 2000-2002 Philip A. Craig diff --git a/packages/NUnit.3.0.1/NUnit.3.0.1.nupkg b/packages/NUnit.3.0.1/NUnit.3.0.1.nupkg deleted file mode 100644 index 6de5d1ec..00000000 Binary files a/packages/NUnit.3.0.1/NUnit.3.0.1.nupkg and /dev/null differ diff --git a/packages/NUnit.3.0.1/lib/dotnet/nunit.framework.dll b/packages/NUnit.3.0.1/lib/dotnet/nunit.framework.dll deleted file mode 100644 index e110b173..00000000 Binary files a/packages/NUnit.3.0.1/lib/dotnet/nunit.framework.dll and /dev/null differ diff --git a/packages/NUnit.3.0.1/lib/dotnet/nunit.framework.xml b/packages/NUnit.3.0.1/lib/dotnet/nunit.framework.xml deleted file mode 100644 index eac9226f..00000000 --- a/packages/NUnit.3.0.1/lib/dotnet/nunit.framework.xml +++ /dev/null @@ -1,15264 +0,0 @@ - - - - nunit.framework - - - - - AssemblyHelper provides static methods for working - with assemblies. - - - - - Gets the AssemblyName of an assembly. - - The assembly - An AssemblyName - - - - Loads an assembly given a string, which is the AssemblyName - - - - - - - Interface for logging within the engine - - - - - Logs the specified message at the error level. - - The message. - - - - Logs the specified message at the error level. - - The message. - The arguments. - - - - Logs the specified message at the warning level. - - The message. - - - - Logs the specified message at the warning level. - - The message. - The arguments. - - - - Logs the specified message at the info level. - - The message. - - - - Logs the specified message at the info level. - - The message. - The arguments. - - - - Logs the specified message at the debug level. - - The message. - - - - Logs the specified message at the debug level. - - The message. - The arguments. - - - - InternalTrace provides facilities for tracing the execution - of the NUnit framework. Tests and classes under test may make use - of Console writes, System.Diagnostics.Trace or various loggers and - NUnit itself traps and processes each of them. For that reason, a - separate internal trace is needed. - - Note: - InternalTrace uses a global lock to allow multiple threads to write - trace messages. This can easily make it a bottleneck so it must be - used sparingly. Keep the trace Level as low as possible and only - insert InternalTrace writes where they are needed. - TODO: add some buffering and a separate writer thread as an option. - TODO: figure out a way to turn on trace in specific classes only. - - - - - Gets a flag indicating whether the InternalTrace is initialized - - - - - Initialize the internal trace using a provided TextWriter and level - - A TextWriter - The InternalTraceLevel - - - - Get a named Logger - - - - - - Get a logger named for a particular Type. - - - - - InternalTraceLevel is an enumeration controlling the - level of detailed presented in the internal log. - - - - - Use the default settings as specified by the user. - - - - - Do not display any trace messages - - - - - Display Error messages only - - - - - Display Warning level and higher messages - - - - - Display informational and higher messages - - - - - Display debug messages and higher - i.e. all messages - - - - - Display debug messages and higher - i.e. all messages - - - - - A trace listener that writes to a separate file per domain - and process using it. - - - - - Construct an InternalTraceWriter that writes to a - TextWriter provided by the caller. - - - - - - Returns the character encoding in which the output is written. - - The character encoding in which the output is written. - - - - Writes a character to the text string or stream. - - The character to write to the text stream. - - - - Writes a string to the text string or stream. - - The string to write. - - - - Writes a string followed by a line terminator to the text string or stream. - - The string to write. If is null, only the line terminator is written. - - - - Releases the unmanaged resources used by the and optionally releases the managed resources. - - true to release both managed and unmanaged resources; false to release only unmanaged resources. - - - - Clears all buffers for the current writer and causes any buffered data to be written to the underlying device. - - - - - Provides internal logging to the NUnit framework - - - - - Initializes a new instance of the class. - - The name. - The log level. - The writer where logs are sent. - - - - Logs the message at error level. - - The message. - - - - Logs the message at error level. - - The message. - The message arguments. - - - - Logs the message at warm level. - - The message. - - - - Logs the message at warning level. - - The message. - The message arguments. - - - - Logs the message at info level. - - The message. - - - - Logs the message at info level. - - The message. - The message arguments. - - - - Logs the message at debug level. - - The message. - - - - Logs the message at debug level. - - The message. - The message arguments. - - - - Waits for pending asynchronous operations to complete, if appropriate, - and returns a proper result of the invocation by unwrapping task results - - The raw result of the method invocation - The unwrapped result, if necessary - - - - CombinatorialStrategy creates test cases by using all possible - combinations of the parameter data. - - - - - Gets the test cases generated by the CombiningStrategy. - - The test cases. - - - - Provides data from fields marked with the DatapointAttribute or the - DatapointsAttribute. - - - - - Determine whether any data is available for a parameter. - - A ParameterInfo representing one - argument to a parameterized test - - True if any data is available, otherwise false. - - - - - Return an IEnumerable providing data for use with the - supplied parameter. - - A ParameterInfo representing one - argument to a parameterized test - - An IEnumerable providing the required data - - - - - Built-in SuiteBuilder for all types of test classes. - - - - - Checks to see if the provided Type is a fixture. - To be considered a fixture, it must be a non-abstract - class with one or more attributes implementing the - IFixtureBuilder interface or one or more methods - marked as tests. - - The fixture type to check - True if the fixture can be built, false if not - - - - Build a TestSuite from TypeInfo provided. - - The fixture type to build - A TestSuite built from that type - - - - We look for attributes implementing IFixtureBuilder at one level - of inheritance at a time. Attributes on base classes are not used - unless there are no fixture builder attributes at all on the derived - class. This is by design. - - The type being examined for attributes - A list of the attributes found. - - - - Class to build ether a parameterized or a normal NUnitTestMethod. - There are four cases that the builder must deal with: - 1. The method needs no params and none are provided - 2. The method needs params and they are provided - 3. The method needs no params but they are provided in error - 4. The method needs params but they are not provided - This could have been done using two different builders, but it - turned out to be simpler to have just one. The BuildFrom method - takes a different branch depending on whether any parameters are - provided, but all four cases are dealt with in lower-level methods - - - - - Determines if the method can be used to build an NUnit test - test method of some kind. The method must normally be marked - with an identifying attribute for this to be true. - - Note that this method does not check that the signature - of the method for validity. If we did that here, any - test methods with invalid signatures would be passed - over in silence in the test run. Since we want such - methods to be reported, the check for validity is made - in BuildFrom rather than here. - - An IMethodInfo for the method being used as a test method - True if the builder can create a test case from this method - - - - Build a Test from the provided MethodInfo. Depending on - whether the method takes arguments and on the availability - of test case data, this method may return a single test - or a group of tests contained in a ParameterizedMethodSuite. - - The method for which a test is to be built - A Test representing one or more method invocations - - - - Determines if the method can be used to build an NUnit test - test method of some kind. The method must normally be marked - with an identifying attribute for this to be true. - - Note that this method does not check that the signature - of the method for validity. If we did that here, any - test methods with invalid signatures would be passed - over in silence in the test run. Since we want such - methods to be reported, the check for validity is made - in BuildFrom rather than here. - - An IMethodInfo for the method being used as a test method - The test suite being built, to which the new test would be added - True if the builder can create a test case from this method - - - - Build a Test from the provided MethodInfo. Depending on - whether the method takes arguments and on the availability - of test case data, this method may return a single test - or a group of tests contained in a ParameterizedMethodSuite. - - The method for which a test is to be built - The test fixture being populated, or null - A Test representing one or more method invocations - - - - Builds a ParameterizedMethodSuite containing individual test cases. - - The method for which a test is to be built. - The list of test cases to include. - A ParameterizedMethodSuite populated with test cases - - - - Build a simple, non-parameterized TestMethod for this method. - - The MethodInfo for which a test is to be built - The test suite for which the method is being built - A TestMethod. - - - - Class that can build a tree of automatic namespace - suites from a group of fixtures. - - - - - NamespaceDictionary of all test suites we have created to represent - namespaces. Used to locate namespace parent suites for fixtures. - - - - - The root of the test suite being created by this builder. - - - - - Initializes a new instance of the class. - - The root suite. - - - - Gets the root entry in the tree created by the NamespaceTreeBuilder. - - The root suite. - - - - Adds the specified fixtures to the tree. - - The fixtures to be added. - - - - Adds the specified fixture to the tree. - - The fixture to be added. - - - - NUnitTestCaseBuilder is a utility class used by attributes - that build test cases. - - - - - Constructs an - - - - - Builds a single NUnitTestMethod, either as a child of the fixture - or as one of a set of test cases under a ParameterizedTestMethodSuite. - - The MethodInfo from which to construct the TestMethod - The suite or fixture to which the new test will be added - The ParameterSet to be used, or null - - - - - Helper method that checks the signature of a TestMethod and - any supplied parameters to determine if the test is valid. - - Currently, NUnitTestMethods are required to be public, - non-abstract methods, either static or instance, - returning void. They may take arguments but the _values must - be provided or the TestMethod is not considered runnable. - - Methods not meeting these criteria will be marked as - non-runnable and the method will return false in that case. - - The TestMethod to be checked. If it - is found to be non-runnable, it will be modified. - Parameters to be used for this test, or null - True if the method signature is valid, false if not - - The return value is no longer used internally, but is retained - for testing purposes. - - - - - NUnitTestFixtureBuilder is able to build a fixture given - a class marked with a TestFixtureAttribute or an unmarked - class containing test methods. In the first case, it is - called by the attribute and in the second directly by - NUnitSuiteBuilder. - - - - - Build a TestFixture from type provided. A non-null TestSuite - must always be returned, since the method is generally called - because the user has marked the target class as a fixture. - If something prevents the fixture from being used, it should - be returned nonetheless, labelled as non-runnable. - - An ITypeInfo for the fixture to be used. - A TestSuite object or one derived from TestSuite. - - - - Overload of BuildFrom called by tests that have arguments. - Builds a fixture using the provided type and information - in the ITestFixtureData object. - - The TypeInfo for which to construct a fixture. - An object implementing ITestFixtureData or null. - - - - - Method to add test cases to the newly constructed fixture. - - The fixture to which cases should be added - - - - Method to create a test case from a MethodInfo and add - it to the fixture being built. It first checks to see if - any global TestCaseBuilder addin wants to build the - test case. If not, it uses the internal builder - collection maintained by this fixture builder. - - The default implementation has no test case builders. - Derived classes should add builders to the collection - in their constructor. - - The method for which a test is to be created - The test suite being built. - A newly constructed Test - - - - PairwiseStrategy creates test cases by combining the parameter - data so that all possible pairs of data items are used. - - - - The number of test cases that cover all possible pairs of test function - parameters values is significantly less than the number of test cases - that cover all possible combination of test function parameters values. - And because different studies show that most of software failures are - caused by combination of no more than two parameters, pairwise testing - can be an effective ways to test the system when it's impossible to test - all combinations of parameters. - - - The PairwiseStrategy code is based on "jenny" tool by Bob Jenkins: - http://burtleburtle.net/bob/math/jenny.html - - - - - - FleaRand is a pseudo-random number generator developed by Bob Jenkins: - http://burtleburtle.net/bob/rand/talksmall.html#flea - - - - - Initializes a new instance of the FleaRand class. - - The seed. - - - - FeatureInfo represents coverage of a single value of test function - parameter, represented as a pair of indices, Dimension and Feature. In - terms of unit testing, Dimension is the index of the test parameter and - Feature is the index of the supplied value in that parameter's list of - sources. - - - - - Initializes a new instance of FeatureInfo class. - - Index of a dimension. - Index of a feature. - - - - A FeatureTuple represents a combination of features, one per test - parameter, which should be covered by a test case. In the - PairwiseStrategy, we are only trying to cover pairs of features, so the - tuples actually may contain only single feature or pair of features, but - the algorithm itself works with triplets, quadruples and so on. - - - - - Initializes a new instance of FeatureTuple class for a single feature. - - Single feature. - - - - Initializes a new instance of FeatureTuple class for a pair of features. - - First feature. - Second feature. - - - - TestCase represents a single test case covering a list of features. - - - - - Initializes a new instance of TestCaseInfo class. - - A number of features in the test case. - - - - PairwiseTestCaseGenerator class implements an algorithm which generates - a set of test cases which covers all pairs of possible values of test - function. - - - - The algorithm starts with creating a set of all feature tuples which we - will try to cover (see method). This set - includes every single feature and all possible pairs of features. We - store feature tuples in the 3-D collection (where axes are "dimension", - "feature", and "all combinations which includes this feature"), and for - every two feature (e.g. "A" and "B") we generate both ("A", "B") and - ("B", "A") pairs. This data structure extremely reduces the amount of - time needed to calculate coverage for a single test case (this - calculation is the most time-consuming part of the algorithm). - - - Then the algorithm picks one tuple from the uncovered tuple, creates a - test case that covers this tuple, and then removes this tuple and all - other tuples covered by this test case from the collection of uncovered - tuples. - - - Picking a tuple to cover - - - There are no any special rules defined for picking tuples to cover. We - just pick them one by one, in the order they were generated. - - - Test generation - - - Test generation starts from creating a completely random test case which - covers, nevertheless, previously selected tuple. Then the algorithm - tries to maximize number of tuples which this test covers. - - - Test generation and maximization process repeats seven times for every - selected tuple and then the algorithm picks the best test case ("seven" - is a magic number which provides good results in acceptable time). - - Maximizing test coverage - - To maximize tests coverage, the algorithm walks thru the list of mutable - dimensions (mutable dimension is a dimension that are not included in - the previously selected tuple). Then for every dimension, the algorithm - walks thru the list of features and checks if this feature provides - better coverage than randomly selected feature, and if yes keeps this - feature. - - - This process repeats while it shows progress. If the last iteration - doesn't improve coverage, the process ends. - - - In addition, for better results, before start every iteration, the - algorithm "scrambles" dimensions - so for every iteration dimension - probes in a different order. - - - - - - Creates a set of test cases for specified dimensions. - - - An array which contains information about dimensions. Each element of - this array represents a number of features in the specific dimension. - - - A set of test cases. - - - - - Gets the test cases generated by this strategy instance. - - A set of test cases. - - - - The ParameterDataProvider class implements IParameterDataProvider - and hosts one or more individual providers. - - - - - Construct with a collection of individual providers - - - - - Determine whether any data is available for a parameter. - - An IParameterInfo representing one - argument to a parameterized test - True if any data is available, otherwise false. - - - - Return an IEnumerable providing data for use with the - supplied parameter. - - An IParameterInfo representing one - argument to a parameterized test - An IEnumerable providing the required data - - - - ParameterDataSourceProvider supplies individual argument _values for - single parameters using attributes implementing IParameterDataSource. - - - - - Determine whether any data is available for a parameter. - - A ParameterInfo representing one - argument to a parameterized test - - True if any data is available, otherwise false. - - - - - Return an IEnumerable providing data for use with the - supplied parameter. - - An IParameterInfo representing one - argument to a parameterized test - - An IEnumerable providing the required data - - - - - SequentialStrategy creates test cases by using all of the - parameter data sources in parallel, substituting null - when any of them run out of data. - - - - - Gets the test cases generated by the CombiningStrategy. - - The test cases. - - - - ContextSettingsCommand applies specified changes to the - TestExecutionContext prior to running a test. No special - action is needed after the test runs, since the prior - context will be restored automatically. - - - - - The CommandStage enumeration represents the defined stages - of execution for a series of TestCommands. The int _values - of the enum are used to apply decorators in the proper - order. Lower _values are applied first and are therefore - "closer" to the actual test execution. - - - No CommandStage is defined for actual invocation of the test or - for creation of the context. Execution may be imagined as - proceeding from the bottom of the list upwards, with cleanup - after the test running in the opposite order. - - - - - Use an application-defined default value. - - - - - Make adjustments needed before and after running - the raw test - that is, after any SetUp has run - and before TearDown. - - - - - Run SetUp and TearDown for the test. This stage is used - internally by NUnit and should not normally appear - in user-defined decorators. - - - - - Make adjustments needed before and after running - the entire test - including SetUp and TearDown. - - - - - TODO: Documentation needed for class - - - - TODO: Documentation needed for field - - - - TODO: Documentation needed for constructor - - - - - - TODO: Documentation needed for class - - - - - Initializes a new instance of the class. - - The inner command. - The max time allowed in milliseconds - - - - Runs the test, saving a TestResult in the supplied TestExecutionContext - - The context in which the test should run. - A TestResult - - - - OneTimeSetUpCommand runs any one-time setup methods for a suite, - constructing the user test object if necessary. - - - - - Constructs a OneTimeSetUpCommand for a suite - - The suite to which the command applies - A SetUpTearDownList for use by the command - A List of TestActionItems to be run after Setup - - - - Overridden to run the one-time setup for a suite. - - The TestExecutionContext to be used. - A TestResult - - - - OneTimeTearDownCommand performs any teardown actions - specified for a suite and calls Dispose on the user - test object, if any. - - - - - Construct a OneTimeTearDownCommand - - The test suite to which the command applies - A SetUpTearDownList for use by the command - A List of TestActionItems to be run before teardown. - - - - Overridden to run the teardown methods specified on the test. - - The TestExecutionContext to be used. - A TestResult - - - - SetUpTearDownCommand runs any SetUp methods for a suite, - runs the test and then runs any TearDown methods. - - - - - Initializes a new instance of the class. - - The inner command. - - - - Runs the test, saving a TestResult in the supplied TestExecutionContext. - - The context in which the test should run. - A TestResult - - - - SetUpTearDownItem holds the setup and teardown methods - for a single level of the inheritance hierarchy. - - - - - Construct a SetUpTearDownNode - - A list of setup methods for this level - A list teardown methods for this level - - - - Returns true if this level has any methods at all. - This flag is used to discard levels that do nothing. - - - - - Run SetUp on this level. - - The execution context to use for running. - - - - Run TearDown for this level. - - - - - - TODO: Documentation needed for class - - - - - Initializes a new instance of the class. - - The test being skipped. - - - - Overridden to simply set the CurrentResult to the - appropriate Skipped state. - - The execution context for the test - A TestResult - - - - TestActionCommand runs the BeforeTest actions for a test, - then runs the test and finally runs the AfterTestActions. - - - - - Initializes a new instance of the class. - - The inner command. - - - - Runs the test, saving a TestResult in the supplied TestExecutionContext. - - The context in which the test should run. - A TestResult - - - - TestActionItem represents a single execution of an - ITestAction. It is used to track whether the BeforeTest - method has been called and suppress calling the - AfterTest method if it has not. - - - - - Construct a TestActionItem - - The ITestAction to be included - - - - Run the BeforeTest method of the action and remember that it has been run. - - The test to which the action applies - - - - Run the AfterTest action, but only if the BeforeTest - action was actually run. - - The test to which the action applies - - - - TestCommand is the abstract base class for all test commands - in the framework. A TestCommand represents a single stage in - the execution of a test, e.g.: SetUp/TearDown, checking for - Timeout, verifying the returned result from a method, etc. - - TestCommands may decorate other test commands so that the - execution of a lower-level command is nested within that - of a higher level command. All nested commands are executed - synchronously, as a single unit. Scheduling test execution - on separate threads is handled at a higher level, using the - task dispatcher. - - - - - Construct a TestCommand for a test. - - The test to be executed - - - - Gets the test associated with this command. - - - - - Runs the test in a specified context, returning a TestResult. - - The TestExecutionContext to be used for running the test. - A TestResult - - - - TestMethodCommand is the lowest level concrete command - used to run actual test cases. - - - - - Initializes a new instance of the class. - - The test. - - - - Runs the test, saving a TestResult in the execution context, as - well as returning it. If the test has an expected result, it - is asserts on that value. Since failed tests and errors throw - an exception, this command must be wrapped in an outer command, - will handle that exception and records the failure. This role - is usually played by the SetUpTearDown command. - - The execution context - - - - TheoryResultCommand adjusts the result of a Theory so that - it fails if all the results were inconclusive. - - - - - Constructs a TheoryResultCommand - - The command to be wrapped by this one - - - - Overridden to call the inner command and adjust the result - in case all chlid results were inconclusive. - - - - - - - CultureDetector is a helper class used by NUnit to determine - whether a test should be run based on the current culture. - - - - - Default constructor uses the current culture. - - - - - Construct a CultureDetector for a particular culture for testing. - - The culture to be used - - - - Test to determine if one of a collection of cultures - is being used currently. - - - - - - - Tests to determine if the current culture is supported - based on a culture attribute. - - The attribute to examine - - - - - Test to determine if the a particular culture or comma- - delimited set of cultures is in use. - - Name of the culture or comma-separated list of culture ids - True if the culture is in use on the system - - - - Return the last failure reason. Results are not - defined if called before IsSupported( Attribute ) - is called. - - - - - ExceptionHelper provides static methods for working with exceptions - - - - - Builds up a message, using the Message field of the specified exception - as well as any InnerExceptions. - - The exception. - A combined message string. - - - - Builds up a message, using the Message field of the specified exception - as well as any InnerExceptions. - - The exception. - A combined stack trace. - - - - Gets the stack trace of the exception. - - The exception. - A string representation of the stack trace. - - - - A utility class to create TestCommands - - - - - Gets the command to be executed before any of - the child tests are run. - - A TestCommand - - - - Gets the command to be executed after all of the - child tests are run. - - A TestCommand - - - - Creates a test command for use in running this test. - - - - - - Creates a command for skipping a test. The result returned will - depend on the test RunState. - - - - - Builds the set up tear down list. - - Type of the fixture. - Type of the set up attribute. - Type of the tear down attribute. - A list of SetUpTearDownItems - - - - A CompositeWorkItem represents a test suite and - encapsulates the execution of the suite as well - as all its child tests. - - - - - Construct a CompositeWorkItem for executing a test suite - using a filter to select child tests. - - The TestSuite to be executed - A filter used to select child tests - - - - Method that actually performs the work. Overridden - in CompositeWorkItem to do setup, run all child - items and then do teardown. - - - - - A simplified implementation of .NET 4 CountdownEvent - for use in earlier versions of .NET. Only the methods - used by NUnit are implemented. - - - - - Construct a CountdownEvent - - The initial count - - - - Gets the initial count established for the CountdownEvent - - - - - Gets the current count remaining for the CountdownEvent - - - - - Decrement the count by one - - - - - Block the thread until the count reaches zero - - - - - An IWorkItemDispatcher handles execution of work items. - - - - - Dispatch a single work item for execution. The first - work item dispatched is saved as the top-level - work item and used when stopping the run. - - The item to dispatch - - - - Cancel the ongoing run completely. - If no run is in process, the call has no effect. - - - - - A SimpleWorkItem represents a single test case and is - marked as completed immediately upon execution. This - class is also used for skipped or ignored test suites. - - - - - Construct a simple work item for a test. - - The test to be executed - The filter used to select this test - - - - Method that performs actually performs the work. - - - - - SimpleWorkItemDispatcher handles execution of WorkItems by - directly executing them. It is provided so that a dispatcher - is always available in the context, thereby simplifying the - code needed to run child tests. - - - - - Dispatch a single work item for execution. The first - work item dispatched is saved as the top-level - work item and a thread is created on which to - run it. Subsequent calls come from the top level - item or its descendants on the proper thread. - - The item to dispatch - - - - Cancel the ongoing run completely. - If no run is in process, the call has no effect. - - - - - A WorkItem may be an individual test case, a fixture or - a higher level grouping of tests. All WorkItems inherit - from the abstract WorkItem class, which uses the template - pattern to allow derived classes to perform work in - whatever way is needed. - - A WorkItem is created with a particular TestExecutionContext - and is responsible for re-establishing that context in the - current thread before it begins or resumes execution. - - - - - Creates a work item. - - The test for which this WorkItem is being created. - The filter to be used in selecting any child Tests. - - - - - Construct a WorkItem for a particular test. - - The test that the WorkItem will run - - - - Initialize the TestExecutionContext. This must be done - before executing the WorkItem. - - - Originally, the context was provided in the constructor - but delaying initialization of the context until the item - is about to be dispatched allows changes in the parent - context during OneTimeSetUp to be reflected in the child. - - The TestExecutionContext to use - - - - Event triggered when the item is complete - - - - - Gets the current state of the WorkItem - - - - - The test being executed by the work item - - - - - The execution context - - - - - The test actions to be performed before and after this test - - - - - The test result - - - - - Execute the current work item, including any - child work items. - - - - - Method that performs actually performs the work. It should - set the State to WorkItemState.Complete when done. - - - - - Method called by the derived class when all work is complete - - - - - The current state of a work item - - - - - Ready to run or continue - - - - - Work Item is executing - - - - - Complete - - - - - 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. - - - - - - - Gets or sets the maximum line length for this writer - - - - - Method to write single line message with optional args, usually - written to precede the general failure message, at a given - 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 result of 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 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 ConstraintResult for which the actual value is to be written - - - - Write the generic 'Actual' line for a given value - - The actual value causing a failure - - - - Combines multiple filters so that a test must pass all - of them in order to pass this filter. - - - - - Constructs an empty AndFilter - - - - - Constructs an AndFilter from an array of filters - - - - - - Checks whether the AndFilter is matched by a test - - The test to be matched - True if all the component filters pass, otherwise false - - - - Checks whether the AndFilter is matched by a test - - The test to be matched - True if all the component filters match, otherwise false - - - - Gets the element name - - Element name - - - - CategoryFilter is able to select or exclude tests - based on their categories. - - - - - - Construct a CategoryFilter using a single category name - - A category name - - - - Check whether the filter matches a test - - The test to be matched - - - - - Gets the element name - - Element name - - - - ClassName filter selects tests based on the class FullName - - - - - Construct a FullNameFilter for a single name - - The name the filter will recognize. - - - - Match a test against a single value. - - - - - Gets the element name - - Element name - - - - A base class for multi-part filters - - - - - Constructs an empty CompositeFilter - - - - - Constructs a CompositeFilter from an array of filters - - - - - - Adds a filter to the list of filters - - The filter to be added - - - - Return a list of the composing filters. - - - - - Adds an XML node - - Parent node - True if recursive - The added XML node - - - - Gets the element name - - Element name - - - - FullName filter selects tests based on their FullName - - - - - Construct a FullNameFilter for a single name - - The name the filter will recognize. - - - - Match a test against a single value. - - - - - Gets the element name - - Element name - - - - IdFilter selects tests based on their id - - - - - Construct an IdFilter for a single value - - The id the filter will recognize. - - - - Match a test against a single value. - - - - - Gets the element name - - Element name - - - - FullName filter selects tests based on their FullName - - - - - Construct a MethodNameFilter for a single name - - The name the filter will recognize. - - - - Match a test against a single value. - - - - - Gets the element name - - Element name - - - - NotFilter negates the operation of another filter - - - - - Construct a not filter on another filter - - The filter to be negated - - - - Gets the base filter - - - - - Determine if a particular test passes the filter criteria. The default - implementation checks the test itself, its parents and any descendants. - - Derived classes may override this method or any of the Match methods - to change the behavior of the filter. - - The test to which the filter is applied - True if the test passes the filter, otherwise false - - - - Check whether the filter matches a test - - The test to be matched - True if it matches, otherwise false - - - - Determine if a test matches the filter expicitly. That is, it must - be a direct match of the test itself or one of it's children. - - The test to which the filter is applied - True if the test matches the filter explicityly, otherwise false - - - - Adds an XML node - - Parent node - True if recursive - The added XML node - - - - Combines multiple filters so that a test must pass one - of them in order to pass this filter. - - - - - Constructs an empty OrFilter - - - - - Constructs an AndFilter from an array of filters - - - - - - Checks whether the OrFilter is matched by a test - - The test to be matched - True if any of the component filters pass, otherwise false - - - - Checks whether the OrFilter is matched by a test - - The test to be matched - True if any of the component filters match, otherwise false - - - - Gets the element name - - Element name - - - - PropertyFilter is able to select or exclude tests - based on their properties. - - - - - - Construct a PropertyFilter using a property name and expected value - - A property name - The expected value of the property - - - - Check whether the filter matches a test - - The test to be matched - - - - - Adds an XML node - - Parent node - True if recursive - The added XML node - - - - Gets the element name - - Element name - - - - TestName filter selects tests based on their Name - - - - - Construct a TestNameFilter for a single name - - The name the filter will recognize. - - - - Match a test against a single value. - - - - - Gets the element name - - Element name - - - - ValueMatchFilter selects tests based on some value, which - is expected to be contained in the test. - - - - - Returns the value matched by the filter - used for testing - - - - - Indicates whether the value is a regular expression - - - - - Construct a ValueMatchFilter for a single value. - - The value to be included. - - - - Match the input provided by the derived class - - The value to be matchedT - True for a match, false otherwise. - - - - Adds an XML node - - Parent node - True if recursive - The added XML node - - - - Gets the element name - - Element name - - - - GenericMethodHelper is able to deduce the Type arguments for - a generic method from the actual arguments provided. - - - - - Construct a GenericMethodHelper for a method - - MethodInfo for the method to examine - - - - Return the type argments for the method, deducing them - from the arguments actually provided. - - The arguments to the method - An array of type arguments. - - - - InvalidTestFixtureException is thrown when an appropriate test - fixture constructor using the provided arguments cannot be found. - - - - - Initializes a new instance of the class. - - - - - Initializes a new instance of the class. - - The message. - - - - Initializes a new instance of the class. - - The message. - The inner. - - - - InvalidTestFixtureException is thrown when an appropriate test - fixture constructor using the provided arguments cannot be found. - - - - - Initializes a new instance of the class. - - - - - Initializes a new instance of the class. - - The message. - - - - Initializes a new instance of the class. - - The message. - The inner. - - - - The MethodWrapper class wraps a MethodInfo so that it may - be used in a platform-independent manner. - - - - - Construct a MethodWrapper for a Type and a MethodInfo. - - - - - Construct a MethodInfo for a given Type and method name. - - - - - Gets the Type from which this method was reflected. - - - - - Gets the MethodInfo for this method. - - - - - Gets the name of the method. - - - - - Gets a value indicating whether the method is abstract. - - - - - Gets a value indicating whether the method is public. - - - - - Gets a value indicating whether the method contains unassigned generic type parameters. - - - - - Gets a value indicating whether the method is a generic method. - - - - - Gets a value indicating whether the MethodInfo represents the definition of a generic method. - - - - - Gets the return Type of the method. - - - - - Gets the parameters of the method. - - - - - - Returns the Type arguments of a generic method or the Type parameters of a generic method definition. - - - - - Replaces the type parameters of the method with the array of types provided and returns a new IMethodInfo. - - The type arguments to be used - A new IMethodInfo with the type arguments replaced - - - - Returns an array of custom attributes of the specified type applied to this method - - - - - Gets a value indicating whether one or more attributes of the spcified type are defined on the method. - - - - - Invokes the method, converting any TargetInvocationException to an NUnitException. - - The object on which to invoke the method - The argument list for the method - The return value from the invoked method - - - - Override ToString() so that error messages in NUnit's own tests make sense - - - - - Thrown when an assertion failed. Here to preserve the inner - exception and hence its stack trace. - - - - - Initializes a new instance of the class. - - - - - Initializes a new instance of the class. - - The error message that explains - the reason for the exception - - - - Initializes a new instance of the class. - - The error message that explains - the reason for the exception - The exception that caused the - current exception - - - - The ParameterWrapper class wraps a ParameterInfo so that it may - be used in a platform-independent manner. - - - - - Construct a ParameterWrapper for a given method and parameter - - - - - - - Gets a value indicating whether the parameter is optional - - - - - Gets an IMethodInfo representing the method for which this is a parameter. - - - - - Gets the underlying ParameterInfo - - - - - Gets the Type of the parameter - - - - - Returns an array of custom attributes of the specified type applied to this method - - - - - Gets a value indicating whether one or more attributes of the specified type are defined on the parameter. - - - - - A PropertyBag represents a collection of name value pairs - that allows duplicate entries with the same key. Methods - are provided for adding a new pair as well as for setting - a key to a single value. All keys are strings but _values - may be of any type. Null _values are not permitted, since - a null entry represents the absence of the key. - - - - - Adds a key/value pair to the property set - - The key - The value - - - - Sets the value for a key, removing any other - _values that are already in the property set. - - - - - - - Gets a single value for a key, using the first - one if multiple _values are present and returning - null if the value is not found. - - - - - - - Gets a flag indicating whether the specified key has - any entries in the property set. - - The key to be checked - - True if their are _values present, otherwise false - - - - - Gets a collection containing all the keys in the property set - - - - - - Gets or sets the list of _values for a particular key - - - - - Returns an XmlNode representating the current PropertyBag. - - Not used - An XmlNode representing the PropertyBag - - - - Returns an XmlNode representing the PropertyBag after - adding it as a child of the supplied parent node. - - The parent node. - Not used - - - - - The PropertyNames class provides static constants for the - standard property ids that NUnit uses on tests. - - - - - The FriendlyName of the AppDomain in which the assembly is running - - - - - The selected strategy for joining parameter data into test cases - - - - - The process ID of the executing assembly - - - - - The stack trace from any data provider that threw - an exception. - - - - - The reason a test was not run - - - - - The author of the tests - - - - - The ApartmentState required for running the test - - - - - The categories applying to a test - - - - - The Description of a test - - - - - The number of threads to be used in running tests - - - - - The maximum time in ms, above which the test is considered to have failed - - - - - The ParallelScope associated with a test - - - - - The number of times the test should be repeated - - - - - Indicates that the test should be run on a separate thread - - - - - The culture to be set for a test - - - - - The UI culture to be set for a test - - - - - The type that is under test - - - - - The timeout value for the test - - - - - The test will be ignored until the given date - - - - - Randomizer returns a set of random _values in a repeatable - way, to allow re-running of tests if necessary. It extends - the .NET Random class, providing random values for a much - wider range of types. - - The class is used internally by the framework to generate - test case data and is also exposed for use by users through - the TestContext.Random property. - - - For consistency with the underlying Random Type, methods - returning a single value use the prefix "Next..." Those - without an argument return a non-negative value up to - the full positive range of the Type. Overloads are provided - for specifying a maximum or a range. Methods that return - arrays or strings use the prefix "Get..." to avoid - confusion with the single-value methods. - - - - - Initial seed used to create randomizers for this run - - - - - 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. - - - - - Create a new Randomizer using the next seed - available to ensure that each randomizer gives - a unique sequence of values. - - - - - - Default constructor - - - - - Construct based on seed value - - - - - - Returns a random unsigned int. - - - - - Returns a random unsigned int less than the specified maximum. - - - - - Returns a random unsigned int within a specified range. - - - - - Returns a non-negative random short. - - - - - Returns a non-negative random short less than the specified maximum. - - - - - Returns a non-negative random short within a specified range. - - - - - Returns a random unsigned short. - - - - - Returns a random unsigned short less than the specified maximum. - - - - - Returns a random unsigned short within a specified range. - - - - - Returns a random long. - - - - - Returns a random long less than the specified maximum. - - - - - Returns a non-negative random long within a specified range. - - - - - Returns a random ulong. - - - - - Returns a random ulong less than the specified maximum. - - - - - Returns a non-negative random long within a specified range. - - - - - Returns a random Byte - - - - - Returns a random Byte less than the specified maximum. - - - - - Returns a random Byte within a specified range - - - - - Returns a random SByte - - - - - Returns a random sbyte less than the specified maximum. - - - - - Returns a random sbyte within a specified range - - - - - Returns a random bool - - - - - Returns a random bool based on the probablility a true result - - - - - Returns a random double between 0.0 and the specified maximum. - - - - - Returns a random double within a specified range. - - - - - Returns a random float. - - - - - Returns a random float between 0.0 and the specified maximum. - - - - - Returns a random float within a specified range. - - - - - Returns a random enum value of the specified Type as an object. - - - - - Returns a random enum value of the specified Type. - - - - - Default characters for random functions. - - Default characters are the English alphabet (uppercase & lowercase), arabic numerals, and underscore - - - - Generate a random string based on the characters from the input string. - - desired length of output string. - string representing the set of characters from which to construct the resulting string - A random string of arbitrary length - - - - Generate a random string based on the characters from the input string. - - desired length of output string. - A random string of arbitrary length - Uses DefaultStringChars as the input character set - - - - Generate a random string based on the characters from the input string. - - A random string of the default length - Uses DefaultStringChars as the input character set - - - - Returns a random decimal. - - - - - Returns a random decimal between positive zero and the specified maximum. - - - - - Returns a random decimal within a specified range, which is not - permitted to exceed decimal.MaxVal in the current implementation. - - - A limitation of this implementation is that the range from min - to max must not exceed decimal.MaxVal. - - - - - Helper methods for inspecting a type by reflection. - - Many of these methods take ICustomAttributeProvider as an - argument to avoid duplication, even though certain attributes can - only appear on specific types of members, like MethodInfo or Type. - - In the case where a type is being examined for the presence of - an attribute, interface or named member, the Reflect methods - operate with the full name of the member being sought. This - removes the necessity of the caller having a reference to the - assembly that defines the item being sought and allows the - NUnit core to inspect assemblies that reference an older - version of the NUnit framework. - - - - - Examine a fixture type and return an array of methods having a - particular attribute. The array is order with base methods first. - - The type to examine - The attribute Type to look for - Specifies whether to search the fixture type inheritance chain - The array of methods found - - - - Examine a fixture type and return true if it has a method with - a particular attribute. - - The type to examine - The attribute Type to look for - True if found, otherwise false - - - - Invoke the default constructor on a Type - - The Type to be constructed - An instance of the Type - - - - Invoke a constructor on a Type with arguments - - The Type to be constructed - Arguments to the constructor - An instance of the Type - - - - Returns an array of types from an array of objects. - Used because the compact framework doesn't support - Type.GetTypeArray() - - An array of objects - An array of Types - - - - Invoke a parameterless method returning void on an object. - - A MethodInfo for the method to be invoked - The object on which to invoke the method - - - - Invoke a method, converting any TargetInvocationException to an NUnitException. - - A MethodInfo for the method to be invoked - The object on which to invoke the method - The argument list for the method - The return value from the invoked method - - - - Represents the result of running a single test case. - - - - - Construct a TestCaseResult based on a TestMethod - - A TestMethod to which the result applies. - - - - Gets the number of test cases that failed - when running the test and all its children. - - - - - Gets the number of test cases that passed - when running the test and all its children. - - - - - Gets the number of test cases that were skipped - when running the test and all its children. - - - - - Gets the number of test cases that were inconclusive - when running the test and all its children. - - - - - The TestResult class represents the result of a test. - - - - - Error message for when child tests have errors - - - - - Error message for when child tests are ignored - - - - - The minimum duration for tests - - - - - List of child results - - - - - Construct a test result given a Test - - The test to be used - - - - Gets the test with which this result is associated. - - - - - Gets the ResultState of the test result, which - indicates the success or failure of the test. - - - - - Gets the name of the test result - - - - - Gets the full name of the test result - - - - - Gets or sets the elapsed time for running the test in seconds - - - - - Gets or sets the time the test started running. - - - - - Gets or sets the time the test finished running. - - - - - Gets the message associated with a test - failure or with not running the test - - - - - Gets any stacktrace associated with an - error or failure. - - - - - Gets or sets the count of asserts executed - when running the test. - - - - - Gets the number of test cases that failed - when running the test and all its children. - - - - - Gets the number of test cases that passed - when running the test and all its children. - - - - - Gets the number of test cases that were skipped - when running the test and all its children. - - - - - Gets the number of test cases that were inconclusive - when running the test and all its children. - - - - - Indicates whether this result has any child results. - Test HasChildren before accessing Children to avoid - the creation of an empty collection. - - - - - Gets the collection of child results. - - - - - Gets a TextWriter, which will write output to be included in the result. - - - - - Gets any text output written to this result. - - - - - Returns the Xml representation of the result. - - If true, descendant results are included - An XmlNode representing the result - - - - Adds the XML representation of the result as a child of the - supplied parent node.. - - The parent node. - If true, descendant results are included - - - - - Adds a child result to this result, setting this result's - ResultState to Failure if the child result failed. - - The result to be added - - - - Set the result of the test - - The ResultState to use in the result - - - - Set the result of the test - - The ResultState to use in the result - A message associated with the result state - - - - Set the result of the test - - The ResultState to use in the result - A message associated with the result state - Stack trace giving the location of the command - - - - Set the test result based on the type of exception thrown - - The exception that was thrown - - - - Set the test result based on the type of exception thrown - - The exception that was thrown - THe FailureSite to use in the result - - - - RecordTearDownException appends the message and stacktrace - from an exception arising during teardown of the test - to any previously recorded information, so that any - earlier failure information is not lost. Note that - calling Assert.Ignore, Assert.Inconclusive, etc. during - teardown is treated as an error. If the current result - represents a suite, it may show a teardown error even - though all contained tests passed. - - The Exception to be recorded - - - - Adds a reason element to a node and returns it. - - The target node. - The new reason element. - - - - Adds a failure element to a node and returns it. - - The target node. - The new failure element. - - - - Represents the result of running a test suite - - - - - Construct a TestSuiteResult base on a TestSuite - - The TestSuite to which the result applies - - - - Gets the number of test cases that failed - when running the test and all its children. - - - - - Gets the number of test cases that passed - when running the test and all its children. - - - - - Gets the number of test cases that were skipped - when running the test and all its children. - - - - - Gets the number of test cases that were inconclusive - when running the test and all its children. - - - - - Add a child result - - The child result to be added - - - - StackFilter class is used to remove internal NUnit - entries from a stack trace so that the resulting - trace provides better information about the test. - - - - - Filters a raw stack trace and returns the result. - - The original stack trace - A filtered stack trace - - - - Provides methods to support legacy string comparison methods. - - - - - Compares two strings for equality, ignoring case if requested. - - The first string. - The second string.. - if set to true, the case of the letters in the strings is ignored. - Zero if the strings are equivalent, a negative number if strA is sorted first, a positive number if - strB is sorted first - - - - Compares two strings for equality, ignoring case if requested. - - The first string. - The second string.. - if set to true, the case of the letters in the strings is ignored. - True if the strings are equivalent, false if not. - - - - The TestCaseParameters class encapsulates method arguments and - other selected parameters needed for constructing - a parameterized test case. - - - - - The expected result to be returned - - - - - Default Constructor creates an empty parameter set - - - - - Construct a non-runnable ParameterSet, specifying - the provider exception that made it invalid. - - - - - Construct a parameter set with a list of arguments - - - - - - Construct a ParameterSet from an object implementing ITestCaseData - - - - - - The expected result of the test, which - must match the method return type. - - - - - Gets a value indicating whether an expected result was specified. - - - - - Helper class used to save and restore certain static or - singleton settings in the environment that affect tests - or which might be changed by the user tests. - - An internal class is used to hold settings and a stack - of these objects is pushed and popped as Save and Restore - are called. - - - - - Link to a prior saved context - - - - - Indicates that a stop has been requested - - - - - The event listener currently receiving notifications - - - - - The number of assertions for the current test - - - - - The current culture - - - - - The current UI culture - - - - - The current test result - - - - - Initializes a new instance of the class. - - - - - Initializes a new instance of the class. - - An existing instance of TestExecutionContext. - - - - The current context, head of the list of saved contexts. - - - - - Gets the current context. - - The current context. - - - - Clear the current context. This is provided to - prevent "leakage" of the CallContext containing - the current context back to any runners. - - - - - Gets or sets the current test - - - - - The time the current test started execution - - - - - The time the current test started in Ticks - - - - - Gets or sets the current test result - - - - - Gets a TextWriter that will send output to the current test result. - - - - - The current test object - that is the user fixture - object on which tests are being executed. - - - - - Get or set the working directory - - - - - Get or set indicator that run should stop on the first error - - - - - Gets an enum indicating whether a stop has been requested. - - - - - The current test event listener - - - - - The current WorkItemDispatcher - - - - - The ParallelScope to be used by tests running in this context. - For builds with out the parallel feature, it has no effect. - - - - - Gets the RandomGenerator specific to this Test - - - - - Gets the assert count. - - The assert count. - - - - Gets or sets the test case timeout value - - - - - Gets a list of ITestActions set by upstream tests - - - - - Saves or restores the CurrentCulture - - - - - Saves or restores the CurrentUICulture - - - - - Record any changes in the environment made by - the test code in the execution context so it - will be passed on to lower level tests. - - - - - Set up the execution environment to match a context. - Note that we may be running on the same thread where the - context was initially created or on a different thread. - - - - - Increments the assert count by one. - - - - - Increments the assert count by a specified amount. - - - - - Enumeration indicating whether the tests are - running normally or being cancelled. - - - - - Running normally with no stop requested - - - - - A graceful stop has been requested - - - - - A forced stop has been requested - - - - - Interface to be implemented by filters applied to tests. - The filter applies when running the test, after it has been - loaded, since this is the only time an ITest exists. - - - - - Unique Empty filter. - - - - - Indicates whether this is the EmptyFilter - - - - - Indicates whether this is a top-level filter, - not contained in any other filter. - - - - - Determine if a particular test passes the filter criteria. The default - implementation checks the test itself, its parents and any descendants. - - Derived classes may override this method or any of the Match methods - to change the behavior of the filter. - - The test to which the filter is applied - True if the test passes the filter, otherwise false - - - - Determine if a test matches the filter expicitly. That is, it must - be a direct match of the test itself or one of it's children. - - The test to which the filter is applied - True if the test matches the filter explicityly, otherwise false - - - - Determine whether the test itself matches the filter criteria, without - examining either parents or descendants. This is overridden by each - different type of filter to perform the necessary tests. - - The test to which the filter is applied - True if the filter matches the any parent of the test - - - - Determine whether any ancestor of the test matches the filter criteria - - The test to which the filter is applied - True if the filter matches the an ancestor of the test - - - - Determine whether any descendant of the test matches the filter criteria. - - The test to be matched - True if at least one descendant matches the filter criteria - - - - Create a TestFilter instance from an xml representation. - - - - - Create a TestFilter from it's TNode representation - - - - - Nested class provides an empty filter - one that always - returns true when called. It never matches explicitly. - - - - - Adds an XML node - - True if recursive - The added XML node - - - - Adds an XML node - - Parent node - True if recursive - The added XML node - - - - The TestCaseParameters class encapsulates method arguments and - other selected parameters needed for constructing - a parameterized test case. - - - - - Default Constructor creates an empty parameter set - - - - - Construct a non-runnable ParameterSet, specifying - the provider exception that made it invalid. - - - - - Construct a parameter set with a list of arguments - - - - - - Construct a ParameterSet from an object implementing ITestCaseData - - - - - - Type arguments used to create a generic fixture instance - - - - - TestListener provides an implementation of ITestListener that - does nothing. It is used only through its NULL property. - - - - - Called when a test has just started - - The test that is starting - - - - Called when a test case has finished - - The result of the test - - - - Construct a new TestListener - private so it may not be used. - - - - - Get a listener that does nothing - - - - - TestNameGenerator is able to create test names according to - a coded pattern. - - - - - Construct a TestNameGenerator - - The pattern used by this generator. - - - - Get the display name for a TestMethod and it's arguments - - A TestMethod - The display name - - - - Get the display name for a TestMethod and it's arguments - - A TestMethod - Arguments to be used - The display name - - - - Get the display name for a MethodInfo - - A MethodInfo - The display name - - - - Get the display name for a method with args - - A MethodInfo - Argument list for the method - The display name - - - - TestParameters is the abstract base class for all classes - that know how to provide data for constructing a test. - - - - - Default Constructor creates an empty parameter set - - - - - Construct a parameter set with a list of arguments - - - - - - Construct a non-runnable ParameterSet, specifying - the provider exception that made it invalid. - - - - - Construct a ParameterSet from an object implementing ITestData - - - - - - The RunState for this set of parameters. - - - - - The arguments to be used in running the test, - which must match the method signature. - - - - - A name to be used for this test case in lieu - of the standard generated name containing - the argument list. - - - - - Gets the property dictionary for this test - - - - - Applies ParameterSet _values to the test itself. - - A test. - - - - The original arguments provided by the user, - used for display purposes. - - - - - TestProgressReporter translates ITestListener events into - the async callbacks that are used to inform the client - software about the progress of a test run. - - - - - Initializes a new instance of the class. - - The callback handler to be used for reporting progress. - - - - Called when a test has just started - - The test that is starting - - - - Called when a test has finished. Sends a result summary to the callback. - to - - The result of the test - - - - Returns the parent test item for the targer test item if it exists - - - parent test item - - - - Makes a string safe for use as an attribute, replacing - characters characters that can't be used with their - corresponding xml representations. - - The string to be used - A new string with the _values replaced - - - - ParameterizedFixtureSuite serves as a container for the set of test - fixtures created from a given Type using various parameters. - - - - - Initializes a new instance of the class. - - The ITypeInfo for the type that represents the suite. - - - - Gets a string representing the type of test - - - - - - ParameterizedMethodSuite holds a collection of individual - TestMethods with their arguments applied. - - - - - Construct from a MethodInfo - - - - - - Gets a string representing the type of test - - - - - - SetUpFixture extends TestSuite and supports - Setup and TearDown methods. - - - - - Initializes a new instance of the class. - - The type. - - - - The Test abstract class represents a test within the framework. - - - - - Static value to seed ids. It's started at 1000 so any - uninitialized ids will stand out. - - - - - The SetUp methods. - - - - - The teardown methods - - - - - Constructs a test given its name - - The name of the test - - - - Constructs a test given the path through the - test hierarchy to its parent and a name. - - The parent tests full name - The name of the test - - - - TODO: Documentation needed for constructor - - - - - - Construct a test from a MethodInfo - - - - - - Gets or sets the id of the test - - - - - - Gets or sets the name of the test - - - - - Gets or sets the fully qualified name of the test - - - - - - Gets the name of the class containing this test. Returns - null if the test is not associated with a class. - - - - - Gets the name of the method implementing this test. - Returns null if the test is not implemented as a method. - - - - - Gets the TypeInfo of the fixture used in running this test - or null if no fixture type is associated with it. - - - - - Gets a MethodInfo for the method implementing this test. - Returns null if the test is not implemented as a method. - - - - - Whether or not the test should be run - - - - - Gets the name used for the top-level element in the - XML representation of this test - - - - - Gets a string representing the type of test. Used as an attribute - value in the XML representation of a test and has no other - function in the framework. - - - - - Gets a count of test cases represented by - or contained under this test. - - - - - Gets the properties for this test - - - - - Returns true if this is a TestSuite - - - - - Gets a bool indicating whether the current test - has any descendant tests. - - - - - Gets the parent as a Test object. - Used by the core to set the parent. - - - - - Gets this test's child tests - - A list of child tests - - - - Gets or sets a fixture object for running this test. - - - - - Static prefix used for ids in this AppDomain. - Set by FrameworkController. - - - - - Gets or Sets the Int value representing the seed for the RandomGenerator - - - - - - Creates a TestResult for this test. - - A TestResult suitable for this type of test. - - - - Modify a newly constructed test by applying any of NUnit's common - attributes, based on a supplied ICustomAttributeProvider, which is - usually the reflection element from which the test was constructed, - but may not be in some instances. The attributes retrieved are - saved for use in subsequent operations. - - An object deriving from MemberInfo - - - - Modify a newly constructed test by applying any of NUnit's common - attributes, based on a supplied ICustomAttributeProvider, which is - usually the reflection element from which the test was constructed, - but may not be in some instances. The attributes retrieved are - saved for use in subsequent operations. - - An object deriving from MemberInfo - - - - Add standard attributes and members to a test node. - - - - - - - Returns the Xml representation of the test - - If true, include child tests recursively - - - - - Returns an XmlNode representing the current result after - adding it as a child of the supplied parent node. - - The parent node. - If true, descendant results are included - - - - - Compares this test to another test for sorting purposes - - The other test - Value of -1, 0 or +1 depending on whether the current test is less than, equal to or greater than the other test - - - - TestAssembly is a TestSuite that represents the execution - of tests in a managed assembly. - - - - - Initializes a new instance of the class - specifying the Assembly and the path from which it was loaded. - - The assembly this test represents. - The path used to load the assembly. - - - - Initializes a new instance of the class - for a path which could not be loaded. - - The path used to load the assembly. - - - - Gets the Assembly represented by this instance. - - - - - Gets the name used for the top-level element in the - XML representation of this test - - - - - TestFixture is a surrogate for a user test fixture class, - containing one or more tests. - - - - - Initializes a new instance of the class. - - Type of the fixture. - - - - The TestMethod class represents a Test implemented as a method. - - - - - The ParameterSet used to create this test method - - - - - Initializes a new instance of the class. - - The method to be used as a test. - - - - Initializes a new instance of the class. - - The method to be used as a test. - The suite or fixture to which the new test will be added - - - - Overridden to return a TestCaseResult. - - A TestResult for this test. - - - - Gets a bool indicating whether the current test - has any descendant tests. - - - - - Returns a TNode representing the current result after - adding it as a child of the supplied parent node. - - The parent node. - If true, descendant results are included - - - - - Gets this test's child tests - - A list of child tests - - - - Gets the name used for the top-level element in the - XML representation of this test - - - - - Returns the name of the method - - - - - TestSuite represents a composite test, which contains other tests. - - - - - Our collection of child tests - - - - - Initializes a new instance of the class. - - The name of the suite. - - - - Initializes a new instance of the class. - - Name of the parent suite. - The name of the suite. - - - - Initializes a new instance of the class. - - Type of the fixture. - - - - Initializes a new instance of the class. - - Type of the fixture. - - - - Sorts tests under this suite. - - - - - Adds a test to the suite. - - The test. - - - - Gets this test's child tests - - The list of child tests - - - - Gets a count of test cases represented by - or contained under this test. - - - - - - The arguments to use in creating the fixture - - - - - Set to true to suppress sorting this suite's contents - - - - - Overridden to return a TestSuiteResult. - - A TestResult for this test. - - - - Gets a bool indicating whether the current test - has any descendant tests. - - - - - Gets the name used for the top-level element in the - XML representation of this test - - - - - Returns an XmlNode representing the current result after - adding it as a child of the supplied parent node. - - The parent node. - If true, descendant results are included - - - - - Check that setup and teardown methods marked by certain attributes - meet NUnit's requirements and mark the tests not runnable otherwise. - - The attribute type to check for - - - - TypeHelper provides static methods that operate on Types. - - - - - A special value, which is used to indicate that BestCommonType() method - was unable to find a common type for the specified arguments. - - - - - Gets the display name for a Type as used by NUnit. - - The Type for which a display name is needed. - The display name for the Type - - - - Gets the display name for a Type as used by NUnit. - - The Type for which a display name is needed. - The arglist provided. - The display name for the Type - - - - Returns the best fit for a common type to be used in - matching actual arguments to a methods Type parameters. - - The first type. - The second type. - Either type1 or type2, depending on which is more general. - - - - Determines whether the specified type is numeric. - - The type to be examined. - - true if the specified type is numeric; otherwise, false. - - - - - Convert an argument list to the required parameter types. - Currently, only widening numeric conversions are performed. - - An array of args to be converted - A ParameterInfo[] whose types will be used as targets - - - - Determines whether this instance can deduce type args for a generic type from the supplied arguments. - - The type to be examined. - The arglist. - The type args to be used. - - true if this the provided args give sufficient information to determine the type args to be used; otherwise, false. - - - - - Gets the _values for an enumeration, using Enum.GetTypes - where available, otherwise through reflection. - - - - - - - Gets the ids of the _values for an enumeration, - using Enum.GetNames where available, otherwise - through reflection. - - - - - - - The TypeWrapper class wraps a Type so it may be used in - a platform-independent manner. - - - - - Construct a TypeWrapper for a specified Type. - - - - - Gets the underlying Type on which this TypeWrapper is based. - - - - - Gets the base type of this type as an ITypeInfo - - - - - Gets the Name of the Type - - - - - Gets the FullName of the Type - - - - - Gets the assembly in which the type is declared - - - - - Gets the namespace of the Type - - - - - Gets a value indicating whether the type is abstract. - - - - - Gets a value indicating whether the Type is a generic Type - - - - - Returns true if the Type wrapped is T - - - - - Gets a value indicating whether the Type has generic parameters that have not been replaced by specific Types. - - - - - Gets a value indicating whether the Type is a generic Type definition - - - - - Gets a value indicating whether the type is sealed. - - - - - Gets a value indicating whether this type represents a static class. - - - - - Get the display name for this type - - - - - Get the display name for an object of this type, constructed with the specified args. - - - - - Returns a new ITypeInfo representing an instance of this generic Type using the supplied Type arguments - - - - - Returns a Type representing a generic type definition from which this Type can be constructed. - - - - - Returns an array of custom attributes of the specified type applied to this type - - - - - Returns a value indicating whether the type has an attribute of the specified type. - - - - - - - - Returns a flag indicating whether this type has a method with an attribute of the specified type. - - - - - - - Returns an array of IMethodInfos for methods of this Type - that match the specified flags. - - - - - Returns a value indicating whether this Type has a public constructor taking the specified argument Types. - - - - - Construct an object of this Type, using the specified arguments. - - - - - Override ToString() so that error messages in NUnit's own tests make sense - - - - - Class used to guard against unexpected argument values - or operations by throwing an appropriate exception. - - - - - Throws an exception if an argument is null - - The value to be tested - The name of the argument - - - - Throws an exception if a string argument is null or empty - - The value to be tested - The name of the argument - - - - Throws an ArgumentOutOfRangeException if the specified condition is not met. - - The condition that must be met - The exception message to be used - The name of the argument - - - - Throws an ArgumentException if the specified condition is not met. - - The condition that must be met - The exception message to be used - The name of the argument - - - - Throws an InvalidOperationException if the specified condition is not met. - - The condition that must be met - The exception message to be used - - - - The different targets a test action attribute can be applied to - - - - - Default target, which is determined by where the action attribute is attached - - - - - Target a individual test case - - - - - Target a suite of test cases - - - - - DefaultTestAssemblyBuilder loads a single assembly and builds a TestSuite - containing test fixtures present in the assembly. - - - - - The default suite builder used by the test assembly builder. - - - - - Initializes a new instance of the class. - - - - - Build a suite of tests from a provided assembly - - The assembly from which tests are to be built - A dictionary of options to use in building the suite - - A TestSuite containing the tests found in the assembly - - - - - Build a suite of tests given the filename of an assembly - - The filename of the assembly from which tests are to be built - A dictionary of options to use in building the suite - - A TestSuite containing the tests found in the assembly - - - - - FrameworkController provides a facade for use in loading, browsing - and running tests without requiring a reference to the NUnit - framework. All calls are encapsulated in constructors for - this class and its nested classes, which only require the - types of the Common Type System as arguments. - - The controller supports four actions: Load, Explore, Count and Run. - They are intended to be called by a driver, which should allow for - proper sequencing of calls. Load must be called before any of the - other actions. The driver may support other actions, such as - reload on run, by combining these calls. - - - - - Construct a FrameworkController using the default builder and runner. - - The AssemblyName or path to the test assembly - A prefix used for all test ids created under this controller. - A Dictionary of settings to use in loading and running the tests - - - - Construct a FrameworkController using the default builder and runner. - - The test assembly - A prefix used for all test ids created under this controller. - A Dictionary of settings to use in loading and running the tests - - - - Construct a FrameworkController, specifying the types to be used - for the runner and builder. This constructor is provided for - purposes of development. - - The full AssemblyName or the path to the test assembly - A prefix used for all test ids created under this controller. - A Dictionary of settings to use in loading and running the tests - The Type of the test runner - The Type of the test builder - - - - Construct a FrameworkController, specifying the types to be used - for the runner and builder. This constructor is provided for - purposes of development. - - The test assembly - A prefix used for all test ids created under this controller. - A Dictionary of settings to use in loading and running the tests - The Type of the test runner - The Type of the test builder - - - - Gets the ITestAssemblyBuilder used by this controller instance. - - The builder. - - - - Gets the ITestAssemblyRunner used by this controller instance. - - The runner. - - - - Gets the AssemblyName or the path for which this FrameworkController was created - - - - - Gets the Assembly for which this - - - - - Gets a dictionary of settings for the FrameworkController - - - - - Inserts settings element - - Target node - Settings dictionary - The new node - - - - FrameworkControllerAction is the base class for all actions - performed against a FrameworkController. - - - - - LoadTestsAction loads a test into the FrameworkController - - - - - LoadTestsAction loads the tests in an assembly. - - The controller. - The callback handler. - - - - ExploreTestsAction returns info about the tests in an assembly - - - - - Initializes a new instance of the class. - - The controller for which this action is being performed. - Filter used to control which tests are included (NYI) - The callback handler. - - - - CountTestsAction counts the number of test cases in the loaded TestSuite - held by the FrameworkController. - - - - - Construct a CountsTestAction and perform the count of test cases. - - A FrameworkController holding the TestSuite whose cases are to be counted - A string containing the XML representation of the filter to use - A callback handler used to report results - - - - RunTestsAction runs the loaded TestSuite held by the FrameworkController. - - - - - Construct a RunTestsAction and run all tests in the loaded TestSuite. - - A FrameworkController holding the TestSuite to run - A string containing the XML representation of the filter to use - A callback handler used to report results - - - - RunAsyncAction initiates an asynchronous test run, returning immediately - - - - - Construct a RunAsyncAction and run all tests in the loaded TestSuite. - - A FrameworkController holding the TestSuite to run - A string containing the XML representation of the filter to use - A callback handler used to report results - - - - StopRunAction stops an ongoing run. - - - - - Construct a StopRunAction and stop any ongoing run. If no - run is in process, no error is raised. - - The FrameworkController for which a run is to be stopped. - True the stop should be forced, false for a cooperative stop. - >A callback handler used to report results - A forced stop will cause threads and processes to be killed as needed. - - - - The ITestAssemblyBuilder interface is implemented by a class - that is able to build a suite of tests given an assembly or - an assembly filename. - - - - - Build a suite of tests from a provided assembly - - The assembly from which tests are to be built - A dictionary of options to use in building the suite - A TestSuite containing the tests found in the assembly - - - - Build a suite of tests given the filename of an assembly - - The filename of the assembly from which tests are to be built - A dictionary of options to use in building the suite - A TestSuite containing the tests found in the assembly - - - - The ITestAssemblyRunner interface is implemented by classes - that are able to execute a suite of tests loaded - from an assembly. - - - - - Gets the tree of loaded tests, or null if - no tests have been loaded. - - - - - Gets the tree of test results, if the test - run is completed, otherwise null. - - - - - Indicates whether a test has been loaded - - - - - Indicates whether a test is currently running - - - - - Indicates whether a test run is complete - - - - - Loads the tests found in an Assembly, returning an - indication of whether or not the load succeeded. - - File name of the assembly to load - Dictionary of options to use in loading the test - An ITest representing the loaded tests - - - - Loads the tests found in an Assembly, returning an - indication of whether or not the load succeeded. - - The assembly to load - Dictionary of options to use in loading the test - An ITest representing the loaded tests - - - - Count Test Cases using a filter - - The filter to apply - The number of test cases found - - - - Run selected tests and return a test result. The test is run synchronously, - and the listener interface is notified as it progresses. - - Interface to receive ITestListener notifications. - A test filter used to select tests to be run - - - - Run selected tests asynchronously, notifying the listener interface as it progresses. - - Interface to receive EventListener notifications. - A test filter used to select tests to be run - - - - Wait for the ongoing run to complete. - - Time to wait in milliseconds - True if the run completed, otherwise false - - - - Signal any test run that is in process to stop. Return without error if no test is running. - - If true, kill any test-running threads - - - - Implementation of ITestAssemblyRunner - - - - - Initializes a new instance of the class. - - The builder. - - - - The tree of tests that was loaded by the builder - - - - - The test result, if a run has completed - - - - - Indicates whether a test is loaded - - - - - Indicates whether a test is running - - - - - Indicates whether a test run is complete - - - - - Our settings, specified when loading the assembly - - - - - The top level WorkItem created for the assembly as a whole - - - - - The TestExecutionContext for the top level WorkItem - - - - - Loads the tests found in an Assembly - - File name of the assembly to load - Dictionary of option settings for loading the assembly - True if the load was successful - - - - Loads the tests found in an Assembly - - The assembly to load - Dictionary of option settings for loading the assembly - True if the load was successful - - - - Count Test Cases using a filter - - The filter to apply - The number of test cases found - - - - Run selected tests and return a test result. The test is run synchronously, - and the listener interface is notified as it progresses. - - Interface to receive EventListener notifications. - A test filter used to select tests to be run - - - - - Run selected tests asynchronously, notifying the listener interface as it progresses. - - Interface to receive EventListener notifications. - A test filter used to select tests to be run - - RunAsync is a template method, calling various abstract and - virtual methods to be overridden by derived classes. - - - - - Wait for the ongoing run to complete. - - Time to wait in milliseconds - True if the run completed, otherwise false - - - - Initiate the test run. - - - - - Signal any test run that is in process to stop. Return without error if no test is running. - - If true, kill any test-running threads - - - - Create the initial TestExecutionContext used to run tests - - The ITestListener specified in the RunAsync call - - - - Handle the the Completed event for the top level work item - - - - - The Assert class contains a collection of static methods that - implement the most common assertions used in NUnit. - - - - - Verifies that the first int is greater than the second - int. 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 int is greater than the second - int. 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 - - - - 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 - - - - 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 - - - - 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 - - - - 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 - - - - 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 - - - - 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 - - - - 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 - - - - 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 - - - - 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 - - - - 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 - - - - 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 - - - - 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 - - - - 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 - - - - 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 - - - - Verifies that the first value is greater than or equal to 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 or equal to 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 or equal to 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 or equal to 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 or equal to 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 or equal to 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 or equal to 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 or equal to 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 or equal to 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 or equal to 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 or equal to 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 or equal to 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 or equal to 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 or equal to 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 or equal to 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 or equal to 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 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 - - - - 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 - - - - 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 - - - - 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 - - - - 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 - - - - 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 - - - - 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 - - - - 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 - - - - 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 - 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 - - - - 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 - 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 - - - - 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 - 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 - - - - 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 - 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 - - - - 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 - - - - 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 - - - - 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 - - - - 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 - - - - 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 - - - - 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 - - - - 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 - - - - 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 - - - - 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 - - - - 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 - - - - 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. - - - - - - - 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. - - - - - 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 - - - - 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 - - - - 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 - - - - 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 - - - - 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 - - - - 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 - - - - 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 - - - - 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 - - - - 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 - - - - Verifies that a delegate throws a particular exception when called. - - The exception Type expected - A TestDelegate - 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 TestDelegate - - - - Verifies that a delegate throws a particular exception when called. - - Type of the expected exception - A TestDelegate - 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 TestDelegate - - - - 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 - - - - 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 - - - - Verifies that a delegate throws an exception of a certain Type - or one derived from it 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 of a certain Type - or one derived from it when called and returns it. - - A TestDelegate - - - - Verifies that a delegate does not throw an exception - - A TestDelegate - 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 TestDelegate - - - - 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 - - - - Asserts that a condition is true. If the condition is false the method throws - an . - - A lambda that returns a Boolean - 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 . - - A lambda that returns a Boolean - - - - 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. - - 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 - - - - 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 - - - - 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 - 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 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 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. - Used as a synonym for That in rare cases where a private setter - causes a Visual Basic compilation error. - - 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. - Used as a synonym for That in rare cases where a private setter - causes a Visual Basic compilation error. - - - This method is provided for use by VB developers needing to test - the value of properties with private setters. - - 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 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 - - - - 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 - - - - 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 - - - - 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 - - - - 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 - - - - 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 - - - - 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 - - - - 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 - - - - Delegate used by tests that execute code and - capture any thrown exception. - - - - - AssertionHelper is an optional base class for user tests, - allowing the use of shorter ids for constraints and - asserts and avoiding conflict with the definition of - , from which it inherits much of its - behavior, in certain mock object frameworks. - - - - - 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 - - - - 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. - - 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 - - - - 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 - - - - 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 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 - - - - Returns a ListMapper based on a collection. - - The original collection - - - - - 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 - 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. - - 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 - - - - 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 - - - - Asserts that a condition is true. If the condition is false the method throws - an . - - A lambda that returns a Boolean - 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 . - - A lambda that returns a Boolean - - - - 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 - - - - Apply a constraint to an actual value, succeeding if the constraint - is satisfied and throwing an InconclusiveException 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 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 - - - - Provides the Author of a test or test fixture. - - - - - Initializes a new instance of the class. - - The name of the author. - - - - Initializes a new instance of the class. - - The name of the author. - The email address of the author. - - - - 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 - - - - - Modifies a test by adding a category to it. - - The test to modify - - - - Marks a test to use a combinatorial join of any argument - data provided. Since this is the default, the attribute is - optional. - - - - - Default constructor - - - - - Marks a test to use a particular CombiningStrategy to join - any parameter data provided. Since this is the default, the - attribute is optional. - - - - - Construct a CombiningStrategyAttribute incorporating an - ICombiningStrategy and an IParamterDataProvider. - - Combining strategy to be used in combining data - An IParameterDataProvider to supply data - - - - Construct a CombiningStrategyAttribute incorporating an object - that implements ICombiningStrategy and an IParameterDataProvider. - This constructor is provided for CLS compliance. - - Combining strategy to be used in combining data - An IParameterDataProvider to supply data - - - - Construct one or more TestMethods from a given MethodInfo, - using available parameter data. - - The MethodInfo for which tests are to be constructed. - The suite to which the tests will be added. - One or more TestMethods - - - - Modify the test by adding the name of the combining strategy - to the properties. - - The test to modify - - - - 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 - - - - Causes a test to be skipped if this CultureAttribute is not satisfied. - - The test to modify - - - - Tests to determine if the current culture is supported - based on the properties of this attribute. - - True, if the current culture is supported - - - - Test to determine if the a particular culture or comma- - delimited set of cultures is in use. - - Name of the culture or comma-separated list of culture ids - True if the culture is in use on the system - - - - Test to determine if one of a collection of cultures - is being used currently. - - - - - - - The abstract base class for all data-providing attributes - defined by NUnit. Used to select all data sources for a - method, class or parameter. - - - - - Default constructor - - - - - 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 a field, property or method providing a set of datapoints to - be used in executing any theories within the same fixture that require an - argument of the Type provided. The data source may provide an array of - the required Type or an . - Synonymous with DatapointSourceAttribute. - - - - - Used to mark a field, property or method providing a set of datapoints to - be used in executing any theories within the same fixture that require an - argument of the Type provided. The data source may provide an array of - the required Type or an . - Synonymous with DatapointsAttribute. - - - - - Attribute used to provide descriptive text about a - test case or fixture. - - - - - Construct a description Attribute - - The text of the description - - - - 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 - - - - Modifies a test by marking it as explicit. - - The test to modify - - - - 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 giving a reason for ignoring the test - - The reason for ignoring the test - - - - The date in the future to stop ignoring the test as a string in UTC time. - For example for a date and time, "2014-12-25 08:10:00Z" or for just a date, - "2014-12-25". If just a date is given, the Ignore will expire at midnight UTC. - - - Once the ignore until date has passed, the test will be marked - as runnable. Tests with an ignore until date will have an IgnoreUntilDate - property set which will appear in the test results. - - The string does not contain a valid string representation of a date and time. - - - - Modifies a test by marking it as Ignored. - - The test to modify - - - - 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 items 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 - - - - - LevelOfParallelismAttribute is used to set the number of worker threads - that may be allocated by the framework for running tests. - - - - - Construct a LevelOfParallelismAttribute. - - The number of worker threads to be created by the framework. - - - - Summary description for MaxTimeAttribute. - - - - - Construct a MaxTimeAttribute, given a time in milliseconds. - - The maximum elapsed time in milliseconds - - - - The abstract base class for all custom attributes defined by NUnit. - - - - - Default constructor - - - - - Attribute used to identify a method that is called once - to perform setup before any child tests are run. - - - - - Attribute used to identify a method that is called once - after all the child tests have run. The method is - guaranteed to be called, even if an exception is thrown. - - - - - Marks a test to use a pairwise join of any argument - data provided. Arguments will be combined in such a - way that all possible pairs of arguments are used. - - - - - Default constructor - - - - - ParallelizableAttribute is used to mark tests that may be run in parallel. - - - - - Construct a ParallelizableAttribute using default ParallelScope.Self. - - - - - Construct a ParallelizableAttribute with a specified scope. - - The ParallelScope associated with this attribute. - - - - Modify the context to be used for child tests - - The current TestExecutionContext - - - - The ParallelScope enumeration permits specifying the degree to - which a test and its descendants may be run in parallel. - - - - - No Parallelism is permitted - - - - - The test itself may be run in parallel with others at the same level - - - - - Descendants of the test may be run in parallel with one another - - - - - Descendants of the test down to the level of TestFixtures may be run in parallel - - - - - 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 - - - - - Modifies a test by adding properties to it. - - The test to modify - - - - RandomAttribute is used to supply a set of random _values - to a single parameter of a parameterized test. - - - - - Construct a random set of values appropriate for the Type of the - parameter on which the attribute appears, specifying only the count. - - - - - - Construct a set of ints within a specified range - - - - - Construct a set of unsigned ints within a specified range - - - - - Construct a set of longs within a specified range - - - - - Construct a set of unsigned longs within a specified range - - - - - Construct a set of shorts within a specified range - - - - - Construct a set of unsigned shorts within a specified range - - - - - Construct a set of doubles within a specified range - - - - - Construct a set of floats within a specified range - - - - - Construct a set of bytes within a specified range - - - - - Construct a set of sbytes within a specified range - - - - - 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 unsigned ints using default step of 1 - - - - - - - Construct a range of unsigned ints specifying the step size - - - - - - - - Construct a range of longs using a default step of 1 - - - - - - - Construct a range of longs - - - - - - - - Construct a range of unsigned longs using default step of 1 - - - - - - - Construct a range of unsigned longs specifying the step size - - - - - - - - Construct a range of doubles - - - - - - - - Construct a range of floats - - - - - - - - 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 - - - - Wrap a command and return the result. - - The command to be wrapped - The wrapped command - - - - The test command for the RepeatAttribute - - - - - Initializes a new instance of the class. - - The inner command. - The number of repetitions - - - - Runs the test, saving a TestResult in the supplied TestExecutionContext. - - The context in which the test should run. - A TestResult - - - - 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 - - - - Wrap a command and return the result. - - The command to be wrapped - The wrapped command - - - - The test command for the RetryAttribute - - - - - Initializes a new instance of the class. - - The inner command. - The number of repetitions - - - - Runs the test, saving a TestResult in the supplied TestExecutionContext. - - The context in which the test should run. - A TestResult - - - - Marks a test to use a Sequential join of any argument - data provided. Arguments will be combined into test cases, - taking the next value of each argument until all are used. - - - - - Default constructor - - - - - 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 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 class that contains one-time SetUp - and/or TearDown methods that apply to all the tests in a - namespace or an assembly. - - - - - SetUpFixtureAttribute is used to identify a SetUpFixture - - - - - Build a SetUpFixture from type provided. Normally called for a Type - on which the attribute has been placed. - - The type info of the fixture to be used. - A SetUpFixture object as a TestSuite. - - - - 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. - - - - - Provide actions to execute before and after tests. - - - - - Executed before each test is run - - The test that is going to be run. - - - - Executed after each test is run - - The test that has just been run. - - - - Provides the target for the action attribute - - - - - 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")] - public void TestDescriptionMethod() - {} - } - - - - - - Descriptive text for this test - - - - - The author of this test - - - - - The type that this test is testing - - - - - Modifies a test by adding a description, if not already set. - - The test to modify - - - - Gets or sets the expected result. - - The result. - - - - Returns true if an expected result has been set - - - - - Construct a TestMethod from a given method. - - The method for which a test is to be constructed. - The suite to which the test will be added. - A TestMethod - - - - TestCaseAttribute is used to mark parameterized test cases - and provide them with their arguments. - - - - - 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 or sets the name of the test. - - The name of the test. - - - - Gets or sets the RunState of this test case. - - - - - Gets the list of arguments to a test case - - - - - Gets the properties of the test case - - - - - Gets or sets the expected result. - - The result. - - - - Returns true if the expected result has been set - - - - - Gets or sets the description. - - The description. - - - - The author of this test - - - - - The type that this test is testing - - - - - Gets or sets the reason for ignoring the test - - - - - Gets or sets a value indicating whether this is explicit. - - - true if explicit; otherwise, false. - - - - - Gets or sets the reason for not running the test. - - The reason. - - - - Gets or sets the ignore reason. When set to a non-null - non-empty value, the test is marked as ignored. - - The ignore reason. - - - - Gets and sets the category for this test case. - May be a comma-separated list of categories. - - - - - Performs several special conversions allowed by NUnit in order to - permit arguments with types that cannot be used in the constructor - of an Attribute such as TestCaseAttribute or to simplify their use. - - The arguments to be converted - The ParameterInfo array for the method - - - - Construct one or more TestMethods from a given MethodInfo, - using available parameter data. - - The MethodInfo for which tests are to be constructed. - The suite to which the tests will be added. - One or more TestMethods - - - - TestCaseSourceAttribute indicates the source to be used to - provide test cases for a test method. - - - - - Construct with the name of the method, property or field that will provide data - - The name of a static method, property or field that will provide data. - - - - Construct with a Type and name - - The Type that will provide data - The name of a static method, property or field that will provide data. - - - - Construct with a Type - - The type 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 - - - - - Gets or sets the category associated with every fixture created from - this attribute. May be a single category or a comma-separated list. - - - - - Construct one or more TestMethods from a given MethodInfo, - using available parameter data. - - The IMethod for which tests are to be constructed. - The suite to which the tests will be added. - One or more TestMethods - - - - Returns a set of ITestCaseDataItems for use as arguments - to a parameterized test method. - - The method for which data is needed. - - - - - TestFixtureAttribute is used to mark a class that represents a TestFixture. - - - - - 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. - - - - - - Gets or sets the name of the test. - - The name of the test. - - - - Gets or sets the RunState of this test fixture. - - - - - The arguments originally provided to the attribute - - - - - Properties pertaining to this fixture - - - - - Get or set the type arguments. If not set - explicitly, any leading arguments that are - Types are taken as type arguments. - - - - - Descriptive text for this fixture - - - - - The author of this fixture - - - - - The type that this fixture is testing - - - - - Gets or sets the ignore reason. May set RunState as a side effect. - - The ignore reason. - - - - Gets or sets the reason for not running the fixture. - - The reason. - - - - Gets or sets the ignore reason. When set to a non-null - non-empty value, the test is marked as ignored. - - The ignore reason. - - - - Gets or sets a value indicating whether this is explicit. - - - true if explicit; otherwise, false. - - - - - Gets and sets the category for this fixture. - May be a comma-separated list of categories. - - - - - Build a fixture from type provided. Normally called for a Type - on which the attribute has been placed. - - The type info of the fixture to be used. - A an IEnumerable holding one TestFixture object. - - - - Attribute used to identify a method that is - called before any tests in a fixture are run. - - - - - TestCaseSourceAttribute indicates the source to be used to - provide test fixture instances for a test class. - - - - - Error message string is public so the tests can use it - - - - - Construct with the name of the method, property or field that will provide data - - The name of a static method, property or field that will provide data. - - - - Construct with a Type and name - - The Type that will provide data - The name of a static method, property or field that will provide data. - - - - Construct with a Type - - The type 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 - - - - - Gets or sets the category associated with every fixture created from - this attribute. May be a single category or a comma-separated list. - - - - - Construct one or more TestFixtures from a given Type, - using available parameter data. - - The TypeInfo for which fixures are to be constructed. - One or more TestFixtures as TestSuite - - - - Returns a set of ITestFixtureData items for use as arguments - to a parameterized test fixture. - - The type for which data is needed. - - - - - 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. - - - - - Indicates which class the test or test fixture is testing - - - - - Initializes a new instance of the class. - - The type that is being tested. - - - - Initializes a new instance of the class. - - The type that is being tested. - - - - 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")] - public void TestDescriptionMethod() - {} - } - - - - - - Construct the attribute, specifying a combining strategy and source of parameter data. - - - - - 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 - - - - - Constructs for use with an Enum parameter. Will pass every enum - value in to the test. - - - - - 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 - - - - - 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 a static method, property or field 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 a static 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 - - - - - Gets an enumeration of data items for use as arguments - for a test method parameter. - - The parameter for which data is needed - - An enumeration containing individual data items - - - - - A set of Assert methods operating 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 - 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 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 - 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 - 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 - 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 - 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 - 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 - 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 - Arguments to be used in formatting the message - - - - Asserts that the superset does not contain the subset - - The IEnumerable subset to be considered - The IEnumerable superset to be considered - - - - Asserts that the superset does not contain the subset - - The IEnumerable subset to be considered - The IEnumerable superset to be considered - The message that will be displayed on failure - Arguments to be used in formatting the message - - - - Asserts that the superset contains the subset. - - The IEnumerable subset to be considered - The IEnumerable superset to be considered - - - - Asserts that the superset contains the subset. - - The IEnumerable subset to be considered - The IEnumerable superset to be considered - The message that will be displayed on failure - Arguments to be used in formatting the message - - - - Asserts that the subset does not contain the superset - - The IEnumerable superset to be considered - The IEnumerable subset to be considered - - - - Asserts that the subset does not contain the superset - - 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 the subset contains the superset. - - The IEnumerable superset to be considered - The IEnumerable subset to be considered - - - - Asserts that the subset contains the superset. - - 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 - - - - 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 - - - - 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 - - - - 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 - - - - Provides a platform-independent methods for getting attributes - for use by AttributeConstraint and AttributeExistsConstraint. - - - - - Gets the custom attributes from the given object. - - Portable libraries do not have an ICustomAttributeProvider, so we need to cast to each of - it's direct subtypes and try to get attributes off those instead. - The actual. - Type of the attribute. - if set to true [inherit]. - A list of the given attribute on the given object. - - - - Specifies flags that control binding and the way in which the search for members - and types is conducted by reflection. - - - - - Specifies no binding flag. - - - - - Specifies that only members declared at the level of the supplied type's hierarchy - should be considered. Inherited members are not considered. - - - - - Specifies that instance members are to be included in the search. - - - - - Specifies that static members are to be included in the search. - - - - - Specifies that public members are to be included in the search. - - - - - Specifies that non-public members are to be included in the search. - - - - - Specifies that public and protected static members up the hierarchy should be - returned. Private static members in inherited classes are not returned. Static - members include fields, methods, events, and properties. Nested types are not - returned. - - - - - A MarshalByRefObject that lives forever - - - - - Some path based methods that we need even in the Portable framework which - does not have the System.IO.Path class - - - - - Windows directory separator - - - - - Alternate directory separator - - - - - A volume separator character. - - - - - Get the file name and extension of the specified path string. - - The path string from which to obtain the file name and extension. - The filename as a . If the last character of is a directory or volume separator character, this method returns . If is null, this method returns null. - - - - Provides NUnit specific extensions to aid in Reflection - across multiple frameworks - - - This version of the class allows direct calls on Type on - those platforms that would normally require use of - GetTypeInfo(). - - - - - Returns an array of generic arguments for the give type - - - - - - - Gets the constructor with the given parameter types - - - - - - - - Gets the constructors for a type - - - - - - - - - - - - - - - - - - - - - - - Gets declared or inherited interfaces on this type - - - - - - - Gets the member on a given type by name. BindingFlags ARE IGNORED. - - - - - - - - - Gets all members on a given type. BindingFlags ARE IGNORED. - - - - - - - - Gets field of the given name on the type - - - - - - - - Gets property of the given name on the type - - - - - - - - Gets property of the given name on the type - - - - - - - - - Gets the method with the given name and parameter list - - - - - - - - Gets the method with the given name and parameter list - - - - - - - - - Gets the method with the given name and parameter list - - - - - - - - - Gets public methods on the given type - - - - - - - Gets methods on a type - - - - - - - - Determines if one type can be implicitly converted from another - - - - - - - - Extensions to the various MemberInfo derived classes - - - - - Returns the get method for the given property - - - - - - - - Returns an array of custom attributes of the specified type applied to this member - - Portable throws an argument exception if T does not - derive from Attribute. NUnit uses interfaces to find attributes, thus - this method - - - - Returns an array of custom attributes of the specified type applied to this parameter - - - - - Returns an array of custom attributes of the specified type applied to this assembly - - - - - Extensions for Assembly that are not available in portable - - - - - DNX does not have a version of GetCustomAttributes on Assembly that takes an inherit - parameter since it doesn't make sense on Assemblies. This version just ignores the - inherit parameter. - - The assembly - The type of attribute you are looking for - Ignored - - - - - Gets the types in a given assembly - - - - - - - This class is a System.Diagnostics.Stopwatch on operating systems that support it. On those that don't, - it replicates the functionality at the resolution supported. - - - - - Gets the total elapsed time measured by the current instance, in milliseconds. - - - - - Gets a value indicating whether the Stopwatch timer is running. - - - - - Gets the current number of ticks in the timer mechanism. - - - If the Stopwatch class uses a high-resolution performance counter, GetTimestamp returns the current - value of that counter. If the Stopwatch class uses the system timer, GetTimestamp returns the current - DateTime.Ticks property of the DateTime.Now instance. - - A long integer representing the tick counter value of the underlying timer mechanism. - - - - Stops time interval measurement and resets the elapsed time to zero. - - - - - Starts, or resumes, measuring elapsed time for an interval. - - - - - Initializes a new Stopwatch instance, sets the elapsed time property to zero, and starts measuring elapsed time. - - A Stopwatch that has just begun measuring elapsed time. - - - - Stops measuring elapsed time for an interval. - - - - - Returns a string that represents the current object. - - - A string that represents the current object. - - - - - Gets the frequency of the timer as the number of ticks per second. - - - - - Indicates whether the timer is based on a high-resolution performance counter. - - - - - 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. - - - - - - - AndConstraint succeeds only if both members succeed. - - - - - Create an AndConstraint from two other constraints - - The first constraint - The second constraint - - - - Gets text describing a 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 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 - - - - AssignableFromConstraint is used to test that an object - can be assigned from a given Type. - - - - - Construct an AssignableFromConstraint for the type provided - - - - - - Apply the constraint to an actual value, returning true if it succeeds - - The actual argument - True if the constraint succeeds, otherwise false. - - - - AssignableToConstraint is used to test that an object - can be assigned to a given Type. - - - - - Construct an AssignableToConstraint for the type provided - - - - - - Apply the constraint to an actual value, returning true if it succeeds - - The actual argument - True if the constraint succeeds, otherwise false. - - - - 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 attribute - Type and base constraint. - - - - - - - Determines whether the Type or other provider has the - expected attribute and if its value matches the - additional constraint specified. - - - - - Returns a string representation of the constraint. - - - - - AttributeExistsConstraint tests for the presence of a - specified attribute on a Type. - - - - - Constructs an AttributeExistsConstraint for a specific attribute Type - - - - - - The Description of what this constraint tests, for - use in messages and in the ConstraintResult. - - - - - Tests whether the object provides the expected attribute. - - A Type, MethodInfo, or other ICustomAttributeProvider - True if the expected attribute is present, otherwise false - - - - BinaryConstraint is the abstract base of all constraints - that combine two other constraints in some fashion. - - - - - The first constraint being combined - - - - - The second constraint being combined - - - - - Construct a BinaryConstraint from two other constraints - - The first constraint - The second constraint - - - - 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 - - - - - - - CollectionContainsConstraint is used to test whether a collection - contains an expected object as a member. - - - - - Construct a CollectionContainsConstraint - - - - - - The Description of what this constraint tests, for - use in messages and in the ConstraintResult. - - - - - Gets the expected object - - - - - Test whether the expected item is contained in the collection - - - - - - - CollectionEquivalentConstraint is used to determine whether two - collections are equivalent. - - - - - Construct a CollectionEquivalentConstraint - - - - - - The Description of what this constraint tests, for - use in messages and in the ConstraintResult. - - - - - Test whether two collections are equivalent - - - - - - - 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 ignore case and return 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. - - - - Compares two collection members for equality - - - - - Return a new CollectionTally for use in making tests - - The collection to be included in the tally - - - - CollectionOrderedConstraint is used to test whether a collection is ordered. - - - - - Construct a CollectionOrderedConstraint - - - - - If used performs a reverse comparison - - - - - Modifies the constraint to use an and returns self. - - - - - Modifies the constraint to use an and returns self. - - - - - Modifies the constraint to use a and returns self. - - - - - Modifies the constraint to test ordering by the value of - a specified property and returns self. - - - - - The Description of what this constraint tests, for - use in messages and in the ConstraintResult. - - - - - Test whether the collection is ordered - - - - - - - Returns the string representation of the constraint. - - - - - - 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 - - - - The Description of what this constraint tests, for - use in messages and in the ConstraintResult. - - - - - Test whether the actual collection is a subset of - the expected collection provided. - - - - - - - CollectionSupersetConstraint is used to determine whether - one collection is a superset of another - - - - - Construct a CollectionSupersetConstraint - - The collection that the actual value is expected to be a superset of - - - - The Description of what this constraint tests, for - use in messages and in the ConstraintResult. - - - - - Test whether the actual collection is a superset of - the expected collection provided. - - - - - - - CollectionTally counts (tallies) the number of - occurrences of each object in one or more enumerations. - - - - - Construct a CollectionTally object from a comparer and a collection - - - - - The number of objects remaining in the tally - - - - - 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 - - - - ComparisonAdapter class centralizes all comparisons of - _values in NUnit, adapting to the use of any provided - , - or . - - - - - Gets the default ComparisonAdapter, which wraps an - NUnitComparer object. - - - - - Returns a ComparisonAdapter that wraps an - - - - - Returns a ComparisonAdapter that wraps an - - - - - Returns a ComparisonAdapter that wraps a - - - - - Compares two objects - - - - - Construct a default ComparisonAdapter - - - - - Construct a ComparisonAdapter for an - - - - - Compares two objects - - - - - - - - ComparerAdapter extends and - allows use of an or - to actually perform the comparison. - - - - - Construct a ComparisonAdapter for an - - - - - Compare a Type T to an object - - - - - Construct a ComparisonAdapter for a - - - - - Compare a Type T to an object - - - - - 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 - - - - - 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 - - - - Modifies the constraint to use an and returns self - - The comparer used for comparison tests - A constraint modified to use the given comparer - - - - Modifies the constraint to use an and returns self - - The comparer used for comparison tests - A constraint modified to use the given comparer - - - - Modifies the constraint to use a and returns self - - The comparer used for comparison tests - A constraint modified to use the given comparer - - - - Delegate used to delay evaluation of the actual value - to be used in evaluating a constraint - - - - - The Constraint class is the base of all built-in constraints - within NUnit. It provides the operator overloads used to combine - constraints. - - - - - Construct a constraint with optional arguments - - Arguments to be saved - - - - 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. - - - - - The Description of what this constraint tests, for - use in messages and in the ConstraintResult. - - - - - Arguments provided to this Constraint, for use in - formatting the description. - - - - - The ConstraintBuilder holding this constraint - - - - - Applies the constraint to an actual value, returning a ConstraintResult. - - The value to be tested - A ConstraintResult - - - - Applies the constraint to 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 - A ConstraintResult - - - - 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 - A ConstraintResult - - - - 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 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. - - - - - Resolves any pending operators and returns the resolved 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 reorganized. a ConstraintStack holds - input constraints as well as the results of each - operator applied. - - - - - OperatorStack is a type-safe stack for holding ConstraintOperators - - - - - Initializes a new instance of the class. - - The ConstraintBuilder using this stack. - - - - Gets a value indicating whether this is empty. - - true if empty; otherwise, false. - - - - Gets the topmost operator without modifying the stack. - - - - - Pushes the specified operator onto the stack. - - The operator to put onto the stack. - - - - Pops the topmost operator from the stack. - - The topmost operator on the stack - - - - ConstraintStack is a type-safe stack for holding Constraints - - - - - Initializes a new instance of the class. - - The ConstraintBuilder using this stack. - - - - Gets a value indicating whether this is empty. - - true if empty; otherwise, false. - - - - Pushes the specified constraint. As a side effect, - the constraint's Builder field is set to the - ConstraintBuilder owning this stack. - - The constraint to put onto the stack - - - - Pops this topmost constraint from the stack. - As a side effect, the constraint's Builder - field is set to null. - - The topmost contraint on the stack - - - - 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 expression 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. - - - - - 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 - reorganized. When a constraint is appended, it is returned as the - value of the operation so that modifiers may be applied. However, - any partially built expression is attached to the constraint for - later resolution. When an operator is appended, the partial - expression is returned. If it's a self-resolving operator, then - a ResolvableConstraintExpression is returned. - - - - - 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. Note that the constraint - is not reduced at this time. For example, if there - is a NotOperator on the stack we don't reduce and - return a NotConstraint. The original constraint must - be returned because it may support modifiers that - are yet to be applied. - - - - - 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 ConstraintExpression, which will apply - the following constraint to all members of a collection, - succeeding only if a specified number of them succeed. - - - - - 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 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 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. - - - - - With is currently a NOP - reserved for future use. - - - - - 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 for null - - - - - Returns a constraint that tests for True - - - - - Returns a constraint that tests for False - - - - - Returns a constraint that tests for a positive value - - - - - Returns a constraint that tests for a negative value - - - - - 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 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 supplied argument - - - - - Returns a constraint that tests whether the - actual value is greater than or equal to the supplied argument - - - - - Returns a constraint that tests whether the - actual value is greater than or equal to the supplied argument - - - - - Returns a constraint that tests whether the - actual value is less than the supplied argument - - - - - Returns a constraint that tests whether the - actual value is less than or equal to the supplied argument - - - - - Returns a constraint that tests whether the - actual value is less than or equal to the supplied 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 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 tests whether the actual value - is a superset of the collection supplied as an argument. - - - - - Returns a constraint that tests whether a collection is ordered - - - - - 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 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 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 ends with the substring supplied as an argument. - - - - - Returns a constraint that succeeds if the actual - value matches the regular expression supplied as an argument. - - - - - Returns a constraint that succeeds if the actual - value matches the regular expression supplied as an argument. - - - - - Returns a constraint that succeeds if the actual - value matches the regular expression supplied as an argument. - - - - - Returns a constraint that tests whether the actual value falls - within a specified range. - - - - - Helper class with properties and methods that supply - a number of constraints used in Asserts. - - - - - 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 ConstraintExpression, which will apply - the following constraint to all members of a collection, - succeeding only if a specified number of them succeed. - - - - - 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 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 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 for null - - - - - Returns a constraint that tests for True - - - - - Returns a constraint that tests for False - - - - - Returns a constraint that tests for a positive value - - - - - Returns a constraint that tests for a negative value - - - - - 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 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 supplied argument - - - - - Returns a constraint that tests whether the - actual value is greater than or equal to the supplied argument - - - - - Returns a constraint that tests whether the - actual value is greater than or equal to the supplied argument - - - - - Returns a constraint that tests whether the - actual value is less than the supplied argument - - - - - Returns a constraint that tests whether the - actual value is less than or equal to the supplied argument - - - - - Returns a constraint that tests whether the - actual value is less than or equal to the supplied 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 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 tests whether the actual value - is a superset of the collection supplied as an argument. - - - - - Returns a constraint that tests whether a collection is ordered - - - - - 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 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 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 regular expression supplied as an argument. - - - - - Returns a constraint that succeeds if the actual - value matches the regular expression supplied as an argument. - - - - - Returns a constraint that succeeds if the actual - value matches the regular expression 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 actual value falls - within a specified range. - - - - - ConstraintStatus represents the status of a ConstraintResult - returned by a Constraint being applied to an actual value. - - - - - The status has not yet been set - - - - - The constraint succeeded - - - - - The constraint failed - - - - - An error occured in applying the constraint (reserved for future use) - - - - - Contain the result of matching a against an actual value. - - - - - Constructs a for a particular . - - The Constraint to which this result applies. - The actual value to which the Constraint was applied. - - - - Constructs a for a particular . - - The Constraint to which this result applies. - The actual value to which the Constraint was applied. - The status of the new ConstraintResult. - - - - Constructs a for a particular . - - The Constraint to which this result applies. - The actual value to which the Constraint was applied. - If true, applies a status of Success to the result, otherwise Failure. - - - - The actual value that was passed to the method. - - - - - Gets and sets the ResultStatus for this result. - - - - - True if actual value meets the Constraint criteria otherwise false. - - - - - Display friendly name of the constraint. - - - - - Description of the constraint may be affected by the state the constraint had - when was performed against the actual value. - - - - - Write the failure message to the MessageWriter provided - as an argument. The default implementation simply passes - the result 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 - - - - 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 - - - - 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. - - - - The Description of what this constraint tests, for - use in messages and in the ConstraintResult. - - - - - Flag the constraint to ignore case and return self. - - - - - Test whether the constraint is satisfied by a given value - - The value to be tested - True for success, false for failure - - - - DictionaryContainsKeyConstraint is used to test whether a dictionary - contains an expected object as a key. - - - - - Construct a DictionaryContainsKeyConstraint - - - - - - The Description of what this constraint tests, for - use in messages and in the ConstraintResult. - - - - - Test whether the expected key is contained in the dictionary - - - - - DictionaryContainsValueConstraint is used to test whether a dictionary - contains an expected object as a value. - - - - - Construct a DictionaryContainsValueConstraint - - - - - - The Description of what this constraint tests, for - use in messages and in the ConstraintResult. - - - - - Test whether the expected value is contained in the dictionary - - - - - EmptyCollectionConstraint tests whether a collection is empty. - - - - - The Description of what this constraint tests, for - use in messages and in the ConstraintResult. - - - - - Check that the collection is empty - - - - - - - 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. - - - - - The Description of what this constraint tests, for - use in messages and in the ConstraintResult. - - - - - Test whether the constraint is satisfied by a given value - - The value to be tested - True for success, false for failure - - - - EmptyStringConstraint tests whether a string is empty. - - - - - The Description of what this constraint tests, for - use in messages and in the ConstraintResult. - - - - - Test whether the constraint is satisfied by a given value - - The value to be tested - True for success, false for failure - - - - 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. - - - - - - - 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. - - - - - NUnitEqualityComparer used to test equality. - - - - - Initializes a new instance of the class. - - The expected value. - - - - Gets the tolerance for this comparison. - - - The tolerance. - - - - - Gets a value indicating whether to compare case insensitive. - - - true if comparing case insensitive; otherwise, false. - - - - - Gets a value indicating whether or not to clip strings. - - - true if set to clip strings otherwise, false. - - - - - Gets the failure points. - - - The failure points. - - - - - 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. - - - - - Flag the constraint to use a tolerance when determining equality. - - Tolerance value to be used - Self. - - - - Flags the constraint to include - property in comparison of two values. - - - Using this modifier does not allow to use the - constraint modifier. - - - - - 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 - - - - 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 - - - - The Description of what this constraint tests, for - use in messages and in the ConstraintResult. - - - - - The EqualConstraintResult class is tailored for formatting - and displaying the result of an EqualConstraint. - - - - - Construct an EqualConstraintResult - - - - - Write a failure message. Overridden to provide custom - failure messages for EqualConstraint. - - 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 - - - - Display the failure information for two IEnumerables that did not match. - - The MessageWriter on which to display - The expected enumeration. - The actual enumeration - The depth of this failure in a set of nested collections - - - - EqualityAdapter class handles all equality comparisons - that use an , - or a . - - - - - Compares two objects, returning true if they are equal - - - - - Returns true if the two objects can be compared by this adapter. - The base adapter cannot handle IEnumerables except for strings. - - - - - Returns an that wraps an . - - - - - that wraps an . - - - - - Returns an that wraps an . - - - - - Returns true if the two objects can be compared by this adapter. - Generic adapter requires objects of the specified type. - - - - - Returns an that wraps an . - - - - - Returns an that wraps an . - - - - - that wraps an . - - - - - Returns an that wraps a . - - - - - ExactCountConstraint applies another constraint to each - item in a collection, succeeding only if a specified - number of items succeed. - - - - - Construct an ExactCountConstraint on top of an existing constraint - - - - - - - Apply the item constraint to each item in the collection, - succeeding only if the expected number of items pass. - - - - - - - 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. - - - - Apply the constraint to an actual value, returning true if it succeeds - - The actual argument - True if the constraint succeeds, otherwise false. - - - - ExceptionTypeConstraint is a special version of ExactTypeConstraint - used to provided detailed info about the exception thrown in - an error message. - - - - - Constructs an ExceptionTypeConstraint - - - - - Applies the constraint to an actual value, returning a ConstraintResult. - - The value to be tested - A ConstraintResult - - - - FalseConstraint tests that the actual value is false - - - - - Initializes a new instance of the class. - - - - - Test whether the constraint is satisfied by a given value - - The value to be tested - True for success, false for failure - - - 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. - - - - - 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 - - - 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 - - - - - 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. - - - - Interface for all constraints - - - - - The display name of this Constraint for use by ToString(). - - - - - The Description of what this constraint tests, for - use in messages and in the ConstraintResult. - - - - - Arguments provided to this Constraint, for use in - formatting the description. - - - - - The ConstraintBuilder holding this constraint - - - - - Applies the constraint to an actual value, returning a ConstraintResult. - - The value to be tested - A ConstraintResult - - - - Applies the constraint to 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 - A ConstraintResult - - - - 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 - A ConstraintResult - - - - 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 - - - - Apply the constraint to an actual value, returning true if it succeeds - - The actual argument - True if the constraint succeeds, otherwise false. - - - - The IResolveConstraint interface is implemented by all - complete and resolvable constraints and expressions. - - - - - Return the top-level constraint for this expression - - - - - - 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. - - - - 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 - - - - - Abstract method to get the max line length - - - - - 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 failing constraint result - - - - 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 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 - - - - Static methods used in creating messages - - - - - Static string used when strings are clipped - - - - - Formatting strings used for expected and actual _values - - - - - Formats text to represent a generalized value. - - The value - The formatted text - - - - Formats 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 - - - - 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 - - - - NaNConstraint tests that the actual value is a double or float NaN - - - - - The Description of what this constraint tests, for - use in messages and in the ConstraintResult. - - - - - Test that the actual value is an NaN - - - - - - - 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. - - - - - - - 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 - - - - NullConstraint tests that the actual value is null - - - - - Initializes a new instance of the class. - - - - - Applies the constraint to an actual value, returning a ConstraintResult. - - The value to be tested - A ConstraintResult - - - - 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 - - - - NUnitComparer encapsulates NUnit's default behavior - in comparing two objects. - - - - - Returns the default NUnitComparer. - - - - - Compares two objects - - - - - - - - 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 - - - - - Comparison objects used in comparisons for some constraints. - - - - - List of points at which a failure occurred. - - - - - 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 the list of external comparers to be used to - test for equality. They are applied to members of - collections, in place of NUnit's own logic. - - - - - Gets the list of failure points for the last Match performed. - The list consists of objects to be interpreted by the caller. - This generally means that the caller may only make use of - objects it has placed on the list at a particular depthy. - - - - - Flags the comparer to include - property in comparison of two values. - - - Using this modifier does not allow to use the - modifier. - - - - - Compares two objects for equality within a tolerance. - - - - - Helper method to compare two arrays - - - - - FailurePoint class represents one point of failure - in an equality test. - - - - - The location of the failure - - - - - The expected value - - - - - The actual value - - - - - Indicates whether the expected value is valid - - - - - Indicates whether the actual value is valid - - - - - 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. - - - - - Operator that requires both it's arguments to succeed - - - - - Construct an AndOperator - - - - - Apply the operator to produce an AndConstraint - - - - - 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. - - - - - 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. - - - - - - Gets the left precedence of the operator - - - - - Gets the right precedence of the operator - - - - - Abstract method that produces a constraint by applying - the operator to its left and right constraint arguments. - - - - - Abstract base for operators that indicate how to - apply a constraint to items in a collection. - - - - - Constructs a CollectionOperator - - - - - 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. - - - - - The syntax element preceding this operator - - - - - The syntax element following 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. - - - - - 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. - - - - - - Represents a constraint that succeeds if the specified - count of members of a collection match a base constraint. - - - - - Construct an ExactCountOperator for a specified count - - The expected count - - - - Returns a constraint that will apply the argument - to the members of a collection, succeeding if - none 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. - - - - - Negates the test of the constraint it wraps. - - - - - Constructs a new NotOperator - - - - - Returns a NotConstraint applied to its argument. - - - - - Operator that requires at least one of it's arguments to succeed - - - - - Construct an OrOperator - - - - - Apply the operator to produce an OrConstraint - - - - - 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. - - - - - - - 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. - - - - - Gets the name of the property to which the operator applies - - - - - 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. - - - - - - Abstract base class for operators that are able to reduce to a - constraint whether or not another syntactic element follows. - - - - - 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. - - - - - 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. - - - - - Represents a constraint that simply wraps the - constraint provided as an argument, without any - further functionality, but which modifies the - order of evaluation because of its precedence. - - - - - Constructor for the WithOperator - - - - - Returns a constraint that wraps its argument - - - - - OrConstraint succeeds if either member succeeds - - - - - Create an OrConstraint from two other constraints - - The first constraint - The second constraint - - - - Gets text describing a 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 - - - - Predicate constraint wraps a Predicate in a constraint, - returning success if the predicate is true. - - - - - Construct a PredicateConstraint from a predicate - - - - - Gets text describing a constraint - - - - - Determines whether the predicate succeeds when applied - to the actual value. - - - - - Abstract base class used for prefixes - - - - - The base constraint - - - - - Prefix used in forming the constraint description - - - - - Construct given a base constraint - - - - - - The Description of what this constraint tests, for - use in messages and in the ConstraintResult. - - - - - PropertyConstraint extracts a named property and uses - its value as the actual value for a chained 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 - - - - Returns the string representation of the constraint. - - - - - - 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 value - of the property. The two constraints are now separate. - - - - - Initializes a new instance of the class. - - The name of the property. - - - - The Description of what this constraint tests, for - use in messages and in the ConstraintResult. - - - - - Test whether the property exists for a given object - - The object to be tested - True for success, false for failure - - - - Returns the string representation of the constraint. - - - - - - RangeConstraint tests whether two _values are within a - specified range. - - - - - Initializes a new instance of the class. - - from must be less than or equal to true - Inclusive beginning of the range. Must be less than or equal to to. - Inclusive end of the range. Must be greater than or equal to from. - - - - Gets text describing a constraint - - - - - Test whether the constraint is satisfied by a given value - - The value to be tested - True for success, false for failure - - - - Modifies the constraint to use an and returns self. - - - - - Modifies the constraint to use an and returns self. - - - - - Modifies the constraint to use a and returns self. - - - - - 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 - - - - 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. - - - - - Appends an And Operator to the expression - - - - - Appends an Or operator to the expression. - - - - - Resolve the current expression to a Constraint - - - - - ReusableConstraint wraps a constraint expression after - resolving it so that it can be reused consistently. - - - - - Construct a ReusableConstraint from a constraint expression - - The expression to be resolved and reused - - - - Converts a constraint to a ReusableConstraint - - The constraint to be converted - A ReusableConstraint - - - - Returns a that represents this instance. - - - A that represents this instance. - - - - - Return the top-level constraint for this expression - - - - - - SameAsConstraint tests whether an object is identical to - the object passed to its constructor - - - - - Initializes a new instance of the class. - - The expected object. - - - - The Description of what this constraint tests, for - use in messages and in the ConstraintResult. - - - - - Test whether the constraint is satisfied by a given value - - The value to be tested - True for success, false for failure - - - - 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. - - - - - - - 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. - - - - - - - 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 - - - - - Description of this constraint - - - - - The Description of what this constraint tests, for - use in messages and in the ConstraintResult. - - - - - Constructs a StringConstraint without an expected value - - - - - Constructs a StringConstraint given an expected value - - The expected value - - - - Modify the constraint to ignore case in matching. - - - - - 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 a given string - - The string to be tested - True for success, false for failure - - - - 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 - - - - 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. - - - - Get the actual exception thrown - used by Assert.Throws. - - - - - Gets text describing a constraint - - - - - 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 actual value for a failing constraint test to a - MessageWriter. This override only handles the special message - used when an exception is expected but none is thrown. - - The writer on which the actual value is displayed - - - - ThrowsExceptionConstraint tests that an exception has - been thrown, without any further tests. - - - - - The Description of what this constraint tests, for - use in messages and in the ConstraintResult. - - - - - Executes the code and returns success if an exception is thrown. - - A delegate representing the code to be tested - True if an exception is thrown, otherwise false - - - - ThrowsNothingConstraint tests that a delegate does not - throw an exception. - - - - - Gets text describing a constraint - - - - - Test whether the constraint is satisfied by a given value - - The value to be tested - True if no exception is thrown, otherwise false - - - - Applies the constraint to 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 - A ConstraintResult - - - - 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. - - - - - Returns a default Tolerance object, equivalent to - specifying an exact match unless - is set, in which case, the - will be used. - - - - - Returns an empty Tolerance object, equivalent to - specifying an exact match even if - is set. - - - - - Constructs a linear tolerance of a specified amount - - - - - Constructs a tolerance given an amount and - - - - - Gets the for the current Tolerance - - - - - Tests that the current Tolerance is linear with a - numeric value, throwing an exception if it is not. - - - - - 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 as the amount, using - the current amount as a number of days. - - - - - Returns a new tolerance with a as the amount, using - the current amount as a number of hours. - - - - - Returns a new tolerance with a as the amount, using - the current amount as a number of minutes. - - - - - Returns a new tolerance with a as the amount, using - the current amount as a number of seconds. - - - - - Returns a new tolerance with a as the amount, using - the current amount as a number of milliseconds. - - - - - Returns a new tolerance with a as the amount, using - the current amount as a number of clock ticks. - - - - - Returns true if the current tolerance has not been set or is using the . - - - - - 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. - - - - - TrueConstraint tests that the actual value is true - - - - - Initializes a new instance of the class. - - - - - Test whether the constraint is satisfied by a given value - - The value to be tested - True for success, false for failure - - - - TypeConstraint is the abstract base for constraints - that take a Type as their expected value. - - - - - The expected Type used by the constraint - - - - - The type of the actual argument to which the constraint was applied - - - - - Construct a TypeConstraint for a given Type - - The expected type for the constraint - Prefix used in forming the constraint description - - - - Applies the constraint to an actual value, returning a ConstraintResult. - - The value to be tested - A ConstraintResult - - - - Apply the constraint to an actual value, returning true if it succeeds - - The actual argument - True if the constraint succeeds, otherwise false. - - - - UniqueItemsConstraint tests whether all the items in a - collection are unique. - - - - - The Description of what this constraint tests, for - use in messages and in the ConstraintResult. - - - - - Check that all items are unique. - - - - - - - Helper class with properties and methods that supply - a number of constraints used in Asserts. - - - - - Returns a new CollectionContainsConstraint checking for the - presence of a particular object in the collection. - - - - - Returns a new DictionaryContainsKeyConstraint checking for the - presence of a particular key in the dictionary. - - - - - Returns a new DictionaryContainsValueConstraint checking for the - presence of a particular value in the dictionary. - - - - - Returns a constraint that succeeds if the actual - value contains the substring supplied as an argument. - - - - - Helper class with properties and methods that supply - a number of constraints used in Asserts. - - - - - Returns a ConstraintExpression that negates any - following constraint. - - - - - 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 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 regular expression supplied as an argument. - - - - - 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 - - - - Gets the ResultState provided by this exception - - - - - Thrown when an assertion failed. - - - - - - - The error message that explains - the reason for the exception - The exception that caused the - current exception - - - - Gets the ResultState provided by this exception - - - - - 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 - - - - Gets the ResultState provided by this exception - - - - - Abstract base for Exceptions that terminate a test and provide a ResultState. - - - - 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 - - - - Gets the ResultState provided by this exception - - - - - Thrown when an assertion failed. - - - - - - - The error message that explains - the reason for the exception - The exception that caused the - current exception - - - - Gets the ResultState provided by this exception - - - - - GlobalSettings is a place for setting default _values used - by the framework in performing asserts. - - - - - Default tolerance for floating point equality - - - - - Helper class with properties and methods that supply - a number of constraints used in Asserts. - - - - - 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 ConstraintExpression, which will apply - the following constraint to all members of a collection, - succeeding only if a specified number of them succeed. - - - - - 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 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 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. - - - - - The IApplyToContext interface is implemented by attributes - that want to make changes to the execution context before - a test is run. - - - - - Apply changes to the execution context - - The execution context - - - - The IApplyToTest interface is implemented by self-applying - attributes that modify the state of a test in some way. - - - - - Modifies a test as defined for the specific attribute. - - The test to modify - - - - CombiningStrategy is the abstract base for classes that - know how to combine values provided for individual test - parameters to create a set of test cases. - - - - - Gets the test cases generated by the CombiningStrategy. - - The test cases. - - - - ICommandWrapper is implemented by attributes and other - objects able to wrap a TestCommand with another command. - - - Attributes or other objects should implement one of the - derived interfaces, rather than this one, since they - indicate in which part of the command chain the wrapper - should be applied. - - - - - Wrap a command and return the result. - - The command to be wrapped - The wrapped command - - - - Objects implementing this interface are used to wrap - the TestMethodCommand itself. They apply after SetUp - has been run and before TearDown. - - - - - Objects implementing this interface are used to wrap - the entire test, including SetUp and TearDown. - - - - - Any ITest that implements this interface is at a level that the implementing - class should be disposed at the end of the test run - - - - - The IFixtureBuilder interface is exposed by a class that knows how to - build a TestFixture from one or more Types. In general, it is exposed - by an attribute, but may be implemented in a helper class used by the - attribute in some cases. - - - - - Build one or more TestFixtures from type provided. At least one - non-null TestSuite must always be returned, since the method is - generally called because the user has marked the target class as - a fixture. If something prevents the fixture from being used, it - will be returned nonetheless, labelled as non-runnable. - - The type info of the fixture to be used. - A TestSuite object or one derived from TestSuite. - - - - IImplyFixture is an empty marker interface used by attributes like - TestAttribute that cause the class where they are used to be treated - as a TestFixture even without a TestFixtureAttribute. - - Marker interfaces are not usually considered a good practice, but - we use it here to avoid cluttering the attribute hierarchy with - classes that don't contain any extra implementation. - - - - - The IMethodInfo class is used to encapsulate information - about a method in a platform-independent manner. - - - - - Gets the Type from which this method was reflected. - - - - - Gets the MethodInfo for this method. - - - - - Gets the name of the method. - - - - - Gets a value indicating whether the method is abstract. - - - - - Gets a value indicating whether the method is public. - - - - - Gets a value indicating whether the method contains unassigned generic type parameters. - - - - - Gets a value indicating whether the method is a generic method. - - - - - Gets a value indicating whether the MethodInfo represents the definition of a generic method. - - - - - Gets the return Type of the method. - - - - - Gets the parameters of the method. - - - - - - Returns the Type arguments of a generic method or the Type parameters of a generic method definition. - - - - - Replaces the type parameters of the method with the array of types provided and returns a new IMethodInfo. - - The type arguments to be used - A new IMethodInfo with the type arguments replaced - - - - Invokes the method, converting any TargetInvocationException to an NUnitException. - - The object on which to invoke the method - The argument list for the method - The return value from the invoked method - - - - The IDataPointProvider interface is used by extensions - that provide data for a single test parameter. - - - - - Determine whether any data is available for a parameter. - - An IParameterInfo representing one - argument to a parameterized test - True if any data is available, otherwise false. - - - - Return an IEnumerable providing data for use with the - supplied parameter. - - An IParameterInfo representing one - argument to a parameterized test - An IEnumerable providing the required data - - - - The IParameterDataSource interface is implemented by types - that can provide data for a test method parameter. - - - - - Gets an enumeration of data items for use as arguments - for a test method parameter. - - The parameter for which data is needed - An enumeration containing individual data items - - - - The IParameterInfo interface is an abstraction of a .NET parameter. - - - - - Gets a value indicating whether the parameter is optional - - - - - Gets an IMethodInfo representing the method for which this is a parameter - - - - - Gets the underlying .NET ParameterInfo - - - - - Gets the Type of the parameter - - - - - A PropertyBag represents a collection of name/value pairs - that allows duplicate entries with the same key. Methods - are provided for adding a new pair as well as for setting - a key to a single value. All keys are strings but _values - may be of any type. Null _values are not permitted, since - a null entry represents the absence of the key. - - The entries in a PropertyBag are of two kinds: those that - take a single value and those that take multiple _values. - However, the PropertyBag has no knowledge of which entries - fall into each category and the distinction is entirely - up to the code using the PropertyBag. - - When working with multi-valued properties, client code - should use the Add method to add name/value pairs and - indexing to retrieve a list of all _values for a given - key. For example: - - bag.Add("Tag", "one"); - bag.Add("Tag", "two"); - Assert.That(bag["Tag"], - Is.EqualTo(new string[] { "one", "two" })); - - When working with single-valued propeties, client code - should use the Set method to set the value and Get to - retrieve the value. The GetSetting methods may also be - used to retrieve the value in a type-safe manner while - also providing default. For example: - - bag.Set("Priority", "low"); - bag.Set("Priority", "high"); // replaces value - Assert.That(bag.Get("Priority"), - Is.EqualTo("high")); - Assert.That(bag.GetSetting("Priority", "low"), - Is.EqualTo("high")); - - - - - Adds a key/value pair to the property bag - - The key - The value - - - - Sets the value for a key, removing any other - _values that are already in the property set. - - - - - - - Gets a single value for a key, using the first - one if multiple _values are present and returning - null if the value is not found. - - - - - Gets a flag indicating whether the specified key has - any entries in the property set. - - The key to be checked - True if their are _values present, otherwise false - - - - Gets or sets the list of _values for a particular key - - The key for which the _values are to be retrieved or set - - - - Gets a collection containing all the keys in the property set - - - - - The IReflectionInfo interface is implemented by NUnit wrapper objects that perform reflection. - - - - - Returns an array of custom attributes of the specified type applied to this object - - - - - Returns a value indicating whether an attribute of the specified type is defined on this object. - - - - - The ISimpleTestBuilder interface is exposed by a class that knows how to - build a single TestMethod from a suitable MethodInfo Types. In general, - it is exposed by an attribute, but may be implemented in a helper class - used by the attribute in some cases. - - - - - Build a TestMethod from the provided MethodInfo. - - The method to be used as a test - The TestSuite to which the method will be added - A TestMethod object - - - - The ISuiteBuilder interface is exposed by a class that knows how to - build a suite from one or more Types. - - - - - Examine the type and determine if it is suitable for - this builder to use in building a TestSuite. - - Note that returning false will cause the type to be ignored - in loading the tests. If it is desired to load the suite - but label it as non-runnable, ignored, etc., then this - method must return true. - - The type of the fixture to be used - True if the type can be used to build a TestSuite - - - - Build a TestSuite from type provided. - - The type of the fixture to be used - A TestSuite - - - - Common interface supported by all representations - of a test. Only includes informational fields. - The Run method is specifically excluded to allow - for data-only representations of a test. - - - - - Gets the id of the test - - - - - Gets the name of the test - - - - - Gets the fully qualified name of the test - - - - - Gets the name of the class containing this test. Returns - null if the test is not associated with a class. - - - - - Gets the name of the method implementing this test. - Returns null if the test is not implemented as a method. - - - - - Gets the Type of the test fixture, if applicable, or - null if no fixture type is associated with this test. - - - - - Gets an IMethod for the method implementing this test. - Returns null if the test is not implemented as a method. - - - - - Gets the RunState of the test, indicating whether it can be run. - - - - - Count of the test cases ( 1 if this is a test case ) - - - - - Gets the properties of the test - - - - - Gets the parent test, if any. - - The parent test or null if none exists. - - - - Returns true if this is a test suite - - - - - Gets a bool indicating whether the current test - has any descendant tests. - - - - - Gets this test's child tests - - A list of child tests - - - - Gets a fixture object for running this test. - - - - - The ITestBuilder interface is exposed by a class that knows how to - build one or more TestMethods from a MethodInfo. In general, it is exposed - by an attribute, which has additional information available to provide - the necessary test parameters to distinguish the test cases built. - - - - - Build one or more TestMethods from the provided MethodInfo. - - The method to be used as a test - The TestSuite to which the method will be added - A TestMethod object - - - - The ITestCaseBuilder interface is exposed by a class that knows how to - build a test case from certain methods. - - - This interface is not the same as the ITestCaseBuilder interface in NUnit 2.x. - We have reused the name because the two products don't interoperate at all. - - - - - Examine the method and determine if it is suitable for - this builder to use in building a TestCase to be - included in the suite being populated. - - Note that returning false will cause the method to be ignored - in loading the tests. If it is desired to load the method - but label it as non-runnable, ignored, etc., then this - method must return true. - - The test method to examine - The suite being populated - True is the builder can use this method - - - - Build a TestCase from the provided MethodInfo for - inclusion in the suite being constructed. - - The method to be used as a test case - The test suite being populated, or null - A TestCase or null - - - - The ITestCaseData interface is implemented by a class - that is able to return complete testcases for use by - a parameterized test method. - - - - - Gets the expected result of the test case - - - - - Returns true if an expected result has been set - - - - - The ITestData interface is implemented by a class that - represents a single instance of a parameterized test. - - - - - Gets the name to be used for the test - - - - - Gets the RunState for this test case. - - - - - Gets the argument list to be provided to the test - - - - - Gets the property dictionary for the test case - - - - - Interface to be implemented by filters applied to tests. - The filter applies when running the test, after it has been - loaded, since this is the only time an ITest exists. - - - - - Determine if a particular test passes the filter criteria. Pass - may examine the parents and/or descendants of a test, depending - on the semantics of the particular filter - - The test to which the filter is applied - True if the test passes the filter, otherwise false - - - - Determine if a test matches the filter expicitly. That is, it must - be a direct match of the test itself or one of it's children. - - The test to which the filter is applied - True if the test matches the filter explicityly, otherwise false - - - - The ITestCaseData interface is implemented by a class - that is able to return the data required to create an - instance of a parameterized test fixture. - - - - - Get the TypeArgs if separately set - - - - - The ITestListener interface is used internally to receive - notifications of significant events while a test is being - run. The events are propagated to clients by means of an - AsyncCallback. NUnit extensions may also monitor these events. - - - - - Called when a test has just started - - The test that is starting - - - - Called when a test has finished - - The result of the test - - - - The ITestResult interface represents the result of a test. - - - - - Gets the ResultState of the test result, which - indicates the success or failure of the test. - - - - - Gets the name of the test result - - - - - Gets the full name of the test result - - - - - Gets the elapsed time for running the test in seconds - - - - - Gets or sets the time the test started running. - - - - - Gets or sets the time the test finished running. - - - - - Gets the message associated with a test - failure or with not running the test - - - - - Gets any stacktrace associated with an - error or failure. Not available in - the Compact Framework 1.0. - - - - - Gets the number of asserts executed - when running the test and all its children. - - - - - Gets the number of test cases that failed - when running the test and all its children. - - - - - Gets the number of test cases that passed - when running the test and all its children. - - - - - Gets the number of test cases that were skipped - when running the test and all its children. - - - - - Gets the number of test cases that were inconclusive - when running the test and all its children. - - - - - Indicates whether this result has any child results. - Accessing HasChildren should not force creation of the - Children collection in classes implementing this interface. - - - - - Gets the the collection of child results. - - - - - Gets the Test to which this result applies. - - - - - Gets any text output written to this result. - - - - - The ITypeInfo interface is an abstraction of a .NET Type - - - - - Gets the underlying Type on which this ITypeInfo is based - - - - - Gets the base type of this type as an ITypeInfo - - - - - Returns true if the Type wrapped is equal to the argument - - - - - Gets the Name of the Type - - - - - Gets the FullName of the Type - - - - - Gets the assembly in which the type is declared - - - - - Gets the Namespace of the Type - - - - - Gets a value indicating whether the type is abstract. - - - - - Gets a value indicating whether the Type is a generic Type - - - - - Gets a value indicating whether the Type has generic parameters that have not been replaced by specific Types. - - - - - Gets a value indicating whether the Type is a generic Type definition - - - - - Gets a value indicating whether the type is sealed. - - - - - Gets a value indicating whether this type is a static class. - - - - - Get the display name for this typeInfo. - - - - - Get the display name for an oject of this type, constructed with specific arguments - - - - - Returns a Type representing a generic type definition from which this Type can be constructed. - - - - - Returns a new ITypeInfo representing an instance of this generic Type using the supplied Type arguments - - - - - Returns a value indicating whether this type has a method with a specified public attribute - - - - - Returns an array of IMethodInfos for methods of this Type - that match the specified flags. - - - - - Returns a value indicating whether this Type has a public constructor taking the specified argument Types. - - - - - Construct an object of this Type, using the specified arguments. - - - - - An object implementing IXmlNodeBuilder is able to build - an XML representation of itself and any children. - - - - - Returns a TNode representing the current object. - - If true, children are included where applicable - A TNode representing the result - - - - Returns a TNode representing the current object after - adding it as a child of the supplied parent node. - - The parent node. - If true, children are included, where applicable - - - - - The ResultState class represents the outcome of running a test. - It contains two pieces of information. The Status of the test - is an enum indicating whether the test passed, failed, was - skipped or was inconclusive. The Label provides a more - detailed breakdown for use by client runners. - - - - - Initializes a new instance of the class. - - The TestStatus. - - - - Initializes a new instance of the class. - - The TestStatus. - The label. - - - - Initializes a new instance of the class. - - The TestStatus. - The stage at which the result was produced - - - - Initializes a new instance of the class. - - The TestStatus. - The label. - The stage at which the result was produced - - - - The result is inconclusive - - - - - The test has been skipped. - - - - - The test has been ignored. - - - - - The test was skipped because it is explicit - - - - - The test succeeded - - - - - The test failed - - - - - The test encountered an unexpected exception - - - - - The test was cancelled by the user - - - - - The test was not runnable. - - - - - A suite failed because one or more child tests failed or had errors - - - - - A suite failed in its OneTimeSetUp - - - - - A suite had an unexpected exception in its OneTimeSetUp - - - - - A suite had an unexpected exception in its OneTimeDown - - - - - Gets the TestStatus for the test. - - The status. - - - - Gets the label under which this test result is - categorized, if any. - - - - - Gets the stage of test execution in which - the failure or other result took place. - - - - - Get a new ResultState, which is the same as the current - one but with the FailureSite set to the specified value. - - The FailureSite to use - A new ResultState - - - - Determines whether the specified , is equal to this instance. - - The to compare with this instance. - - true if the specified is equal to this instance; otherwise, false. - - - - - Returns a hash code for this instance. - - - A hash code for this instance, suitable for use in hashing algorithms and data structures like a hash table. - - - - - Returns a that represents this instance. - - - A that represents this instance. - - - - - The FailureSite enum indicates the stage of a test - in which an error or failure occurred. - - - - - Failure in the test itself - - - - - Failure in the SetUp method - - - - - Failure in the TearDown method - - - - - Failure of a parent test - - - - - Failure of a child test - - - - - The RunState enum indicates whether a test can be executed. - - - - - The test is not runnable. - - - - - The test is runnable. - - - - - The test can only be run explicitly - - - - - The test has been skipped. This value may - appear on a Test when certain attributes - are used to skip the test. - - - - - The test has been ignored. May appear on - a Test, when the IgnoreAttribute is used. - - - - - The TestStatus enum indicates the result of running a test - - - - - The test was inconclusive - - - - - The test has skipped - - - - - The test succeeded - - - - - The test failed - - - - - TNode represents a single node in the XML representation - of a Test or TestResult. It replaces System.Xml.XmlNode and - System.Xml.Linq.XElement, providing a minimal set of methods - for operating on the XML in a platform-independent manner. - - - - - Constructs a new instance of TNode - - The name of the node - - - - Constructs a new instance of TNode with a value - - The name of the node - The text content of the node - - - - Constructs a new instance of TNode with a value - - The name of the node - The text content of the node - Flag indicating whether to use CDATA when writing the text - - - - Gets the name of the node - - - - - Gets the value of the node - - - - - Gets a flag indicating whether the value should be output using CDATA. - - - - - Gets the dictionary of attributes - - - - - Gets a list of child nodes - - - - - Gets the first ChildNode - - - - - Gets the XML representation of this node. - - - - - Create a TNode from it's XML text representation - - The XML text to be parsed - A TNode - - - - Adds a new element as a child of the current node and returns it. - - The element name. - The newly created child element - - - - Adds a new element with a value as a child of the current node and returns it. - - The element name - The text content of the new element - The newly created child element - - - - Adds a new element with a value as a child of the current node and returns it. - The value will be output using a CDATA section. - - The element name - The text content of the new element - The newly created child element - - - - Adds an attribute with a specified name and value to the XmlNode. - - The name of the attribute. - The value of the attribute. - - - - Finds a single descendant of this node matching an xpath - specification. The format of the specification is - limited to what is needed by NUnit and its tests. - - - - - - - Finds all descendants of this node matching an xpath - specification. The format of the specification is - limited to what is needed by NUnit and its tests. - - - - - Writes the XML representation of the node to an XmlWriter - - - - - - Class used to represent a list of XmlResults - - - - - Class used to represent the attributes of a node - - - - - Gets or sets the value associated with the specified key. - Overridden to return null if attribute is not found. - - The key. - Value of the attribute or null - - - - Helper class with properties and methods that supply - a number of constraints used in Asserts. - - - - - 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 a positive value - - - - - Returns a constraint that tests for a negative value - - - - - 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 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 supplied argument - - - - - Returns a constraint that tests whether the - actual value is greater than or equal to the supplied argument - - - - - Returns a constraint that tests whether the - actual value is greater than or equal to the supplied argument - - - - - Returns a constraint that tests whether the - actual value is less than the supplied argument - - - - - Returns a constraint that tests whether the - actual value is less than or equal to the supplied argument - - - - - Returns a constraint that tests whether the - actual value is less than or equal to the supplied 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 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 to the type supplied as an argument. - - - - - Returns a constraint that tests whether the actual value - is assignable to 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 tests whether the actual value - is a superset of the collection supplied as an argument. - - - - - Returns a constraint that tests whether a collection is ordered - - - - - 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 regular expression supplied as an argument. - - - - - Returns a constraint that tests whether the actual value falls - inclusively within a specified range. - - from must be less than or equal to true - Inclusive beginning of the range. Must be less than or equal to to. - Inclusive end of the range. Must be greater than or equal to from. - - - - - When implemented by an attribute, this interface implemented to provide actions to execute before and after tests. - - - - - Executed before each test is run - - The test that is going to be run. - - - - Executed after each test is run - - The test that has just been run. - - - - Provides the target for the action attribute - - The target for the action attribute - - - - The Iz class is a synonym for Is intended for use in VB, - which regards Is as a keyword. - - - - - 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 - - - - - 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 - - - - - 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 - - - - 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 - - - - 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 - - - - 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 - - - - 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 - - - - 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 - - - - 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 - - - - 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 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 - - - - 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 TestCaseData class represents a set of arguments - and other parameter info to be used for a parameterized - test case. It is derived from TestCaseParameters and adds a - fluent syntax for use in initializing the 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 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 - - - - - - - - Marks the test case as explicit. - - - - - Marks the test case as explicit, specifying the reason. - - - - - Ignores this TestCase, specifying the reason. - - The reason. - - - - - Provide the context information of the current test. - This is an adapter for the internal ExecutionContext - class, hiding the internals from the user test. - - - - - Construct a TestContext for an ExecutionContext - - The ExecutionContext to adapt - - - - Get the current test context. This is created - as needed. The user may save the context for - use within a test, but it should not be used - outside the test for which it is created. - - - - - Gets a TextWriter that will send output to the current test result. - - - - - Get a representation of the current test. - - - - - Gets a Representation of the TestResult for the current test. - - - - - Gets the directory to be used for outputting files created - by this test run. - - - - - Gets the random generator. - - - The random generator. - - - - Write the string representation of a boolean value to the current result - - - Write a char to the current result - - - Write a char array to the current result - - - Write the string representation of a double to the current result - - - Write the string representation of an Int32 value to the current result - - - Write the string representation of an Int64 value to the current result - - - Write the string representation of a decimal value to the current result - - - Write the string representation of an object to the current result - - - Write the string representation of a Single value to the current result - - - Write a string to the current result - - - Write the string representation of a UInt32 value to the current result - - - Write the string representation of a UInt64 value to the current result - - - Write a formatted string to the current result - - - Write a formatted string to the current result - - - Write a formatted string to the current result - - - Write a formatted string to the current result - - - Write a line terminator to the current result - - - Write the string representation of a boolean value to the current result followed by a line terminator - - - Write a char to the current result followed by a line terminator - - - Write a char array to the current result followed by a line terminator - - - Write the string representation of a double to the current result followed by a line terminator - - - Write the string representation of an Int32 value to the current result followed by a line terminator - - - Write the string representation of an Int64 value to the current result followed by a line terminator - - - Write the string representation of a decimal value to the current result followed by a line terminator - - - Write the string representation of an object to the current result followed by a line terminator - - - Write the string representation of a Single value to the current result followed by a line terminator - - - Write a string to the current result followed by a line terminator - - - Write the string representation of a UInt32 value to the current result followed by a line terminator - - - Write the string representation of a UInt64 value to the current result followed by a line terminator - - - Write a formatted string to the current result followed by a line terminator - - - Write a formatted string to the current result followed by a line terminator - - - Write a formatted string to the current result followed by a line terminator - - - Write a formatted string to the current result followed by a line terminator - - - - TestAdapter adapts a Test for consumption by - the user test code. - - - - - Construct a TestAdapter for a Test - - The Test to be adapted - - - - Gets the unique Id of a test - - - - - The name of the test, which may or may not be - the same as the method name. - - - - - The name of the method representing the test. - - - - - The FullName of the test - - - - - The ClassName of the test - - - - - The properties of the test. - - - - - ResultAdapter adapts a TestResult for consumption by - the user test code. - - - - - Construct a ResultAdapter for a TestResult - - The TestResult to be adapted - - - - Gets a ResultState representing the outcome of the test. - - - - - Gets the message associated with a test - failure or with not running the test - - - - - Gets any stacktrace associated with an - error or failure. - - - - - Gets the number of test cases that failed - when running the test and all its children. - - - - - Gets the number of test cases that passed - when running the test and all its children. - - - - - Gets the number of test cases that were skipped - when running the test and all its children. - - - - - Gets the number of test cases that were inconclusive - when running the test and all its children. - - - - - The TestFixtureData class represents a set of arguments - and other parameter info to be used for a parameterized - fixture. It is derived from TestFixtureParameters and adds a - fluent syntax for use in initializing the fixture. - - - - - 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. - - - - Marks the test fixture as explicit. - - - - - Marks the test fixture as explicit, specifying the reason. - - - - - Ignores this TestFixture, specifying the reason. - - The reason. - - - - - Helper class with properties and methods that supply - constraints that operate on exceptions. - - - - - 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 ArgumentException - - - - - Creates a constraint specifying an expected ArgumentNUllException - - - - - Creates a constraint specifying an expected InvalidOperationException - - - - - Creates a constraint specifying that no exception is thrown - - - - - 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 - - - - - Env is a static class that provides some of the features of - System.Environment that are not available under all runtimes - - - - - The newline sequence in the current environment. - - - - - Path to the 'My Documents' folder - - - - - Directory used for file output if not specified on commandline. - - - - - PackageSettings is a static class containing constant values that - are used as keys in setting up a TestPackage. These values are used in - the engine and framework. Setting values may be a string, int or bool. - - - - - Flag (bool) indicating whether tests are being debugged. - - - - - Flag (bool) indicating whether to pause execution of tests to allow - the user to attache a debugger. - - - - - The InternalTraceLevel for this run. Values are: "Default", - "Off", "Error", "Warning", "Info", "Debug", "Verbose". - Default is "Off". "Debug" and "Verbose" are synonyms. - - - - - Full path of the directory to be used for work and result files. - This path is provided to tests by the frameowrk TestContext. - - - - - The name of the config to use in loading a project. - If not specified, the first config found is used. - - - - - Bool indicating whether the engine should determine the private - bin path by examining the paths to all the tests. Defaults to - true unless PrivateBinPath is specified. - - - - - The ApplicationBase to use in loading the tests. If not - specified, and each assembly has its own process, then the - location of the assembly is used. For multiple assemblies - in a single process, the closest common root directory is used. - - - - - Path to the config file to use in running the tests. - - - - - Bool flag indicating whether a debugger should be launched at agent - startup. Used only for debugging NUnit itself. - - - - - Indicates how to load tests across AppDomains. Values are: - "Default", "None", "Single", "Multiple". Default is "Multiple" - if more than one assembly is loaded in a process. Otherwise, - it is "Single". - - - - - The private binpath used to locate assemblies. Directory paths - is separated by a semicolon. It's an error to specify this and - also set AutoBinPath to true. - - - - - The maximum number of test agents permitted to run simultneously. - Ignored if the ProcessModel is not set or defaulted to Multiple. - - - - - Indicates how to allocate assemblies to processes. Values are: - "Default", "Single", "Separate", "Multiple". Default is "Multiple" - for more than one assembly, "Separate" for a single assembly. - - - - - Indicates the desired runtime to use for the tests. Values - are strings like "net-4.5", "mono-4.0", etc. Default is to - use the target framework for which an assembly was built. - - - - - Bool flag indicating that the test should be run in a 32-bit process - on a 64-bit system. By default, NUNit runs in a 64-bit process on - a 64-bit system. Ignored if set on a 32-bit system. - - - - - Indicates that test runners should be disposed after the tests are executed - - - - - Bool flag indicating that the test assemblies should be shadow copied. - Defaults to false. - - - - - Integer value in milliseconds for the default timeout value - for test cases. If not specified, there is no timeout except - as specified by attributes on the tests themselves. - - - - - A TextWriter to which the internal trace will be sent. - - - - - A list of tests to be loaded. - - - - - The number of test threads to run for the assembly. If set to - 1, a single queue is used. If set to 0, tests are executed - directly, without queuing. - - - - - The random seed to be used for this assembly. If specified - as the value reported from a prior run, the framework should - generate identical random values for tests as were used for - that run, provided that no change has been made to the test - assembly. Default is a random value itself. - - - - - If true, execution stops after the first error or failure. - - - - - If true, use of the event queue is suppressed and test events are synchronous. - - - - - A shim of the .NET interface for platforms that do not support it. - Used to indicate that a control can be the target of a callback event on the server. - - - - - Processes a callback event that targets a control. - - - - - - Returns the results of a callback event that targets a control. - - - - - - A shim of the .NET attribute for platforms that do not support it. - - - - diff --git a/packages/NUnit.3.0.1/lib/net20/nunit.framework.dll b/packages/NUnit.3.0.1/lib/net20/nunit.framework.dll deleted file mode 100644 index 3151a93f..00000000 Binary files a/packages/NUnit.3.0.1/lib/net20/nunit.framework.dll and /dev/null differ diff --git a/packages/NUnit.3.0.1/lib/net20/nunit.framework.xml b/packages/NUnit.3.0.1/lib/net20/nunit.framework.xml deleted file mode 100644 index ee4d6fdf..00000000 --- a/packages/NUnit.3.0.1/lib/net20/nunit.framework.xml +++ /dev/null @@ -1,16883 +0,0 @@ - - - - nunit.framework - - - - - AssemblyHelper provides static methods for working - with assemblies. - - - - - Gets the path from which the assembly defining a type was loaded. - - The Type. - The path. - - - - Gets the path from which an assembly was loaded. - - The assembly. - The path. - - - - Gets the path to the directory from which an assembly was loaded. - - The assembly. - The path. - - - - Gets the AssemblyName of an assembly. - - The assembly - An AssemblyName - - - - Loads an assembly given a string, which may be the - path to the assembly or the AssemblyName - - - - - - - Gets the assembly path from code base. - - Public for testing purposes - The code base. - - - - - Interface for logging within the engine - - - - - Logs the specified message at the error level. - - The message. - - - - Logs the specified message at the error level. - - The message. - The arguments. - - - - Logs the specified message at the warning level. - - The message. - - - - Logs the specified message at the warning level. - - The message. - The arguments. - - - - Logs the specified message at the info level. - - The message. - - - - Logs the specified message at the info level. - - The message. - The arguments. - - - - Logs the specified message at the debug level. - - The message. - - - - Logs the specified message at the debug level. - - The message. - The arguments. - - - - InternalTrace provides facilities for tracing the execution - of the NUnit framework. Tests and classes under test may make use - of Console writes, System.Diagnostics.Trace or various loggers and - NUnit itself traps and processes each of them. For that reason, a - separate internal trace is needed. - - Note: - InternalTrace uses a global lock to allow multiple threads to write - trace messages. This can easily make it a bottleneck so it must be - used sparingly. Keep the trace Level as low as possible and only - insert InternalTrace writes where they are needed. - TODO: add some buffering and a separate writer thread as an option. - TODO: figure out a way to turn on trace in specific classes only. - - - - - Gets a flag indicating whether the InternalTrace is initialized - - - - - Initialize the internal trace facility using the name of the log - to be written to and the trace level. - - The log name - The trace level - - - - Initialize the internal trace using a provided TextWriter and level - - A TextWriter - The InternalTraceLevel - - - - Get a named Logger - - - - - - Get a logger named for a particular Type. - - - - - InternalTraceLevel is an enumeration controlling the - level of detailed presented in the internal log. - - - - - Use the default settings as specified by the user. - - - - - Do not display any trace messages - - - - - Display Error messages only - - - - - Display Warning level and higher messages - - - - - Display informational and higher messages - - - - - Display debug messages and higher - i.e. all messages - - - - - Display debug messages and higher - i.e. all messages - - - - - A trace listener that writes to a separate file per domain - and process using it. - - - - - Construct an InternalTraceWriter that writes to a file. - - Path to the file to use - - - - Construct an InternalTraceWriter that writes to a - TextWriter provided by the caller. - - - - - - Returns the character encoding in which the output is written. - - The character encoding in which the output is written. - - - - Writes a character to the text string or stream. - - The character to write to the text stream. - - - - Writes a string to the text string or stream. - - The string to write. - - - - Writes a string followed by a line terminator to the text string or stream. - - The string to write. If is null, only the line terminator is written. - - - - Releases the unmanaged resources used by the and optionally releases the managed resources. - - true to release both managed and unmanaged resources; false to release only unmanaged resources. - - - - Clears all buffers for the current writer and causes any buffered data to be written to the underlying device. - - - - - Provides internal logging to the NUnit framework - - - - - Initializes a new instance of the class. - - The name. - The log level. - The writer where logs are sent. - - - - Logs the message at error level. - - The message. - - - - Logs the message at error level. - - The message. - The message arguments. - - - - Logs the message at warm level. - - The message. - - - - Logs the message at warning level. - - The message. - The message arguments. - - - - Logs the message at info level. - - The message. - - - - Logs the message at info level. - - The message. - The message arguments. - - - - Logs the message at debug level. - - The message. - - - - Logs the message at debug level. - - The message. - The message arguments. - - - - The ParameterDataProvider class implements IParameterDataProvider - and hosts one or more individual providers. - - - - - Construct with a collection of individual providers - - - - - Determine whether any data is available for a parameter. - - An IParameterInfo representing one - argument to a parameterized test - True if any data is available, otherwise false. - - - - Return an IEnumerable providing data for use with the - supplied parameter. - - An IParameterInfo representing one - argument to a parameterized test - An IEnumerable providing the required data - - - - Built-in SuiteBuilder for all types of test classes. - - - - - Checks to see if the provided Type is a fixture. - To be considered a fixture, it must be a non-abstract - class with one or more attributes implementing the - IFixtureBuilder interface or one or more methods - marked as tests. - - The fixture type to check - True if the fixture can be built, false if not - - - - Build a TestSuite from TypeInfo provided. - - The fixture type to build - A TestSuite built from that type - - - - We look for attributes implementing IFixtureBuilder at one level - of inheritance at a time. Attributes on base classes are not used - unless there are no fixture builder attributes at all on the derived - class. This is by design. - - The type being examined for attributes - A list of the attributes found. - - - - NUnitTestCaseBuilder is a utility class used by attributes - that build test cases. - - - - - Constructs an - - - - - Builds a single NUnitTestMethod, either as a child of the fixture - or as one of a set of test cases under a ParameterizedTestMethodSuite. - - The MethodInfo from which to construct the TestMethod - The suite or fixture to which the new test will be added - The ParameterSet to be used, or null - - - - - Helper method that checks the signature of a TestMethod and - any supplied parameters to determine if the test is valid. - - Currently, NUnitTestMethods are required to be public, - non-abstract methods, either static or instance, - returning void. They may take arguments but the _values must - be provided or the TestMethod is not considered runnable. - - Methods not meeting these criteria will be marked as - non-runnable and the method will return false in that case. - - The TestMethod to be checked. If it - is found to be non-runnable, it will be modified. - Parameters to be used for this test, or null - True if the method signature is valid, false if not - - The return value is no longer used internally, but is retained - for testing purposes. - - - - - Class that can build a tree of automatic namespace - suites from a group of fixtures. - - - - - NamespaceDictionary of all test suites we have created to represent - namespaces. Used to locate namespace parent suites for fixtures. - - - - - The root of the test suite being created by this builder. - - - - - Initializes a new instance of the class. - - The root suite. - - - - Gets the root entry in the tree created by the NamespaceTreeBuilder. - - The root suite. - - - - Adds the specified fixtures to the tree. - - The fixtures to be added. - - - - Adds the specified fixture to the tree. - - The fixture to be added. - - - - CombinatorialStrategy creates test cases by using all possible - combinations of the parameter data. - - - - - Gets the test cases generated by the CombiningStrategy. - - The test cases. - - - - Provides data from fields marked with the DatapointAttribute or the - DatapointsAttribute. - - - - - Determine whether any data is available for a parameter. - - A ParameterInfo representing one - argument to a parameterized test - - True if any data is available, otherwise false. - - - - - Return an IEnumerable providing data for use with the - supplied parameter. - - A ParameterInfo representing one - argument to a parameterized test - - An IEnumerable providing the required data - - - - - Class to build ether a parameterized or a normal NUnitTestMethod. - There are four cases that the builder must deal with: - 1. The method needs no params and none are provided - 2. The method needs params and they are provided - 3. The method needs no params but they are provided in error - 4. The method needs params but they are not provided - This could have been done using two different builders, but it - turned out to be simpler to have just one. The BuildFrom method - takes a different branch depending on whether any parameters are - provided, but all four cases are dealt with in lower-level methods - - - - - Determines if the method can be used to build an NUnit test - test method of some kind. The method must normally be marked - with an identifying attribute for this to be true. - - Note that this method does not check that the signature - of the method for validity. If we did that here, any - test methods with invalid signatures would be passed - over in silence in the test run. Since we want such - methods to be reported, the check for validity is made - in BuildFrom rather than here. - - An IMethodInfo for the method being used as a test method - True if the builder can create a test case from this method - - - - Build a Test from the provided MethodInfo. Depending on - whether the method takes arguments and on the availability - of test case data, this method may return a single test - or a group of tests contained in a ParameterizedMethodSuite. - - The method for which a test is to be built - A Test representing one or more method invocations - - - - Determines if the method can be used to build an NUnit test - test method of some kind. The method must normally be marked - with an identifying attribute for this to be true. - - Note that this method does not check that the signature - of the method for validity. If we did that here, any - test methods with invalid signatures would be passed - over in silence in the test run. Since we want such - methods to be reported, the check for validity is made - in BuildFrom rather than here. - - An IMethodInfo for the method being used as a test method - The test suite being built, to which the new test would be added - True if the builder can create a test case from this method - - - - Build a Test from the provided MethodInfo. Depending on - whether the method takes arguments and on the availability - of test case data, this method may return a single test - or a group of tests contained in a ParameterizedMethodSuite. - - The method for which a test is to be built - The test fixture being populated, or null - A Test representing one or more method invocations - - - - Builds a ParameterizedMethodSuite containing individual test cases. - - The method for which a test is to be built. - The list of test cases to include. - A ParameterizedMethodSuite populated with test cases - - - - Build a simple, non-parameterized TestMethod for this method. - - The MethodInfo for which a test is to be built - The test suite for which the method is being built - A TestMethod. - - - - NUnitTestFixtureBuilder is able to build a fixture given - a class marked with a TestFixtureAttribute or an unmarked - class containing test methods. In the first case, it is - called by the attribute and in the second directly by - NUnitSuiteBuilder. - - - - - Build a TestFixture from type provided. A non-null TestSuite - must always be returned, since the method is generally called - because the user has marked the target class as a fixture. - If something prevents the fixture from being used, it should - be returned nonetheless, labelled as non-runnable. - - An ITypeInfo for the fixture to be used. - A TestSuite object or one derived from TestSuite. - - - - Overload of BuildFrom called by tests that have arguments. - Builds a fixture using the provided type and information - in the ITestFixtureData object. - - The TypeInfo for which to construct a fixture. - An object implementing ITestFixtureData or null. - - - - - Method to add test cases to the newly constructed fixture. - - The fixture to which cases should be added - - - - Method to create a test case from a MethodInfo and add - it to the fixture being built. It first checks to see if - any global TestCaseBuilder addin wants to build the - test case. If not, it uses the internal builder - collection maintained by this fixture builder. - - The default implementation has no test case builders. - Derived classes should add builders to the collection - in their constructor. - - The method for which a test is to be created - The test suite being built. - A newly constructed Test - - - - PairwiseStrategy creates test cases by combining the parameter - data so that all possible pairs of data items are used. - - - - The number of test cases that cover all possible pairs of test function - parameters values is significantly less than the number of test cases - that cover all possible combination of test function parameters values. - And because different studies show that most of software failures are - caused by combination of no more than two parameters, pairwise testing - can be an effective ways to test the system when it's impossible to test - all combinations of parameters. - - - The PairwiseStrategy code is based on "jenny" tool by Bob Jenkins: - http://burtleburtle.net/bob/math/jenny.html - - - - - - FleaRand is a pseudo-random number generator developed by Bob Jenkins: - http://burtleburtle.net/bob/rand/talksmall.html#flea - - - - - Initializes a new instance of the FleaRand class. - - The seed. - - - - FeatureInfo represents coverage of a single value of test function - parameter, represented as a pair of indices, Dimension and Feature. In - terms of unit testing, Dimension is the index of the test parameter and - Feature is the index of the supplied value in that parameter's list of - sources. - - - - - Initializes a new instance of FeatureInfo class. - - Index of a dimension. - Index of a feature. - - - - A FeatureTuple represents a combination of features, one per test - parameter, which should be covered by a test case. In the - PairwiseStrategy, we are only trying to cover pairs of features, so the - tuples actually may contain only single feature or pair of features, but - the algorithm itself works with triplets, quadruples and so on. - - - - - Initializes a new instance of FeatureTuple class for a single feature. - - Single feature. - - - - Initializes a new instance of FeatureTuple class for a pair of features. - - First feature. - Second feature. - - - - TestCase represents a single test case covering a list of features. - - - - - Initializes a new instance of TestCaseInfo class. - - A number of features in the test case. - - - - PairwiseTestCaseGenerator class implements an algorithm which generates - a set of test cases which covers all pairs of possible values of test - function. - - - - The algorithm starts with creating a set of all feature tuples which we - will try to cover (see method). This set - includes every single feature and all possible pairs of features. We - store feature tuples in the 3-D collection (where axes are "dimension", - "feature", and "all combinations which includes this feature"), and for - every two feature (e.g. "A" and "B") we generate both ("A", "B") and - ("B", "A") pairs. This data structure extremely reduces the amount of - time needed to calculate coverage for a single test case (this - calculation is the most time-consuming part of the algorithm). - - - Then the algorithm picks one tuple from the uncovered tuple, creates a - test case that covers this tuple, and then removes this tuple and all - other tuples covered by this test case from the collection of uncovered - tuples. - - - Picking a tuple to cover - - - There are no any special rules defined for picking tuples to cover. We - just pick them one by one, in the order they were generated. - - - Test generation - - - Test generation starts from creating a completely random test case which - covers, nevertheless, previously selected tuple. Then the algorithm - tries to maximize number of tuples which this test covers. - - - Test generation and maximization process repeats seven times for every - selected tuple and then the algorithm picks the best test case ("seven" - is a magic number which provides good results in acceptable time). - - Maximizing test coverage - - To maximize tests coverage, the algorithm walks thru the list of mutable - dimensions (mutable dimension is a dimension that are not included in - the previously selected tuple). Then for every dimension, the algorithm - walks thru the list of features and checks if this feature provides - better coverage than randomly selected feature, and if yes keeps this - feature. - - - This process repeats while it shows progress. If the last iteration - doesn't improve coverage, the process ends. - - - In addition, for better results, before start every iteration, the - algorithm "scrambles" dimensions - so for every iteration dimension - probes in a different order. - - - - - - Creates a set of test cases for specified dimensions. - - - An array which contains information about dimensions. Each element of - this array represents a number of features in the specific dimension. - - - A set of test cases. - - - - - Gets the test cases generated by this strategy instance. - - A set of test cases. - - - - ParameterDataSourceProvider supplies individual argument _values for - single parameters using attributes implementing IParameterDataSource. - - - - - Determine whether any data is available for a parameter. - - A ParameterInfo representing one - argument to a parameterized test - - True if any data is available, otherwise false. - - - - - Return an IEnumerable providing data for use with the - supplied parameter. - - An IParameterInfo representing one - argument to a parameterized test - - An IEnumerable providing the required data - - - - - SequentialStrategy creates test cases by using all of the - parameter data sources in parallel, substituting null - when any of them run out of data. - - - - - Gets the test cases generated by the CombiningStrategy. - - The test cases. - - - - A base class for multi-part filters - - - - - Constructs an empty CompositeFilter - - - - - Constructs a CompositeFilter from an array of filters - - - - - - Adds a filter to the list of filters - - The filter to be added - - - - Return a list of the composing filters. - - - - - Adds an XML node - - Parent node - True if recursive - The added XML node - - - - Gets the element name - - Element name - - - - PropertyFilter is able to select or exclude tests - based on their properties. - - - - - - Construct a PropertyFilter using a property name and expected value - - A property name - The expected value of the property - - - - Check whether the filter matches a test - - The test to be matched - - - - - Adds an XML node - - Parent node - True if recursive - The added XML node - - - - Gets the element name - - Element name - - - - TestName filter selects tests based on their Name - - - - - Construct a TestNameFilter for a single name - - The name the filter will recognize. - - - - Match a test against a single value. - - - - - Gets the element name - - Element name - - - - ClassName filter selects tests based on the class FullName - - - - - Construct a FullNameFilter for a single name - - The name the filter will recognize. - - - - Match a test against a single value. - - - - - Gets the element name - - Element name - - - - FullName filter selects tests based on their FullName - - - - - Construct a MethodNameFilter for a single name - - The name the filter will recognize. - - - - Match a test against a single value. - - - - - Gets the element name - - Element name - - - - IdFilter selects tests based on their id - - - - - Construct an IdFilter for a single value - - The id the filter will recognize. - - - - Match a test against a single value. - - - - - Gets the element name - - Element name - - - - ValueMatchFilter selects tests based on some value, which - is expected to be contained in the test. - - - - - Returns the value matched by the filter - used for testing - - - - - Indicates whether the value is a regular expression - - - - - Construct a ValueMatchFilter for a single value. - - The value to be included. - - - - Match the input provided by the derived class - - The value to be matchedT - True for a match, false otherwise. - - - - Adds an XML node - - Parent node - True if recursive - The added XML node - - - - Gets the element name - - Element name - - - - Combines multiple filters so that a test must pass all - of them in order to pass this filter. - - - - - Constructs an empty AndFilter - - - - - Constructs an AndFilter from an array of filters - - - - - - Checks whether the AndFilter is matched by a test - - The test to be matched - True if all the component filters pass, otherwise false - - - - Checks whether the AndFilter is matched by a test - - The test to be matched - True if all the component filters match, otherwise false - - - - Gets the element name - - Element name - - - - CategoryFilter is able to select or exclude tests - based on their categories. - - - - - - Construct a CategoryFilter using a single category name - - A category name - - - - Check whether the filter matches a test - - The test to be matched - - - - - Gets the element name - - Element name - - - - NotFilter negates the operation of another filter - - - - - Construct a not filter on another filter - - The filter to be negated - - - - Gets the base filter - - - - - Determine if a particular test passes the filter criteria. The default - implementation checks the test itself, its parents and any descendants. - - Derived classes may override this method or any of the Match methods - to change the behavior of the filter. - - The test to which the filter is applied - True if the test passes the filter, otherwise false - - - - Check whether the filter matches a test - - The test to be matched - True if it matches, otherwise false - - - - Determine if a test matches the filter expicitly. That is, it must - be a direct match of the test itself or one of it's children. - - The test to which the filter is applied - True if the test matches the filter explicityly, otherwise false - - - - Adds an XML node - - Parent node - True if recursive - The added XML node - - - - Combines multiple filters so that a test must pass one - of them in order to pass this filter. - - - - - Constructs an empty OrFilter - - - - - Constructs an AndFilter from an array of filters - - - - - - Checks whether the OrFilter is matched by a test - - The test to be matched - True if any of the component filters pass, otherwise false - - - - Checks whether the OrFilter is matched by a test - - The test to be matched - True if any of the component filters match, otherwise false - - - - Gets the element name - - Element name - - - - FullName filter selects tests based on their FullName - - - - - Construct a FullNameFilter for a single name - - The name the filter will recognize. - - - - Match a test against a single value. - - - - - Gets the element name - - Element name - - - - The MethodWrapper class wraps a MethodInfo so that it may - be used in a platform-independent manner. - - - - - Construct a MethodWrapper for a Type and a MethodInfo. - - - - - Construct a MethodInfo for a given Type and method name. - - - - - Gets the Type from which this method was reflected. - - - - - Gets the MethodInfo for this method. - - - - - Gets the name of the method. - - - - - Gets a value indicating whether the method is abstract. - - - - - Gets a value indicating whether the method is public. - - - - - Gets a value indicating whether the method contains unassigned generic type parameters. - - - - - Gets a value indicating whether the method is a generic method. - - - - - Gets a value indicating whether the MethodInfo represents the definition of a generic method. - - - - - Gets the return Type of the method. - - - - - Gets the parameters of the method. - - - - - - Returns the Type arguments of a generic method or the Type parameters of a generic method definition. - - - - - Replaces the type parameters of the method with the array of types provided and returns a new IMethodInfo. - - The type arguments to be used - A new IMethodInfo with the type arguments replaced - - - - Returns an array of custom attributes of the specified type applied to this method - - - - - Gets a value indicating whether one or more attributes of the spcified type are defined on the method. - - - - - Invokes the method, converting any TargetInvocationException to an NUnitException. - - The object on which to invoke the method - The argument list for the method - The return value from the invoked method - - - - Override ToString() so that error messages in NUnit's own tests make sense - - - - - The ParameterWrapper class wraps a ParameterInfo so that it may - be used in a platform-independent manner. - - - - - Construct a ParameterWrapper for a given method and parameter - - - - - - - Gets a value indicating whether the parameter is optional - - - - - Gets an IMethodInfo representing the method for which this is a parameter. - - - - - Gets the underlying ParameterInfo - - - - - Gets the Type of the parameter - - - - - Returns an array of custom attributes of the specified type applied to this method - - - - - Gets a value indicating whether one or more attributes of the specified type are defined on the parameter. - - - - - TestNameGenerator is able to create test names according to - a coded pattern. - - - - - Construct a TestNameGenerator - - The pattern used by this generator. - - - - Get the display name for a TestMethod and it's arguments - - A TestMethod - The display name - - - - Get the display name for a TestMethod and it's arguments - - A TestMethod - Arguments to be used - The display name - - - - Get the display name for a MethodInfo - - A MethodInfo - The display name - - - - Get the display name for a method with args - - A MethodInfo - Argument list for the method - The display name - - - - The TypeWrapper class wraps a Type so it may be used in - a platform-independent manner. - - - - - Construct a TypeWrapper for a specified Type. - - - - - Gets the underlying Type on which this TypeWrapper is based. - - - - - Gets the base type of this type as an ITypeInfo - - - - - Gets the Name of the Type - - - - - Gets the FullName of the Type - - - - - Gets the assembly in which the type is declared - - - - - Gets the namespace of the Type - - - - - Gets a value indicating whether the type is abstract. - - - - - Gets a value indicating whether the Type is a generic Type - - - - - Returns true if the Type wrapped is T - - - - - Gets a value indicating whether the Type has generic parameters that have not been replaced by specific Types. - - - - - Gets a value indicating whether the Type is a generic Type definition - - - - - Gets a value indicating whether the type is sealed. - - - - - Gets a value indicating whether this type represents a static class. - - - - - Get the display name for this type - - - - - Get the display name for an object of this type, constructed with the specified args. - - - - - Returns a new ITypeInfo representing an instance of this generic Type using the supplied Type arguments - - - - - Returns a Type representing a generic type definition from which this Type can be constructed. - - - - - Returns an array of custom attributes of the specified type applied to this type - - - - - Returns a value indicating whether the type has an attribute of the specified type. - - - - - - - - Returns a flag indicating whether this type has a method with an attribute of the specified type. - - - - - - - Returns an array of IMethodInfos for methods of this Type - that match the specified flags. - - - - - Returns a value indicating whether this Type has a public constructor taking the specified argument Types. - - - - - Construct an object of this Type, using the specified arguments. - - - - - Override ToString() so that error messages in NUnit's own tests make sense - - - - - SetUpTearDownItem holds the setup and teardown methods - for a single level of the inheritance hierarchy. - - - - - Construct a SetUpTearDownNode - - A list of setup methods for this level - A list teardown methods for this level - - - - Returns true if this level has any methods at all. - This flag is used to discard levels that do nothing. - - - - - Run SetUp on this level. - - The execution context to use for running. - - - - Run TearDown for this level. - - - - - - TestActionCommand runs the BeforeTest actions for a test, - then runs the test and finally runs the AfterTestActions. - - - - - Initializes a new instance of the class. - - The inner command. - - - - Runs the test, saving a TestResult in the supplied TestExecutionContext. - - The context in which the test should run. - A TestResult - - - - TestActionItem represents a single execution of an - ITestAction. It is used to track whether the BeforeTest - method has been called and suppress calling the - AfterTest method if it has not. - - - - - Construct a TestActionItem - - The ITestAction to be included - - - - Run the BeforeTest method of the action and remember that it has been run. - - The test to which the action applies - - - - Run the AfterTest action, but only if the BeforeTest - action was actually run. - - The test to which the action applies - - - - ContextSettingsCommand applies specified changes to the - TestExecutionContext prior to running a test. No special - action is needed after the test runs, since the prior - context will be restored automatically. - - - - - TODO: Documentation needed for class - - - - TODO: Documentation needed for field - - - - TODO: Documentation needed for constructor - - - - - - TODO: Documentation needed for class - - - - - Initializes a new instance of the class. - - The inner command. - The max time allowed in milliseconds - - - - Runs the test, saving a TestResult in the supplied TestExecutionContext - - The context in which the test should run. - A TestResult - - - - OneTimeSetUpCommand runs any one-time setup methods for a suite, - constructing the user test object if necessary. - - - - - Constructs a OneTimeSetUpCommand for a suite - - The suite to which the command applies - A SetUpTearDownList for use by the command - A List of TestActionItems to be run after Setup - - - - Overridden to run the one-time setup for a suite. - - The TestExecutionContext to be used. - A TestResult - - - - OneTimeTearDownCommand performs any teardown actions - specified for a suite and calls Dispose on the user - test object, if any. - - - - - Construct a OneTimeTearDownCommand - - The test suite to which the command applies - A SetUpTearDownList for use by the command - A List of TestActionItems to be run before teardown. - - - - Overridden to run the teardown methods specified on the test. - - The TestExecutionContext to be used. - A TestResult - - - - SetUpTearDownCommand runs any SetUp methods for a suite, - runs the test and then runs any TearDown methods. - - - - - Initializes a new instance of the class. - - The inner command. - - - - Runs the test, saving a TestResult in the supplied TestExecutionContext. - - The context in which the test should run. - A TestResult - - - - TODO: Documentation needed for class - - - - - Initializes a new instance of the class. - - The test being skipped. - - - - Overridden to simply set the CurrentResult to the - appropriate Skipped state. - - The execution context for the test - A TestResult - - - - TestCommand is the abstract base class for all test commands - in the framework. A TestCommand represents a single stage in - the execution of a test, e.g.: SetUp/TearDown, checking for - Timeout, verifying the returned result from a method, etc. - - TestCommands may decorate other test commands so that the - execution of a lower-level command is nested within that - of a higher level command. All nested commands are executed - synchronously, as a single unit. Scheduling test execution - on separate threads is handled at a higher level, using the - task dispatcher. - - - - - Construct a TestCommand for a test. - - The test to be executed - - - - Gets the test associated with this command. - - - - - Runs the test in a specified context, returning a TestResult. - - The TestExecutionContext to be used for running the test. - A TestResult - - - - TestMethodCommand is the lowest level concrete command - used to run actual test cases. - - - - - Initializes a new instance of the class. - - The test. - - - - Runs the test, saving a TestResult in the execution context, as - well as returning it. If the test has an expected result, it - is asserts on that value. Since failed tests and errors throw - an exception, this command must be wrapped in an outer command, - will handle that exception and records the failure. This role - is usually played by the SetUpTearDown command. - - The execution context - - - - TheoryResultCommand adjusts the result of a Theory so that - it fails if all the results were inconclusive. - - - - - Constructs a TheoryResultCommand - - The command to be wrapped by this one - - - - Overridden to call the inner command and adjust the result - in case all chlid results were inconclusive. - - - - - - - The CommandStage enumeration represents the defined stages - of execution for a series of TestCommands. The int _values - of the enum are used to apply decorators in the proper - order. Lower _values are applied first and are therefore - "closer" to the actual test execution. - - - No CommandStage is defined for actual invocation of the test or - for creation of the context. Execution may be imagined as - proceeding from the bottom of the list upwards, with cleanup - after the test running in the opposite order. - - - - - Use an application-defined default value. - - - - - Make adjustments needed before and after running - the raw test - that is, after any SetUp has run - and before TearDown. - - - - - Run SetUp and TearDown for the test. This stage is used - internally by NUnit and should not normally appear - in user-defined decorators. - - - - - Make adjustments needed before and after running - the entire test - including SetUp and TearDown. - - - - - A utility class to create TestCommands - - - - - Gets the command to be executed before any of - the child tests are run. - - A TestCommand - - - - Gets the command to be executed after all of the - child tests are run. - - A TestCommand - - - - Creates a test command for use in running this test. - - - - - - Creates a command for skipping a test. The result returned will - depend on the test RunState. - - - - - Builds the set up tear down list. - - Type of the fixture. - Type of the set up attribute. - Type of the tear down attribute. - A list of SetUpTearDownItems - - - - An IWorkItemDispatcher handles execution of work items. - - - - - Dispatch a single work item for execution. The first - work item dispatched is saved as the top-level - work item and used when stopping the run. - - The item to dispatch - - - - Cancel the ongoing run completely. - If no run is in process, the call has no effect. - - - - - SimpleWorkItemDispatcher handles execution of WorkItems by - directly executing them. It is provided so that a dispatcher - is always available in the context, thereby simplifying the - code needed to run child tests. - - - - - Dispatch a single work item for execution. The first - work item dispatched is saved as the top-level - work item and a thread is created on which to - run it. Subsequent calls come from the top level - item or its descendants on the proper thread. - - The item to dispatch - - - - Cancel the ongoing run completely. - If no run is in process, the call has no effect. - - - - - The TextCapture class intercepts console output and writes it - to the current execution context, if one is present on the thread. - If no execution context is found, the output is written to a - default destination, normally the original destination of the - intercepted output. - - - - - Construct a TextCapture object - - The default destination for non-intercepted output - - - - Gets the Encoding in use by this TextWriter - - - - - Writes a single character - - The char to write - - - - Writes a string - - The string to write - - - - Writes a string followed by a line terminator - - The string to write - - - - The dispatcher needs to do different things at different, - non-overlapped times. For example, non-parallel tests may - not be run at the same time as parallel tests. We model - this using the metaphor of a working shift. The WorkShift - class associates one or more WorkItemQueues with one or - more TestWorkers. - - Work in the queues is processed until all queues are empty - and all workers are idle. Both tests are needed because a - worker that is busy may end up adding more work to one of - the queues. At that point, the shift is over and another - shift may begin. This cycle continues until all the tests - have been run. - - - - - Construct a WorkShift - - - - - Event that fires when the shift has ended - - - - - Gets a flag indicating whether the shift is currently active - - - - - Gets a list of the queues associated with this shift. - - Used for testing - - - - Gets the list of workers associated with this shift. - - - - - Gets a bool indicating whether this shift has any work to do - - - - - Add a WorkItemQueue to the shift, starting it if the - shift is currently active. - - - - - Assign a worker to the shift. - - - - - - Start or restart processing for the shift - - - - - End the shift, pausing all queues and raising - the EndOfShift event. - - - - - Shut down the shift. - - - - - Cancel the shift without completing all work - - - - - A CompositeWorkItem represents a test suite and - encapsulates the execution of the suite as well - as all its child tests. - - - - - Construct a CompositeWorkItem for executing a test suite - using a filter to select child tests. - - The TestSuite to be executed - A filter used to select child tests - - - - Method that actually performs the work. Overridden - in CompositeWorkItem to do setup, run all child - items and then do teardown. - - - - - A simplified implementation of .NET 4 CountdownEvent - for use in earlier versions of .NET. Only the methods - used by NUnit are implemented. - - - - - Construct a CountdownEvent - - The initial count - - - - Gets the initial count established for the CountdownEvent - - - - - Gets the current count remaining for the CountdownEvent - - - - - Decrement the count by one - - - - - Block the thread until the count reaches zero - - - - - The EventPumpState enum represents the state of an - EventPump. - - - - - The pump is stopped - - - - - The pump is pumping events with no stop requested - - - - - The pump is pumping events but a stop has been requested - - - - - EventPump pulls events out of an EventQueue and sends - them to a listener. It is used to send events back to - the client without using the CallContext of the test - runner thread. - - - - - The handle on which a thread enqueuing an event with == true - waits, until the EventPump has sent the event to its listeners. - - - - - The downstream listener to which we send events - - - - - The queue that holds our events - - - - - Thread to do the pumping - - - - - The current state of the eventpump - - - - - Constructor - - The EventListener to receive events - The event queue to pull events from - - - - Gets or sets the current state of the pump - - - On volatile and , see - "http://www.albahari.com/threading/part4.aspx". - - - - - Gets or sets the name of this EventPump - (used only internally and for testing). - - - - - Dispose stops the pump - Disposes the used WaitHandle, too. - - - - - Start the pump - - - - - Tell the pump to stop after emptying the queue. - - - - - Our thread proc for removing items from the event - queue and sending them on. Note that this would - need to do more locking if any other thread were - removing events from the queue. - - - - - NUnit.Core.Event is the abstract base for all stored events. - An Event is the stored representation of a call to the - ITestListener interface and is used to record such calls - or to queue them for forwarding on another thread or at - a later time. - - - - - The Send method is implemented by derived classes to send the event to the specified listener. - - The listener. - - - - Gets a value indicating whether this event is delivered synchronously by the NUnit . - - If true, and if has been used to - set a WaitHandle, blocks its calling thread until the - thread has delivered the event and sets the WaitHandle. - - - - - - TestStartedEvent holds information needed to call the TestStarted method. - - - - - Initializes a new instance of the class. - - The test. - - - - Calls TestStarted on the specified listener. - - The listener. - - - - TestFinishedEvent holds information needed to call the TestFinished method. - - - - - Initializes a new instance of the class. - - The result. - - - - Calls TestFinished on the specified listener. - - The listener. - - - - Implements a queue of work items each of which - is queued as a WaitCallback. - - - - - Construct a new EventQueue - - - - - WaitHandle for synchronous event delivery in . - - Having just one handle for the whole implies that - there may be only one producer (the test thread) for synchronous events. - If there can be multiple producers for synchronous events, one would have - to introduce one WaitHandle per event. - - - - - - Gets the count of items in the queue. - - - - - Sets a handle on which to wait, when is called - for an with == true. - - - The wait handle on which to wait, when is called - for an with == true. - The caller is responsible for disposing this wait handle. - - - - - Enqueues the specified event - - The event to enqueue. - - - - Removes the first element from the queue and returns it (or null). - - - If true and the queue is empty, the calling thread is blocked until - either an element is enqueued, or is called. - - - - - If the queue not empty - the first element. - - - otherwise, if ==false - or has been called - null. - - - - - - - Stop processing of the queue - - - - - QueuingEventListener uses an EventQueue to store any - events received on its EventListener interface. - - - - - The EvenQueue created and filled by this listener - - - - - A test has started - - The test that is starting - - - - A test case finished - - Result of the test case - - - - A SimpleWorkItem represents a single test case and is - marked as completed immediately upon execution. This - class is also used for skipped or ignored test suites. - - - - - Construct a simple work item for a test. - - The test to be executed - The filter used to select this test - - - - Method that performs actually performs the work. - - - - - A TestWorker pulls work items from a queue - and executes them. - - - - - Event signaled immediately before executing a WorkItem - - - - - Event signaled immediately after executing a WorkItem - - - - - Construct a new TestWorker. - - The queue from which to pull work items - The name of this worker - The apartment state to use for running tests - - - - The name of this worker - also used for the thread - - - - - Indicates whether the worker thread is running - - - - - Our ThreadProc, which pulls and runs tests in a loop - - - - - Start processing work items. - - - - - Stop the thread, either immediately or after finishing the current WorkItem - - - - - A WorkItem may be an individual test case, a fixture or - a higher level grouping of tests. All WorkItems inherit - from the abstract WorkItem class, which uses the template - pattern to allow derived classes to perform work in - whatever way is needed. - - A WorkItem is created with a particular TestExecutionContext - and is responsible for re-establishing that context in the - current thread before it begins or resumes execution. - - - - - Creates a work item. - - The test for which this WorkItem is being created. - The filter to be used in selecting any child Tests. - - - - - Construct a WorkItem for a particular test. - - The test that the WorkItem will run - - - - Initialize the TestExecutionContext. This must be done - before executing the WorkItem. - - - Originally, the context was provided in the constructor - but delaying initialization of the context until the item - is about to be dispatched allows changes in the parent - context during OneTimeSetUp to be reflected in the child. - - The TestExecutionContext to use - - - - Event triggered when the item is complete - - - - - Gets the current state of the WorkItem - - - - - The test being executed by the work item - - - - - The execution context - - - - - The test actions to be performed before and after this test - - - - - Indicates whether this WorkItem may be run in parallel - - - - - The test result - - - - - Execute the current work item, including any - child work items. - - - - - Method that performs actually performs the work. It should - set the State to WorkItemState.Complete when done. - - - - - Method called by the derived class when all work is complete - - - - - ParallelWorkItemDispatcher handles execution of work items by - queuing them for worker threads to process. - - - - - Construct a ParallelWorkItemDispatcher - - Number of workers to use - - - - Enumerates all the shifts supported by the dispatcher - - - - - Dispatch a single work item for execution. The first - work item dispatched is saved as the top-level - work item and used when stopping the run. - - The item to dispatch - - - - Cancel the ongoing run completely. - If no run is in process, the call has no effect. - - - - - WorkItemQueueState indicates the current state of a WorkItemQueue - - - - - The queue is paused - - - - - The queue is running - - - - - The queue is stopped - - - - - A WorkItemQueue holds work items that are ready to - be run, either initially or after some dependency - has been satisfied. - - - - - Initializes a new instance of the class. - - The name of the queue. - - - - Gets the name of the work item queue. - - - - - Gets the total number of items processed so far - - - - - Gets the maximum number of work items. - - - - - Gets the current state of the queue - - - - - Get a bool indicating whether the queue is empty. - - - - - Enqueue a WorkItem to be processed - - The WorkItem to process - - - - Dequeue a WorkItem for processing - - A WorkItem or null if the queue has stopped - - - - Start or restart processing of items from the queue - - - - - Signal the queue to stop - - - - - Pause the queue for restarting later - - - - - The current state of a work item - - - - - Ready to run or continue - - - - - Work Item is executing - - - - - Complete - - - - - 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. - - - - - - - Gets or sets the maximum line length for this writer - - - - - Method to write single line message with optional args, usually - written to precede the general failure message, at a given - 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 result of 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 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 ConstraintResult for which the actual value is to be written - - - - Write the generic 'Actual' line for a given value - - The actual value causing a failure - - - - GenericMethodHelper is able to deduce the Type arguments for - a generic method from the actual arguments provided. - - - - - Construct a GenericMethodHelper for a method - - MethodInfo for the method to examine - - - - Return the type argments for the method, deducing them - from the arguments actually provided. - - The arguments to the method - An array of type arguments. - - - - InvalidTestFixtureException is thrown when an appropriate test - fixture constructor using the provided arguments cannot be found. - - - - - Initializes a new instance of the class. - - - - - Initializes a new instance of the class. - - The message. - - - - Initializes a new instance of the class. - - The message. - The inner. - - - - Serialization Constructor - - - - - Randomizer returns a set of random _values in a repeatable - way, to allow re-running of tests if necessary. It extends - the .NET Random class, providing random values for a much - wider range of types. - - The class is used internally by the framework to generate - test case data and is also exposed for use by users through - the TestContext.Random property. - - - For consistency with the underlying Random Type, methods - returning a single value use the prefix "Next..." Those - without an argument return a non-negative value up to - the full positive range of the Type. Overloads are provided - for specifying a maximum or a range. Methods that return - arrays or strings use the prefix "Get..." to avoid - confusion with the single-value methods. - - - - - Initial seed used to create randomizers for this run - - - - - 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. - - - - - Create a new Randomizer using the next seed - available to ensure that each randomizer gives - a unique sequence of values. - - - - - - Default constructor - - - - - Construct based on seed value - - - - - - Returns a random unsigned int. - - - - - Returns a random unsigned int less than the specified maximum. - - - - - Returns a random unsigned int within a specified range. - - - - - Returns a non-negative random short. - - - - - Returns a non-negative random short less than the specified maximum. - - - - - Returns a non-negative random short within a specified range. - - - - - Returns a random unsigned short. - - - - - Returns a random unsigned short less than the specified maximum. - - - - - Returns a random unsigned short within a specified range. - - - - - Returns a random long. - - - - - Returns a random long less than the specified maximum. - - - - - Returns a non-negative random long within a specified range. - - - - - Returns a random ulong. - - - - - Returns a random ulong less than the specified maximum. - - - - - Returns a non-negative random long within a specified range. - - - - - Returns a random Byte - - - - - Returns a random Byte less than the specified maximum. - - - - - Returns a random Byte within a specified range - - - - - Returns a random SByte - - - - - Returns a random sbyte less than the specified maximum. - - - - - Returns a random sbyte within a specified range - - - - - Returns a random bool - - - - - Returns a random bool based on the probablility a true result - - - - - Returns a random double between 0.0 and the specified maximum. - - - - - Returns a random double within a specified range. - - - - - Returns a random float. - - - - - Returns a random float between 0.0 and the specified maximum. - - - - - Returns a random float within a specified range. - - - - - Returns a random enum value of the specified Type as an object. - - - - - Returns a random enum value of the specified Type. - - - - - Default characters for random functions. - - Default characters are the English alphabet (uppercase & lowercase), arabic numerals, and underscore - - - - Generate a random string based on the characters from the input string. - - desired length of output string. - string representing the set of characters from which to construct the resulting string - A random string of arbitrary length - - - - Generate a random string based on the characters from the input string. - - desired length of output string. - A random string of arbitrary length - Uses DefaultStringChars as the input character set - - - - Generate a random string based on the characters from the input string. - - A random string of the default length - Uses DefaultStringChars as the input character set - - - - Returns a random decimal. - - - - - Returns a random decimal between positive zero and the specified maximum. - - - - - Returns a random decimal within a specified range, which is not - permitted to exceed decimal.MaxVal in the current implementation. - - - A limitation of this implementation is that the range from min - to max must not exceed decimal.MaxVal. - - - - - StackFilter class is used to remove internal NUnit - entries from a stack trace so that the resulting - trace provides better information about the test. - - - - - Filters a raw stack trace and returns the result. - - The original stack trace - A filtered stack trace - - - - Provides methods to support legacy string comparison methods. - - - - - Compares two strings for equality, ignoring case if requested. - - The first string. - The second string.. - if set to true, the case of the letters in the strings is ignored. - Zero if the strings are equivalent, a negative number if strA is sorted first, a positive number if - strB is sorted first - - - - Compares two strings for equality, ignoring case if requested. - - The first string. - The second string.. - if set to true, the case of the letters in the strings is ignored. - True if the strings are equivalent, false if not. - - - - The TestCaseParameters class encapsulates method arguments and - other selected parameters needed for constructing - a parameterized test case. - - - - - Default Constructor creates an empty parameter set - - - - - Construct a non-runnable ParameterSet, specifying - the provider exception that made it invalid. - - - - - Construct a parameter set with a list of arguments - - - - - - Construct a ParameterSet from an object implementing ITestCaseData - - - - - - Type arguments used to create a generic fixture instance - - - - - TestParameters is the abstract base class for all classes - that know how to provide data for constructing a test. - - - - - Default Constructor creates an empty parameter set - - - - - Construct a parameter set with a list of arguments - - - - - - Construct a non-runnable ParameterSet, specifying - the provider exception that made it invalid. - - - - - Construct a ParameterSet from an object implementing ITestData - - - - - - The RunState for this set of parameters. - - - - - The arguments to be used in running the test, - which must match the method signature. - - - - - A name to be used for this test case in lieu - of the standard generated name containing - the argument list. - - - - - Gets the property dictionary for this test - - - - - Applies ParameterSet _values to the test itself. - - A test. - - - - The original arguments provided by the user, - used for display purposes. - - - - - Enumeration indicating whether the tests are - running normally or being cancelled. - - - - - Running normally with no stop requested - - - - - A graceful stop has been requested - - - - - A forced stop has been requested - - - - - The PropertyNames class provides static constants for the - standard property ids that NUnit uses on tests. - - - - - The FriendlyName of the AppDomain in which the assembly is running - - - - - The selected strategy for joining parameter data into test cases - - - - - The process ID of the executing assembly - - - - - The stack trace from any data provider that threw - an exception. - - - - - The reason a test was not run - - - - - The author of the tests - - - - - The ApartmentState required for running the test - - - - - The categories applying to a test - - - - - The Description of a test - - - - - The number of threads to be used in running tests - - - - - The maximum time in ms, above which the test is considered to have failed - - - - - The ParallelScope associated with a test - - - - - The number of times the test should be repeated - - - - - Indicates that the test should be run on a separate thread - - - - - The culture to be set for a test - - - - - The UI culture to be set for a test - - - - - The type that is under test - - - - - The timeout value for the test - - - - - The test will be ignored until the given date - - - - - CultureDetector is a helper class used by NUnit to determine - whether a test should be run based on the current culture. - - - - - Default constructor uses the current culture. - - - - - Construct a CultureDetector for a particular culture for testing. - - The culture to be used - - - - Test to determine if one of a collection of cultures - is being used currently. - - - - - - - Tests to determine if the current culture is supported - based on a culture attribute. - - The attribute to examine - - - - - Test to determine if the a particular culture or comma- - delimited set of cultures is in use. - - Name of the culture or comma-separated list of culture ids - True if the culture is in use on the system - - - - Return the last failure reason. Results are not - defined if called before IsSupported( Attribute ) - is called. - - - - - ExceptionHelper provides static methods for working with exceptions - - - - - Builds up a message, using the Message field of the specified exception - as well as any InnerExceptions. - - The exception. - A combined message string. - - - - Builds up a message, using the Message field of the specified exception - as well as any InnerExceptions. - - The exception. - A combined stack trace. - - - - Gets the stack trace of the exception. - - The exception. - A string representation of the stack trace. - - - - InvalidTestFixtureException is thrown when an appropriate test - fixture constructor using the provided arguments cannot be found. - - - - - Initializes a new instance of the class. - - - - - Initializes a new instance of the class. - - The message. - - - - Initializes a new instance of the class. - - The message. - The inner. - - - - Serialization Constructor - - - - - Thrown when an assertion failed. Here to preserve the inner - exception and hence its stack trace. - - - - - Initializes a new instance of the class. - - - - - Initializes a new instance of the class. - - The error message that explains - the reason for the exception - - - - Initializes a new instance of the class. - - The error message that explains - the reason for the exception - The exception that caused the - current exception - - - - Serialization Constructor - - - - - OSPlatform represents a particular operating system platform - - - - - Platform ID for Unix as defined by Microsoft .NET 2.0 and greater - - - - - Platform ID for Unix as defined by Mono - - - - - Platform ID for XBox as defined by .NET and Mono, but not CF - - - - - Platform ID for MacOSX as defined by .NET and Mono, but not CF - - - - - Get the OSPlatform under which we are currently running - - - - - Gets the actual OS Version, not the incorrect value that might be - returned for Win 8.1 and Win 10 - - - If an application is not manifested as Windows 8.1 or Windows 10, - the version returned from Environment.OSVersion will not be 6.3 and 10.0 - respectively, but will be 6.2 and 6.3. The correct value can be found in - the registry. - - The original version - The correct OS version - - - - Product Type Enumeration used for Windows - - - - - Product type is unknown or unspecified - - - - - Product type is Workstation - - - - - Product type is Domain Controller - - - - - Product type is Server - - - - - Construct from a platform ID and version - - - - - Construct from a platform ID, version and product type - - - - - Get the platform ID of this instance - - - - - Get the Version of this instance - - - - - Get the Product Type of this instance - - - - - Return true if this is a windows platform - - - - - Return true if this is a Unix or Linux platform - - - - - Return true if the platform is Win32S - - - - - Return true if the platform is Win32Windows - - - - - Return true if the platform is Win32NT - - - - - Return true if the platform is Windows CE - - - - - Return true if the platform is Xbox - - - - - Return true if the platform is MacOSX - - - - - Return true if the platform is Windows 95 - - - - - Return true if the platform is Windows 98 - - - - - Return true if the platform is Windows ME - - - - - Return true if the platform is NT 3 - - - - - Return true if the platform is NT 4 - - - - - Return true if the platform is NT 5 - - - - - Return true if the platform is Windows 2000 - - - - - Return true if the platform is Windows XP - - - - - Return true if the platform is Windows 2003 Server - - - - - Return true if the platform is NT 6 - - - - - Return true if the platform is NT 6.0 - - - - - Return true if the platform is NT 6.1 - - - - - Return true if the platform is NT 6.2 - - - - - Return true if the platform is NT 6.3 - - - - - Return true if the platform is Vista - - - - - Return true if the platform is Windows 2008 Server (original or R2) - - - - - Return true if the platform is Windows 2008 Server (original) - - - - - Return true if the platform is Windows 2008 Server R2 - - - - - Return true if the platform is Windows 2012 Server (original or R2) - - - - - Return true if the platform is Windows 2012 Server (original) - - - - - Return true if the platform is Windows 2012 Server R2 - - - - - Return true if the platform is Windows 7 - - - - - Return true if the platform is Windows 8 - - - - - Return true if the platform is Windows 8.1 - - - - - Return true if the platform is Windows 10 - - - - - Return true if the platform is Windows Server. This is named Windows - Server 10 to distinguish it from previous versions of Windows Server. - - - - - The TestCaseParameters class encapsulates method arguments and - other selected parameters needed for constructing - a parameterized test case. - - - - - The expected result to be returned - - - - - Default Constructor creates an empty parameter set - - - - - Construct a non-runnable ParameterSet, specifying - the provider exception that made it invalid. - - - - - Construct a parameter set with a list of arguments - - - - - - Construct a ParameterSet from an object implementing ITestCaseData - - - - - - The expected result of the test, which - must match the method return type. - - - - - Gets a value indicating whether an expected result was specified. - - - - - PlatformHelper class is used by the PlatformAttribute class to - determine whether a platform is supported. - - - - - Comma-delimited list of all supported OS platform constants - - - - - Comma-delimited list of all supported Runtime platform constants - - - - - Default constructor uses the operating system and - common language runtime of the system. - - - - - Construct a PlatformHelper for a particular operating - system and common language runtime. Used in testing. - - OperatingSystem to be used - RuntimeFramework to be used - - - - Test to determine if one of a collection of platforms - is being used currently. - - - - - - - Tests to determine if the current platform is supported - based on a platform attribute. - - The attribute to examine - - - - - Tests to determine if the current platform is supported - based on a platform attribute. - - The attribute to examine - - - - - Test to determine if the a particular platform or comma- - delimited set of platforms is in use. - - Name of the platform or comma-separated list of platform ids - True if the platform is in use on the system - - - - Return the last failure reason. Results are not - defined if called before IsSupported( Attribute ) - is called. - - - - - A PropertyBag represents a collection of name value pairs - that allows duplicate entries with the same key. Methods - are provided for adding a new pair as well as for setting - a key to a single value. All keys are strings but _values - may be of any type. Null _values are not permitted, since - a null entry represents the absence of the key. - - - - - Adds a key/value pair to the property set - - The key - The value - - - - Sets the value for a key, removing any other - _values that are already in the property set. - - - - - - - Gets a single value for a key, using the first - one if multiple _values are present and returning - null if the value is not found. - - - - - - - Gets a flag indicating whether the specified key has - any entries in the property set. - - The key to be checked - - True if their are _values present, otherwise false - - - - - Gets a collection containing all the keys in the property set - - - - - - Gets or sets the list of _values for a particular key - - - - - Returns an XmlNode representating the current PropertyBag. - - Not used - An XmlNode representing the PropertyBag - - - - Returns an XmlNode representing the PropertyBag after - adding it as a child of the supplied parent node. - - The parent node. - Not used - - - - - Helper methods for inspecting a type by reflection. - - Many of these methods take ICustomAttributeProvider as an - argument to avoid duplication, even though certain attributes can - only appear on specific types of members, like MethodInfo or Type. - - In the case where a type is being examined for the presence of - an attribute, interface or named member, the Reflect methods - operate with the full name of the member being sought. This - removes the necessity of the caller having a reference to the - assembly that defines the item being sought and allows the - NUnit core to inspect assemblies that reference an older - version of the NUnit framework. - - - - - Examine a fixture type and return an array of methods having a - particular attribute. The array is order with base methods first. - - The type to examine - The attribute Type to look for - Specifies whether to search the fixture type inheritance chain - The array of methods found - - - - Examine a fixture type and return true if it has a method with - a particular attribute. - - The type to examine - The attribute Type to look for - True if found, otherwise false - - - - Invoke the default constructor on a Type - - The Type to be constructed - An instance of the Type - - - - Invoke a constructor on a Type with arguments - - The Type to be constructed - Arguments to the constructor - An instance of the Type - - - - Returns an array of types from an array of objects. - Used because the compact framework doesn't support - Type.GetTypeArray() - - An array of objects - An array of Types - - - - Invoke a parameterless method returning void on an object. - - A MethodInfo for the method to be invoked - The object on which to invoke the method - - - - Invoke a method, converting any TargetInvocationException to an NUnitException. - - A MethodInfo for the method to be invoked - The object on which to invoke the method - The argument list for the method - The return value from the invoked method - - - - The TestResult class represents the result of a test. - - - - - Error message for when child tests have errors - - - - - Error message for when child tests are ignored - - - - - The minimum duration for tests - - - - - List of child results - - - - - Construct a test result given a Test - - The test to be used - - - - Gets the test with which this result is associated. - - - - - Gets the ResultState of the test result, which - indicates the success or failure of the test. - - - - - Gets the name of the test result - - - - - Gets the full name of the test result - - - - - Gets or sets the elapsed time for running the test in seconds - - - - - Gets or sets the time the test started running. - - - - - Gets or sets the time the test finished running. - - - - - Gets the message associated with a test - failure or with not running the test - - - - - Gets any stacktrace associated with an - error or failure. - - - - - Gets or sets the count of asserts executed - when running the test. - - - - - Gets the number of test cases that failed - when running the test and all its children. - - - - - Gets the number of test cases that passed - when running the test and all its children. - - - - - Gets the number of test cases that were skipped - when running the test and all its children. - - - - - Gets the number of test cases that were inconclusive - when running the test and all its children. - - - - - Indicates whether this result has any child results. - Test HasChildren before accessing Children to avoid - the creation of an empty collection. - - - - - Gets the collection of child results. - - - - - Gets a TextWriter, which will write output to be included in the result. - - - - - Gets any text output written to this result. - - - - - Returns the Xml representation of the result. - - If true, descendant results are included - An XmlNode representing the result - - - - Adds the XML representation of the result as a child of the - supplied parent node.. - - The parent node. - If true, descendant results are included - - - - - Adds a child result to this result, setting this result's - ResultState to Failure if the child result failed. - - The result to be added - - - - Set the result of the test - - The ResultState to use in the result - - - - Set the result of the test - - The ResultState to use in the result - A message associated with the result state - - - - Set the result of the test - - The ResultState to use in the result - A message associated with the result state - Stack trace giving the location of the command - - - - Set the test result based on the type of exception thrown - - The exception that was thrown - - - - Set the test result based on the type of exception thrown - - The exception that was thrown - THe FailureSite to use in the result - - - - RecordTearDownException appends the message and stacktrace - from an exception arising during teardown of the test - to any previously recorded information, so that any - earlier failure information is not lost. Note that - calling Assert.Ignore, Assert.Inconclusive, etc. during - teardown is treated as an error. If the current result - represents a suite, it may show a teardown error even - though all contained tests passed. - - The Exception to be recorded - - - - Adds a reason element to a node and returns it. - - The target node. - The new reason element. - - - - Adds a failure element to a node and returns it. - - The target node. - The new failure element. - - - - Enumeration identifying a common language - runtime implementation. - - - - Any supported runtime framework - - - Microsoft .NET Framework - - - Microsoft .NET Compact Framework - - - Microsoft Shared Source CLI - - - Mono - - - Silverlight - - - MonoTouch - - - - RuntimeFramework represents a particular version - of a common language runtime implementation. - - - - - DefaultVersion is an empty Version, used to indicate that - NUnit should select the CLR version to use for the test. - - - - - Construct from a runtime type and version. If the version has - two parts, it is taken as a framework version. If it has three - or more, it is taken as a CLR version. In either case, the other - version is deduced based on the runtime type and provided version. - - The runtime type of the framework - The version of the framework - - - - Static method to return a RuntimeFramework object - for the framework that is currently in use. - - - - - The type of this runtime framework - - - - - The framework version for this runtime framework - - - - - The CLR version for this runtime framework - - - - - Return true if any CLR version may be used in - matching this RuntimeFramework object. - - - - - Returns the Display name for this framework - - - - - Parses a string representing a RuntimeFramework. - The string may be just a RuntimeType name or just - a Version or a hyphenated RuntimeType-Version or - a Version prefixed by 'versionString'. - - - - - - - Overridden to return the short name of the framework - - - - - - Returns true if the current framework matches the - one supplied as an argument. Two frameworks match - if their runtime types are the same or either one - is RuntimeType.Any and all specified version components - are equal. Negative (i.e. unspecified) version - components are ignored. - - The RuntimeFramework to be matched. - True on match, otherwise false - - - - Helper class used to save and restore certain static or - singleton settings in the environment that affect tests - or which might be changed by the user tests. - - An internal class is used to hold settings and a stack - of these objects is pushed and popped as Save and Restore - are called. - - - - - Link to a prior saved context - - - - - Indicates that a stop has been requested - - - - - The event listener currently receiving notifications - - - - - The number of assertions for the current test - - - - - The current culture - - - - - The current UI culture - - - - - The current test result - - - - - The current Principal. - - - - - Initializes a new instance of the class. - - - - - Initializes a new instance of the class. - - An existing instance of TestExecutionContext. - - - - The current context, head of the list of saved contexts. - - - - - Gets the current context. - - The current context. - - - - Get the current context or return null if none is found. - - - - - Clear the current context. This is provided to - prevent "leakage" of the CallContext containing - the current context back to any runners. - - - - - Gets or sets the current test - - - - - The time the current test started execution - - - - - The time the current test started in Ticks - - - - - Gets or sets the current test result - - - - - Gets a TextWriter that will send output to the current test result. - - - - - The current test object - that is the user fixture - object on which tests are being executed. - - - - - Get or set the working directory - - - - - Get or set indicator that run should stop on the first error - - - - - Gets an enum indicating whether a stop has been requested. - - - - - The current test event listener - - - - - The current WorkItemDispatcher - - - - - The ParallelScope to be used by tests running in this context. - For builds with out the parallel feature, it has no effect. - - - - - Gets the RandomGenerator specific to this Test - - - - - Gets the assert count. - - The assert count. - - - - Gets or sets the test case timeout value - - - - - Gets a list of ITestActions set by upstream tests - - - - - Saves or restores the CurrentCulture - - - - - Saves or restores the CurrentUICulture - - - - - Gets or sets the current for the Thread. - - - - - Record any changes in the environment made by - the test code in the execution context so it - will be passed on to lower level tests. - - - - - Set up the execution environment to match a context. - Note that we may be running on the same thread where the - context was initially created or on a different thread. - - - - - Increments the assert count by one. - - - - - Increments the assert count by a specified amount. - - - - - Obtain lifetime service object - - - - - - Interface to be implemented by filters applied to tests. - The filter applies when running the test, after it has been - loaded, since this is the only time an ITest exists. - - - - - Unique Empty filter. - - - - - Indicates whether this is the EmptyFilter - - - - - Indicates whether this is a top-level filter, - not contained in any other filter. - - - - - Determine if a particular test passes the filter criteria. The default - implementation checks the test itself, its parents and any descendants. - - Derived classes may override this method or any of the Match methods - to change the behavior of the filter. - - The test to which the filter is applied - True if the test passes the filter, otherwise false - - - - Determine if a test matches the filter expicitly. That is, it must - be a direct match of the test itself or one of it's children. - - The test to which the filter is applied - True if the test matches the filter explicityly, otherwise false - - - - Determine whether the test itself matches the filter criteria, without - examining either parents or descendants. This is overridden by each - different type of filter to perform the necessary tests. - - The test to which the filter is applied - True if the filter matches the any parent of the test - - - - Determine whether any ancestor of the test matches the filter criteria - - The test to which the filter is applied - True if the filter matches the an ancestor of the test - - - - Determine whether any descendant of the test matches the filter criteria. - - The test to be matched - True if at least one descendant matches the filter criteria - - - - Create a TestFilter instance from an xml representation. - - - - - Create a TestFilter from it's TNode representation - - - - - Nested class provides an empty filter - one that always - returns true when called. It never matches explicitly. - - - - - Adds an XML node - - True if recursive - The added XML node - - - - Adds an XML node - - Parent node - True if recursive - The added XML node - - - - TestListener provides an implementation of ITestListener that - does nothing. It is used only through its NULL property. - - - - - Called when a test has just started - - The test that is starting - - - - Called when a test case has finished - - The result of the test - - - - Construct a new TestListener - private so it may not be used. - - - - - Get a listener that does nothing - - - - - TestProgressReporter translates ITestListener events into - the async callbacks that are used to inform the client - software about the progress of a test run. - - - - - Initializes a new instance of the class. - - The callback handler to be used for reporting progress. - - - - Called when a test has just started - - The test that is starting - - - - Called when a test has finished. Sends a result summary to the callback. - to - - The result of the test - - - - Returns the parent test item for the targer test item if it exists - - - parent test item - - - - Makes a string safe for use as an attribute, replacing - characters characters that can't be used with their - corresponding xml representations. - - The string to be used - A new string with the _values replaced - - - - ParameterizedFixtureSuite serves as a container for the set of test - fixtures created from a given Type using various parameters. - - - - - Initializes a new instance of the class. - - The ITypeInfo for the type that represents the suite. - - - - Gets a string representing the type of test - - - - - - ParameterizedMethodSuite holds a collection of individual - TestMethods with their arguments applied. - - - - - Construct from a MethodInfo - - - - - - Gets a string representing the type of test - - - - - - SetUpFixture extends TestSuite and supports - Setup and TearDown methods. - - - - - Initializes a new instance of the class. - - The type. - - - - The Test abstract class represents a test within the framework. - - - - - Static value to seed ids. It's started at 1000 so any - uninitialized ids will stand out. - - - - - The SetUp methods. - - - - - The teardown methods - - - - - Constructs a test given its name - - The name of the test - - - - Constructs a test given the path through the - test hierarchy to its parent and a name. - - The parent tests full name - The name of the test - - - - TODO: Documentation needed for constructor - - - - - - Construct a test from a MethodInfo - - - - - - Gets or sets the id of the test - - - - - - Gets or sets the name of the test - - - - - Gets or sets the fully qualified name of the test - - - - - - Gets the name of the class containing this test. Returns - null if the test is not associated with a class. - - - - - Gets the name of the method implementing this test. - Returns null if the test is not implemented as a method. - - - - - Gets the TypeInfo of the fixture used in running this test - or null if no fixture type is associated with it. - - - - - Gets a MethodInfo for the method implementing this test. - Returns null if the test is not implemented as a method. - - - - - Whether or not the test should be run - - - - - Gets the name used for the top-level element in the - XML representation of this test - - - - - Gets a string representing the type of test. Used as an attribute - value in the XML representation of a test and has no other - function in the framework. - - - - - Gets a count of test cases represented by - or contained under this test. - - - - - Gets the properties for this test - - - - - Returns true if this is a TestSuite - - - - - Gets a bool indicating whether the current test - has any descendant tests. - - - - - Gets the parent as a Test object. - Used by the core to set the parent. - - - - - Gets this test's child tests - - A list of child tests - - - - Gets or sets a fixture object for running this test. - - - - - Static prefix used for ids in this AppDomain. - Set by FrameworkController. - - - - - Gets or Sets the Int value representing the seed for the RandomGenerator - - - - - - Creates a TestResult for this test. - - A TestResult suitable for this type of test. - - - - Modify a newly constructed test by applying any of NUnit's common - attributes, based on a supplied ICustomAttributeProvider, which is - usually the reflection element from which the test was constructed, - but may not be in some instances. The attributes retrieved are - saved for use in subsequent operations. - - An object implementing ICustomAttributeProvider - - - - Add standard attributes and members to a test node. - - - - - - - Returns the Xml representation of the test - - If true, include child tests recursively - - - - - Returns an XmlNode representing the current result after - adding it as a child of the supplied parent node. - - The parent node. - If true, descendant results are included - - - - - Compares this test to another test for sorting purposes - - The other test - Value of -1, 0 or +1 depending on whether the current test is less than, equal to or greater than the other test - - - - TestAssembly is a TestSuite that represents the execution - of tests in a managed assembly. - - - - - Initializes a new instance of the class - specifying the Assembly and the path from which it was loaded. - - The assembly this test represents. - The path used to load the assembly. - - - - Initializes a new instance of the class - for a path which could not be loaded. - - The path used to load the assembly. - - - - Gets the Assembly represented by this instance. - - - - - Gets the name used for the top-level element in the - XML representation of this test - - - - - TestFixture is a surrogate for a user test fixture class, - containing one or more tests. - - - - - Initializes a new instance of the class. - - Type of the fixture. - - - - The TestMethod class represents a Test implemented as a method. - - - - - The ParameterSet used to create this test method - - - - - Initializes a new instance of the class. - - The method to be used as a test. - - - - Initializes a new instance of the class. - - The method to be used as a test. - The suite or fixture to which the new test will be added - - - - Overridden to return a TestCaseResult. - - A TestResult for this test. - - - - Gets a bool indicating whether the current test - has any descendant tests. - - - - - Returns a TNode representing the current result after - adding it as a child of the supplied parent node. - - The parent node. - If true, descendant results are included - - - - - Gets this test's child tests - - A list of child tests - - - - Gets the name used for the top-level element in the - XML representation of this test - - - - - Returns the name of the method - - - - - TestSuite represents a composite test, which contains other tests. - - - - - Our collection of child tests - - - - - Initializes a new instance of the class. - - The name of the suite. - - - - Initializes a new instance of the class. - - Name of the parent suite. - The name of the suite. - - - - Initializes a new instance of the class. - - Type of the fixture. - - - - Initializes a new instance of the class. - - Type of the fixture. - - - - Sorts tests under this suite. - - - - - Adds a test to the suite. - - The test. - - - - Gets this test's child tests - - The list of child tests - - - - Gets a count of test cases represented by - or contained under this test. - - - - - - The arguments to use in creating the fixture - - - - - Set to true to suppress sorting this suite's contents - - - - - Overridden to return a TestSuiteResult. - - A TestResult for this test. - - - - Gets a bool indicating whether the current test - has any descendant tests. - - - - - Gets the name used for the top-level element in the - XML representation of this test - - - - - Returns an XmlNode representing the current result after - adding it as a child of the supplied parent node. - - The parent node. - If true, descendant results are included - - - - - Check that setup and teardown methods marked by certain attributes - meet NUnit's requirements and mark the tests not runnable otherwise. - - The attribute type to check for - - - - ThreadUtility provides a set of static methods convenient - for working with threads. - - - - - Do our best to Kill a thread - - The thread to kill - - - - Do our best to kill a thread, passing state info - - The thread to kill - Info for the ThreadAbortException handler - - - - TypeHelper provides static methods that operate on Types. - - - - - A special value, which is used to indicate that BestCommonType() method - was unable to find a common type for the specified arguments. - - - - - Gets the display name for a Type as used by NUnit. - - The Type for which a display name is needed. - The display name for the Type - - - - Gets the display name for a Type as used by NUnit. - - The Type for which a display name is needed. - The arglist provided. - The display name for the Type - - - - Returns the best fit for a common type to be used in - matching actual arguments to a methods Type parameters. - - The first type. - The second type. - Either type1 or type2, depending on which is more general. - - - - Determines whether the specified type is numeric. - - The type to be examined. - - true if the specified type is numeric; otherwise, false. - - - - - Convert an argument list to the required parameter types. - Currently, only widening numeric conversions are performed. - - An array of args to be converted - A ParameterInfo[] whose types will be used as targets - - - - Determines whether this instance can deduce type args for a generic type from the supplied arguments. - - The type to be examined. - The arglist. - The type args to be used. - - true if this the provided args give sufficient information to determine the type args to be used; otherwise, false. - - - - - Gets the _values for an enumeration, using Enum.GetTypes - where available, otherwise through reflection. - - - - - - - Gets the ids of the _values for an enumeration, - using Enum.GetNames where available, otherwise - through reflection. - - - - - - - Represents the result of running a single test case. - - - - - Construct a TestCaseResult based on a TestMethod - - A TestMethod to which the result applies. - - - - Gets the number of test cases that failed - when running the test and all its children. - - - - - Gets the number of test cases that passed - when running the test and all its children. - - - - - Gets the number of test cases that were skipped - when running the test and all its children. - - - - - Gets the number of test cases that were inconclusive - when running the test and all its children. - - - - - Represents the result of running a test suite - - - - - Construct a TestSuiteResult base on a TestSuite - - The TestSuite to which the result applies - - - - Gets the number of test cases that failed - when running the test and all its children. - - - - - Gets the number of test cases that passed - when running the test and all its children. - - - - - Gets the number of test cases that were skipped - when running the test and all its children. - - - - - Gets the number of test cases that were inconclusive - when running the test and all its children. - - - - - Add a child result - - The child result to be added - - - - Class used to guard against unexpected argument values - or operations by throwing an appropriate exception. - - - - - Throws an exception if an argument is null - - The value to be tested - The name of the argument - - - - Throws an exception if a string argument is null or empty - - The value to be tested - The name of the argument - - - - Throws an ArgumentOutOfRangeException if the specified condition is not met. - - The condition that must be met - The exception message to be used - The name of the argument - - - - Throws an ArgumentException if the specified condition is not met. - - The condition that must be met - The exception message to be used - The name of the argument - - - - Throws an InvalidOperationException if the specified condition is not met. - - The condition that must be met - The exception message to be used - - - - The different targets a test action attribute can be applied to - - - - - Default target, which is determined by where the action attribute is attached - - - - - Target a individual test case - - - - - Target a suite of test cases - - - - - FrameworkController provides a facade for use in loading, browsing - and running tests without requiring a reference to the NUnit - framework. All calls are encapsulated in constructors for - this class and its nested classes, which only require the - types of the Common Type System as arguments. - - The controller supports four actions: Load, Explore, Count and Run. - They are intended to be called by a driver, which should allow for - proper sequencing of calls. Load must be called before any of the - other actions. The driver may support other actions, such as - reload on run, by combining these calls. - - - - - Construct a FrameworkController using the default builder and runner. - - The AssemblyName or path to the test assembly - A prefix used for all test ids created under this controller. - A Dictionary of settings to use in loading and running the tests - - - - Construct a FrameworkController using the default builder and runner. - - The test assembly - A prefix used for all test ids created under this controller. - A Dictionary of settings to use in loading and running the tests - - - - Construct a FrameworkController, specifying the types to be used - for the runner and builder. This constructor is provided for - purposes of development. - - The full AssemblyName or the path to the test assembly - A prefix used for all test ids created under this controller. - A Dictionary of settings to use in loading and running the tests - The Type of the test runner - The Type of the test builder - - - - Construct a FrameworkController, specifying the types to be used - for the runner and builder. This constructor is provided for - purposes of development. - - The test assembly - A prefix used for all test ids created under this controller. - A Dictionary of settings to use in loading and running the tests - The Type of the test runner - The Type of the test builder - - - - Gets the ITestAssemblyBuilder used by this controller instance. - - The builder. - - - - Gets the ITestAssemblyRunner used by this controller instance. - - The runner. - - - - Gets the AssemblyName or the path for which this FrameworkController was created - - - - - Gets the Assembly for which this - - - - - Gets a dictionary of settings for the FrameworkController - - - - - Inserts environment element - - Target node - The new node - - - - Inserts settings element - - Target node - Settings dictionary - The new node - - - - FrameworkControllerAction is the base class for all actions - performed against a FrameworkController. - - - - - LoadTestsAction loads a test into the FrameworkController - - - - - LoadTestsAction loads the tests in an assembly. - - The controller. - The callback handler. - - - - ExploreTestsAction returns info about the tests in an assembly - - - - - Initializes a new instance of the class. - - The controller for which this action is being performed. - Filter used to control which tests are included (NYI) - The callback handler. - - - - CountTestsAction counts the number of test cases in the loaded TestSuite - held by the FrameworkController. - - - - - Construct a CountsTestAction and perform the count of test cases. - - A FrameworkController holding the TestSuite whose cases are to be counted - A string containing the XML representation of the filter to use - A callback handler used to report results - - - - RunTestsAction runs the loaded TestSuite held by the FrameworkController. - - - - - Construct a RunTestsAction and run all tests in the loaded TestSuite. - - A FrameworkController holding the TestSuite to run - A string containing the XML representation of the filter to use - A callback handler used to report results - - - - RunAsyncAction initiates an asynchronous test run, returning immediately - - - - - Construct a RunAsyncAction and run all tests in the loaded TestSuite. - - A FrameworkController holding the TestSuite to run - A string containing the XML representation of the filter to use - A callback handler used to report results - - - - StopRunAction stops an ongoing run. - - - - - Construct a StopRunAction and stop any ongoing run. If no - run is in process, no error is raised. - - The FrameworkController for which a run is to be stopped. - True the stop should be forced, false for a cooperative stop. - >A callback handler used to report results - A forced stop will cause threads and processes to be killed as needed. - - - - Implementation of ITestAssemblyRunner - - - - - Initializes a new instance of the class. - - The builder. - - - - Gets the default level of parallel execution (worker threads) - - - - - The tree of tests that was loaded by the builder - - - - - The test result, if a run has completed - - - - - Indicates whether a test is loaded - - - - - Indicates whether a test is running - - - - - Indicates whether a test run is complete - - - - - Our settings, specified when loading the assembly - - - - - The top level WorkItem created for the assembly as a whole - - - - - The TestExecutionContext for the top level WorkItem - - - - - Loads the tests found in an Assembly - - File name of the assembly to load - Dictionary of option settings for loading the assembly - True if the load was successful - - - - Loads the tests found in an Assembly - - The assembly to load - Dictionary of option settings for loading the assembly - True if the load was successful - - - - Count Test Cases using a filter - - The filter to apply - The number of test cases found - - - - Run selected tests and return a test result. The test is run synchronously, - and the listener interface is notified as it progresses. - - Interface to receive EventListener notifications. - A test filter used to select tests to be run - - - - - Run selected tests asynchronously, notifying the listener interface as it progresses. - - Interface to receive EventListener notifications. - A test filter used to select tests to be run - - RunAsync is a template method, calling various abstract and - virtual methods to be overridden by derived classes. - - - - - Wait for the ongoing run to complete. - - Time to wait in milliseconds - True if the run completed, otherwise false - - - - Initiate the test run. - - - - - Signal any test run that is in process to stop. Return without error if no test is running. - - If true, kill any test-running threads - - - - Create the initial TestExecutionContext used to run tests - - The ITestListener specified in the RunAsync call - - - - Handle the the Completed event for the top level work item - - - - - The ITestAssemblyBuilder interface is implemented by a class - that is able to build a suite of tests given an assembly or - an assembly filename. - - - - - Build a suite of tests from a provided assembly - - The assembly from which tests are to be built - A dictionary of options to use in building the suite - A TestSuite containing the tests found in the assembly - - - - Build a suite of tests given the filename of an assembly - - The filename of the assembly from which tests are to be built - A dictionary of options to use in building the suite - A TestSuite containing the tests found in the assembly - - - - The ITestAssemblyRunner interface is implemented by classes - that are able to execute a suite of tests loaded - from an assembly. - - - - - Gets the tree of loaded tests, or null if - no tests have been loaded. - - - - - Gets the tree of test results, if the test - run is completed, otherwise null. - - - - - Indicates whether a test has been loaded - - - - - Indicates whether a test is currently running - - - - - Indicates whether a test run is complete - - - - - Loads the tests found in an Assembly, returning an - indication of whether or not the load succeeded. - - File name of the assembly to load - Dictionary of options to use in loading the test - An ITest representing the loaded tests - - - - Loads the tests found in an Assembly, returning an - indication of whether or not the load succeeded. - - The assembly to load - Dictionary of options to use in loading the test - An ITest representing the loaded tests - - - - Count Test Cases using a filter - - The filter to apply - The number of test cases found - - - - Run selected tests and return a test result. The test is run synchronously, - and the listener interface is notified as it progresses. - - Interface to receive ITestListener notifications. - A test filter used to select tests to be run - - - - Run selected tests asynchronously, notifying the listener interface as it progresses. - - Interface to receive EventListener notifications. - A test filter used to select tests to be run - - - - Wait for the ongoing run to complete. - - Time to wait in milliseconds - True if the run completed, otherwise false - - - - Signal any test run that is in process to stop. Return without error if no test is running. - - If true, kill any test-running threads - - - - DefaultTestAssemblyBuilder loads a single assembly and builds a TestSuite - containing test fixtures present in the assembly. - - - - - The default suite builder used by the test assembly builder. - - - - - Initializes a new instance of the class. - - - - - Build a suite of tests from a provided assembly - - The assembly from which tests are to be built - A dictionary of options to use in building the suite - - A TestSuite containing the tests found in the assembly - - - - - Build a suite of tests given the filename of an assembly - - The filename of the assembly from which tests are to be built - A dictionary of options to use in building the suite - - A TestSuite containing the tests found in the assembly - - - - - Marks a test that must run in a particular threading apartment state, causing it - to run in a separate thread if necessary. - - - - - Construct an ApartmentAttribute - - The apartment state that this test must be run under. You must pass in a valid apartment state. - - - - Provides the Author of a test or test fixture. - - - - - Initializes a new instance of the class. - - The name of the author. - - - - Initializes a new instance of the class. - - The name of the author. - The email address of the author. - - - - Marks a test to use a particular CombiningStrategy to join - any parameter data provided. Since this is the default, the - attribute is optional. - - - - - Construct a CombiningStrategyAttribute incorporating an - ICombiningStrategy and an IParamterDataProvider. - - Combining strategy to be used in combining data - An IParameterDataProvider to supply data - - - - Construct a CombiningStrategyAttribute incorporating an object - that implements ICombiningStrategy and an IParameterDataProvider. - This constructor is provided for CLS compliance. - - Combining strategy to be used in combining data - An IParameterDataProvider to supply data - - - - Construct one or more TestMethods from a given MethodInfo, - using available parameter data. - - The MethodInfo for which tests are to be constructed. - The suite to which the tests will be added. - One or more TestMethods - - - - Modify the test by adding the name of the combining strategy - to the properties. - - The test to modify - - - - 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 - - - - Wrap a command and return the result. - - The command to be wrapped - The wrapped command - - - - The test command for the RetryAttribute - - - - - Initializes a new instance of the class. - - The inner command. - The number of repetitions - - - - Runs the test, saving a TestResult in the supplied TestExecutionContext. - - The context in which the test should run. - A TestResult - - - - Attribute used to identify a method that is called once - after all the child tests have run. The method is - guaranteed to be called, even if an exception is thrown. - - - - - Attribute used to identify a method that is called once - to perform setup before any child tests are run. - - - - - LevelOfParallelismAttribute is used to set the number of worker threads - that may be allocated by the framework for running tests. - - - - - Construct a LevelOfParallelismAttribute. - - The number of worker threads to be created by the framework. - - - - ParallelizableAttribute is used to mark tests that may be run in parallel. - - - - - Construct a ParallelizableAttribute using default ParallelScope.Self. - - - - - Construct a ParallelizableAttribute with a specified scope. - - The ParallelScope associated with this attribute. - - - - Modify the context to be used for child tests - - The current TestExecutionContext - - - - The ParallelScope enumeration permits specifying the degree to - which a test and its descendants may be run in parallel. - - - - - No Parallelism is permitted - - - - - The test itself may be run in parallel with others at the same level - - - - - Descendants of the test may be run in parallel with one another - - - - - Descendants of the test down to the level of TestFixtures may be run in parallel - - - - - Provide actions to execute before and after tests. - - - - - Executed before each test is run - - The test that is going to be run. - - - - Executed after each test is run - - The test that has just been run. - - - - Provides the target for the action attribute - - - - - TestCaseSourceAttribute indicates the source to be used to - provide test fixture instances for a test class. - - - - - Error message string is public so the tests can use it - - - - - Construct with the name of the method, property or field that will provide data - - The name of a static method, property or field that will provide data. - - - - Construct with a Type and name - - The Type that will provide data - The name of a static method, property or field that will provide data. - - - - Construct with a Type - - The type 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 - - - - - Gets or sets the category associated with every fixture created from - this attribute. May be a single category or a comma-separated list. - - - - - Construct one or more TestFixtures from a given Type, - using available parameter data. - - The TypeInfo for which fixures are to be constructed. - One or more TestFixtures as TestSuite - - - - Returns a set of ITestFixtureData items for use as arguments - to a parameterized test fixture. - - The type for which data is needed. - - - - - Indicates which class the test or test fixture is testing - - - - - Initializes a new instance of the class. - - The type that is being tested. - - - - Initializes a new instance of the class. - - The type that is being tested. - - - - Provides a platform-independent methods for getting attributes - for use by AttributeConstraint and AttributeExistsConstraint. - - - - - Gets the custom attributes from the given object. - - Portable libraries do not have an ICustomAttributeProvider, so we need to cast to each of - it's direct subtypes and try to get attributes off those instead. - The actual. - Type of the attribute. - if set to true [inherit]. - A list of the given attribute on the given object. - - - - A MarshalByRefObject that lives forever - - - - - Obtains a lifetime service object to control the lifetime policy for this instance. - - - - - Provides NUnit specific extensions to aid in Reflection - across multiple frameworks - - - This version of the class supplies GetTypeInfo() on platforms - that don't support it. - - - - - GetTypeInfo gives access to most of the Type information we take for granted - on .NET Core and Windows Runtime. Rather than #ifdef different code for different - platforms, it is easiest to just code all platforms as if they worked this way, - thus the simple passthrough. - - - - - - - This class is a System.Diagnostics.Stopwatch on operating systems that support it. On those that don't, - it replicates the functionality at the resolution supported. - - - - - CollectionSupersetConstraint is used to determine whether - one collection is a superset of another - - - - - Construct a CollectionSupersetConstraint - - The collection that the actual value is expected to be a superset of - - - - The Description of what this constraint tests, for - use in messages and in the ConstraintResult. - - - - - Test whether the actual collection is a superset of - the expected collection provided. - - - - - - - DictionaryContainsValueConstraint is used to test whether a dictionary - contains an expected object as a value. - - - - - Construct a DictionaryContainsValueConstraint - - - - - - The Description of what this constraint tests, for - use in messages and in the ConstraintResult. - - - - - Test whether the expected value is contained in the dictionary - - - - - The EqualConstraintResult class is tailored for formatting - and displaying the result of an EqualConstraint. - - - - - Construct an EqualConstraintResult - - - - - Write a failure message. Overridden to provide custom - failure messages for EqualConstraint. - - 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 - - - - Display the failure information for two IEnumerables that did not match. - - The MessageWriter on which to display - The expected enumeration. - The actual enumeration - The depth of this failure in a set of nested collections - - - - FileExistsConstraint is used to determine if a file exists - - - - - Initializes a new instance of the class. - - - - - The Description of what this constraint tests, for - use in messages and in the ConstraintResult. - - - - - FileOrDirectoryExistsConstraint is used to determine if a file or directory exists - - - - - If true, the constraint will only check if files exist, not directories - - - - - If true, the constraint will only check if directories exist, not files - - - - - Initializes a new instance of the class that - will check files and directories. - - - - - Initializes a new instance of the class that - will only check files if ignoreDirectories is true. - - if set to true [ignore directories]. - - - - The Description of what this constraint tests, for - use in messages and in the ConstraintResult. - - - - - Applies the constraint to an actual value, returning a ConstraintResult. - - The value to be tested - A ConstraintResult - - - - Interface for all constraints - - - - - The display name of this Constraint for use by ToString(). - - - - - The Description of what this constraint tests, for - use in messages and in the ConstraintResult. - - - - - Arguments provided to this Constraint, for use in - formatting the description. - - - - - The ConstraintBuilder holding this constraint - - - - - Applies the constraint to an actual value, returning a ConstraintResult. - - The value to be tested - A ConstraintResult - - - - Applies the constraint to 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 - A ConstraintResult - - - - 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 - A ConstraintResult - - - - 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 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 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. - - - - - SubPathConstraint tests that the actual path is under the expected path - - - - - Initializes a new instance of the class. - - The expected path - - - - The Description of what this constraint tests, for - use in messages and in the ConstraintResult. - - - - - Test whether the constraint is satisfied by a given value - - The value to be tested - True for success, false for failure - - - - ThrowsExceptionConstraint tests that an exception has - been thrown, without any further tests. - - - - - The Description of what this constraint tests, for - use in messages and in the ConstraintResult. - - - - - Executes the code and returns success if an exception is thrown. - - A delegate representing the code to be tested - True if an exception is thrown, otherwise false - - - - 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. - - - - - - - AndConstraint succeeds only if both members succeed. - - - - - Create an AndConstraint from two other constraints - - The first constraint - The second constraint - - - - Gets text describing a 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 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 - - - - AssignableFromConstraint is used to test that an object - can be assigned from a given Type. - - - - - Construct an AssignableFromConstraint for the type provided - - - - - - Apply the constraint to an actual value, returning true if it succeeds - - The actual argument - True if the constraint succeeds, otherwise false. - - - - AssignableToConstraint is used to test that an object - can be assigned to a given Type. - - - - - Construct an AssignableToConstraint for the type provided - - - - - - Apply the constraint to an actual value, returning true if it succeeds - - The actual argument - True if the constraint succeeds, otherwise false. - - - - 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 attribute - Type and base constraint. - - - - - - - Determines whether the Type or other provider has the - expected attribute and if its value matches the - additional constraint specified. - - - - - Returns a string representation of the constraint. - - - - - AttributeExistsConstraint tests for the presence of a - specified attribute on a Type. - - - - - Constructs an AttributeExistsConstraint for a specific attribute Type - - - - - - The Description of what this constraint tests, for - use in messages and in the ConstraintResult. - - - - - Tests whether the object provides the expected attribute. - - A Type, MethodInfo, or other ICustomAttributeProvider - True if the expected attribute is present, otherwise false - - - - BinaryConstraint is the abstract base of all constraints - that combine two other constraints in some fashion. - - - - - The first constraint being combined - - - - - The second constraint being combined - - - - - Construct a BinaryConstraint from two other constraints - - The first constraint - The second constraint - - - - BinarySerializableConstraint tests whether - an object is serializable in binary format. - - - - - The Description of what this constraint tests, for - use in messages and in the ConstraintResult. - - - - - Test whether the constraint is satisfied by a given value - - The value to be tested - True for success, false for failure - - - - Returns the string representation - - - - - 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 - - - - - - - CollectionContainsConstraint is used to test whether a collection - contains an expected object as a member. - - - - - Construct a CollectionContainsConstraint - - - - - - The Description of what this constraint tests, for - use in messages and in the ConstraintResult. - - - - - Gets the expected object - - - - - Test whether the expected item is contained in the collection - - - - - - - CollectionEquivalentConstraint is used to determine whether two - collections are equivalent. - - - - - Construct a CollectionEquivalentConstraint - - - - - - The Description of what this constraint tests, for - use in messages and in the ConstraintResult. - - - - - Test whether two collections are equivalent - - - - - - - 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 ignore case and return 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. - - - - Compares two collection members for equality - - - - - Return a new CollectionTally for use in making tests - - The collection to be included in the tally - - - - CollectionOrderedConstraint is used to test whether a collection is ordered. - - - - - Construct a CollectionOrderedConstraint - - - - - If used performs a reverse comparison - - - - - Modifies the constraint to use an and returns self. - - - - - Modifies the constraint to use an and returns self. - - - - - Modifies the constraint to use a and returns self. - - - - - Modifies the constraint to test ordering by the value of - a specified property and returns self. - - - - - The Description of what this constraint tests, for - use in messages and in the ConstraintResult. - - - - - Test whether the collection is ordered - - - - - - - Returns the string representation of the constraint. - - - - - - 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 - - - - The Description of what this constraint tests, for - use in messages and in the ConstraintResult. - - - - - Test whether the actual collection is a subset of - the expected collection provided. - - - - - - - CollectionTally counts (tallies) the number of - occurrences of each object in one or more enumerations. - - - - - Construct a CollectionTally object from a comparer and a collection - - - - - The number of objects remaining in the tally - - - - - 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 - - - - ComparisonAdapter class centralizes all comparisons of - _values in NUnit, adapting to the use of any provided - , - or . - - - - - Gets the default ComparisonAdapter, which wraps an - NUnitComparer object. - - - - - Returns a ComparisonAdapter that wraps an - - - - - Returns a ComparisonAdapter that wraps an - - - - - Returns a ComparisonAdapter that wraps a - - - - - Compares two objects - - - - - Construct a default ComparisonAdapter - - - - - Construct a ComparisonAdapter for an - - - - - Compares two objects - - - - - - - - ComparerAdapter extends and - allows use of an or - to actually perform the comparison. - - - - - Construct a ComparisonAdapter for an - - - - - Compare a Type T to an object - - - - - Construct a ComparisonAdapter for a - - - - - Compare a Type T to an object - - - - - 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 - - - - - 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 - - - - Modifies the constraint to use an and returns self - - The comparer used for comparison tests - A constraint modified to use the given comparer - - - - Modifies the constraint to use an and returns self - - The comparer used for comparison tests - A constraint modified to use the given comparer - - - - Modifies the constraint to use a and returns self - - The comparer used for comparison tests - A constraint modified to use the given comparer - - - - Delegate used to delay evaluation of the actual value - to be used in evaluating a constraint - - - - - The Constraint class is the base of all built-in constraints - within NUnit. It provides the operator overloads used to combine - constraints. - - - - - Construct a constraint with optional arguments - - Arguments to be saved - - - - 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. - - - - - The Description of what this constraint tests, for - use in messages and in the ConstraintResult. - - - - - Arguments provided to this Constraint, for use in - formatting the description. - - - - - The ConstraintBuilder holding this constraint - - - - - Applies the constraint to an actual value, returning a ConstraintResult. - - The value to be tested - A ConstraintResult - - - - Applies the constraint to 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 - A ConstraintResult - - - - 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 - A ConstraintResult - - - - 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 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. - - - - - 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. - - - - - Resolves any pending operators and returns the resolved 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 reorganized. a ConstraintStack holds - input constraints as well as the results of each - operator applied. - - - - - OperatorStack is a type-safe stack for holding ConstraintOperators - - - - - Initializes a new instance of the class. - - The ConstraintBuilder using this stack. - - - - Gets a value indicating whether this is empty. - - true if empty; otherwise, false. - - - - Gets the topmost operator without modifying the stack. - - - - - Pushes the specified operator onto the stack. - - The operator to put onto the stack. - - - - Pops the topmost operator from the stack. - - The topmost operator on the stack - - - - ConstraintStack is a type-safe stack for holding Constraints - - - - - Initializes a new instance of the class. - - The ConstraintBuilder using this stack. - - - - Gets a value indicating whether this is empty. - - true if empty; otherwise, false. - - - - Pushes the specified constraint. As a side effect, - the constraint's Builder field is set to the - ConstraintBuilder owning this stack. - - The constraint to put onto the stack - - - - Pops this topmost constraint from the stack. - As a side effect, the constraint's Builder - field is set to null. - - The topmost contraint on the stack - - - - 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 expression 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. - - - - - 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 - reorganized. When a constraint is appended, it is returned as the - value of the operation so that modifiers may be applied. However, - any partially built expression is attached to the constraint for - later resolution. When an operator is appended, the partial - expression is returned. If it's a self-resolving operator, then - a ResolvableConstraintExpression is returned. - - - - - 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. Note that the constraint - is not reduced at this time. For example, if there - is a NotOperator on the stack we don't reduce and - return a NotConstraint. The original constraint must - be returned because it may support modifiers that - are yet to be applied. - - - - - 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 ConstraintExpression, which will apply - the following constraint to all members of a collection, - succeeding only if a specified number of them succeed. - - - - - 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 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 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. - - - - - With is currently a NOP - reserved for future use. - - - - - 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 for null - - - - - Returns a constraint that tests for True - - - - - Returns a constraint that tests for False - - - - - Returns a constraint that tests for a positive value - - - - - Returns a constraint that tests for a negative value - - - - - 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 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 supplied argument - - - - - Returns a constraint that tests whether the - actual value is greater than or equal to the supplied argument - - - - - Returns a constraint that tests whether the - actual value is greater than or equal to the supplied argument - - - - - Returns a constraint that tests whether the - actual value is less than the supplied argument - - - - - Returns a constraint that tests whether the - actual value is less than or equal to the supplied argument - - - - - Returns a constraint that tests whether the - actual value is less than or equal to the supplied 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 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 tests whether the actual value - is a superset of the collection supplied as an argument. - - - - - Returns a constraint that tests whether a collection is ordered - - - - - 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 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 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 ends with the substring supplied as an argument. - - - - - Returns a constraint that succeeds if the actual - value matches the regular expression supplied as an argument. - - - - - Returns a constraint that succeeds if the actual - value matches the regular expression supplied as an argument. - - - - - Returns a constraint that succeeds if the actual - value matches the regular expression 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 a subpath of the 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 constraint that succeeds if the value - is a file or directory and it exists. - - - - - Helper class with properties and methods that supply - a number of constraints used in Asserts. - - - - - 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 ConstraintExpression, which will apply - the following constraint to all members of a collection, - succeeding only if a specified number of them succeed. - - - - - 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 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 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 for null - - - - - Returns a constraint that tests for True - - - - - Returns a constraint that tests for False - - - - - Returns a constraint that tests for a positive value - - - - - Returns a constraint that tests for a negative value - - - - - 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 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 supplied argument - - - - - Returns a constraint that tests whether the - actual value is greater than or equal to the supplied argument - - - - - Returns a constraint that tests whether the - actual value is greater than or equal to the supplied argument - - - - - Returns a constraint that tests whether the - actual value is less than the supplied argument - - - - - Returns a constraint that tests whether the - actual value is less than or equal to the supplied argument - - - - - Returns a constraint that tests whether the - actual value is less than or equal to the supplied 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 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 tests whether the actual value - is a superset of the collection supplied as an argument. - - - - - Returns a constraint that tests whether a collection is ordered - - - - - 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 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 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 regular expression supplied as an argument. - - - - - Returns a constraint that succeeds if the actual - value matches the regular expression supplied as an argument. - - - - - Returns a constraint that succeeds if the actual - value matches the regular expression 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 a subpath of the 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. - - - - - 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. - - - - The Description of what this constraint tests, for - use in messages and in the ConstraintResult. - - - - - Flag the constraint to ignore case and return self. - - - - - Test whether the constraint is satisfied by a given value - - The value to be tested - True for success, false for failure - - - - Applies a delay to the match so that a match can be evaluated in the future. - - - - - Creates a new DelayedConstraint - - The inner constraint to 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 to decorate - The time interval after which the match is performed, in milliseconds - The time interval used for polling, in milliseconds - If the value of is less than 0 - - - - Gets text describing a constraint - - - - - 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 - A ConstraintResult - - - - 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 - - - - Returns the string representation of the constraint. - - - - - Adjusts a Timestamp by a given TimeSpan - - - - - - - - Returns the difference between two Timestamps as a TimeSpan - - - - - - - - DictionaryContainsKeyConstraint is used to test whether a dictionary - contains an expected object as a key. - - - - - Construct a DictionaryContainsKeyConstraint - - - - - - The Description of what this constraint tests, for - use in messages and in the ConstraintResult. - - - - - Test whether the expected key is contained in the dictionary - - - - - EmptyCollectionConstraint tests whether a collection is empty. - - - - - The Description of what this constraint tests, for - use in messages and in the ConstraintResult. - - - - - Check that the collection is empty - - - - - - - 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. - - - - - The Description of what this constraint tests, for - use in messages and in the ConstraintResult. - - - - - Test whether the constraint is satisfied by a given value - - The value to be tested - True for success, false for failure - - - - EmptyDirectoryConstraint is used to test that a directory is empty - - - - - The Description of what this constraint tests, for - use in messages and in the ConstraintResult. - - - - - Test whether the constraint is satisfied by a given value - - The value to be tested - True for success, false for failure - - - - EmptyStringConstraint tests whether a string is empty. - - - - - The Description of what this constraint tests, for - use in messages and in the ConstraintResult. - - - - - Test whether the constraint is satisfied by a given value - - The value to be tested - True for success, false for failure - - - - 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. - - - - - - - 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. - - - - - NUnitEqualityComparer used to test equality. - - - - - Initializes a new instance of the class. - - The expected value. - - - - Gets the tolerance for this comparison. - - - The tolerance. - - - - - Gets a value indicating whether to compare case insensitive. - - - true if comparing case insensitive; otherwise, false. - - - - - Gets a value indicating whether or not to clip strings. - - - true if set to clip strings otherwise, false. - - - - - Gets the failure points. - - - The failure points. - - - - - 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. - - - - - Flag the constraint to use a tolerance when determining equality. - - Tolerance value to be used - Self. - - - - Flags the constraint to include - property in comparison of two values. - - - Using this modifier does not allow to use the - constraint modifier. - - - - - 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 - - - - 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 - - - - The Description of what this constraint tests, for - use in messages and in the ConstraintResult. - - - - - EqualityAdapter class handles all equality comparisons - that use an , - or a . - - - - - Compares two objects, returning true if they are equal - - - - - Returns true if the two objects can be compared by this adapter. - The base adapter cannot handle IEnumerables except for strings. - - - - - Returns an that wraps an . - - - - - that wraps an . - - - - - Returns an that wraps an . - - - - - Returns true if the two objects can be compared by this adapter. - Generic adapter requires objects of the specified type. - - - - - Returns an that wraps an . - - - - - Returns an that wraps an . - - - - - that wraps an . - - - - - Returns an that wraps a . - - - - - 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. - - - - Apply the constraint to an actual value, returning true if it succeeds - - The actual argument - True if the constraint succeeds, otherwise false. - - - - FalseConstraint tests that the actual value is false - - - - - Initializes a new instance of the class. - - - - - Test whether the constraint is satisfied by a given value - - The value to be tested - True for success, false for failure - - - 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. - - - - - 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 - - - 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 - - - - - 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. - - - - ConstraintStatus represents the status of a ConstraintResult - returned by a Constraint being applied to an actual value. - - - - - The status has not yet been set - - - - - The constraint succeeded - - - - - The constraint failed - - - - - An error occured in applying the constraint (reserved for future use) - - - - - Contain the result of matching a against an actual value. - - - - - Constructs a for a particular . - - The Constraint to which this result applies. - The actual value to which the Constraint was applied. - - - - Constructs a for a particular . - - The Constraint to which this result applies. - The actual value to which the Constraint was applied. - The status of the new ConstraintResult. - - - - Constructs a for a particular . - - The Constraint to which this result applies. - The actual value to which the Constraint was applied. - If true, applies a status of Success to the result, otherwise Failure. - - - - The actual value that was passed to the method. - - - - - Gets and sets the ResultStatus for this result. - - - - - True if actual value meets the Constraint criteria otherwise false. - - - - - Display friendly name of the constraint. - - - - - Description of the constraint may be affected by the state the constraint had - when was performed against the actual value. - - - - - Write the failure message to the MessageWriter provided - as an argument. The default implementation simply passes - the result 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 - - - - 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 - - - - 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 - - - - Apply the constraint to an actual value, returning true if it succeeds - - The actual argument - True if the constraint succeeds, otherwise false. - - - - The IResolveConstraint interface is implemented by all - complete and resolvable constraints and expressions. - - - - - Return the top-level constraint for this expression - - - - - - 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. - - - - 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 - - - - - Abstract method to get the max line length - - - - - 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 failing constraint result - - - - 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 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 - - - - Static methods used in creating messages - - - - - Static string used when strings are clipped - - - - - Formatting strings used for expected and actual _values - - - - - Formats text to represent a generalized value. - - The value - The formatted text - - - - Formats 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 - - - - 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 - - - - NaNConstraint tests that the actual value is a double or float NaN - - - - - The Description of what this constraint tests, for - use in messages and in the ConstraintResult. - - - - - Test that the actual value is an NaN - - - - - - - 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. - - - - - - - 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 - - - - NullConstraint tests that the actual value is null - - - - - Initializes a new instance of the class. - - - - - Applies the constraint to an actual value, returning a ConstraintResult. - - The value to be tested - A ConstraintResult - - - - 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 - - - - NUnitComparer encapsulates NUnit's default behavior - in comparing two objects. - - - - - Returns the default NUnitComparer. - - - - - Compares two objects - - - - - - - - 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 - - - - - Comparison objects used in comparisons for some constraints. - - - - - List of points at which a failure occurred. - - - - - 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 the list of external comparers to be used to - test for equality. They are applied to members of - collections, in place of NUnit's own logic. - - - - - Gets the list of failure points for the last Match performed. - The list consists of objects to be interpreted by the caller. - This generally means that the caller may only make use of - objects it has placed on the list at a particular depthy. - - - - - Flags the comparer to include - property in comparison of two values. - - - Using this modifier does not allow to use the - modifier. - - - - - Compares two objects for equality within a tolerance. - - - - - 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 - - - - FailurePoint class represents one point of failure - in an equality test. - - - - - The location of the failure - - - - - The expected value - - - - - The actual value - - - - - Indicates whether the expected value is valid - - - - - Indicates whether the actual value is valid - - - - - Operator that requires both it's arguments to succeed - - - - - Construct an AndOperator - - - - - Apply the operator to produce an AndConstraint - - - - - 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. - - - - - 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. - - - - - - Gets the left precedence of the operator - - - - - Gets the right precedence of the operator - - - - - Abstract method that produces a constraint by applying - the operator to its left and right constraint arguments. - - - - - Abstract base for operators that indicate how to - apply a constraint to items in a collection. - - - - - Constructs a CollectionOperator - - - - - 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. - - - - - The syntax element preceding this operator - - - - - The syntax element following 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. - - - - - 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. - - - - - - Negates the test of the constraint it wraps. - - - - - Constructs a new NotOperator - - - - - Returns a NotConstraint applied to its argument. - - - - - Operator that requires at least one of it's arguments to succeed - - - - - Construct an OrOperator - - - - - Apply the operator to produce an OrConstraint - - - - - 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. - - - - - - - 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. - - - - - Gets the name of the property to which the operator applies - - - - - 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. - - - - - - Abstract base class for operators that are able to reduce to a - constraint whether or not another syntactic element follows. - - - - - 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. - - - - - Represents a constraint that simply wraps the - constraint provided as an argument, without any - further functionality, but which modifies the - order of evaluation because of its precedence. - - - - - Constructor for the WithOperator - - - - - Returns a constraint that wraps its argument - - - - - OrConstraint succeeds if either member succeeds - - - - - Create an OrConstraint from two other constraints - - The first constraint - The second constraint - - - - Gets text describing a 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 - - - - PathConstraint serves as the abstract base of constraints - that operate on paths and provides several helper methods. - - - - - Construct a PathConstraint for a give expected path - - The expected path - - - - Modifies the current instance to be case-sensitive - and returns it. - - - - - Returns the string representation of this constraint - - - - - Canonicalize the provided path - - - The path in standardized form - - - - Test whether one path in canonical form is a subpath of another path - - The first path - supposed to be the parent path - The second path - supposed to be the child path - - - - - Predicate constraint wraps a Predicate in a constraint, - returning success if the predicate is true. - - - - - Construct a PredicateConstraint from a predicate - - - - - Gets text describing a constraint - - - - - Determines whether the predicate succeeds when applied - to the actual value. - - - - - Abstract base class used for prefixes - - - - - The base constraint - - - - - Prefix used in forming the constraint description - - - - - Construct given a base constraint - - - - - - The Description of what this constraint tests, for - use in messages and in the ConstraintResult. - - - - - PropertyConstraint extracts a named property and uses - its value as the actual value for a chained 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 - - - - Returns the string representation of the constraint. - - - - - - 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 value - of the property. The two constraints are now separate. - - - - - Initializes a new instance of the class. - - The name of the property. - - - - The Description of what this constraint tests, for - use in messages and in the ConstraintResult. - - - - - Test whether the property exists for a given object - - The object to be tested - True for success, false for failure - - - - Returns the string representation of the constraint. - - - - - - RangeConstraint tests whether two _values are within a - specified range. - - - - - Initializes a new instance of the class. - - from must be less than or equal to true - Inclusive beginning of the range. Must be less than or equal to to. - Inclusive end of the range. Must be greater than or equal to from. - - - - Gets text describing a constraint - - - - - Test whether the constraint is satisfied by a given value - - The value to be tested - True for success, false for failure - - - - Modifies the constraint to use an and returns self. - - - - - Modifies the constraint to use an and returns self. - - - - - Modifies the constraint to use a and returns self. - - - - - 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 - - - - 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. - - - - - Appends an And Operator to the expression - - - - - Appends an Or operator to the expression. - - - - - Resolve the current expression to a Constraint - - - - - ReusableConstraint wraps a constraint expression after - resolving it so that it can be reused consistently. - - - - - Construct a ReusableConstraint from a constraint expression - - The expression to be resolved and reused - - - - Converts a constraint to a ReusableConstraint - - The constraint to be converted - A ReusableConstraint - - - - Returns a that represents this instance. - - - A that represents this instance. - - - - - Return the top-level constraint for this expression - - - - - - SameAsConstraint tests whether an object is identical to - the object passed to its constructor - - - - - Initializes a new instance of the class. - - The expected object. - - - - The Description of what this constraint tests, for - use in messages and in the ConstraintResult. - - - - - Test whether the constraint is satisfied by a given value - - The value to be tested - True for success, false for failure - - - - Summary description for SamePathConstraint. - - - - - Initializes a new instance of the class. - - The expected path - - - - The Description of what this constraint tests, for - use in messages and in the ConstraintResult. - - - - - Test whether the constraint is satisfied by a given value - - The value to be tested - True for success, false for failure - - - - SamePathOrUnderConstraint tests that one path is under another - - - - - Initializes a new instance of the class. - - The expected path - - - - The Description of what this constraint tests, for - use in messages and in the ConstraintResult. - - - - - Test whether the constraint is satisfied by a given value - - The value to be tested - True for success, false for failure - - - - 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. - - - - - - - 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. - - - - - - - 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 - - - - - Description of this constraint - - - - - The Description of what this constraint tests, for - use in messages and in the ConstraintResult. - - - - - Constructs a StringConstraint without an expected value - - - - - Constructs a StringConstraint given an expected value - - The expected value - - - - Modify the constraint to ignore case in matching. - - - - - 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 a given string - - The string to be tested - True for success, false for failure - - - - 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 - - - - 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. - - - - Get the actual exception thrown - used by Assert.Throws. - - - - - Gets text describing a constraint - - - - - 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 actual value for a failing constraint test to a - MessageWriter. This override only handles the special message - used when an exception is expected but none is thrown. - - The writer on which the actual value is displayed - - - - ThrowsNothingConstraint tests that a delegate does not - throw an exception. - - - - - Gets text describing a constraint - - - - - Test whether the constraint is satisfied by a given value - - The value to be tested - True if no exception is thrown, otherwise false - - - - Applies the constraint to 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 - A ConstraintResult - - - - 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. - - - - - Returns a default Tolerance object, equivalent to - specifying an exact match unless - is set, in which case, the - will be used. - - - - - Returns an empty Tolerance object, equivalent to - specifying an exact match even if - is set. - - - - - Constructs a linear tolerance of a specified amount - - - - - Constructs a tolerance given an amount and - - - - - Gets the for the current Tolerance - - - - - Tests that the current Tolerance is linear with a - numeric value, throwing an exception if it is not. - - - - - 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 as the amount, using - the current amount as a number of days. - - - - - Returns a new tolerance with a as the amount, using - the current amount as a number of hours. - - - - - Returns a new tolerance with a as the amount, using - the current amount as a number of minutes. - - - - - Returns a new tolerance with a as the amount, using - the current amount as a number of seconds. - - - - - Returns a new tolerance with a as the amount, using - the current amount as a number of milliseconds. - - - - - Returns a new tolerance with a as the amount, using - the current amount as a number of clock ticks. - - - - - Returns true if the current tolerance has not been set or is using the . - - - - - 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. - - - - - TrueConstraint tests that the actual value is true - - - - - Initializes a new instance of the class. - - - - - Test whether the constraint is satisfied by a given value - - The value to be tested - True for success, false for failure - - - - TypeConstraint is the abstract base for constraints - that take a Type as their expected value. - - - - - The expected Type used by the constraint - - - - - The type of the actual argument to which the constraint was applied - - - - - Construct a TypeConstraint for a given Type - - The expected type for the constraint - Prefix used in forming the constraint description - - - - Applies the constraint to an actual value, returning a ConstraintResult. - - The value to be tested - A ConstraintResult - - - - Apply the constraint to an actual value, returning true if it succeeds - - The actual argument - True if the constraint succeeds, otherwise false. - - - - UniqueItemsConstraint tests whether all the items in a - collection are unique. - - - - - The Description of what this constraint tests, for - use in messages and in the ConstraintResult. - - - - - Check that all items are unique. - - - - - - - XmlSerializableConstraint tests whether - an object is serializable in xml format. - - - - - Gets text describing a constraint - - - - - Test whether the constraint is satisfied by a given value - - The value to be tested - True for success, false for failure - - - - Returns the string representation of this constraint - - - - - ExactCountConstraint applies another constraint to each - item in a collection, succeeding only if a specified - number of items succeed. - - - - - Construct an ExactCountConstraint on top of an existing constraint - - - - - - - Apply the item constraint to each item in the collection, - succeeding only if the expected number of items pass. - - - - - - - Represents a constraint that succeeds if the specified - count of members of a collection match a base constraint. - - - - - Construct an ExactCountOperator for a specified count - - The expected count - - - - Returns a constraint that will apply the argument - to the members of a collection, succeeding if - none of them succeed. - - - - - ExceptionTypeConstraint is a special version of ExactTypeConstraint - used to provided detailed info about the exception thrown in - an error message. - - - - - Constructs an ExceptionTypeConstraint - - - - - Applies the constraint to an actual value, returning a ConstraintResult. - - The value to be tested - A ConstraintResult - - - - The Assert class contains a collection of static methods that - implement the most common assertions used in NUnit. - - - - - 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 - - - - Verifies that a delegate throws a particular exception when called. - - The exception Type expected - A TestDelegate - 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 TestDelegate - - - - Verifies that a delegate throws a particular exception when called. - - Type of the expected exception - A TestDelegate - 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 TestDelegate - - - - 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 - - - - 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 - - - - Verifies that a delegate throws an exception of a certain Type - or one derived from it 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 of a certain Type - or one derived from it when called and returns it. - - A TestDelegate - - - - Verifies that a delegate does not throw an exception - - A TestDelegate - 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 TestDelegate - - - - 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 - - - - 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 - - - - 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 - - - - 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 - - - - 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 - - - - 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 - - - - 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 - - - - 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 - - - - 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 - - - - 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 - - - - 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 - - - - 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 - - - - 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 - - - - 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 - - - - 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 - - - - 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 - - - - 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. - - 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 - - - - 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 - - - - 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 - 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 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 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. - Used as a synonym for That in rare cases where a private setter - causes a Visual Basic compilation error. - - 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. - Used as a synonym for That in rare cases where a private setter - causes a Visual Basic compilation error. - - - This method is provided for use by VB developers needing to test - the value of properties with private setters. - - 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 - - - - Verifies that the first int is greater than the second - int. 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 int is greater than the second - int. 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 - - - - 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 - - - - 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 - - - - 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 - - - - 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 - - - - 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 - - - - 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 - - - - 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 - - - - 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 - - - - 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 - - - - 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 - - - - 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 - - - - 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 - - - - 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 - - - - 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 - - - - Verifies that the first value is greater than or equal to 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 or equal to 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 or equal to 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 or equal to 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 or equal to 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 or equal to 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 or equal to 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 or equal to 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 or equal to 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 or equal to 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 or equal to 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 or equal to 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 or equal to 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 or equal to 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 or equal to 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 or equal to 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 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 - - - - 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 - - - - 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 - - - - 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 - - - - 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 - - - - 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 - - - - 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 - - - - 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 - - - - 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 - 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 - - - - 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 - 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 - - - - 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 - 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 - - - - 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 - 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 - - - - 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 - - - - 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 - - - - 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 - - - - 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 - - - - 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 - - - - 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 - - - - 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 - - - - 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 - - - - 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 - - - - 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 - - - - 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. - - - - - - - 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. - - - - - 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 - - - - Any ITest that implements this interface is at a level that the implementing - class should be disposed at the end of the test run - - - - - The IMethodInfo class is used to encapsulate information - about a method in a platform-independent manner. - - - - - Gets the Type from which this method was reflected. - - - - - Gets the MethodInfo for this method. - - - - - Gets the name of the method. - - - - - Gets a value indicating whether the method is abstract. - - - - - Gets a value indicating whether the method is public. - - - - - Gets a value indicating whether the method contains unassigned generic type parameters. - - - - - Gets a value indicating whether the method is a generic method. - - - - - Gets a value indicating whether the MethodInfo represents the definition of a generic method. - - - - - Gets the return Type of the method. - - - - - Gets the parameters of the method. - - - - - - Returns the Type arguments of a generic method or the Type parameters of a generic method definition. - - - - - Replaces the type parameters of the method with the array of types provided and returns a new IMethodInfo. - - The type arguments to be used - A new IMethodInfo with the type arguments replaced - - - - Invokes the method, converting any TargetInvocationException to an NUnitException. - - The object on which to invoke the method - The argument list for the method - The return value from the invoked method - - - - The IParameterInfo interface is an abstraction of a .NET parameter. - - - - - Gets a value indicating whether the parameter is optional - - - - - Gets an IMethodInfo representing the method for which this is a parameter - - - - - Gets the underlying .NET ParameterInfo - - - - - Gets the Type of the parameter - - - - - The IReflectionInfo interface is implemented by NUnit wrapper objects that perform reflection. - - - - - Returns an array of custom attributes of the specified type applied to this object - - - - - Returns a value indicating whether an attribute of the specified type is defined on this object. - - - - - The ITypeInfo interface is an abstraction of a .NET Type - - - - - Gets the underlying Type on which this ITypeInfo is based - - - - - Gets the base type of this type as an ITypeInfo - - - - - Returns true if the Type wrapped is equal to the argument - - - - - Gets the Name of the Type - - - - - Gets the FullName of the Type - - - - - Gets the assembly in which the type is declared - - - - - Gets the Namespace of the Type - - - - - Gets a value indicating whether the type is abstract. - - - - - Gets a value indicating whether the Type is a generic Type - - - - - Gets a value indicating whether the Type has generic parameters that have not been replaced by specific Types. - - - - - Gets a value indicating whether the Type is a generic Type definition - - - - - Gets a value indicating whether the type is sealed. - - - - - Gets a value indicating whether this type is a static class. - - - - - Get the display name for this typeInfo. - - - - - Get the display name for an oject of this type, constructed with specific arguments - - - - - Returns a Type representing a generic type definition from which this Type can be constructed. - - - - - Returns a new ITypeInfo representing an instance of this generic Type using the supplied Type arguments - - - - - Returns a value indicating whether this type has a method with a specified public attribute - - - - - Returns an array of IMethodInfos for methods of this Type - that match the specified flags. - - - - - Returns a value indicating whether this Type has a public constructor taking the specified argument Types. - - - - - Construct an object of this Type, using the specified arguments. - - - - - CombiningStrategy is the abstract base for classes that - know how to combine values provided for individual test - parameters to create a set of test cases. - - - - - Gets the test cases generated by the CombiningStrategy. - - The test cases. - - - - The ISimpleTestBuilder interface is exposed by a class that knows how to - build a single TestMethod from a suitable MethodInfo Types. In general, - it is exposed by an attribute, but may be implemented in a helper class - used by the attribute in some cases. - - - - - Build a TestMethod from the provided MethodInfo. - - The method to be used as a test - The TestSuite to which the method will be added - A TestMethod object - - - - The ITestBuilder interface is exposed by a class that knows how to - build one or more TestMethods from a MethodInfo. In general, it is exposed - by an attribute, which has additional information available to provide - the necessary test parameters to distinguish the test cases built. - - - - - Build one or more TestMethods from the provided MethodInfo. - - The method to be used as a test - The TestSuite to which the method will be added - A TestMethod object - - - - The IDataPointProvider interface is used by extensions - that provide data for a single test parameter. - - - - - Determine whether any data is available for a parameter. - - An IParameterInfo representing one - argument to a parameterized test - True if any data is available, otherwise false. - - - - Return an IEnumerable providing data for use with the - supplied parameter. - - An IParameterInfo representing one - argument to a parameterized test - An IEnumerable providing the required data - - - - The IParameterDataSource interface is implemented by types - that can provide data for a test method parameter. - - - - - Gets an enumeration of data items for use as arguments - for a test method parameter. - - The parameter for which data is needed - An enumeration containing individual data items - - - - A PropertyBag represents a collection of name/value pairs - that allows duplicate entries with the same key. Methods - are provided for adding a new pair as well as for setting - a key to a single value. All keys are strings but _values - may be of any type. Null _values are not permitted, since - a null entry represents the absence of the key. - - The entries in a PropertyBag are of two kinds: those that - take a single value and those that take multiple _values. - However, the PropertyBag has no knowledge of which entries - fall into each category and the distinction is entirely - up to the code using the PropertyBag. - - When working with multi-valued properties, client code - should use the Add method to add name/value pairs and - indexing to retrieve a list of all _values for a given - key. For example: - - bag.Add("Tag", "one"); - bag.Add("Tag", "two"); - Assert.That(bag["Tag"], - Is.EqualTo(new string[] { "one", "two" })); - - When working with single-valued propeties, client code - should use the Set method to set the value and Get to - retrieve the value. The GetSetting methods may also be - used to retrieve the value in a type-safe manner while - also providing default. For example: - - bag.Set("Priority", "low"); - bag.Set("Priority", "high"); // replaces value - Assert.That(bag.Get("Priority"), - Is.EqualTo("high")); - Assert.That(bag.GetSetting("Priority", "low"), - Is.EqualTo("high")); - - - - - Adds a key/value pair to the property bag - - The key - The value - - - - Sets the value for a key, removing any other - _values that are already in the property set. - - - - - - - Gets a single value for a key, using the first - one if multiple _values are present and returning - null if the value is not found. - - - - - Gets a flag indicating whether the specified key has - any entries in the property set. - - The key to be checked - True if their are _values present, otherwise false - - - - Gets or sets the list of _values for a particular key - - The key for which the _values are to be retrieved or set - - - - Gets a collection containing all the keys in the property set - - - - - Common interface supported by all representations - of a test. Only includes informational fields. - The Run method is specifically excluded to allow - for data-only representations of a test. - - - - - Gets the id of the test - - - - - Gets the name of the test - - - - - Gets the fully qualified name of the test - - - - - Gets the name of the class containing this test. Returns - null if the test is not associated with a class. - - - - - Gets the name of the method implementing this test. - Returns null if the test is not implemented as a method. - - - - - Gets the Type of the test fixture, if applicable, or - null if no fixture type is associated with this test. - - - - - Gets an IMethod for the method implementing this test. - Returns null if the test is not implemented as a method. - - - - - Gets the RunState of the test, indicating whether it can be run. - - - - - Count of the test cases ( 1 if this is a test case ) - - - - - Gets the properties of the test - - - - - Gets the parent test, if any. - - The parent test or null if none exists. - - - - Returns true if this is a test suite - - - - - Gets a bool indicating whether the current test - has any descendant tests. - - - - - Gets this test's child tests - - A list of child tests - - - - Gets a fixture object for running this test. - - - - - The ITestData interface is implemented by a class that - represents a single instance of a parameterized test. - - - - - Gets the name to be used for the test - - - - - Gets the RunState for this test case. - - - - - Gets the argument list to be provided to the test - - - - - Gets the property dictionary for the test case - - - - - The ITestCaseData interface is implemented by a class - that is able to return the data required to create an - instance of a parameterized test fixture. - - - - - Get the TypeArgs if separately set - - - - - The ITestCaseData interface is implemented by a class - that is able to return complete testcases for use by - a parameterized test method. - - - - - Gets the expected result of the test case - - - - - Returns true if an expected result has been set - - - - - Interface to be implemented by filters applied to tests. - The filter applies when running the test, after it has been - loaded, since this is the only time an ITest exists. - - - - - Determine if a particular test passes the filter criteria. Pass - may examine the parents and/or descendants of a test, depending - on the semantics of the particular filter - - The test to which the filter is applied - True if the test passes the filter, otherwise false - - - - Determine if a test matches the filter expicitly. That is, it must - be a direct match of the test itself or one of it's children. - - The test to which the filter is applied - True if the test matches the filter explicityly, otherwise false - - - - The ITestListener interface is used internally to receive - notifications of significant events while a test is being - run. The events are propagated to clients by means of an - AsyncCallback. NUnit extensions may also monitor these events. - - - - - Called when a test has just started - - The test that is starting - - - - Called when a test has finished - - The result of the test - - - - The ITestResult interface represents the result of a test. - - - - - Gets the ResultState of the test result, which - indicates the success or failure of the test. - - - - - Gets the name of the test result - - - - - Gets the full name of the test result - - - - - Gets the elapsed time for running the test in seconds - - - - - Gets or sets the time the test started running. - - - - - Gets or sets the time the test finished running. - - - - - Gets the message associated with a test - failure or with not running the test - - - - - Gets any stacktrace associated with an - error or failure. Not available in - the Compact Framework 1.0. - - - - - Gets the number of asserts executed - when running the test and all its children. - - - - - Gets the number of test cases that failed - when running the test and all its children. - - - - - Gets the number of test cases that passed - when running the test and all its children. - - - - - Gets the number of test cases that were skipped - when running the test and all its children. - - - - - Gets the number of test cases that were inconclusive - when running the test and all its children. - - - - - Indicates whether this result has any child results. - Accessing HasChildren should not force creation of the - Children collection in classes implementing this interface. - - - - - Gets the the collection of child results. - - - - - Gets the Test to which this result applies. - - - - - Gets any text output written to this result. - - - - - An object implementing IXmlNodeBuilder is able to build - an XML representation of itself and any children. - - - - - Returns a TNode representing the current object. - - If true, children are included where applicable - A TNode representing the result - - - - Returns a TNode representing the current object after - adding it as a child of the supplied parent node. - - The parent node. - If true, children are included, where applicable - - - - - The ResultState class represents the outcome of running a test. - It contains two pieces of information. The Status of the test - is an enum indicating whether the test passed, failed, was - skipped or was inconclusive. The Label provides a more - detailed breakdown for use by client runners. - - - - - Initializes a new instance of the class. - - The TestStatus. - - - - Initializes a new instance of the class. - - The TestStatus. - The label. - - - - Initializes a new instance of the class. - - The TestStatus. - The stage at which the result was produced - - - - Initializes a new instance of the class. - - The TestStatus. - The label. - The stage at which the result was produced - - - - The result is inconclusive - - - - - The test has been skipped. - - - - - The test has been ignored. - - - - - The test was skipped because it is explicit - - - - - The test succeeded - - - - - The test failed - - - - - The test encountered an unexpected exception - - - - - The test was cancelled by the user - - - - - The test was not runnable. - - - - - A suite failed because one or more child tests failed or had errors - - - - - A suite failed in its OneTimeSetUp - - - - - A suite had an unexpected exception in its OneTimeSetUp - - - - - A suite had an unexpected exception in its OneTimeDown - - - - - Gets the TestStatus for the test. - - The status. - - - - Gets the label under which this test result is - categorized, if any. - - - - - Gets the stage of test execution in which - the failure or other result took place. - - - - - Get a new ResultState, which is the same as the current - one but with the FailureSite set to the specified value. - - The FailureSite to use - A new ResultState - - - - Determines whether the specified , is equal to this instance. - - The to compare with this instance. - - true if the specified is equal to this instance; otherwise, false. - - - - - Returns a hash code for this instance. - - - A hash code for this instance, suitable for use in hashing algorithms and data structures like a hash table. - - - - - Returns a that represents this instance. - - - A that represents this instance. - - - - - The FailureSite enum indicates the stage of a test - in which an error or failure occurred. - - - - - Failure in the test itself - - - - - Failure in the SetUp method - - - - - Failure in the TearDown method - - - - - Failure of a parent test - - - - - Failure of a child test - - - - - The RunState enum indicates whether a test can be executed. - - - - - The test is not runnable. - - - - - The test is runnable. - - - - - The test can only be run explicitly - - - - - The test has been skipped. This value may - appear on a Test when certain attributes - are used to skip the test. - - - - - The test has been ignored. May appear on - a Test, when the IgnoreAttribute is used. - - - - - The TestStatus enum indicates the result of running a test - - - - - The test was inconclusive - - - - - The test has skipped - - - - - The test succeeded - - - - - The test failed - - - - - TNode represents a single node in the XML representation - of a Test or TestResult. It replaces System.Xml.XmlNode and - System.Xml.Linq.XElement, providing a minimal set of methods - for operating on the XML in a platform-independent manner. - - - - - Constructs a new instance of TNode - - The name of the node - - - - Constructs a new instance of TNode with a value - - The name of the node - The text content of the node - - - - Constructs a new instance of TNode with a value - - The name of the node - The text content of the node - Flag indicating whether to use CDATA when writing the text - - - - Gets the name of the node - - - - - Gets the value of the node - - - - - Gets a flag indicating whether the value should be output using CDATA. - - - - - Gets the dictionary of attributes - - - - - Gets a list of child nodes - - - - - Gets the first ChildNode - - - - - Gets the XML representation of this node. - - - - - Create a TNode from it's XML text representation - - The XML text to be parsed - A TNode - - - - Adds a new element as a child of the current node and returns it. - - The element name. - The newly created child element - - - - Adds a new element with a value as a child of the current node and returns it. - - The element name - The text content of the new element - The newly created child element - - - - Adds a new element with a value as a child of the current node and returns it. - The value will be output using a CDATA section. - - The element name - The text content of the new element - The newly created child element - - - - Adds an attribute with a specified name and value to the XmlNode. - - The name of the attribute. - The value of the attribute. - - - - Finds a single descendant of this node matching an xpath - specification. The format of the specification is - limited to what is needed by NUnit and its tests. - - - - - - - Finds all descendants of this node matching an xpath - specification. The format of the specification is - limited to what is needed by NUnit and its tests. - - - - - Writes the XML representation of the node to an XmlWriter - - - - - - Class used to represent a list of XmlResults - - - - - Class used to represent the attributes of a node - - - - - Gets or sets the value associated with the specified key. - Overridden to return null if attribute is not found. - - The key. - Value of the attribute or null - - - - The IFixtureBuilder interface is exposed by a class that knows how to - build a TestFixture from one or more Types. In general, it is exposed - by an attribute, but may be implemented in a helper class used by the - attribute in some cases. - - - - - Build one or more TestFixtures from type provided. At least one - non-null TestSuite must always be returned, since the method is - generally called because the user has marked the target class as - a fixture. If something prevents the fixture from being used, it - will be returned nonetheless, labelled as non-runnable. - - The type info of the fixture to be used. - A TestSuite object or one derived from TestSuite. - - - - IImplyFixture is an empty marker interface used by attributes like - TestAttribute that cause the class where they are used to be treated - as a TestFixture even without a TestFixtureAttribute. - - Marker interfaces are not usually considered a good practice, but - we use it here to avoid cluttering the attribute hierarchy with - classes that don't contain any extra implementation. - - - - - The IApplyToContext interface is implemented by attributes - that want to make changes to the execution context before - a test is run. - - - - - Apply changes to the execution context - - The execution context - - - - The IApplyToTest interface is implemented by self-applying - attributes that modify the state of a test in some way. - - - - - Modifies a test as defined for the specific attribute. - - The test to modify - - - - The ISuiteBuilder interface is exposed by a class that knows how to - build a suite from one or more Types. - - - - - Examine the type and determine if it is suitable for - this builder to use in building a TestSuite. - - Note that returning false will cause the type to be ignored - in loading the tests. If it is desired to load the suite - but label it as non-runnable, ignored, etc., then this - method must return true. - - The type of the fixture to be used - True if the type can be used to build a TestSuite - - - - Build a TestSuite from type provided. - - The type of the fixture to be used - A TestSuite - - - - The ITestCaseBuilder interface is exposed by a class that knows how to - build a test case from certain methods. - - - This interface is not the same as the ITestCaseBuilder interface in NUnit 2.x. - We have reused the name because the two products don't interoperate at all. - - - - - Examine the method and determine if it is suitable for - this builder to use in building a TestCase to be - included in the suite being populated. - - Note that returning false will cause the method to be ignored - in loading the tests. If it is desired to load the method - but label it as non-runnable, ignored, etc., then this - method must return true. - - The test method to examine - The suite being populated - True is the builder can use this method - - - - Build a TestCase from the provided MethodInfo for - inclusion in the suite being constructed. - - The method to be used as a test case - The test suite being populated, or null - A TestCase or null - - - - ICommandWrapper is implemented by attributes and other - objects able to wrap a TestCommand with another command. - - - Attributes or other objects should implement one of the - derived interfaces, rather than this one, since they - indicate in which part of the command chain the wrapper - should be applied. - - - - - Wrap a command and return the result. - - The command to be wrapped - The wrapped command - - - - Objects implementing this interface are used to wrap - the TestMethodCommand itself. They apply after SetUp - has been run and before TearDown. - - - - - Objects implementing this interface are used to wrap - the entire test, including SetUp and TearDown. - - - - - The TestFixtureData class represents a set of arguments - and other parameter info to be used for a parameterized - fixture. It is derived from TestFixtureParameters and adds a - fluent syntax for use in initializing the fixture. - - - - - 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. - - - - Marks the test fixture as explicit. - - - - - Marks the test fixture as explicit, specifying the reason. - - - - - Ignores this TestFixture, specifying the reason. - - The reason. - - - - - Asserts on Directories - - - - - 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. - - - - - - - Verifies that two directories are equal. Two directories are considered - equal if both are null, or if both point to the same directory. - 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 the 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 point to the same directory. - If they are not 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 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 - - - - Asserts that the directory exists. If it does not exist - an is thrown. - - 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 the directory exists. If it does not exist - an is thrown. - - A directory containing the actual value - - - - Asserts that the directory exists. If it does not exist - an is thrown. - - The path to 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 the directory exists. If it does not exist - an is thrown. - - The path to a directory containing the actual value - - - - Asserts that the directory does not exist. If it does exist - an is thrown. - - 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 the directory does not exist. If it does exist - an is thrown. - - A directory containing the actual value - - - - Asserts that the directory does not exist. If it does exist - an is thrown. - - The path to 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 the directory does not exist. If it does exist - an is thrown. - - The path to a directory containing the actual value - - - - Helper class with properties and methods that supply - a number of constraints used in Asserts. - - - - - Returns a ConstraintExpression that negates any - following constraint. - - - - - Returns a constraint that succeeds if the value - is a file or directory and it exists. - - - - - 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 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 regular expression supplied as an argument. - - - - - Abstract base for Exceptions that terminate a test and provide a ResultState. - - - - 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 - - - - - Gets the ResultState provided by this exception - - - - - When implemented by an attribute, this interface implemented to provide actions to execute before and after tests. - - - - - Executed before each test is run - - The test that is going to be run. - - - - Executed after each test is run - - The test that has just been run. - - - - Provides the target for the action attribute - - The target for the action attribute - - - - Delegate used by tests that execute code and - capture any thrown exception. - - - - - AssertionHelper is an optional base class for user tests, - allowing the use of shorter ids for constraints and - asserts and avoiding conflict with the definition of - , from which it inherits much of its - behavior, in certain mock object frameworks. - - - - - 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 - - - - 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. - - 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 - - - - 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 - - - - 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 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 - - - - Returns a ListMapper based on a collection. - - The original collection - - - - - 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 - 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. - - 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 - - - - 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 - - - - 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 - - - - Apply a constraint to an actual value, succeeding if the constraint - is satisfied and throwing an InconclusiveException 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 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 - - - - 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 - - - - - Modifies a test by adding a category to it. - - The test to modify - - - - Marks a test to use a combinatorial join of any argument - data provided. Since this is the default, the attribute is - optional. - - - - - Default constructor - - - - - 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 - - - - Causes a test to be skipped if this CultureAttribute is not satisfied. - - The test to modify - - - - Tests to determine if the current culture is supported - based on the properties of this attribute. - - True, if the current culture is supported - - - - Test to determine if the a particular culture or comma- - delimited set of cultures is in use. - - Name of the culture or comma-separated list of culture ids - True if the culture is in use on the system - - - - Test to determine if one of a collection of cultures - is being used currently. - - - - - - - The abstract base class for all data-providing attributes - defined by NUnit. Used to select all data sources for a - method, class or parameter. - - - - - Default constructor - - - - - 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 a field, property or method providing a set of datapoints to - be used in executing any theories within the same fixture that require an - argument of the Type provided. The data source may provide an array of - the required Type or an . - Synonymous with DatapointSourceAttribute. - - - - - Used to mark a field, property or method providing a set of datapoints to - be used in executing any theories within the same fixture that require an - argument of the Type provided. The data source may provide an array of - the required Type or an . - Synonymous with DatapointsAttribute. - - - - - Attribute used to provide descriptive text about a - test case or fixture. - - - - - Construct a description Attribute - - The text of the description - - - - 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 - - - - Modifies a test by marking it as explicit. - - The test to modify - - - - 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 giving a reason for ignoring the test - - The reason for ignoring the test - - - - The date in the future to stop ignoring the test as a string in UTC time. - For example for a date and time, "2014-12-25 08:10:00Z" or for just a date, - "2014-12-25". If just a date is given, the Ignore will expire at midnight UTC. - - - Once the ignore until date has passed, the test will be marked - as runnable. Tests with an ignore until date will have an IgnoreUntilDate - property set which will appear in the test results. - - The string does not contain a valid string representation of a date and time. - - - - Modifies a test by marking it as Ignored. - - The test to modify - - - - 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 items 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 - - - - - Summary description for MaxTimeAttribute. - - - - - Construct a MaxTimeAttribute, given a time in milliseconds. - - The maximum elapsed time in milliseconds - - - - The abstract base class for all custom attributes defined by NUnit. - - - - - Default constructor - - - - - Marks a test to use a pairwise join of any argument - data provided. Arguments will be combined in such a - way that all possible pairs of arguments are used. - - - - - Default constructor - - - - - 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-delimited list of platforms - - - - Causes a test to be skipped if this PlatformAttribute is not satisfied. - - The test to modify - - - - 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 - - - - - Modifies a test by adding properties to it. - - The test to modify - - - - RandomAttribute is used to supply a set of random _values - to a single parameter of a parameterized test. - - - - - Construct a random set of values appropriate for the Type of the - parameter on which the attribute appears, specifying only the count. - - - - - - Construct a set of ints within a specified range - - - - - Construct a set of unsigned ints within a specified range - - - - - Construct a set of longs within a specified range - - - - - Construct a set of unsigned longs within a specified range - - - - - Construct a set of shorts within a specified range - - - - - Construct a set of unsigned shorts within a specified range - - - - - Construct a set of doubles within a specified range - - - - - Construct a set of floats within a specified range - - - - - Construct a set of bytes within a specified range - - - - - Construct a set of sbytes within a specified range - - - - - 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 unsigned ints using default step of 1 - - - - - - - Construct a range of unsigned ints specifying the step size - - - - - - - - Construct a range of longs using a default step of 1 - - - - - - - Construct a range of longs - - - - - - - - Construct a range of unsigned longs using default step of 1 - - - - - - - Construct a range of unsigned longs specifying the step size - - - - - - - - Construct a range of doubles - - - - - - - - Construct a range of floats - - - - - - - - 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 - - - - Wrap a command and return the result. - - The command to be wrapped - The wrapped command - - - - The test command for the RepeatAttribute - - - - - Initializes a new instance of the class. - - The inner command. - The number of repetitions - - - - Runs the test, saving a TestResult in the supplied TestExecutionContext. - - The context in which the test should run. - A TestResult - - - - 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 in the STA, causing it - to run in a separate thread if necessary. - - - - - Construct a RequiresSTAAttribute - - - - - Marks a test that must run on a separate thread. - - - - - Construct a RequiresThreadAttribute - - - - - Construct a RequiresThreadAttribute, specifying the apartment - - - - - Marks a test to use a Sequential join of any argument - data provided. Arguments will be combined into test cases, - taking the next value of each argument until all are used. - - - - - Default constructor - - - - - Summary description for SetCultureAttribute. - - - - - Construct given the name of a culture - - - - - - Summary description for SetUICultureAttribute. - - - - - Construct given the name of a culture - - - - - - 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 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 class that contains one-time SetUp - and/or TearDown methods that apply to all the tests in a - namespace or an assembly. - - - - - SetUpFixtureAttribute is used to identify a SetUpFixture - - - - - Build a SetUpFixture from type provided. Normally called for a Type - on which the attribute has been placed. - - The type info of the fixture to be used. - A SetUpFixture object as a TestSuite. - - - - 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")] - public void TestDescriptionMethod() - {} - } - - - - - - Descriptive text for this test - - - - - The author of this test - - - - - The type that this test is testing - - - - - Modifies a test by adding a description, if not already set. - - The test to modify - - - - Gets or sets the expected result. - - The result. - - - - Returns true if an expected result has been set - - - - - Construct a TestMethod from a given method. - - The method for which a test is to be constructed. - The suite to which the test will be added. - A TestMethod - - - - TestCaseAttribute is used to mark parameterized test cases - and provide them with their arguments. - - - - - 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 or sets the name of the test. - - The name of the test. - - - - Gets or sets the RunState of this test case. - - - - - Gets the list of arguments to a test case - - - - - Gets the properties of the test case - - - - - Gets or sets the expected result. - - The result. - - - - Returns true if the expected result has been set - - - - - Gets or sets the description. - - The description. - - - - The author of this test - - - - - The type that this test is testing - - - - - Gets or sets the reason for ignoring the test - - - - - Gets or sets a value indicating whether this is explicit. - - - true if explicit; otherwise, false. - - - - - Gets or sets the reason for not running the test. - - The reason. - - - - Gets or sets the ignore reason. When set to a non-null - non-empty value, the test is marked as ignored. - - The ignore reason. - - - - Comma-delimited list of platforms to run the test for - - - - - Comma-delimited list of platforms to not run the test for - - - - - Gets and sets the category for this test case. - May be a comma-separated list of categories. - - - - - Performs several special conversions allowed by NUnit in order to - permit arguments with types that cannot be used in the constructor - of an Attribute such as TestCaseAttribute or to simplify their use. - - The arguments to be converted - The ParameterInfo array for the method - - - - Construct one or more TestMethods from a given MethodInfo, - using available parameter data. - - The MethodInfo for which tests are to be constructed. - The suite to which the tests will be added. - One or more TestMethods - - - - TestCaseSourceAttribute indicates the source to be used to - provide test cases for a test method. - - - - - Construct with the name of the method, property or field that will provide data - - The name of a static method, property or field that will provide data. - - - - Construct with a Type and name - - The Type that will provide data - The name of a static method, property or field that will provide data. - - - - Construct with a Type - - The type 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 - - - - - Gets or sets the category associated with every fixture created from - this attribute. May be a single category or a comma-separated list. - - - - - Construct one or more TestMethods from a given MethodInfo, - using available parameter data. - - The IMethod for which tests are to be constructed. - The suite to which the tests will be added. - One or more TestMethods - - - - Returns a set of ITestCaseDataItems for use as arguments - to a parameterized test method. - - The method for which data is needed. - - - - - TestFixtureAttribute is used to mark a class that represents a TestFixture. - - - - - 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. - - - - - - Gets or sets the name of the test. - - The name of the test. - - - - Gets or sets the RunState of this test fixture. - - - - - The arguments originally provided to the attribute - - - - - Properties pertaining to this fixture - - - - - Get or set the type arguments. If not set - explicitly, any leading arguments that are - Types are taken as type arguments. - - - - - Descriptive text for this fixture - - - - - The author of this fixture - - - - - The type that this fixture is testing - - - - - Gets or sets the ignore reason. May set RunState as a side effect. - - The ignore reason. - - - - Gets or sets the reason for not running the fixture. - - The reason. - - - - Gets or sets the ignore reason. When set to a non-null - non-empty value, the test is marked as ignored. - - The ignore reason. - - - - Gets or sets a value indicating whether this is explicit. - - - true if explicit; otherwise, false. - - - - - Gets and sets the category for this fixture. - May be a comma-separated list of categories. - - - - - Build a fixture from type provided. Normally called for a Type - on which the attribute has been placed. - - The type info of the fixture to be used. - A an IEnumerable holding one TestFixture object. - - - - 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. - - - - - 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")] - public void TestDescriptionMethod() - {} - } - - - - - - Construct the attribute, specifying a combining strategy and source of parameter data. - - - - - Used 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 class or assembly, sets the default timeout - for all contained test methods. - - - - - Construct a TimeoutAttribute given a time in milliseconds - - The timeout value in milliseconds - - - - 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 - - - - - Constructs for use with an Enum parameter. Will pass every enum - value in to the test. - - - - - 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 - - - - - 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 a static method, property or field 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 a static 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 - - - - - Gets an enumeration of data items for use as arguments - for a test method parameter. - - The parameter for which data is needed - - An enumeration containing individual data items - - - - - A set of Assert methods operating 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 - 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 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 - 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 - 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 - 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 - 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 - 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 - 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 - Arguments to be used in formatting the message - - - - Asserts that the superset does not contain the subset - - The IEnumerable subset to be considered - The IEnumerable superset to be considered - - - - Asserts that the superset does not contain the subset - - The IEnumerable subset to be considered - The IEnumerable superset to be considered - The message that will be displayed on failure - Arguments to be used in formatting the message - - - - Asserts that the superset contains the subset. - - The IEnumerable subset to be considered - The IEnumerable superset to be considered - - - - Asserts that the superset contains the subset. - - The IEnumerable subset to be considered - The IEnumerable superset to be considered - The message that will be displayed on failure - Arguments to be used in formatting the message - - - - Asserts that the subset does not contain the superset - - The IEnumerable superset to be considered - The IEnumerable subset to be considered - - - - Asserts that the subset does not contain the superset - - 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 the subset contains the superset. - - The IEnumerable superset to be considered - The IEnumerable subset to be considered - - - - Asserts that the subset contains the superset. - - 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 - - - - 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 - - - - 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 - - - - 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 - - - - Helper class with properties and methods that supply - a number of constraints used in Asserts. - - - - - Returns a new CollectionContainsConstraint checking for the - presence of a particular object in the collection. - - - - - Returns a new DictionaryContainsKeyConstraint checking for the - presence of a particular key in the dictionary. - - - - - Returns a new DictionaryContainsValueConstraint checking for the - presence of a particular value in the dictionary. - - - - - Returns a constraint that succeeds if the actual - value contains the substring supplied as an argument. - - - - - 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 - - - - - Gets the ResultState provided by this exception - - - - - Thrown when an assertion failed. - - - - - - - The error message that explains - the reason for the exception - The exception that caused the - current exception - - - - Serialization Constructor - - - - - Gets the ResultState provided by this exception - - - - - 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 - - - - - Gets the ResultState provided by this exception - - - - - Thrown when an assertion failed. - - - - - - - The error message that explains - the reason for the exception - The exception that caused the - current exception - - - - Serialization Constructor - - - - - Gets the ResultState provided by this exception - - - - - Asserts on Files - - - - - 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. - - - - - - - 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 - - - - 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 - - - - 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 - - - - 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 - - - - 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 - - - - 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 - - - - Asserts that the file exists. If it does not exist - an is thrown. - - 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 the file exists. If it does not exist - an is thrown. - - A file containing the actual value - - - - Asserts that the file exists. If it does not exist - an is thrown. - - 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 the file exists. If it does not exist - an is thrown. - - The path to a file containing the actual value - - - - Asserts that the file does not exist. If it does exist - an is thrown. - - 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 the file does not exist. If it does exist - an is thrown. - - A file containing the actual value - - - - Asserts that the file does not exist. If it does exist - an is thrown. - - 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 the file does not exist. If it does exist - an is thrown. - - The path to a file containing the actual value - - - - GlobalSettings is a place for setting default _values used - by the framework in performing asserts. - - - - - Default tolerance for floating point equality - - - - - Helper class with properties and methods that supply - a number of constraints used in Asserts. - - - - - 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 ConstraintExpression, which will apply - the following constraint to all members of a collection, - succeeding only if a specified number of them succeed. - - - - - 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 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 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. - - - - - Helper class with properties and methods that supply - a number of constraints used in Asserts. - - - - - 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 a positive value - - - - - Returns a constraint that tests for a negative value - - - - - 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 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 supplied argument - - - - - Returns a constraint that tests whether the - actual value is greater than or equal to the supplied argument - - - - - Returns a constraint that tests whether the - actual value is greater than or equal to the supplied argument - - - - - Returns a constraint that tests whether the - actual value is less than the supplied argument - - - - - Returns a constraint that tests whether the - actual value is less than or equal to the supplied argument - - - - - Returns a constraint that tests whether the - actual value is less than or equal to the supplied 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 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 to the type supplied as an argument. - - - - - Returns a constraint that tests whether the actual value - is assignable to 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 tests whether the actual value - is a superset of the collection supplied as an argument. - - - - - Returns a constraint that tests whether a collection is ordered - - - - - 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 regular expression 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 a subpath of the 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 - inclusively within a specified range. - - from must be less than or equal to true - Inclusive beginning of the range. Must be less than or equal to to. - Inclusive end of the range. Must be greater than or equal to from. - - - - - The Iz class is a synonym for Is intended for use in VB, - which regards Is as a keyword. - - - - - 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 - - - - - 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 - - - - - 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 - - - - 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 - - - - 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 - - - - 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 - - - - 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 - - - - 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 - - - - 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 - - - - 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 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 - - - - 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 TestCaseData class represents a set of arguments - and other parameter info to be used for a parameterized - test case. It is derived from TestCaseParameters and adds a - fluent syntax for use in initializing the 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 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 - - - - - - - - Marks the test case as explicit. - - - - - Marks the test case as explicit, specifying the reason. - - - - - Ignores this TestCase, specifying the reason. - - The reason. - - - - - Provide the context information of the current test. - This is an adapter for the internal ExecutionContext - class, hiding the internals from the user test. - - - - - Construct a TestContext for an ExecutionContext - - The ExecutionContext to adapt - - - - Get the current test context. This is created - as needed. The user may save the context for - use within a test, but it should not be used - outside the test for which it is created. - - - - - Gets a TextWriter that will send output to the current test result. - - - - - Get a representation of the current test. - - - - - Gets a Representation of the TestResult for the current test. - - - - - Gets the directory containing the current test assembly. - - - - - Gets the directory to be used for outputting files created - by this test run. - - - - - Gets the random generator. - - - The random generator. - - - - Write the string representation of a boolean value to the current result - - - Write a char to the current result - - - Write a char array to the current result - - - Write the string representation of a double to the current result - - - Write the string representation of an Int32 value to the current result - - - Write the string representation of an Int64 value to the current result - - - Write the string representation of a decimal value to the current result - - - Write the string representation of an object to the current result - - - Write the string representation of a Single value to the current result - - - Write a string to the current result - - - Write the string representation of a UInt32 value to the current result - - - Write the string representation of a UInt64 value to the current result - - - Write a formatted string to the current result - - - Write a formatted string to the current result - - - Write a formatted string to the current result - - - Write a formatted string to the current result - - - Write a line terminator to the current result - - - Write the string representation of a boolean value to the current result followed by a line terminator - - - Write a char to the current result followed by a line terminator - - - Write a char array to the current result followed by a line terminator - - - Write the string representation of a double to the current result followed by a line terminator - - - Write the string representation of an Int32 value to the current result followed by a line terminator - - - Write the string representation of an Int64 value to the current result followed by a line terminator - - - Write the string representation of a decimal value to the current result followed by a line terminator - - - Write the string representation of an object to the current result followed by a line terminator - - - Write the string representation of a Single value to the current result followed by a line terminator - - - Write a string to the current result followed by a line terminator - - - Write the string representation of a UInt32 value to the current result followed by a line terminator - - - Write the string representation of a UInt64 value to the current result followed by a line terminator - - - Write a formatted string to the current result followed by a line terminator - - - Write a formatted string to the current result followed by a line terminator - - - Write a formatted string to the current result followed by a line terminator - - - Write a formatted string to the current result followed by a line terminator - - - - TestAdapter adapts a Test for consumption by - the user test code. - - - - - Construct a TestAdapter for a Test - - The Test to be adapted - - - - Gets the unique Id of a test - - - - - The name of the test, which may or may not be - the same as the method name. - - - - - The name of the method representing the test. - - - - - The FullName of the test - - - - - The ClassName of the test - - - - - The properties of the test. - - - - - ResultAdapter adapts a TestResult for consumption by - the user test code. - - - - - Construct a ResultAdapter for a TestResult - - The TestResult to be adapted - - - - Gets a ResultState representing the outcome of the test. - - - - - Gets the message associated with a test - failure or with not running the test - - - - - Gets any stacktrace associated with an - error or failure. - - - - - Gets the number of test cases that failed - when running the test and all its children. - - - - - Gets the number of test cases that passed - when running the test and all its children. - - - - - Gets the number of test cases that were skipped - when running the test and all its children. - - - - - Gets the number of test cases that were inconclusive - when running the test and all its children. - - - - - Helper class with properties and methods that supply - constraints that operate on exceptions. - - - - - 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 ArgumentException - - - - - Creates a constraint specifying an expected ArgumentNUllException - - - - - Creates a constraint specifying an expected InvalidOperationException - - - - - Creates a constraint specifying that no exception is thrown - - - - - 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 - - - - - Env is a static class that provides some of the features of - System.Environment that are not available under all runtimes - - - - - The newline sequence in the current environment. - - - - - Path to the 'My Documents' folder - - - - - Directory used for file output if not specified on commandline. - - - - - PackageSettings is a static class containing constant values that - are used as keys in setting up a TestPackage. These values are used in - the engine and framework. Setting values may be a string, int or bool. - - - - - Flag (bool) indicating whether tests are being debugged. - - - - - Flag (bool) indicating whether to pause execution of tests to allow - the user to attache a debugger. - - - - - The InternalTraceLevel for this run. Values are: "Default", - "Off", "Error", "Warning", "Info", "Debug", "Verbose". - Default is "Off". "Debug" and "Verbose" are synonyms. - - - - - Full path of the directory to be used for work and result files. - This path is provided to tests by the frameowrk TestContext. - - - - - The name of the config to use in loading a project. - If not specified, the first config found is used. - - - - - Bool indicating whether the engine should determine the private - bin path by examining the paths to all the tests. Defaults to - true unless PrivateBinPath is specified. - - - - - The ApplicationBase to use in loading the tests. If not - specified, and each assembly has its own process, then the - location of the assembly is used. For multiple assemblies - in a single process, the closest common root directory is used. - - - - - Path to the config file to use in running the tests. - - - - - Bool flag indicating whether a debugger should be launched at agent - startup. Used only for debugging NUnit itself. - - - - - Indicates how to load tests across AppDomains. Values are: - "Default", "None", "Single", "Multiple". Default is "Multiple" - if more than one assembly is loaded in a process. Otherwise, - it is "Single". - - - - - The private binpath used to locate assemblies. Directory paths - is separated by a semicolon. It's an error to specify this and - also set AutoBinPath to true. - - - - - The maximum number of test agents permitted to run simultneously. - Ignored if the ProcessModel is not set or defaulted to Multiple. - - - - - Indicates how to allocate assemblies to processes. Values are: - "Default", "Single", "Separate", "Multiple". Default is "Multiple" - for more than one assembly, "Separate" for a single assembly. - - - - - Indicates the desired runtime to use for the tests. Values - are strings like "net-4.5", "mono-4.0", etc. Default is to - use the target framework for which an assembly was built. - - - - - Bool flag indicating that the test should be run in a 32-bit process - on a 64-bit system. By default, NUNit runs in a 64-bit process on - a 64-bit system. Ignored if set on a 32-bit system. - - - - - Indicates that test runners should be disposed after the tests are executed - - - - - Bool flag indicating that the test assemblies should be shadow copied. - Defaults to false. - - - - - Integer value in milliseconds for the default timeout value - for test cases. If not specified, there is no timeout except - as specified by attributes on the tests themselves. - - - - - A TextWriter to which the internal trace will be sent. - - - - - A list of tests to be loaded. - - - - - The number of test threads to run for the assembly. If set to - 1, a single queue is used. If set to 0, tests are executed - directly, without queuing. - - - - - The random seed to be used for this assembly. If specified - as the value reported from a prior run, the framework should - generate identical random values for tests as were used for - that run, provided that no change has been made to the test - assembly. Default is a random value itself. - - - - - If true, execution stops after the first error or failure. - - - - - If true, use of the event queue is suppressed and test events are synchronous. - - - - - Enables compiling extension methods in .NET 2.0 - - - - diff --git a/packages/NUnit.3.0.1/lib/net40/nunit.framework.dll b/packages/NUnit.3.0.1/lib/net40/nunit.framework.dll deleted file mode 100644 index c52b02df..00000000 Binary files a/packages/NUnit.3.0.1/lib/net40/nunit.framework.dll and /dev/null differ diff --git a/packages/NUnit.3.0.1/lib/net40/nunit.framework.xml b/packages/NUnit.3.0.1/lib/net40/nunit.framework.xml deleted file mode 100644 index 7322ced9..00000000 --- a/packages/NUnit.3.0.1/lib/net40/nunit.framework.xml +++ /dev/null @@ -1,16885 +0,0 @@ - - - - nunit.framework - - - - - AssemblyHelper provides static methods for working - with assemblies. - - - - - Gets the path from which the assembly defining a type was loaded. - - The Type. - The path. - - - - Gets the path from which an assembly was loaded. - - The assembly. - The path. - - - - Gets the path to the directory from which an assembly was loaded. - - The assembly. - The path. - - - - Gets the AssemblyName of an assembly. - - The assembly - An AssemblyName - - - - Loads an assembly given a string, which may be the - path to the assembly or the AssemblyName - - - - - - - Gets the assembly path from code base. - - Public for testing purposes - The code base. - - - - - Interface for logging within the engine - - - - - Logs the specified message at the error level. - - The message. - - - - Logs the specified message at the error level. - - The message. - The arguments. - - - - Logs the specified message at the warning level. - - The message. - - - - Logs the specified message at the warning level. - - The message. - The arguments. - - - - Logs the specified message at the info level. - - The message. - - - - Logs the specified message at the info level. - - The message. - The arguments. - - - - Logs the specified message at the debug level. - - The message. - - - - Logs the specified message at the debug level. - - The message. - The arguments. - - - - InternalTrace provides facilities for tracing the execution - of the NUnit framework. Tests and classes under test may make use - of Console writes, System.Diagnostics.Trace or various loggers and - NUnit itself traps and processes each of them. For that reason, a - separate internal trace is needed. - - Note: - InternalTrace uses a global lock to allow multiple threads to write - trace messages. This can easily make it a bottleneck so it must be - used sparingly. Keep the trace Level as low as possible and only - insert InternalTrace writes where they are needed. - TODO: add some buffering and a separate writer thread as an option. - TODO: figure out a way to turn on trace in specific classes only. - - - - - Gets a flag indicating whether the InternalTrace is initialized - - - - - Initialize the internal trace facility using the name of the log - to be written to and the trace level. - - The log name - The trace level - - - - Initialize the internal trace using a provided TextWriter and level - - A TextWriter - The InternalTraceLevel - - - - Get a named Logger - - - - - - Get a logger named for a particular Type. - - - - - InternalTraceLevel is an enumeration controlling the - level of detailed presented in the internal log. - - - - - Use the default settings as specified by the user. - - - - - Do not display any trace messages - - - - - Display Error messages only - - - - - Display Warning level and higher messages - - - - - Display informational and higher messages - - - - - Display debug messages and higher - i.e. all messages - - - - - Display debug messages and higher - i.e. all messages - - - - - A trace listener that writes to a separate file per domain - and process using it. - - - - - Construct an InternalTraceWriter that writes to a file. - - Path to the file to use - - - - Construct an InternalTraceWriter that writes to a - TextWriter provided by the caller. - - - - - - Returns the character encoding in which the output is written. - - The character encoding in which the output is written. - - - - Writes a character to the text string or stream. - - The character to write to the text stream. - - - - Writes a string to the text string or stream. - - The string to write. - - - - Writes a string followed by a line terminator to the text string or stream. - - The string to write. If is null, only the line terminator is written. - - - - Releases the unmanaged resources used by the and optionally releases the managed resources. - - true to release both managed and unmanaged resources; false to release only unmanaged resources. - - - - Clears all buffers for the current writer and causes any buffered data to be written to the underlying device. - - - - - Provides internal logging to the NUnit framework - - - - - Initializes a new instance of the class. - - The name. - The log level. - The writer where logs are sent. - - - - Logs the message at error level. - - The message. - - - - Logs the message at error level. - - The message. - The message arguments. - - - - Logs the message at warm level. - - The message. - - - - Logs the message at warning level. - - The message. - The message arguments. - - - - Logs the message at info level. - - The message. - - - - Logs the message at info level. - - The message. - The message arguments. - - - - Logs the message at debug level. - - The message. - - - - Logs the message at debug level. - - The message. - The message arguments. - - - - Waits for pending asynchronous operations to complete, if appropriate, - and returns a proper result of the invocation by unwrapping task results - - The raw result of the method invocation - The unwrapped result, if necessary - - - - CombinatorialStrategy creates test cases by using all possible - combinations of the parameter data. - - - - - Gets the test cases generated by the CombiningStrategy. - - The test cases. - - - - Provides data from fields marked with the DatapointAttribute or the - DatapointsAttribute. - - - - - Determine whether any data is available for a parameter. - - A ParameterInfo representing one - argument to a parameterized test - - True if any data is available, otherwise false. - - - - - Return an IEnumerable providing data for use with the - supplied parameter. - - A ParameterInfo representing one - argument to a parameterized test - - An IEnumerable providing the required data - - - - - Class to build ether a parameterized or a normal NUnitTestMethod. - There are four cases that the builder must deal with: - 1. The method needs no params and none are provided - 2. The method needs params and they are provided - 3. The method needs no params but they are provided in error - 4. The method needs params but they are not provided - This could have been done using two different builders, but it - turned out to be simpler to have just one. The BuildFrom method - takes a different branch depending on whether any parameters are - provided, but all four cases are dealt with in lower-level methods - - - - - Determines if the method can be used to build an NUnit test - test method of some kind. The method must normally be marked - with an identifying attribute for this to be true. - - Note that this method does not check that the signature - of the method for validity. If we did that here, any - test methods with invalid signatures would be passed - over in silence in the test run. Since we want such - methods to be reported, the check for validity is made - in BuildFrom rather than here. - - An IMethodInfo for the method being used as a test method - True if the builder can create a test case from this method - - - - Build a Test from the provided MethodInfo. Depending on - whether the method takes arguments and on the availability - of test case data, this method may return a single test - or a group of tests contained in a ParameterizedMethodSuite. - - The method for which a test is to be built - A Test representing one or more method invocations - - - - Determines if the method can be used to build an NUnit test - test method of some kind. The method must normally be marked - with an identifying attribute for this to be true. - - Note that this method does not check that the signature - of the method for validity. If we did that here, any - test methods with invalid signatures would be passed - over in silence in the test run. Since we want such - methods to be reported, the check for validity is made - in BuildFrom rather than here. - - An IMethodInfo for the method being used as a test method - The test suite being built, to which the new test would be added - True if the builder can create a test case from this method - - - - Build a Test from the provided MethodInfo. Depending on - whether the method takes arguments and on the availability - of test case data, this method may return a single test - or a group of tests contained in a ParameterizedMethodSuite. - - The method for which a test is to be built - The test fixture being populated, or null - A Test representing one or more method invocations - - - - Builds a ParameterizedMethodSuite containing individual test cases. - - The method for which a test is to be built. - The list of test cases to include. - A ParameterizedMethodSuite populated with test cases - - - - Build a simple, non-parameterized TestMethod for this method. - - The MethodInfo for which a test is to be built - The test suite for which the method is being built - A TestMethod. - - - - Class that can build a tree of automatic namespace - suites from a group of fixtures. - - - - - NamespaceDictionary of all test suites we have created to represent - namespaces. Used to locate namespace parent suites for fixtures. - - - - - The root of the test suite being created by this builder. - - - - - Initializes a new instance of the class. - - The root suite. - - - - Gets the root entry in the tree created by the NamespaceTreeBuilder. - - The root suite. - - - - Adds the specified fixtures to the tree. - - The fixtures to be added. - - - - Adds the specified fixture to the tree. - - The fixture to be added. - - - - NUnitTestCaseBuilder is a utility class used by attributes - that build test cases. - - - - - Constructs an - - - - - Builds a single NUnitTestMethod, either as a child of the fixture - or as one of a set of test cases under a ParameterizedTestMethodSuite. - - The MethodInfo from which to construct the TestMethod - The suite or fixture to which the new test will be added - The ParameterSet to be used, or null - - - - - Helper method that checks the signature of a TestMethod and - any supplied parameters to determine if the test is valid. - - Currently, NUnitTestMethods are required to be public, - non-abstract methods, either static or instance, - returning void. They may take arguments but the _values must - be provided or the TestMethod is not considered runnable. - - Methods not meeting these criteria will be marked as - non-runnable and the method will return false in that case. - - The TestMethod to be checked. If it - is found to be non-runnable, it will be modified. - Parameters to be used for this test, or null - True if the method signature is valid, false if not - - The return value is no longer used internally, but is retained - for testing purposes. - - - - - NUnitTestFixtureBuilder is able to build a fixture given - a class marked with a TestFixtureAttribute or an unmarked - class containing test methods. In the first case, it is - called by the attribute and in the second directly by - NUnitSuiteBuilder. - - - - - Build a TestFixture from type provided. A non-null TestSuite - must always be returned, since the method is generally called - because the user has marked the target class as a fixture. - If something prevents the fixture from being used, it should - be returned nonetheless, labelled as non-runnable. - - An ITypeInfo for the fixture to be used. - A TestSuite object or one derived from TestSuite. - - - - Overload of BuildFrom called by tests that have arguments. - Builds a fixture using the provided type and information - in the ITestFixtureData object. - - The TypeInfo for which to construct a fixture. - An object implementing ITestFixtureData or null. - - - - - Method to add test cases to the newly constructed fixture. - - The fixture to which cases should be added - - - - Method to create a test case from a MethodInfo and add - it to the fixture being built. It first checks to see if - any global TestCaseBuilder addin wants to build the - test case. If not, it uses the internal builder - collection maintained by this fixture builder. - - The default implementation has no test case builders. - Derived classes should add builders to the collection - in their constructor. - - The method for which a test is to be created - The test suite being built. - A newly constructed Test - - - - Built-in SuiteBuilder for all types of test classes. - - - - - Checks to see if the provided Type is a fixture. - To be considered a fixture, it must be a non-abstract - class with one or more attributes implementing the - IFixtureBuilder interface or one or more methods - marked as tests. - - The fixture type to check - True if the fixture can be built, false if not - - - - Build a TestSuite from TypeInfo provided. - - The fixture type to build - A TestSuite built from that type - - - - We look for attributes implementing IFixtureBuilder at one level - of inheritance at a time. Attributes on base classes are not used - unless there are no fixture builder attributes at all on the derived - class. This is by design. - - The type being examined for attributes - A list of the attributes found. - - - - PairwiseStrategy creates test cases by combining the parameter - data so that all possible pairs of data items are used. - - - - The number of test cases that cover all possible pairs of test function - parameters values is significantly less than the number of test cases - that cover all possible combination of test function parameters values. - And because different studies show that most of software failures are - caused by combination of no more than two parameters, pairwise testing - can be an effective ways to test the system when it's impossible to test - all combinations of parameters. - - - The PairwiseStrategy code is based on "jenny" tool by Bob Jenkins: - http://burtleburtle.net/bob/math/jenny.html - - - - - - FleaRand is a pseudo-random number generator developed by Bob Jenkins: - http://burtleburtle.net/bob/rand/talksmall.html#flea - - - - - Initializes a new instance of the FleaRand class. - - The seed. - - - - FeatureInfo represents coverage of a single value of test function - parameter, represented as a pair of indices, Dimension and Feature. In - terms of unit testing, Dimension is the index of the test parameter and - Feature is the index of the supplied value in that parameter's list of - sources. - - - - - Initializes a new instance of FeatureInfo class. - - Index of a dimension. - Index of a feature. - - - - A FeatureTuple represents a combination of features, one per test - parameter, which should be covered by a test case. In the - PairwiseStrategy, we are only trying to cover pairs of features, so the - tuples actually may contain only single feature or pair of features, but - the algorithm itself works with triplets, quadruples and so on. - - - - - Initializes a new instance of FeatureTuple class for a single feature. - - Single feature. - - - - Initializes a new instance of FeatureTuple class for a pair of features. - - First feature. - Second feature. - - - - TestCase represents a single test case covering a list of features. - - - - - Initializes a new instance of TestCaseInfo class. - - A number of features in the test case. - - - - PairwiseTestCaseGenerator class implements an algorithm which generates - a set of test cases which covers all pairs of possible values of test - function. - - - - The algorithm starts with creating a set of all feature tuples which we - will try to cover (see method). This set - includes every single feature and all possible pairs of features. We - store feature tuples in the 3-D collection (where axes are "dimension", - "feature", and "all combinations which includes this feature"), and for - every two feature (e.g. "A" and "B") we generate both ("A", "B") and - ("B", "A") pairs. This data structure extremely reduces the amount of - time needed to calculate coverage for a single test case (this - calculation is the most time-consuming part of the algorithm). - - - Then the algorithm picks one tuple from the uncovered tuple, creates a - test case that covers this tuple, and then removes this tuple and all - other tuples covered by this test case from the collection of uncovered - tuples. - - - Picking a tuple to cover - - - There are no any special rules defined for picking tuples to cover. We - just pick them one by one, in the order they were generated. - - - Test generation - - - Test generation starts from creating a completely random test case which - covers, nevertheless, previously selected tuple. Then the algorithm - tries to maximize number of tuples which this test covers. - - - Test generation and maximization process repeats seven times for every - selected tuple and then the algorithm picks the best test case ("seven" - is a magic number which provides good results in acceptable time). - - Maximizing test coverage - - To maximize tests coverage, the algorithm walks thru the list of mutable - dimensions (mutable dimension is a dimension that are not included in - the previously selected tuple). Then for every dimension, the algorithm - walks thru the list of features and checks if this feature provides - better coverage than randomly selected feature, and if yes keeps this - feature. - - - This process repeats while it shows progress. If the last iteration - doesn't improve coverage, the process ends. - - - In addition, for better results, before start every iteration, the - algorithm "scrambles" dimensions - so for every iteration dimension - probes in a different order. - - - - - - Creates a set of test cases for specified dimensions. - - - An array which contains information about dimensions. Each element of - this array represents a number of features in the specific dimension. - - - A set of test cases. - - - - - Gets the test cases generated by this strategy instance. - - A set of test cases. - - - - The ParameterDataProvider class implements IParameterDataProvider - and hosts one or more individual providers. - - - - - Construct with a collection of individual providers - - - - - Determine whether any data is available for a parameter. - - An IParameterInfo representing one - argument to a parameterized test - True if any data is available, otherwise false. - - - - Return an IEnumerable providing data for use with the - supplied parameter. - - An IParameterInfo representing one - argument to a parameterized test - An IEnumerable providing the required data - - - - ParameterDataSourceProvider supplies individual argument _values for - single parameters using attributes implementing IParameterDataSource. - - - - - Determine whether any data is available for a parameter. - - A ParameterInfo representing one - argument to a parameterized test - - True if any data is available, otherwise false. - - - - - Return an IEnumerable providing data for use with the - supplied parameter. - - An IParameterInfo representing one - argument to a parameterized test - - An IEnumerable providing the required data - - - - - SequentialStrategy creates test cases by using all of the - parameter data sources in parallel, substituting null - when any of them run out of data. - - - - - Gets the test cases generated by the CombiningStrategy. - - The test cases. - - - - ContextSettingsCommand applies specified changes to the - TestExecutionContext prior to running a test. No special - action is needed after the test runs, since the prior - context will be restored automatically. - - - - - The CommandStage enumeration represents the defined stages - of execution for a series of TestCommands. The int _values - of the enum are used to apply decorators in the proper - order. Lower _values are applied first and are therefore - "closer" to the actual test execution. - - - No CommandStage is defined for actual invocation of the test or - for creation of the context. Execution may be imagined as - proceeding from the bottom of the list upwards, with cleanup - after the test running in the opposite order. - - - - - Use an application-defined default value. - - - - - Make adjustments needed before and after running - the raw test - that is, after any SetUp has run - and before TearDown. - - - - - Run SetUp and TearDown for the test. This stage is used - internally by NUnit and should not normally appear - in user-defined decorators. - - - - - Make adjustments needed before and after running - the entire test - including SetUp and TearDown. - - - - - TODO: Documentation needed for class - - - - TODO: Documentation needed for field - - - - TODO: Documentation needed for constructor - - - - - - TODO: Documentation needed for class - - - - - Initializes a new instance of the class. - - The inner command. - The max time allowed in milliseconds - - - - Runs the test, saving a TestResult in the supplied TestExecutionContext - - The context in which the test should run. - A TestResult - - - - OneTimeSetUpCommand runs any one-time setup methods for a suite, - constructing the user test object if necessary. - - - - - Constructs a OneTimeSetUpCommand for a suite - - The suite to which the command applies - A SetUpTearDownList for use by the command - A List of TestActionItems to be run after Setup - - - - Overridden to run the one-time setup for a suite. - - The TestExecutionContext to be used. - A TestResult - - - - OneTimeTearDownCommand performs any teardown actions - specified for a suite and calls Dispose on the user - test object, if any. - - - - - Construct a OneTimeTearDownCommand - - The test suite to which the command applies - A SetUpTearDownList for use by the command - A List of TestActionItems to be run before teardown. - - - - Overridden to run the teardown methods specified on the test. - - The TestExecutionContext to be used. - A TestResult - - - - SetUpTearDownCommand runs any SetUp methods for a suite, - runs the test and then runs any TearDown methods. - - - - - Initializes a new instance of the class. - - The inner command. - - - - Runs the test, saving a TestResult in the supplied TestExecutionContext. - - The context in which the test should run. - A TestResult - - - - SetUpTearDownItem holds the setup and teardown methods - for a single level of the inheritance hierarchy. - - - - - Construct a SetUpTearDownNode - - A list of setup methods for this level - A list teardown methods for this level - - - - Returns true if this level has any methods at all. - This flag is used to discard levels that do nothing. - - - - - Run SetUp on this level. - - The execution context to use for running. - - - - Run TearDown for this level. - - - - - - TODO: Documentation needed for class - - - - - Initializes a new instance of the class. - - The test being skipped. - - - - Overridden to simply set the CurrentResult to the - appropriate Skipped state. - - The execution context for the test - A TestResult - - - - TestActionCommand runs the BeforeTest actions for a test, - then runs the test and finally runs the AfterTestActions. - - - - - Initializes a new instance of the class. - - The inner command. - - - - Runs the test, saving a TestResult in the supplied TestExecutionContext. - - The context in which the test should run. - A TestResult - - - - TestActionItem represents a single execution of an - ITestAction. It is used to track whether the BeforeTest - method has been called and suppress calling the - AfterTest method if it has not. - - - - - Construct a TestActionItem - - The ITestAction to be included - - - - Run the BeforeTest method of the action and remember that it has been run. - - The test to which the action applies - - - - Run the AfterTest action, but only if the BeforeTest - action was actually run. - - The test to which the action applies - - - - TestCommand is the abstract base class for all test commands - in the framework. A TestCommand represents a single stage in - the execution of a test, e.g.: SetUp/TearDown, checking for - Timeout, verifying the returned result from a method, etc. - - TestCommands may decorate other test commands so that the - execution of a lower-level command is nested within that - of a higher level command. All nested commands are executed - synchronously, as a single unit. Scheduling test execution - on separate threads is handled at a higher level, using the - task dispatcher. - - - - - Construct a TestCommand for a test. - - The test to be executed - - - - Gets the test associated with this command. - - - - - Runs the test in a specified context, returning a TestResult. - - The TestExecutionContext to be used for running the test. - A TestResult - - - - TestMethodCommand is the lowest level concrete command - used to run actual test cases. - - - - - Initializes a new instance of the class. - - The test. - - - - Runs the test, saving a TestResult in the execution context, as - well as returning it. If the test has an expected result, it - is asserts on that value. Since failed tests and errors throw - an exception, this command must be wrapped in an outer command, - will handle that exception and records the failure. This role - is usually played by the SetUpTearDown command. - - The execution context - - - - TheoryResultCommand adjusts the result of a Theory so that - it fails if all the results were inconclusive. - - - - - Constructs a TheoryResultCommand - - The command to be wrapped by this one - - - - Overridden to call the inner command and adjust the result - in case all chlid results were inconclusive. - - - - - - - CultureDetector is a helper class used by NUnit to determine - whether a test should be run based on the current culture. - - - - - Default constructor uses the current culture. - - - - - Construct a CultureDetector for a particular culture for testing. - - The culture to be used - - - - Test to determine if one of a collection of cultures - is being used currently. - - - - - - - Tests to determine if the current culture is supported - based on a culture attribute. - - The attribute to examine - - - - - Test to determine if the a particular culture or comma- - delimited set of cultures is in use. - - Name of the culture or comma-separated list of culture ids - True if the culture is in use on the system - - - - Return the last failure reason. Results are not - defined if called before IsSupported( Attribute ) - is called. - - - - - ExceptionHelper provides static methods for working with exceptions - - - - - Builds up a message, using the Message field of the specified exception - as well as any InnerExceptions. - - The exception. - A combined message string. - - - - Builds up a message, using the Message field of the specified exception - as well as any InnerExceptions. - - The exception. - A combined stack trace. - - - - Gets the stack trace of the exception. - - The exception. - A string representation of the stack trace. - - - - A utility class to create TestCommands - - - - - Gets the command to be executed before any of - the child tests are run. - - A TestCommand - - - - Gets the command to be executed after all of the - child tests are run. - - A TestCommand - - - - Creates a test command for use in running this test. - - - - - - Creates a command for skipping a test. The result returned will - depend on the test RunState. - - - - - Builds the set up tear down list. - - Type of the fixture. - Type of the set up attribute. - Type of the tear down attribute. - A list of SetUpTearDownItems - - - - A CompositeWorkItem represents a test suite and - encapsulates the execution of the suite as well - as all its child tests. - - - - - Construct a CompositeWorkItem for executing a test suite - using a filter to select child tests. - - The TestSuite to be executed - A filter used to select child tests - - - - Method that actually performs the work. Overridden - in CompositeWorkItem to do setup, run all child - items and then do teardown. - - - - - The EventPumpState enum represents the state of an - EventPump. - - - - - The pump is stopped - - - - - The pump is pumping events with no stop requested - - - - - The pump is pumping events but a stop has been requested - - - - - EventPump pulls events out of an EventQueue and sends - them to a listener. It is used to send events back to - the client without using the CallContext of the test - runner thread. - - - - - The handle on which a thread enqueuing an event with == true - waits, until the EventPump has sent the event to its listeners. - - - - - The downstream listener to which we send events - - - - - The queue that holds our events - - - - - Thread to do the pumping - - - - - The current state of the eventpump - - - - - Constructor - - The EventListener to receive events - The event queue to pull events from - - - - Gets or sets the current state of the pump - - - On volatile and , see - "http://www.albahari.com/threading/part4.aspx". - - - - - Gets or sets the name of this EventPump - (used only internally and for testing). - - - - - Dispose stops the pump - Disposes the used WaitHandle, too. - - - - - Start the pump - - - - - Tell the pump to stop after emptying the queue. - - - - - Our thread proc for removing items from the event - queue and sending them on. Note that this would - need to do more locking if any other thread were - removing events from the queue. - - - - - NUnit.Core.Event is the abstract base for all stored events. - An Event is the stored representation of a call to the - ITestListener interface and is used to record such calls - or to queue them for forwarding on another thread or at - a later time. - - - - - The Send method is implemented by derived classes to send the event to the specified listener. - - The listener. - - - - Gets a value indicating whether this event is delivered synchronously by the NUnit . - - If true, and if has been used to - set a WaitHandle, blocks its calling thread until the - thread has delivered the event and sets the WaitHandle. - - - - - - TestStartedEvent holds information needed to call the TestStarted method. - - - - - Initializes a new instance of the class. - - The test. - - - - Calls TestStarted on the specified listener. - - The listener. - - - - TestFinishedEvent holds information needed to call the TestFinished method. - - - - - Initializes a new instance of the class. - - The result. - - - - Calls TestFinished on the specified listener. - - The listener. - - - - Implements a queue of work items each of which - is queued as a WaitCallback. - - - - - Construct a new EventQueue - - - - - WaitHandle for synchronous event delivery in . - - Having just one handle for the whole implies that - there may be only one producer (the test thread) for synchronous events. - If there can be multiple producers for synchronous events, one would have - to introduce one WaitHandle per event. - - - - - - Gets the count of items in the queue. - - - - - Sets a handle on which to wait, when is called - for an with == true. - - - The wait handle on which to wait, when is called - for an with == true. - The caller is responsible for disposing this wait handle. - - - - - Enqueues the specified event - - The event to enqueue. - - - - Removes the first element from the queue and returns it (or null). - - - If true and the queue is empty, the calling thread is blocked until - either an element is enqueued, or is called. - - - - - If the queue not empty - the first element. - - - otherwise, if ==false - or has been called - null. - - - - - - - Stop processing of the queue - - - - - An IWorkItemDispatcher handles execution of work items. - - - - - Dispatch a single work item for execution. The first - work item dispatched is saved as the top-level - work item and used when stopping the run. - - The item to dispatch - - - - Cancel the ongoing run completely. - If no run is in process, the call has no effect. - - - - - ParallelWorkItemDispatcher handles execution of work items by - queuing them for worker threads to process. - - - - - Construct a ParallelWorkItemDispatcher - - Number of workers to use - - - - Enumerates all the shifts supported by the dispatcher - - - - - Dispatch a single work item for execution. The first - work item dispatched is saved as the top-level - work item and used when stopping the run. - - The item to dispatch - - - - Cancel the ongoing run completely. - If no run is in process, the call has no effect. - - - - - QueuingEventListener uses an EventQueue to store any - events received on its EventListener interface. - - - - - The EvenQueue created and filled by this listener - - - - - A test has started - - The test that is starting - - - - A test case finished - - Result of the test case - - - - A SimpleWorkItem represents a single test case and is - marked as completed immediately upon execution. This - class is also used for skipped or ignored test suites. - - - - - Construct a simple work item for a test. - - The test to be executed - The filter used to select this test - - - - Method that performs actually performs the work. - - - - - SimpleWorkItemDispatcher handles execution of WorkItems by - directly executing them. It is provided so that a dispatcher - is always available in the context, thereby simplifying the - code needed to run child tests. - - - - - Dispatch a single work item for execution. The first - work item dispatched is saved as the top-level - work item and a thread is created on which to - run it. Subsequent calls come from the top level - item or its descendants on the proper thread. - - The item to dispatch - - - - Cancel the ongoing run completely. - If no run is in process, the call has no effect. - - - - - A TestWorker pulls work items from a queue - and executes them. - - - - - Event signaled immediately before executing a WorkItem - - - - - Event signaled immediately after executing a WorkItem - - - - - Construct a new TestWorker. - - The queue from which to pull work items - The name of this worker - The apartment state to use for running tests - - - - The name of this worker - also used for the thread - - - - - Indicates whether the worker thread is running - - - - - Our ThreadProc, which pulls and runs tests in a loop - - - - - Start processing work items. - - - - - Stop the thread, either immediately or after finishing the current WorkItem - - - - - The TextCapture class intercepts console output and writes it - to the current execution context, if one is present on the thread. - If no execution context is found, the output is written to a - default destination, normally the original destination of the - intercepted output. - - - - - Construct a TextCapture object - - The default destination for non-intercepted output - - - - Gets the Encoding in use by this TextWriter - - - - - Writes a single character - - The char to write - - - - Writes a string - - The string to write - - - - Writes a string followed by a line terminator - - The string to write - - - - A WorkItem may be an individual test case, a fixture or - a higher level grouping of tests. All WorkItems inherit - from the abstract WorkItem class, which uses the template - pattern to allow derived classes to perform work in - whatever way is needed. - - A WorkItem is created with a particular TestExecutionContext - and is responsible for re-establishing that context in the - current thread before it begins or resumes execution. - - - - - Creates a work item. - - The test for which this WorkItem is being created. - The filter to be used in selecting any child Tests. - - - - - Construct a WorkItem for a particular test. - - The test that the WorkItem will run - - - - Initialize the TestExecutionContext. This must be done - before executing the WorkItem. - - - Originally, the context was provided in the constructor - but delaying initialization of the context until the item - is about to be dispatched allows changes in the parent - context during OneTimeSetUp to be reflected in the child. - - The TestExecutionContext to use - - - - Event triggered when the item is complete - - - - - Gets the current state of the WorkItem - - - - - The test being executed by the work item - - - - - The execution context - - - - - The test actions to be performed before and after this test - - - - - Indicates whether this WorkItem may be run in parallel - - - - - The test result - - - - - Execute the current work item, including any - child work items. - - - - - Method that performs actually performs the work. It should - set the State to WorkItemState.Complete when done. - - - - - Method called by the derived class when all work is complete - - - - - WorkItemQueueState indicates the current state of a WorkItemQueue - - - - - The queue is paused - - - - - The queue is running - - - - - The queue is stopped - - - - - A WorkItemQueue holds work items that are ready to - be run, either initially or after some dependency - has been satisfied. - - - - - Initializes a new instance of the class. - - The name of the queue. - - - - Gets the name of the work item queue. - - - - - Gets the total number of items processed so far - - - - - Gets the maximum number of work items. - - - - - Gets the current state of the queue - - - - - Get a bool indicating whether the queue is empty. - - - - - Enqueue a WorkItem to be processed - - The WorkItem to process - - - - Dequeue a WorkItem for processing - - A WorkItem or null if the queue has stopped - - - - Start or restart processing of items from the queue - - - - - Signal the queue to stop - - - - - Pause the queue for restarting later - - - - - The current state of a work item - - - - - Ready to run or continue - - - - - Work Item is executing - - - - - Complete - - - - - The dispatcher needs to do different things at different, - non-overlapped times. For example, non-parallel tests may - not be run at the same time as parallel tests. We model - this using the metaphor of a working shift. The WorkShift - class associates one or more WorkItemQueues with one or - more TestWorkers. - - Work in the queues is processed until all queues are empty - and all workers are idle. Both tests are needed because a - worker that is busy may end up adding more work to one of - the queues. At that point, the shift is over and another - shift may begin. This cycle continues until all the tests - have been run. - - - - - Construct a WorkShift - - - - - Event that fires when the shift has ended - - - - - Gets a flag indicating whether the shift is currently active - - - - - Gets a list of the queues associated with this shift. - - Used for testing - - - - Gets the list of workers associated with this shift. - - - - - Gets a bool indicating whether this shift has any work to do - - - - - Add a WorkItemQueue to the shift, starting it if the - shift is currently active. - - - - - Assign a worker to the shift. - - - - - - Start or restart processing for the shift - - - - - End the shift, pausing all queues and raising - the EndOfShift event. - - - - - Shut down the shift. - - - - - Cancel the shift without completing all work - - - - - 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. - - - - - - - Gets or sets the maximum line length for this writer - - - - - Method to write single line message with optional args, usually - written to precede the general failure message, at a given - 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 result of 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 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 ConstraintResult for which the actual value is to be written - - - - Write the generic 'Actual' line for a given value - - The actual value causing a failure - - - - Combines multiple filters so that a test must pass all - of them in order to pass this filter. - - - - - Constructs an empty AndFilter - - - - - Constructs an AndFilter from an array of filters - - - - - - Checks whether the AndFilter is matched by a test - - The test to be matched - True if all the component filters pass, otherwise false - - - - Checks whether the AndFilter is matched by a test - - The test to be matched - True if all the component filters match, otherwise false - - - - Gets the element name - - Element name - - - - CategoryFilter is able to select or exclude tests - based on their categories. - - - - - - Construct a CategoryFilter using a single category name - - A category name - - - - Check whether the filter matches a test - - The test to be matched - - - - - Gets the element name - - Element name - - - - ClassName filter selects tests based on the class FullName - - - - - Construct a FullNameFilter for a single name - - The name the filter will recognize. - - - - Match a test against a single value. - - - - - Gets the element name - - Element name - - - - A base class for multi-part filters - - - - - Constructs an empty CompositeFilter - - - - - Constructs a CompositeFilter from an array of filters - - - - - - Adds a filter to the list of filters - - The filter to be added - - - - Return a list of the composing filters. - - - - - Adds an XML node - - Parent node - True if recursive - The added XML node - - - - Gets the element name - - Element name - - - - FullName filter selects tests based on their FullName - - - - - Construct a FullNameFilter for a single name - - The name the filter will recognize. - - - - Match a test against a single value. - - - - - Gets the element name - - Element name - - - - IdFilter selects tests based on their id - - - - - Construct an IdFilter for a single value - - The id the filter will recognize. - - - - Match a test against a single value. - - - - - Gets the element name - - Element name - - - - FullName filter selects tests based on their FullName - - - - - Construct a MethodNameFilter for a single name - - The name the filter will recognize. - - - - Match a test against a single value. - - - - - Gets the element name - - Element name - - - - NotFilter negates the operation of another filter - - - - - Construct a not filter on another filter - - The filter to be negated - - - - Gets the base filter - - - - - Determine if a particular test passes the filter criteria. The default - implementation checks the test itself, its parents and any descendants. - - Derived classes may override this method or any of the Match methods - to change the behavior of the filter. - - The test to which the filter is applied - True if the test passes the filter, otherwise false - - - - Check whether the filter matches a test - - The test to be matched - True if it matches, otherwise false - - - - Determine if a test matches the filter expicitly. That is, it must - be a direct match of the test itself or one of it's children. - - The test to which the filter is applied - True if the test matches the filter explicityly, otherwise false - - - - Adds an XML node - - Parent node - True if recursive - The added XML node - - - - Combines multiple filters so that a test must pass one - of them in order to pass this filter. - - - - - Constructs an empty OrFilter - - - - - Constructs an AndFilter from an array of filters - - - - - - Checks whether the OrFilter is matched by a test - - The test to be matched - True if any of the component filters pass, otherwise false - - - - Checks whether the OrFilter is matched by a test - - The test to be matched - True if any of the component filters match, otherwise false - - - - Gets the element name - - Element name - - - - PropertyFilter is able to select or exclude tests - based on their properties. - - - - - - Construct a PropertyFilter using a property name and expected value - - A property name - The expected value of the property - - - - Check whether the filter matches a test - - The test to be matched - - - - - Adds an XML node - - Parent node - True if recursive - The added XML node - - - - Gets the element name - - Element name - - - - TestName filter selects tests based on their Name - - - - - Construct a TestNameFilter for a single name - - The name the filter will recognize. - - - - Match a test against a single value. - - - - - Gets the element name - - Element name - - - - ValueMatchFilter selects tests based on some value, which - is expected to be contained in the test. - - - - - Returns the value matched by the filter - used for testing - - - - - Indicates whether the value is a regular expression - - - - - Construct a ValueMatchFilter for a single value. - - The value to be included. - - - - Match the input provided by the derived class - - The value to be matchedT - True for a match, false otherwise. - - - - Adds an XML node - - Parent node - True if recursive - The added XML node - - - - Gets the element name - - Element name - - - - GenericMethodHelper is able to deduce the Type arguments for - a generic method from the actual arguments provided. - - - - - Construct a GenericMethodHelper for a method - - MethodInfo for the method to examine - - - - Return the type argments for the method, deducing them - from the arguments actually provided. - - The arguments to the method - An array of type arguments. - - - - InvalidTestFixtureException is thrown when an appropriate test - fixture constructor using the provided arguments cannot be found. - - - - - Initializes a new instance of the class. - - - - - Initializes a new instance of the class. - - The message. - - - - Initializes a new instance of the class. - - The message. - The inner. - - - - Serialization Constructor - - - - - InvalidTestFixtureException is thrown when an appropriate test - fixture constructor using the provided arguments cannot be found. - - - - - Initializes a new instance of the class. - - - - - Initializes a new instance of the class. - - The message. - - - - Initializes a new instance of the class. - - The message. - The inner. - - - - Serialization Constructor - - - - - The MethodWrapper class wraps a MethodInfo so that it may - be used in a platform-independent manner. - - - - - Construct a MethodWrapper for a Type and a MethodInfo. - - - - - Construct a MethodInfo for a given Type and method name. - - - - - Gets the Type from which this method was reflected. - - - - - Gets the MethodInfo for this method. - - - - - Gets the name of the method. - - - - - Gets a value indicating whether the method is abstract. - - - - - Gets a value indicating whether the method is public. - - - - - Gets a value indicating whether the method contains unassigned generic type parameters. - - - - - Gets a value indicating whether the method is a generic method. - - - - - Gets a value indicating whether the MethodInfo represents the definition of a generic method. - - - - - Gets the return Type of the method. - - - - - Gets the parameters of the method. - - - - - - Returns the Type arguments of a generic method or the Type parameters of a generic method definition. - - - - - Replaces the type parameters of the method with the array of types provided and returns a new IMethodInfo. - - The type arguments to be used - A new IMethodInfo with the type arguments replaced - - - - Returns an array of custom attributes of the specified type applied to this method - - - - - Gets a value indicating whether one or more attributes of the spcified type are defined on the method. - - - - - Invokes the method, converting any TargetInvocationException to an NUnitException. - - The object on which to invoke the method - The argument list for the method - The return value from the invoked method - - - - Override ToString() so that error messages in NUnit's own tests make sense - - - - - Thrown when an assertion failed. Here to preserve the inner - exception and hence its stack trace. - - - - - Initializes a new instance of the class. - - - - - Initializes a new instance of the class. - - The error message that explains - the reason for the exception - - - - Initializes a new instance of the class. - - The error message that explains - the reason for the exception - The exception that caused the - current exception - - - - Serialization Constructor - - - - - OSPlatform represents a particular operating system platform - - - - - Platform ID for Unix as defined by Microsoft .NET 2.0 and greater - - - - - Platform ID for Unix as defined by Mono - - - - - Platform ID for XBox as defined by .NET and Mono, but not CF - - - - - Platform ID for MacOSX as defined by .NET and Mono, but not CF - - - - - Get the OSPlatform under which we are currently running - - - - - Gets the actual OS Version, not the incorrect value that might be - returned for Win 8.1 and Win 10 - - - If an application is not manifested as Windows 8.1 or Windows 10, - the version returned from Environment.OSVersion will not be 6.3 and 10.0 - respectively, but will be 6.2 and 6.3. The correct value can be found in - the registry. - - The original version - The correct OS version - - - - Product Type Enumeration used for Windows - - - - - Product type is unknown or unspecified - - - - - Product type is Workstation - - - - - Product type is Domain Controller - - - - - Product type is Server - - - - - Construct from a platform ID and version - - - - - Construct from a platform ID, version and product type - - - - - Get the platform ID of this instance - - - - - Get the Version of this instance - - - - - Get the Product Type of this instance - - - - - Return true if this is a windows platform - - - - - Return true if this is a Unix or Linux platform - - - - - Return true if the platform is Win32S - - - - - Return true if the platform is Win32Windows - - - - - Return true if the platform is Win32NT - - - - - Return true if the platform is Windows CE - - - - - Return true if the platform is Xbox - - - - - Return true if the platform is MacOSX - - - - - Return true if the platform is Windows 95 - - - - - Return true if the platform is Windows 98 - - - - - Return true if the platform is Windows ME - - - - - Return true if the platform is NT 3 - - - - - Return true if the platform is NT 4 - - - - - Return true if the platform is NT 5 - - - - - Return true if the platform is Windows 2000 - - - - - Return true if the platform is Windows XP - - - - - Return true if the platform is Windows 2003 Server - - - - - Return true if the platform is NT 6 - - - - - Return true if the platform is NT 6.0 - - - - - Return true if the platform is NT 6.1 - - - - - Return true if the platform is NT 6.2 - - - - - Return true if the platform is NT 6.3 - - - - - Return true if the platform is Vista - - - - - Return true if the platform is Windows 2008 Server (original or R2) - - - - - Return true if the platform is Windows 2008 Server (original) - - - - - Return true if the platform is Windows 2008 Server R2 - - - - - Return true if the platform is Windows 2012 Server (original or R2) - - - - - Return true if the platform is Windows 2012 Server (original) - - - - - Return true if the platform is Windows 2012 Server R2 - - - - - Return true if the platform is Windows 7 - - - - - Return true if the platform is Windows 8 - - - - - Return true if the platform is Windows 8.1 - - - - - Return true if the platform is Windows 10 - - - - - Return true if the platform is Windows Server. This is named Windows - Server 10 to distinguish it from previous versions of Windows Server. - - - - - The ParameterWrapper class wraps a ParameterInfo so that it may - be used in a platform-independent manner. - - - - - Construct a ParameterWrapper for a given method and parameter - - - - - - - Gets a value indicating whether the parameter is optional - - - - - Gets an IMethodInfo representing the method for which this is a parameter. - - - - - Gets the underlying ParameterInfo - - - - - Gets the Type of the parameter - - - - - Returns an array of custom attributes of the specified type applied to this method - - - - - Gets a value indicating whether one or more attributes of the specified type are defined on the parameter. - - - - - PlatformHelper class is used by the PlatformAttribute class to - determine whether a platform is supported. - - - - - Comma-delimited list of all supported OS platform constants - - - - - Comma-delimited list of all supported Runtime platform constants - - - - - Default constructor uses the operating system and - common language runtime of the system. - - - - - Construct a PlatformHelper for a particular operating - system and common language runtime. Used in testing. - - OperatingSystem to be used - RuntimeFramework to be used - - - - Test to determine if one of a collection of platforms - is being used currently. - - - - - - - Tests to determine if the current platform is supported - based on a platform attribute. - - The attribute to examine - - - - - Tests to determine if the current platform is supported - based on a platform attribute. - - The attribute to examine - - - - - Test to determine if the a particular platform or comma- - delimited set of platforms is in use. - - Name of the platform or comma-separated list of platform ids - True if the platform is in use on the system - - - - Return the last failure reason. Results are not - defined if called before IsSupported( Attribute ) - is called. - - - - - A PropertyBag represents a collection of name value pairs - that allows duplicate entries with the same key. Methods - are provided for adding a new pair as well as for setting - a key to a single value. All keys are strings but _values - may be of any type. Null _values are not permitted, since - a null entry represents the absence of the key. - - - - - Adds a key/value pair to the property set - - The key - The value - - - - Sets the value for a key, removing any other - _values that are already in the property set. - - - - - - - Gets a single value for a key, using the first - one if multiple _values are present and returning - null if the value is not found. - - - - - - - Gets a flag indicating whether the specified key has - any entries in the property set. - - The key to be checked - - True if their are _values present, otherwise false - - - - - Gets a collection containing all the keys in the property set - - - - - - Gets or sets the list of _values for a particular key - - - - - Returns an XmlNode representating the current PropertyBag. - - Not used - An XmlNode representing the PropertyBag - - - - Returns an XmlNode representing the PropertyBag after - adding it as a child of the supplied parent node. - - The parent node. - Not used - - - - - The PropertyNames class provides static constants for the - standard property ids that NUnit uses on tests. - - - - - The FriendlyName of the AppDomain in which the assembly is running - - - - - The selected strategy for joining parameter data into test cases - - - - - The process ID of the executing assembly - - - - - The stack trace from any data provider that threw - an exception. - - - - - The reason a test was not run - - - - - The author of the tests - - - - - The ApartmentState required for running the test - - - - - The categories applying to a test - - - - - The Description of a test - - - - - The number of threads to be used in running tests - - - - - The maximum time in ms, above which the test is considered to have failed - - - - - The ParallelScope associated with a test - - - - - The number of times the test should be repeated - - - - - Indicates that the test should be run on a separate thread - - - - - The culture to be set for a test - - - - - The UI culture to be set for a test - - - - - The type that is under test - - - - - The timeout value for the test - - - - - The test will be ignored until the given date - - - - - Randomizer returns a set of random _values in a repeatable - way, to allow re-running of tests if necessary. It extends - the .NET Random class, providing random values for a much - wider range of types. - - The class is used internally by the framework to generate - test case data and is also exposed for use by users through - the TestContext.Random property. - - - For consistency with the underlying Random Type, methods - returning a single value use the prefix "Next..." Those - without an argument return a non-negative value up to - the full positive range of the Type. Overloads are provided - for specifying a maximum or a range. Methods that return - arrays or strings use the prefix "Get..." to avoid - confusion with the single-value methods. - - - - - Initial seed used to create randomizers for this run - - - - - 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. - - - - - Create a new Randomizer using the next seed - available to ensure that each randomizer gives - a unique sequence of values. - - - - - - Default constructor - - - - - Construct based on seed value - - - - - - Returns a random unsigned int. - - - - - Returns a random unsigned int less than the specified maximum. - - - - - Returns a random unsigned int within a specified range. - - - - - Returns a non-negative random short. - - - - - Returns a non-negative random short less than the specified maximum. - - - - - Returns a non-negative random short within a specified range. - - - - - Returns a random unsigned short. - - - - - Returns a random unsigned short less than the specified maximum. - - - - - Returns a random unsigned short within a specified range. - - - - - Returns a random long. - - - - - Returns a random long less than the specified maximum. - - - - - Returns a non-negative random long within a specified range. - - - - - Returns a random ulong. - - - - - Returns a random ulong less than the specified maximum. - - - - - Returns a non-negative random long within a specified range. - - - - - Returns a random Byte - - - - - Returns a random Byte less than the specified maximum. - - - - - Returns a random Byte within a specified range - - - - - Returns a random SByte - - - - - Returns a random sbyte less than the specified maximum. - - - - - Returns a random sbyte within a specified range - - - - - Returns a random bool - - - - - Returns a random bool based on the probablility a true result - - - - - Returns a random double between 0.0 and the specified maximum. - - - - - Returns a random double within a specified range. - - - - - Returns a random float. - - - - - Returns a random float between 0.0 and the specified maximum. - - - - - Returns a random float within a specified range. - - - - - Returns a random enum value of the specified Type as an object. - - - - - Returns a random enum value of the specified Type. - - - - - Default characters for random functions. - - Default characters are the English alphabet (uppercase & lowercase), arabic numerals, and underscore - - - - Generate a random string based on the characters from the input string. - - desired length of output string. - string representing the set of characters from which to construct the resulting string - A random string of arbitrary length - - - - Generate a random string based on the characters from the input string. - - desired length of output string. - A random string of arbitrary length - Uses DefaultStringChars as the input character set - - - - Generate a random string based on the characters from the input string. - - A random string of the default length - Uses DefaultStringChars as the input character set - - - - Returns a random decimal. - - - - - Returns a random decimal between positive zero and the specified maximum. - - - - - Returns a random decimal within a specified range, which is not - permitted to exceed decimal.MaxVal in the current implementation. - - - A limitation of this implementation is that the range from min - to max must not exceed decimal.MaxVal. - - - - - Helper methods for inspecting a type by reflection. - - Many of these methods take ICustomAttributeProvider as an - argument to avoid duplication, even though certain attributes can - only appear on specific types of members, like MethodInfo or Type. - - In the case where a type is being examined for the presence of - an attribute, interface or named member, the Reflect methods - operate with the full name of the member being sought. This - removes the necessity of the caller having a reference to the - assembly that defines the item being sought and allows the - NUnit core to inspect assemblies that reference an older - version of the NUnit framework. - - - - - Examine a fixture type and return an array of methods having a - particular attribute. The array is order with base methods first. - - The type to examine - The attribute Type to look for - Specifies whether to search the fixture type inheritance chain - The array of methods found - - - - Examine a fixture type and return true if it has a method with - a particular attribute. - - The type to examine - The attribute Type to look for - True if found, otherwise false - - - - Invoke the default constructor on a Type - - The Type to be constructed - An instance of the Type - - - - Invoke a constructor on a Type with arguments - - The Type to be constructed - Arguments to the constructor - An instance of the Type - - - - Returns an array of types from an array of objects. - Used because the compact framework doesn't support - Type.GetTypeArray() - - An array of objects - An array of Types - - - - Invoke a parameterless method returning void on an object. - - A MethodInfo for the method to be invoked - The object on which to invoke the method - - - - Invoke a method, converting any TargetInvocationException to an NUnitException. - - A MethodInfo for the method to be invoked - The object on which to invoke the method - The argument list for the method - The return value from the invoked method - - - - The TestResult class represents the result of a test. - - - - - Error message for when child tests have errors - - - - - Error message for when child tests are ignored - - - - - The minimum duration for tests - - - - - List of child results - - - - - Construct a test result given a Test - - The test to be used - - - - Gets the test with which this result is associated. - - - - - Gets the ResultState of the test result, which - indicates the success or failure of the test. - - - - - Gets the name of the test result - - - - - Gets the full name of the test result - - - - - Gets or sets the elapsed time for running the test in seconds - - - - - Gets or sets the time the test started running. - - - - - Gets or sets the time the test finished running. - - - - - Gets the message associated with a test - failure or with not running the test - - - - - Gets any stacktrace associated with an - error or failure. - - - - - Gets or sets the count of asserts executed - when running the test. - - - - - Gets the number of test cases that failed - when running the test and all its children. - - - - - Gets the number of test cases that passed - when running the test and all its children. - - - - - Gets the number of test cases that were skipped - when running the test and all its children. - - - - - Gets the number of test cases that were inconclusive - when running the test and all its children. - - - - - Indicates whether this result has any child results. - Test HasChildren before accessing Children to avoid - the creation of an empty collection. - - - - - Gets the collection of child results. - - - - - Gets a TextWriter, which will write output to be included in the result. - - - - - Gets any text output written to this result. - - - - - Returns the Xml representation of the result. - - If true, descendant results are included - An XmlNode representing the result - - - - Adds the XML representation of the result as a child of the - supplied parent node.. - - The parent node. - If true, descendant results are included - - - - - Adds a child result to this result, setting this result's - ResultState to Failure if the child result failed. - - The result to be added - - - - Set the result of the test - - The ResultState to use in the result - - - - Set the result of the test - - The ResultState to use in the result - A message associated with the result state - - - - Set the result of the test - - The ResultState to use in the result - A message associated with the result state - Stack trace giving the location of the command - - - - Set the test result based on the type of exception thrown - - The exception that was thrown - - - - Set the test result based on the type of exception thrown - - The exception that was thrown - THe FailureSite to use in the result - - - - RecordTearDownException appends the message and stacktrace - from an exception arising during teardown of the test - to any previously recorded information, so that any - earlier failure information is not lost. Note that - calling Assert.Ignore, Assert.Inconclusive, etc. during - teardown is treated as an error. If the current result - represents a suite, it may show a teardown error even - though all contained tests passed. - - The Exception to be recorded - - - - Adds a reason element to a node and returns it. - - The target node. - The new reason element. - - - - Adds a failure element to a node and returns it. - - The target node. - The new failure element. - - - - Enumeration identifying a common language - runtime implementation. - - - - Any supported runtime framework - - - Microsoft .NET Framework - - - Microsoft .NET Compact Framework - - - Microsoft Shared Source CLI - - - Mono - - - Silverlight - - - MonoTouch - - - - RuntimeFramework represents a particular version - of a common language runtime implementation. - - - - - DefaultVersion is an empty Version, used to indicate that - NUnit should select the CLR version to use for the test. - - - - - Construct from a runtime type and version. If the version has - two parts, it is taken as a framework version. If it has three - or more, it is taken as a CLR version. In either case, the other - version is deduced based on the runtime type and provided version. - - The runtime type of the framework - The version of the framework - - - - Static method to return a RuntimeFramework object - for the framework that is currently in use. - - - - - The type of this runtime framework - - - - - The framework version for this runtime framework - - - - - The CLR version for this runtime framework - - - - - Return true if any CLR version may be used in - matching this RuntimeFramework object. - - - - - Returns the Display name for this framework - - - - - Parses a string representing a RuntimeFramework. - The string may be just a RuntimeType name or just - a Version or a hyphenated RuntimeType-Version or - a Version prefixed by 'versionString'. - - - - - - - Overridden to return the short name of the framework - - - - - - Returns true if the current framework matches the - one supplied as an argument. Two frameworks match - if their runtime types are the same or either one - is RuntimeType.Any and all specified version components - are equal. Negative (i.e. unspecified) version - components are ignored. - - The RuntimeFramework to be matched. - True on match, otherwise false - - - - StackFilter class is used to remove internal NUnit - entries from a stack trace so that the resulting - trace provides better information about the test. - - - - - Filters a raw stack trace and returns the result. - - The original stack trace - A filtered stack trace - - - - Provides methods to support legacy string comparison methods. - - - - - Compares two strings for equality, ignoring case if requested. - - The first string. - The second string.. - if set to true, the case of the letters in the strings is ignored. - Zero if the strings are equivalent, a negative number if strA is sorted first, a positive number if - strB is sorted first - - - - Compares two strings for equality, ignoring case if requested. - - The first string. - The second string.. - if set to true, the case of the letters in the strings is ignored. - True if the strings are equivalent, false if not. - - - - The TestCaseParameters class encapsulates method arguments and - other selected parameters needed for constructing - a parameterized test case. - - - - - The expected result to be returned - - - - - Default Constructor creates an empty parameter set - - - - - Construct a non-runnable ParameterSet, specifying - the provider exception that made it invalid. - - - - - Construct a parameter set with a list of arguments - - - - - - Construct a ParameterSet from an object implementing ITestCaseData - - - - - - The expected result of the test, which - must match the method return type. - - - - - Gets a value indicating whether an expected result was specified. - - - - - Helper class used to save and restore certain static or - singleton settings in the environment that affect tests - or which might be changed by the user tests. - - An internal class is used to hold settings and a stack - of these objects is pushed and popped as Save and Restore - are called. - - - - - Link to a prior saved context - - - - - Indicates that a stop has been requested - - - - - The event listener currently receiving notifications - - - - - The number of assertions for the current test - - - - - The current culture - - - - - The current UI culture - - - - - The current test result - - - - - The current Principal. - - - - - Initializes a new instance of the class. - - - - - Initializes a new instance of the class. - - An existing instance of TestExecutionContext. - - - - The current context, head of the list of saved contexts. - - - - - Gets the current context. - - The current context. - - - - Get the current context or return null if none is found. - - - - - Clear the current context. This is provided to - prevent "leakage" of the CallContext containing - the current context back to any runners. - - - - - Gets or sets the current test - - - - - The time the current test started execution - - - - - The time the current test started in Ticks - - - - - Gets or sets the current test result - - - - - Gets a TextWriter that will send output to the current test result. - - - - - The current test object - that is the user fixture - object on which tests are being executed. - - - - - Get or set the working directory - - - - - Get or set indicator that run should stop on the first error - - - - - Gets an enum indicating whether a stop has been requested. - - - - - The current test event listener - - - - - The current WorkItemDispatcher - - - - - The ParallelScope to be used by tests running in this context. - For builds with out the parallel feature, it has no effect. - - - - - Gets the RandomGenerator specific to this Test - - - - - Gets the assert count. - - The assert count. - - - - Gets or sets the test case timeout value - - - - - Gets a list of ITestActions set by upstream tests - - - - - Saves or restores the CurrentCulture - - - - - Saves or restores the CurrentUICulture - - - - - Gets or sets the current for the Thread. - - - - - Record any changes in the environment made by - the test code in the execution context so it - will be passed on to lower level tests. - - - - - Set up the execution environment to match a context. - Note that we may be running on the same thread where the - context was initially created or on a different thread. - - - - - Increments the assert count by one. - - - - - Increments the assert count by a specified amount. - - - - - Obtain lifetime service object - - - - - - Enumeration indicating whether the tests are - running normally or being cancelled. - - - - - Running normally with no stop requested - - - - - A graceful stop has been requested - - - - - A forced stop has been requested - - - - - Interface to be implemented by filters applied to tests. - The filter applies when running the test, after it has been - loaded, since this is the only time an ITest exists. - - - - - Unique Empty filter. - - - - - Indicates whether this is the EmptyFilter - - - - - Indicates whether this is a top-level filter, - not contained in any other filter. - - - - - Determine if a particular test passes the filter criteria. The default - implementation checks the test itself, its parents and any descendants. - - Derived classes may override this method or any of the Match methods - to change the behavior of the filter. - - The test to which the filter is applied - True if the test passes the filter, otherwise false - - - - Determine if a test matches the filter expicitly. That is, it must - be a direct match of the test itself or one of it's children. - - The test to which the filter is applied - True if the test matches the filter explicityly, otherwise false - - - - Determine whether the test itself matches the filter criteria, without - examining either parents or descendants. This is overridden by each - different type of filter to perform the necessary tests. - - The test to which the filter is applied - True if the filter matches the any parent of the test - - - - Determine whether any ancestor of the test matches the filter criteria - - The test to which the filter is applied - True if the filter matches the an ancestor of the test - - - - Determine whether any descendant of the test matches the filter criteria. - - The test to be matched - True if at least one descendant matches the filter criteria - - - - Create a TestFilter instance from an xml representation. - - - - - Create a TestFilter from it's TNode representation - - - - - Nested class provides an empty filter - one that always - returns true when called. It never matches explicitly. - - - - - Adds an XML node - - True if recursive - The added XML node - - - - Adds an XML node - - Parent node - True if recursive - The added XML node - - - - The TestCaseParameters class encapsulates method arguments and - other selected parameters needed for constructing - a parameterized test case. - - - - - Default Constructor creates an empty parameter set - - - - - Construct a non-runnable ParameterSet, specifying - the provider exception that made it invalid. - - - - - Construct a parameter set with a list of arguments - - - - - - Construct a ParameterSet from an object implementing ITestCaseData - - - - - - Type arguments used to create a generic fixture instance - - - - - TestListener provides an implementation of ITestListener that - does nothing. It is used only through its NULL property. - - - - - Called when a test has just started - - The test that is starting - - - - Called when a test case has finished - - The result of the test - - - - Construct a new TestListener - private so it may not be used. - - - - - Get a listener that does nothing - - - - - TestNameGenerator is able to create test names according to - a coded pattern. - - - - - Construct a TestNameGenerator - - The pattern used by this generator. - - - - Get the display name for a TestMethod and it's arguments - - A TestMethod - The display name - - - - Get the display name for a TestMethod and it's arguments - - A TestMethod - Arguments to be used - The display name - - - - Get the display name for a MethodInfo - - A MethodInfo - The display name - - - - Get the display name for a method with args - - A MethodInfo - Argument list for the method - The display name - - - - TestParameters is the abstract base class for all classes - that know how to provide data for constructing a test. - - - - - Default Constructor creates an empty parameter set - - - - - Construct a parameter set with a list of arguments - - - - - - Construct a non-runnable ParameterSet, specifying - the provider exception that made it invalid. - - - - - Construct a ParameterSet from an object implementing ITestData - - - - - - The RunState for this set of parameters. - - - - - The arguments to be used in running the test, - which must match the method signature. - - - - - A name to be used for this test case in lieu - of the standard generated name containing - the argument list. - - - - - Gets the property dictionary for this test - - - - - Applies ParameterSet _values to the test itself. - - A test. - - - - The original arguments provided by the user, - used for display purposes. - - - - - TestProgressReporter translates ITestListener events into - the async callbacks that are used to inform the client - software about the progress of a test run. - - - - - Initializes a new instance of the class. - - The callback handler to be used for reporting progress. - - - - Called when a test has just started - - The test that is starting - - - - Called when a test has finished. Sends a result summary to the callback. - to - - The result of the test - - - - Returns the parent test item for the targer test item if it exists - - - parent test item - - - - Makes a string safe for use as an attribute, replacing - characters characters that can't be used with their - corresponding xml representations. - - The string to be used - A new string with the _values replaced - - - - ParameterizedFixtureSuite serves as a container for the set of test - fixtures created from a given Type using various parameters. - - - - - Initializes a new instance of the class. - - The ITypeInfo for the type that represents the suite. - - - - Gets a string representing the type of test - - - - - - ParameterizedMethodSuite holds a collection of individual - TestMethods with their arguments applied. - - - - - Construct from a MethodInfo - - - - - - Gets a string representing the type of test - - - - - - SetUpFixture extends TestSuite and supports - Setup and TearDown methods. - - - - - Initializes a new instance of the class. - - The type. - - - - The Test abstract class represents a test within the framework. - - - - - Static value to seed ids. It's started at 1000 so any - uninitialized ids will stand out. - - - - - The SetUp methods. - - - - - The teardown methods - - - - - Constructs a test given its name - - The name of the test - - - - Constructs a test given the path through the - test hierarchy to its parent and a name. - - The parent tests full name - The name of the test - - - - TODO: Documentation needed for constructor - - - - - - Construct a test from a MethodInfo - - - - - - Gets or sets the id of the test - - - - - - Gets or sets the name of the test - - - - - Gets or sets the fully qualified name of the test - - - - - - Gets the name of the class containing this test. Returns - null if the test is not associated with a class. - - - - - Gets the name of the method implementing this test. - Returns null if the test is not implemented as a method. - - - - - Gets the TypeInfo of the fixture used in running this test - or null if no fixture type is associated with it. - - - - - Gets a MethodInfo for the method implementing this test. - Returns null if the test is not implemented as a method. - - - - - Whether or not the test should be run - - - - - Gets the name used for the top-level element in the - XML representation of this test - - - - - Gets a string representing the type of test. Used as an attribute - value in the XML representation of a test and has no other - function in the framework. - - - - - Gets a count of test cases represented by - or contained under this test. - - - - - Gets the properties for this test - - - - - Returns true if this is a TestSuite - - - - - Gets a bool indicating whether the current test - has any descendant tests. - - - - - Gets the parent as a Test object. - Used by the core to set the parent. - - - - - Gets this test's child tests - - A list of child tests - - - - Gets or sets a fixture object for running this test. - - - - - Static prefix used for ids in this AppDomain. - Set by FrameworkController. - - - - - Gets or Sets the Int value representing the seed for the RandomGenerator - - - - - - Creates a TestResult for this test. - - A TestResult suitable for this type of test. - - - - Modify a newly constructed test by applying any of NUnit's common - attributes, based on a supplied ICustomAttributeProvider, which is - usually the reflection element from which the test was constructed, - but may not be in some instances. The attributes retrieved are - saved for use in subsequent operations. - - An object implementing ICustomAttributeProvider - - - - Add standard attributes and members to a test node. - - - - - - - Returns the Xml representation of the test - - If true, include child tests recursively - - - - - Returns an XmlNode representing the current result after - adding it as a child of the supplied parent node. - - The parent node. - If true, descendant results are included - - - - - Compares this test to another test for sorting purposes - - The other test - Value of -1, 0 or +1 depending on whether the current test is less than, equal to or greater than the other test - - - - TestAssembly is a TestSuite that represents the execution - of tests in a managed assembly. - - - - - Initializes a new instance of the class - specifying the Assembly and the path from which it was loaded. - - The assembly this test represents. - The path used to load the assembly. - - - - Initializes a new instance of the class - for a path which could not be loaded. - - The path used to load the assembly. - - - - Gets the Assembly represented by this instance. - - - - - Gets the name used for the top-level element in the - XML representation of this test - - - - - TestFixture is a surrogate for a user test fixture class, - containing one or more tests. - - - - - Initializes a new instance of the class. - - Type of the fixture. - - - - The TestMethod class represents a Test implemented as a method. - - - - - The ParameterSet used to create this test method - - - - - Initializes a new instance of the class. - - The method to be used as a test. - - - - Initializes a new instance of the class. - - The method to be used as a test. - The suite or fixture to which the new test will be added - - - - Overridden to return a TestCaseResult. - - A TestResult for this test. - - - - Gets a bool indicating whether the current test - has any descendant tests. - - - - - Returns a TNode representing the current result after - adding it as a child of the supplied parent node. - - The parent node. - If true, descendant results are included - - - - - Gets this test's child tests - - A list of child tests - - - - Gets the name used for the top-level element in the - XML representation of this test - - - - - Returns the name of the method - - - - - TestSuite represents a composite test, which contains other tests. - - - - - Our collection of child tests - - - - - Initializes a new instance of the class. - - The name of the suite. - - - - Initializes a new instance of the class. - - Name of the parent suite. - The name of the suite. - - - - Initializes a new instance of the class. - - Type of the fixture. - - - - Initializes a new instance of the class. - - Type of the fixture. - - - - Sorts tests under this suite. - - - - - Adds a test to the suite. - - The test. - - - - Gets this test's child tests - - The list of child tests - - - - Gets a count of test cases represented by - or contained under this test. - - - - - - The arguments to use in creating the fixture - - - - - Set to true to suppress sorting this suite's contents - - - - - Overridden to return a TestSuiteResult. - - A TestResult for this test. - - - - Gets a bool indicating whether the current test - has any descendant tests. - - - - - Gets the name used for the top-level element in the - XML representation of this test - - - - - Returns an XmlNode representing the current result after - adding it as a child of the supplied parent node. - - The parent node. - If true, descendant results are included - - - - - Check that setup and teardown methods marked by certain attributes - meet NUnit's requirements and mark the tests not runnable otherwise. - - The attribute type to check for - - - - ThreadUtility provides a set of static methods convenient - for working with threads. - - - - - Do our best to Kill a thread - - The thread to kill - - - - Do our best to kill a thread, passing state info - - The thread to kill - Info for the ThreadAbortException handler - - - - TypeHelper provides static methods that operate on Types. - - - - - A special value, which is used to indicate that BestCommonType() method - was unable to find a common type for the specified arguments. - - - - - Gets the display name for a Type as used by NUnit. - - The Type for which a display name is needed. - The display name for the Type - - - - Gets the display name for a Type as used by NUnit. - - The Type for which a display name is needed. - The arglist provided. - The display name for the Type - - - - Returns the best fit for a common type to be used in - matching actual arguments to a methods Type parameters. - - The first type. - The second type. - Either type1 or type2, depending on which is more general. - - - - Determines whether the specified type is numeric. - - The type to be examined. - - true if the specified type is numeric; otherwise, false. - - - - - Convert an argument list to the required parameter types. - Currently, only widening numeric conversions are performed. - - An array of args to be converted - A ParameterInfo[] whose types will be used as targets - - - - Determines whether this instance can deduce type args for a generic type from the supplied arguments. - - The type to be examined. - The arglist. - The type args to be used. - - true if this the provided args give sufficient information to determine the type args to be used; otherwise, false. - - - - - Gets the _values for an enumeration, using Enum.GetTypes - where available, otherwise through reflection. - - - - - - - Gets the ids of the _values for an enumeration, - using Enum.GetNames where available, otherwise - through reflection. - - - - - - - The TypeWrapper class wraps a Type so it may be used in - a platform-independent manner. - - - - - Construct a TypeWrapper for a specified Type. - - - - - Gets the underlying Type on which this TypeWrapper is based. - - - - - Gets the base type of this type as an ITypeInfo - - - - - Gets the Name of the Type - - - - - Gets the FullName of the Type - - - - - Gets the assembly in which the type is declared - - - - - Gets the namespace of the Type - - - - - Gets a value indicating whether the type is abstract. - - - - - Gets a value indicating whether the Type is a generic Type - - - - - Returns true if the Type wrapped is T - - - - - Gets a value indicating whether the Type has generic parameters that have not been replaced by specific Types. - - - - - Gets a value indicating whether the Type is a generic Type definition - - - - - Gets a value indicating whether the type is sealed. - - - - - Gets a value indicating whether this type represents a static class. - - - - - Get the display name for this type - - - - - Get the display name for an object of this type, constructed with the specified args. - - - - - Returns a new ITypeInfo representing an instance of this generic Type using the supplied Type arguments - - - - - Returns a Type representing a generic type definition from which this Type can be constructed. - - - - - Returns an array of custom attributes of the specified type applied to this type - - - - - Returns a value indicating whether the type has an attribute of the specified type. - - - - - - - - Returns a flag indicating whether this type has a method with an attribute of the specified type. - - - - - - - Returns an array of IMethodInfos for methods of this Type - that match the specified flags. - - - - - Returns a value indicating whether this Type has a public constructor taking the specified argument Types. - - - - - Construct an object of this Type, using the specified arguments. - - - - - Override ToString() so that error messages in NUnit's own tests make sense - - - - - Represents the result of running a single test case. - - - - - Construct a TestCaseResult based on a TestMethod - - A TestMethod to which the result applies. - - - - Gets the number of test cases that failed - when running the test and all its children. - - - - - Gets the number of test cases that passed - when running the test and all its children. - - - - - Gets the number of test cases that were skipped - when running the test and all its children. - - - - - Gets the number of test cases that were inconclusive - when running the test and all its children. - - - - - Represents the result of running a test suite - - - - - Construct a TestSuiteResult base on a TestSuite - - The TestSuite to which the result applies - - - - Gets the number of test cases that failed - when running the test and all its children. - - - - - Gets the number of test cases that passed - when running the test and all its children. - - - - - Gets the number of test cases that were skipped - when running the test and all its children. - - - - - Gets the number of test cases that were inconclusive - when running the test and all its children. - - - - - Add a child result - - The child result to be added - - - - Class used to guard against unexpected argument values - or operations by throwing an appropriate exception. - - - - - Throws an exception if an argument is null - - The value to be tested - The name of the argument - - - - Throws an exception if a string argument is null or empty - - The value to be tested - The name of the argument - - - - Throws an ArgumentOutOfRangeException if the specified condition is not met. - - The condition that must be met - The exception message to be used - The name of the argument - - - - Throws an ArgumentException if the specified condition is not met. - - The condition that must be met - The exception message to be used - The name of the argument - - - - Throws an InvalidOperationException if the specified condition is not met. - - The condition that must be met - The exception message to be used - - - - The different targets a test action attribute can be applied to - - - - - Default target, which is determined by where the action attribute is attached - - - - - Target a individual test case - - - - - Target a suite of test cases - - - - - DefaultTestAssemblyBuilder loads a single assembly and builds a TestSuite - containing test fixtures present in the assembly. - - - - - The default suite builder used by the test assembly builder. - - - - - Initializes a new instance of the class. - - - - - Build a suite of tests from a provided assembly - - The assembly from which tests are to be built - A dictionary of options to use in building the suite - - A TestSuite containing the tests found in the assembly - - - - - Build a suite of tests given the filename of an assembly - - The filename of the assembly from which tests are to be built - A dictionary of options to use in building the suite - - A TestSuite containing the tests found in the assembly - - - - - FrameworkController provides a facade for use in loading, browsing - and running tests without requiring a reference to the NUnit - framework. All calls are encapsulated in constructors for - this class and its nested classes, which only require the - types of the Common Type System as arguments. - - The controller supports four actions: Load, Explore, Count and Run. - They are intended to be called by a driver, which should allow for - proper sequencing of calls. Load must be called before any of the - other actions. The driver may support other actions, such as - reload on run, by combining these calls. - - - - - Construct a FrameworkController using the default builder and runner. - - The AssemblyName or path to the test assembly - A prefix used for all test ids created under this controller. - A Dictionary of settings to use in loading and running the tests - - - - Construct a FrameworkController using the default builder and runner. - - The test assembly - A prefix used for all test ids created under this controller. - A Dictionary of settings to use in loading and running the tests - - - - Construct a FrameworkController, specifying the types to be used - for the runner and builder. This constructor is provided for - purposes of development. - - The full AssemblyName or the path to the test assembly - A prefix used for all test ids created under this controller. - A Dictionary of settings to use in loading and running the tests - The Type of the test runner - The Type of the test builder - - - - Construct a FrameworkController, specifying the types to be used - for the runner and builder. This constructor is provided for - purposes of development. - - The test assembly - A prefix used for all test ids created under this controller. - A Dictionary of settings to use in loading and running the tests - The Type of the test runner - The Type of the test builder - - - - Gets the ITestAssemblyBuilder used by this controller instance. - - The builder. - - - - Gets the ITestAssemblyRunner used by this controller instance. - - The runner. - - - - Gets the AssemblyName or the path for which this FrameworkController was created - - - - - Gets the Assembly for which this - - - - - Gets a dictionary of settings for the FrameworkController - - - - - Inserts environment element - - Target node - The new node - - - - Inserts settings element - - Target node - Settings dictionary - The new node - - - - FrameworkControllerAction is the base class for all actions - performed against a FrameworkController. - - - - - LoadTestsAction loads a test into the FrameworkController - - - - - LoadTestsAction loads the tests in an assembly. - - The controller. - The callback handler. - - - - ExploreTestsAction returns info about the tests in an assembly - - - - - Initializes a new instance of the class. - - The controller for which this action is being performed. - Filter used to control which tests are included (NYI) - The callback handler. - - - - CountTestsAction counts the number of test cases in the loaded TestSuite - held by the FrameworkController. - - - - - Construct a CountsTestAction and perform the count of test cases. - - A FrameworkController holding the TestSuite whose cases are to be counted - A string containing the XML representation of the filter to use - A callback handler used to report results - - - - RunTestsAction runs the loaded TestSuite held by the FrameworkController. - - - - - Construct a RunTestsAction and run all tests in the loaded TestSuite. - - A FrameworkController holding the TestSuite to run - A string containing the XML representation of the filter to use - A callback handler used to report results - - - - RunAsyncAction initiates an asynchronous test run, returning immediately - - - - - Construct a RunAsyncAction and run all tests in the loaded TestSuite. - - A FrameworkController holding the TestSuite to run - A string containing the XML representation of the filter to use - A callback handler used to report results - - - - StopRunAction stops an ongoing run. - - - - - Construct a StopRunAction and stop any ongoing run. If no - run is in process, no error is raised. - - The FrameworkController for which a run is to be stopped. - True the stop should be forced, false for a cooperative stop. - >A callback handler used to report results - A forced stop will cause threads and processes to be killed as needed. - - - - The ITestAssemblyBuilder interface is implemented by a class - that is able to build a suite of tests given an assembly or - an assembly filename. - - - - - Build a suite of tests from a provided assembly - - The assembly from which tests are to be built - A dictionary of options to use in building the suite - A TestSuite containing the tests found in the assembly - - - - Build a suite of tests given the filename of an assembly - - The filename of the assembly from which tests are to be built - A dictionary of options to use in building the suite - A TestSuite containing the tests found in the assembly - - - - The ITestAssemblyRunner interface is implemented by classes - that are able to execute a suite of tests loaded - from an assembly. - - - - - Gets the tree of loaded tests, or null if - no tests have been loaded. - - - - - Gets the tree of test results, if the test - run is completed, otherwise null. - - - - - Indicates whether a test has been loaded - - - - - Indicates whether a test is currently running - - - - - Indicates whether a test run is complete - - - - - Loads the tests found in an Assembly, returning an - indication of whether or not the load succeeded. - - File name of the assembly to load - Dictionary of options to use in loading the test - An ITest representing the loaded tests - - - - Loads the tests found in an Assembly, returning an - indication of whether or not the load succeeded. - - The assembly to load - Dictionary of options to use in loading the test - An ITest representing the loaded tests - - - - Count Test Cases using a filter - - The filter to apply - The number of test cases found - - - - Run selected tests and return a test result. The test is run synchronously, - and the listener interface is notified as it progresses. - - Interface to receive ITestListener notifications. - A test filter used to select tests to be run - - - - Run selected tests asynchronously, notifying the listener interface as it progresses. - - Interface to receive EventListener notifications. - A test filter used to select tests to be run - - - - Wait for the ongoing run to complete. - - Time to wait in milliseconds - True if the run completed, otherwise false - - - - Signal any test run that is in process to stop. Return without error if no test is running. - - If true, kill any test-running threads - - - - Implementation of ITestAssemblyRunner - - - - - Initializes a new instance of the class. - - The builder. - - - - Gets the default level of parallel execution (worker threads) - - - - - The tree of tests that was loaded by the builder - - - - - The test result, if a run has completed - - - - - Indicates whether a test is loaded - - - - - Indicates whether a test is running - - - - - Indicates whether a test run is complete - - - - - Our settings, specified when loading the assembly - - - - - The top level WorkItem created for the assembly as a whole - - - - - The TestExecutionContext for the top level WorkItem - - - - - Loads the tests found in an Assembly - - File name of the assembly to load - Dictionary of option settings for loading the assembly - True if the load was successful - - - - Loads the tests found in an Assembly - - The assembly to load - Dictionary of option settings for loading the assembly - True if the load was successful - - - - Count Test Cases using a filter - - The filter to apply - The number of test cases found - - - - Run selected tests and return a test result. The test is run synchronously, - and the listener interface is notified as it progresses. - - Interface to receive EventListener notifications. - A test filter used to select tests to be run - - - - - Run selected tests asynchronously, notifying the listener interface as it progresses. - - Interface to receive EventListener notifications. - A test filter used to select tests to be run - - RunAsync is a template method, calling various abstract and - virtual methods to be overridden by derived classes. - - - - - Wait for the ongoing run to complete. - - Time to wait in milliseconds - True if the run completed, otherwise false - - - - Initiate the test run. - - - - - Signal any test run that is in process to stop. Return without error if no test is running. - - If true, kill any test-running threads - - - - Create the initial TestExecutionContext used to run tests - - The ITestListener specified in the RunAsync call - - - - Handle the the Completed event for the top level work item - - - - - The Assert class contains a collection of static methods that - implement the most common assertions used in NUnit. - - - - - Verifies that the first int is greater than the second - int. 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 int is greater than the second - int. 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 - - - - 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 - - - - 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 - - - - 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 - - - - 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 - - - - 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 - - - - 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 - - - - 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 - - - - 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 - - - - 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 - - - - 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 - - - - 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 - - - - 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 - - - - 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 - - - - 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 - - - - Verifies that the first value is greater than or equal to 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 or equal to 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 or equal to 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 or equal to 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 or equal to 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 or equal to 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 or equal to 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 or equal to 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 or equal to 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 or equal to 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 or equal to 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 or equal to 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 or equal to 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 or equal to 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 or equal to 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 or equal to 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 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 - - - - 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 - - - - 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 - - - - 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 - - - - 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 - - - - 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 - - - - 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 - - - - 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 - - - - 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 - 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 - - - - 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 - 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 - - - - 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 - 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 - - - - 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 - 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 - - - - 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 - - - - 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 - - - - 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 - - - - 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 - - - - 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 - - - - 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 - - - - 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 - - - - 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 - - - - 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 - - - - 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 - - - - 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. - - - - - - - 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. - - - - - 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 - - - - 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 - - - - 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 - - - - 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 - - - - 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 - - - - 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 - - - - 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 - - - - 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 - - - - 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 - - - - Verifies that a delegate throws a particular exception when called. - - The exception Type expected - A TestDelegate - 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 TestDelegate - - - - Verifies that a delegate throws a particular exception when called. - - Type of the expected exception - A TestDelegate - 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 TestDelegate - - - - 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 - - - - 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 - - - - Verifies that a delegate throws an exception of a certain Type - or one derived from it 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 of a certain Type - or one derived from it when called and returns it. - - A TestDelegate - - - - Verifies that a delegate does not throw an exception - - A TestDelegate - 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 TestDelegate - - - - 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 - - - - Asserts that a condition is true. If the condition is false the method throws - an . - - A lambda that returns a Boolean - 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 . - - A lambda that returns a Boolean - - - - 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. - - 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 - - - - 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 - - - - 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 - 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 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 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. - Used as a synonym for That in rare cases where a private setter - causes a Visual Basic compilation error. - - 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. - Used as a synonym for That in rare cases where a private setter - causes a Visual Basic compilation error. - - - This method is provided for use by VB developers needing to test - the value of properties with private setters. - - 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 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 - - - - 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 - - - - 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 - - - - 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 - - - - 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 - - - - 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 - - - - 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 - - - - 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 - - - - Delegate used by tests that execute code and - capture any thrown exception. - - - - - AssertionHelper is an optional base class for user tests, - allowing the use of shorter ids for constraints and - asserts and avoiding conflict with the definition of - , from which it inherits much of its - behavior, in certain mock object frameworks. - - - - - 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 - - - - 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. - - 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 - - - - 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 - - - - 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 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 - - - - Returns a ListMapper based on a collection. - - The original collection - - - - - 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 - 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. - - 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 - - - - 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 - - - - Asserts that a condition is true. If the condition is false the method throws - an . - - A lambda that returns a Boolean - 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 . - - A lambda that returns a Boolean - - - - 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 - - - - Apply a constraint to an actual value, succeeding if the constraint - is satisfied and throwing an InconclusiveException 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 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 - - - - Marks a test that must run in a particular threading apartment state, causing it - to run in a separate thread if necessary. - - - - - Construct an ApartmentAttribute - - The apartment state that this test must be run under. You must pass in a valid apartment state. - - - - Provides the Author of a test or test fixture. - - - - - Initializes a new instance of the class. - - The name of the author. - - - - Initializes a new instance of the class. - - The name of the author. - The email address of the author. - - - - 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 - - - - - Modifies a test by adding a category to it. - - The test to modify - - - - Marks a test to use a combinatorial join of any argument - data provided. Since this is the default, the attribute is - optional. - - - - - Default constructor - - - - - Marks a test to use a particular CombiningStrategy to join - any parameter data provided. Since this is the default, the - attribute is optional. - - - - - Construct a CombiningStrategyAttribute incorporating an - ICombiningStrategy and an IParamterDataProvider. - - Combining strategy to be used in combining data - An IParameterDataProvider to supply data - - - - Construct a CombiningStrategyAttribute incorporating an object - that implements ICombiningStrategy and an IParameterDataProvider. - This constructor is provided for CLS compliance. - - Combining strategy to be used in combining data - An IParameterDataProvider to supply data - - - - Construct one or more TestMethods from a given MethodInfo, - using available parameter data. - - The MethodInfo for which tests are to be constructed. - The suite to which the tests will be added. - One or more TestMethods - - - - Modify the test by adding the name of the combining strategy - to the properties. - - The test to modify - - - - LevelOfParallelismAttribute is used to set the number of worker threads - that may be allocated by the framework for running tests. - - - - - Construct a LevelOfParallelismAttribute. - - The number of worker threads to be created by the framework. - - - - Attribute used to identify a method that is called once - to perform setup before any child tests are run. - - - - - Attribute used to identify a method that is called once - after all the child tests have run. The method is - guaranteed to be called, even if an exception is thrown. - - - - - 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 - - - - Wrap a command and return the result. - - The command to be wrapped - The wrapped command - - - - The test command for the RetryAttribute - - - - - Initializes a new instance of the class. - - The inner command. - The number of repetitions - - - - Runs the test, saving a TestResult in the supplied TestExecutionContext. - - The context in which the test should run. - A TestResult - - - - Provide actions to execute before and after tests. - - - - - Executed before each test is run - - The test that is going to be run. - - - - Executed after each test is run - - The test that has just been run. - - - - Provides the target for the action attribute - - - - - ParallelizableAttribute is used to mark tests that may be run in parallel. - - - - - Construct a ParallelizableAttribute using default ParallelScope.Self. - - - - - Construct a ParallelizableAttribute with a specified scope. - - The ParallelScope associated with this attribute. - - - - Modify the context to be used for child tests - - The current TestExecutionContext - - - - 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 - - - - Causes a test to be skipped if this CultureAttribute is not satisfied. - - The test to modify - - - - Tests to determine if the current culture is supported - based on the properties of this attribute. - - True, if the current culture is supported - - - - Test to determine if the a particular culture or comma- - delimited set of cultures is in use. - - Name of the culture or comma-separated list of culture ids - True if the culture is in use on the system - - - - Test to determine if one of a collection of cultures - is being used currently. - - - - - - - The abstract base class for all data-providing attributes - defined by NUnit. Used to select all data sources for a - method, class or parameter. - - - - - Default constructor - - - - - 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 a field, property or method providing a set of datapoints to - be used in executing any theories within the same fixture that require an - argument of the Type provided. The data source may provide an array of - the required Type or an . - Synonymous with DatapointSourceAttribute. - - - - - Used to mark a field, property or method providing a set of datapoints to - be used in executing any theories within the same fixture that require an - argument of the Type provided. The data source may provide an array of - the required Type or an . - Synonymous with DatapointsAttribute. - - - - - Attribute used to provide descriptive text about a - test case or fixture. - - - - - Construct a description Attribute - - The text of the description - - - - 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 - - - - Modifies a test by marking it as explicit. - - The test to modify - - - - 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 giving a reason for ignoring the test - - The reason for ignoring the test - - - - The date in the future to stop ignoring the test as a string in UTC time. - For example for a date and time, "2014-12-25 08:10:00Z" or for just a date, - "2014-12-25". If just a date is given, the Ignore will expire at midnight UTC. - - - Once the ignore until date has passed, the test will be marked - as runnable. Tests with an ignore until date will have an IgnoreUntilDate - property set which will appear in the test results. - - The string does not contain a valid string representation of a date and time. - - - - Modifies a test by marking it as Ignored. - - The test to modify - - - - 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 items 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 - - - - - Summary description for MaxTimeAttribute. - - - - - Construct a MaxTimeAttribute, given a time in milliseconds. - - The maximum elapsed time in milliseconds - - - - The abstract base class for all custom attributes defined by NUnit. - - - - - Default constructor - - - - - Marks a test to use a pairwise join of any argument - data provided. Arguments will be combined in such a - way that all possible pairs of arguments are used. - - - - - Default constructor - - - - - The ParallelScope enumeration permits specifying the degree to - which a test and its descendants may be run in parallel. - - - - - No Parallelism is permitted - - - - - The test itself may be run in parallel with others at the same level - - - - - Descendants of the test may be run in parallel with one another - - - - - Descendants of the test down to the level of TestFixtures may be run in parallel - - - - - 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-delimited list of platforms - - - - Causes a test to be skipped if this PlatformAttribute is not satisfied. - - The test to modify - - - - 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 - - - - - Modifies a test by adding properties to it. - - The test to modify - - - - RandomAttribute is used to supply a set of random _values - to a single parameter of a parameterized test. - - - - - Construct a random set of values appropriate for the Type of the - parameter on which the attribute appears, specifying only the count. - - - - - - Construct a set of ints within a specified range - - - - - Construct a set of unsigned ints within a specified range - - - - - Construct a set of longs within a specified range - - - - - Construct a set of unsigned longs within a specified range - - - - - Construct a set of shorts within a specified range - - - - - Construct a set of unsigned shorts within a specified range - - - - - Construct a set of doubles within a specified range - - - - - Construct a set of floats within a specified range - - - - - Construct a set of bytes within a specified range - - - - - Construct a set of sbytes within a specified range - - - - - 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 unsigned ints using default step of 1 - - - - - - - Construct a range of unsigned ints specifying the step size - - - - - - - - Construct a range of longs using a default step of 1 - - - - - - - Construct a range of longs - - - - - - - - Construct a range of unsigned longs using default step of 1 - - - - - - - Construct a range of unsigned longs specifying the step size - - - - - - - - Construct a range of doubles - - - - - - - - Construct a range of floats - - - - - - - - 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 - - - - Wrap a command and return the result. - - The command to be wrapped - The wrapped command - - - - The test command for the RepeatAttribute - - - - - Initializes a new instance of the class. - - The inner command. - The number of repetitions - - - - Runs the test, saving a TestResult in the supplied TestExecutionContext. - - The context in which the test should run. - A TestResult - - - - 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 in the STA, causing it - to run in a separate thread if necessary. - - - - - Construct a RequiresSTAAttribute - - - - - Marks a test that must run on a separate thread. - - - - - Construct a RequiresThreadAttribute - - - - - Construct a RequiresThreadAttribute, specifying the apartment - - - - - Marks a test to use a Sequential join of any argument - data provided. Arguments will be combined into test cases, - taking the next value of each argument until all are used. - - - - - Default constructor - - - - - Summary description for SetCultureAttribute. - - - - - Construct given the name of a culture - - - - - - Summary description for SetUICultureAttribute. - - - - - Construct given the name of a culture - - - - - - 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 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 class that contains one-time SetUp - and/or TearDown methods that apply to all the tests in a - namespace or an assembly. - - - - - SetUpFixtureAttribute is used to identify a SetUpFixture - - - - - Build a SetUpFixture from type provided. Normally called for a Type - on which the attribute has been placed. - - The type info of the fixture to be used. - A SetUpFixture object as a TestSuite. - - - - 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")] - public void TestDescriptionMethod() - {} - } - - - - - - Descriptive text for this test - - - - - The author of this test - - - - - The type that this test is testing - - - - - Modifies a test by adding a description, if not already set. - - The test to modify - - - - Gets or sets the expected result. - - The result. - - - - Returns true if an expected result has been set - - - - - Construct a TestMethod from a given method. - - The method for which a test is to be constructed. - The suite to which the test will be added. - A TestMethod - - - - TestCaseAttribute is used to mark parameterized test cases - and provide them with their arguments. - - - - - 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 or sets the name of the test. - - The name of the test. - - - - Gets or sets the RunState of this test case. - - - - - Gets the list of arguments to a test case - - - - - Gets the properties of the test case - - - - - Gets or sets the expected result. - - The result. - - - - Returns true if the expected result has been set - - - - - Gets or sets the description. - - The description. - - - - The author of this test - - - - - The type that this test is testing - - - - - Gets or sets the reason for ignoring the test - - - - - Gets or sets a value indicating whether this is explicit. - - - true if explicit; otherwise, false. - - - - - Gets or sets the reason for not running the test. - - The reason. - - - - Gets or sets the ignore reason. When set to a non-null - non-empty value, the test is marked as ignored. - - The ignore reason. - - - - Comma-delimited list of platforms to run the test for - - - - - Comma-delimited list of platforms to not run the test for - - - - - Gets and sets the category for this test case. - May be a comma-separated list of categories. - - - - - Performs several special conversions allowed by NUnit in order to - permit arguments with types that cannot be used in the constructor - of an Attribute such as TestCaseAttribute or to simplify their use. - - The arguments to be converted - The ParameterInfo array for the method - - - - Construct one or more TestMethods from a given MethodInfo, - using available parameter data. - - The MethodInfo for which tests are to be constructed. - The suite to which the tests will be added. - One or more TestMethods - - - - TestCaseSourceAttribute indicates the source to be used to - provide test cases for a test method. - - - - - Construct with the name of the method, property or field that will provide data - - The name of a static method, property or field that will provide data. - - - - Construct with a Type and name - - The Type that will provide data - The name of a static method, property or field that will provide data. - - - - Construct with a Type - - The type 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 - - - - - Gets or sets the category associated with every fixture created from - this attribute. May be a single category or a comma-separated list. - - - - - Construct one or more TestMethods from a given MethodInfo, - using available parameter data. - - The IMethod for which tests are to be constructed. - The suite to which the tests will be added. - One or more TestMethods - - - - Returns a set of ITestCaseDataItems for use as arguments - to a parameterized test method. - - The method for which data is needed. - - - - - TestFixtureAttribute is used to mark a class that represents a TestFixture. - - - - - 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. - - - - - - Gets or sets the name of the test. - - The name of the test. - - - - Gets or sets the RunState of this test fixture. - - - - - The arguments originally provided to the attribute - - - - - Properties pertaining to this fixture - - - - - Get or set the type arguments. If not set - explicitly, any leading arguments that are - Types are taken as type arguments. - - - - - Descriptive text for this fixture - - - - - The author of this fixture - - - - - The type that this fixture is testing - - - - - Gets or sets the ignore reason. May set RunState as a side effect. - - The ignore reason. - - - - Gets or sets the reason for not running the fixture. - - The reason. - - - - Gets or sets the ignore reason. When set to a non-null - non-empty value, the test is marked as ignored. - - The ignore reason. - - - - Gets or sets a value indicating whether this is explicit. - - - true if explicit; otherwise, false. - - - - - Gets and sets the category for this fixture. - May be a comma-separated list of categories. - - - - - Build a fixture from type provided. Normally called for a Type - on which the attribute has been placed. - - The type info of the fixture to be used. - A an IEnumerable holding one TestFixture object. - - - - Attribute used to identify a method that is - called before any tests in a fixture are run. - - - - - TestCaseSourceAttribute indicates the source to be used to - provide test fixture instances for a test class. - - - - - Error message string is public so the tests can use it - - - - - Construct with the name of the method, property or field that will provide data - - The name of a static method, property or field that will provide data. - - - - Construct with a Type and name - - The Type that will provide data - The name of a static method, property or field that will provide data. - - - - Construct with a Type - - The type 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 - - - - - Gets or sets the category associated with every fixture created from - this attribute. May be a single category or a comma-separated list. - - - - - Construct one or more TestFixtures from a given Type, - using available parameter data. - - The TypeInfo for which fixures are to be constructed. - One or more TestFixtures as TestSuite - - - - Returns a set of ITestFixtureData items for use as arguments - to a parameterized test fixture. - - The type for which data is needed. - - - - - 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. - - - - - Indicates which class the test or test fixture is testing - - - - - Initializes a new instance of the class. - - The type that is being tested. - - - - Initializes a new instance of the class. - - The type that is being tested. - - - - 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")] - public void TestDescriptionMethod() - {} - } - - - - - - Construct the attribute, specifying a combining strategy and source of parameter data. - - - - - Used 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 class or assembly, sets the default timeout - for all contained test methods. - - - - - Construct a TimeoutAttribute given a time in milliseconds - - The timeout value in milliseconds - - - - 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 - - - - - Constructs for use with an Enum parameter. Will pass every enum - value in to the test. - - - - - 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 - - - - - 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 a static method, property or field 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 a static 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 - - - - - Gets an enumeration of data items for use as arguments - for a test method parameter. - - The parameter for which data is needed - - An enumeration containing individual data items - - - - - A set of Assert methods operating 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 - 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 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 - 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 - 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 - 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 - 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 - 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 - 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 - Arguments to be used in formatting the message - - - - Asserts that the superset does not contain the subset - - The IEnumerable subset to be considered - The IEnumerable superset to be considered - - - - Asserts that the superset does not contain the subset - - The IEnumerable subset to be considered - The IEnumerable superset to be considered - The message that will be displayed on failure - Arguments to be used in formatting the message - - - - Asserts that the superset contains the subset. - - The IEnumerable subset to be considered - The IEnumerable superset to be considered - - - - Asserts that the superset contains the subset. - - The IEnumerable subset to be considered - The IEnumerable superset to be considered - The message that will be displayed on failure - Arguments to be used in formatting the message - - - - Asserts that the subset does not contain the superset - - The IEnumerable superset to be considered - The IEnumerable subset to be considered - - - - Asserts that the subset does not contain the superset - - 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 the subset contains the superset. - - The IEnumerable superset to be considered - The IEnumerable subset to be considered - - - - Asserts that the subset contains the superset. - - 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 - - - - 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 - - - - 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 - - - - 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 - - - - Provides a platform-independent methods for getting attributes - for use by AttributeConstraint and AttributeExistsConstraint. - - - - - Gets the custom attributes from the given object. - - Portable libraries do not have an ICustomAttributeProvider, so we need to cast to each of - it's direct subtypes and try to get attributes off those instead. - The actual. - Type of the attribute. - if set to true [inherit]. - A list of the given attribute on the given object. - - - - A MarshalByRefObject that lives forever - - - - - Obtains a lifetime service object to control the lifetime policy for this instance. - - - - - Provides NUnit specific extensions to aid in Reflection - across multiple frameworks - - - This version of the class supplies GetTypeInfo() on platforms - that don't support it. - - - - - GetTypeInfo gives access to most of the Type information we take for granted - on .NET Core and Windows Runtime. Rather than #ifdef different code for different - platforms, it is easiest to just code all platforms as if they worked this way, - thus the simple passthrough. - - - - - - - This class is a System.Diagnostics.Stopwatch on operating systems that support it. On those that don't, - it replicates the functionality at the resolution supported. - - - - - 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. - - - - - - - AndConstraint succeeds only if both members succeed. - - - - - Create an AndConstraint from two other constraints - - The first constraint - The second constraint - - - - Gets text describing a 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 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 - - - - AssignableFromConstraint is used to test that an object - can be assigned from a given Type. - - - - - Construct an AssignableFromConstraint for the type provided - - - - - - Apply the constraint to an actual value, returning true if it succeeds - - The actual argument - True if the constraint succeeds, otherwise false. - - - - AssignableToConstraint is used to test that an object - can be assigned to a given Type. - - - - - Construct an AssignableToConstraint for the type provided - - - - - - Apply the constraint to an actual value, returning true if it succeeds - - The actual argument - True if the constraint succeeds, otherwise false. - - - - 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 attribute - Type and base constraint. - - - - - - - Determines whether the Type or other provider has the - expected attribute and if its value matches the - additional constraint specified. - - - - - Returns a string representation of the constraint. - - - - - AttributeExistsConstraint tests for the presence of a - specified attribute on a Type. - - - - - Constructs an AttributeExistsConstraint for a specific attribute Type - - - - - - The Description of what this constraint tests, for - use in messages and in the ConstraintResult. - - - - - Tests whether the object provides the expected attribute. - - A Type, MethodInfo, or other ICustomAttributeProvider - True if the expected attribute is present, otherwise false - - - - BinaryConstraint is the abstract base of all constraints - that combine two other constraints in some fashion. - - - - - The first constraint being combined - - - - - The second constraint being combined - - - - - Construct a BinaryConstraint from two other constraints - - The first constraint - The second constraint - - - - BinarySerializableConstraint tests whether - an object is serializable in binary format. - - - - - The Description of what this constraint tests, for - use in messages and in the ConstraintResult. - - - - - Test whether the constraint is satisfied by a given value - - The value to be tested - True for success, false for failure - - - - Returns the string representation - - - - - 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 - - - - - - - CollectionContainsConstraint is used to test whether a collection - contains an expected object as a member. - - - - - Construct a CollectionContainsConstraint - - - - - - The Description of what this constraint tests, for - use in messages and in the ConstraintResult. - - - - - Gets the expected object - - - - - Test whether the expected item is contained in the collection - - - - - - - CollectionEquivalentConstraint is used to determine whether two - collections are equivalent. - - - - - Construct a CollectionEquivalentConstraint - - - - - - The Description of what this constraint tests, for - use in messages and in the ConstraintResult. - - - - - Test whether two collections are equivalent - - - - - - - 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 ignore case and return 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. - - - - Compares two collection members for equality - - - - - Return a new CollectionTally for use in making tests - - The collection to be included in the tally - - - - CollectionOrderedConstraint is used to test whether a collection is ordered. - - - - - Construct a CollectionOrderedConstraint - - - - - If used performs a reverse comparison - - - - - Modifies the constraint to use an and returns self. - - - - - Modifies the constraint to use an and returns self. - - - - - Modifies the constraint to use a and returns self. - - - - - Modifies the constraint to test ordering by the value of - a specified property and returns self. - - - - - The Description of what this constraint tests, for - use in messages and in the ConstraintResult. - - - - - Test whether the collection is ordered - - - - - - - Returns the string representation of the constraint. - - - - - - CollectionSupersetConstraint is used to determine whether - one collection is a superset of another - - - - - Construct a CollectionSupersetConstraint - - The collection that the actual value is expected to be a superset of - - - - The Description of what this constraint tests, for - use in messages and in the ConstraintResult. - - - - - Test whether the actual collection is a superset of - the expected collection provided. - - - - - - - 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 - - - - The Description of what this constraint tests, for - use in messages and in the ConstraintResult. - - - - - Test whether the actual collection is a subset of - the expected collection provided. - - - - - - - CollectionTally counts (tallies) the number of - occurrences of each object in one or more enumerations. - - - - - Construct a CollectionTally object from a comparer and a collection - - - - - The number of objects remaining in the tally - - - - - 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 - - - - ComparisonAdapter class centralizes all comparisons of - _values in NUnit, adapting to the use of any provided - , - or . - - - - - Gets the default ComparisonAdapter, which wraps an - NUnitComparer object. - - - - - Returns a ComparisonAdapter that wraps an - - - - - Returns a ComparisonAdapter that wraps an - - - - - Returns a ComparisonAdapter that wraps a - - - - - Compares two objects - - - - - Construct a default ComparisonAdapter - - - - - Construct a ComparisonAdapter for an - - - - - Compares two objects - - - - - - - - ComparerAdapter extends and - allows use of an or - to actually perform the comparison. - - - - - Construct a ComparisonAdapter for an - - - - - Compare a Type T to an object - - - - - Construct a ComparisonAdapter for a - - - - - Compare a Type T to an object - - - - - 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 - - - - - 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 - - - - Modifies the constraint to use an and returns self - - The comparer used for comparison tests - A constraint modified to use the given comparer - - - - Modifies the constraint to use an and returns self - - The comparer used for comparison tests - A constraint modified to use the given comparer - - - - Modifies the constraint to use a and returns self - - The comparer used for comparison tests - A constraint modified to use the given comparer - - - - Delegate used to delay evaluation of the actual value - to be used in evaluating a constraint - - - - - The Constraint class is the base of all built-in constraints - within NUnit. It provides the operator overloads used to combine - constraints. - - - - - Construct a constraint with optional arguments - - Arguments to be saved - - - - 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. - - - - - The Description of what this constraint tests, for - use in messages and in the ConstraintResult. - - - - - Arguments provided to this Constraint, for use in - formatting the description. - - - - - The ConstraintBuilder holding this constraint - - - - - Applies the constraint to an actual value, returning a ConstraintResult. - - The value to be tested - A ConstraintResult - - - - Applies the constraint to 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 - A ConstraintResult - - - - 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 - A ConstraintResult - - - - 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 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. - - - - - 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. - - - - - Resolves any pending operators and returns the resolved 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 reorganized. a ConstraintStack holds - input constraints as well as the results of each - operator applied. - - - - - OperatorStack is a type-safe stack for holding ConstraintOperators - - - - - Initializes a new instance of the class. - - The ConstraintBuilder using this stack. - - - - Gets a value indicating whether this is empty. - - true if empty; otherwise, false. - - - - Gets the topmost operator without modifying the stack. - - - - - Pushes the specified operator onto the stack. - - The operator to put onto the stack. - - - - Pops the topmost operator from the stack. - - The topmost operator on the stack - - - - ConstraintStack is a type-safe stack for holding Constraints - - - - - Initializes a new instance of the class. - - The ConstraintBuilder using this stack. - - - - Gets a value indicating whether this is empty. - - true if empty; otherwise, false. - - - - Pushes the specified constraint. As a side effect, - the constraint's Builder field is set to the - ConstraintBuilder owning this stack. - - The constraint to put onto the stack - - - - Pops this topmost constraint from the stack. - As a side effect, the constraint's Builder - field is set to null. - - The topmost contraint on the stack - - - - 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 expression 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. - - - - - 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 - reorganized. When a constraint is appended, it is returned as the - value of the operation so that modifiers may be applied. However, - any partially built expression is attached to the constraint for - later resolution. When an operator is appended, the partial - expression is returned. If it's a self-resolving operator, then - a ResolvableConstraintExpression is returned. - - - - - 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. Note that the constraint - is not reduced at this time. For example, if there - is a NotOperator on the stack we don't reduce and - return a NotConstraint. The original constraint must - be returned because it may support modifiers that - are yet to be applied. - - - - - 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 ConstraintExpression, which will apply - the following constraint to all members of a collection, - succeeding only if a specified number of them succeed. - - - - - 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 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 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. - - - - - With is currently a NOP - reserved for future use. - - - - - 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 for null - - - - - Returns a constraint that tests for True - - - - - Returns a constraint that tests for False - - - - - Returns a constraint that tests for a positive value - - - - - Returns a constraint that tests for a negative value - - - - - 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 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 supplied argument - - - - - Returns a constraint that tests whether the - actual value is greater than or equal to the supplied argument - - - - - Returns a constraint that tests whether the - actual value is greater than or equal to the supplied argument - - - - - Returns a constraint that tests whether the - actual value is less than the supplied argument - - - - - Returns a constraint that tests whether the - actual value is less than or equal to the supplied argument - - - - - Returns a constraint that tests whether the - actual value is less than or equal to the supplied 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 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 tests whether the actual value - is a superset of the collection supplied as an argument. - - - - - Returns a constraint that tests whether a collection is ordered - - - - - 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 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 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 ends with the substring supplied as an argument. - - - - - Returns a constraint that succeeds if the actual - value matches the regular expression supplied as an argument. - - - - - Returns a constraint that succeeds if the actual - value matches the regular expression supplied as an argument. - - - - - Returns a constraint that succeeds if the actual - value matches the regular expression 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 a subpath of the 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 constraint that succeeds if the value - is a file or directory and it exists. - - - - - Helper class with properties and methods that supply - a number of constraints used in Asserts. - - - - - 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 ConstraintExpression, which will apply - the following constraint to all members of a collection, - succeeding only if a specified number of them succeed. - - - - - 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 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 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 for null - - - - - Returns a constraint that tests for True - - - - - Returns a constraint that tests for False - - - - - Returns a constraint that tests for a positive value - - - - - Returns a constraint that tests for a negative value - - - - - 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 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 supplied argument - - - - - Returns a constraint that tests whether the - actual value is greater than or equal to the supplied argument - - - - - Returns a constraint that tests whether the - actual value is greater than or equal to the supplied argument - - - - - Returns a constraint that tests whether the - actual value is less than the supplied argument - - - - - Returns a constraint that tests whether the - actual value is less than or equal to the supplied argument - - - - - Returns a constraint that tests whether the - actual value is less than or equal to the supplied 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 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 tests whether the actual value - is a superset of the collection supplied as an argument. - - - - - Returns a constraint that tests whether a collection is ordered - - - - - 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 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 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 regular expression supplied as an argument. - - - - - Returns a constraint that succeeds if the actual - value matches the regular expression supplied as an argument. - - - - - Returns a constraint that succeeds if the actual - value matches the regular expression 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 a subpath of the 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. - - - - - ConstraintStatus represents the status of a ConstraintResult - returned by a Constraint being applied to an actual value. - - - - - The status has not yet been set - - - - - The constraint succeeded - - - - - The constraint failed - - - - - An error occured in applying the constraint (reserved for future use) - - - - - Contain the result of matching a against an actual value. - - - - - Constructs a for a particular . - - The Constraint to which this result applies. - The actual value to which the Constraint was applied. - - - - Constructs a for a particular . - - The Constraint to which this result applies. - The actual value to which the Constraint was applied. - The status of the new ConstraintResult. - - - - Constructs a for a particular . - - The Constraint to which this result applies. - The actual value to which the Constraint was applied. - If true, applies a status of Success to the result, otherwise Failure. - - - - The actual value that was passed to the method. - - - - - Gets and sets the ResultStatus for this result. - - - - - True if actual value meets the Constraint criteria otherwise false. - - - - - Display friendly name of the constraint. - - - - - Description of the constraint may be affected by the state the constraint had - when was performed against the actual value. - - - - - Write the failure message to the MessageWriter provided - as an argument. The default implementation simply passes - the result 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 - - - - 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 - - - - 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. - - - - The Description of what this constraint tests, for - use in messages and in the ConstraintResult. - - - - - Flag the constraint to ignore case and return self. - - - - - Test whether the constraint is satisfied by a given value - - The value to be tested - True for success, false for failure - - - - Applies a delay to the match so that a match can be evaluated in the future. - - - - - Creates a new DelayedConstraint - - The inner constraint to 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 to decorate - The time interval after which the match is performed, in milliseconds - The time interval used for polling, in milliseconds - If the value of is less than 0 - - - - Gets text describing a constraint - - - - - 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 - A ConstraintResult - - - - 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 - - - - Returns the string representation of the constraint. - - - - - Adjusts a Timestamp by a given TimeSpan - - - - - - - - Returns the difference between two Timestamps as a TimeSpan - - - - - - - - DictionaryContainsKeyConstraint is used to test whether a dictionary - contains an expected object as a key. - - - - - Construct a DictionaryContainsKeyConstraint - - - - - - The Description of what this constraint tests, for - use in messages and in the ConstraintResult. - - - - - Test whether the expected key is contained in the dictionary - - - - - DictionaryContainsValueConstraint is used to test whether a dictionary - contains an expected object as a value. - - - - - Construct a DictionaryContainsValueConstraint - - - - - - The Description of what this constraint tests, for - use in messages and in the ConstraintResult. - - - - - Test whether the expected value is contained in the dictionary - - - - - EmptyCollectionConstraint tests whether a collection is empty. - - - - - The Description of what this constraint tests, for - use in messages and in the ConstraintResult. - - - - - Check that the collection is empty - - - - - - - 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. - - - - - The Description of what this constraint tests, for - use in messages and in the ConstraintResult. - - - - - Test whether the constraint is satisfied by a given value - - The value to be tested - True for success, false for failure - - - - EmptyDirectoryConstraint is used to test that a directory is empty - - - - - The Description of what this constraint tests, for - use in messages and in the ConstraintResult. - - - - - Test whether the constraint is satisfied by a given value - - The value to be tested - True for success, false for failure - - - - EmptyStringConstraint tests whether a string is empty. - - - - - The Description of what this constraint tests, for - use in messages and in the ConstraintResult. - - - - - Test whether the constraint is satisfied by a given value - - The value to be tested - True for success, false for failure - - - - 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. - - - - - - - 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. - - - - - NUnitEqualityComparer used to test equality. - - - - - Initializes a new instance of the class. - - The expected value. - - - - Gets the tolerance for this comparison. - - - The tolerance. - - - - - Gets a value indicating whether to compare case insensitive. - - - true if comparing case insensitive; otherwise, false. - - - - - Gets a value indicating whether or not to clip strings. - - - true if set to clip strings otherwise, false. - - - - - Gets the failure points. - - - The failure points. - - - - - 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. - - - - - Flag the constraint to use a tolerance when determining equality. - - Tolerance value to be used - Self. - - - - Flags the constraint to include - property in comparison of two values. - - - Using this modifier does not allow to use the - constraint modifier. - - - - - 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 - - - - 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 - - - - The Description of what this constraint tests, for - use in messages and in the ConstraintResult. - - - - - EqualityAdapter class handles all equality comparisons - that use an , - or a . - - - - - Compares two objects, returning true if they are equal - - - - - Returns true if the two objects can be compared by this adapter. - The base adapter cannot handle IEnumerables except for strings. - - - - - Returns an that wraps an . - - - - - that wraps an . - - - - - Returns an that wraps an . - - - - - Returns true if the two objects can be compared by this adapter. - Generic adapter requires objects of the specified type. - - - - - Returns an that wraps an . - - - - - Returns an that wraps an . - - - - - that wraps an . - - - - - Returns an that wraps a . - - - - - 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. - - - - Apply the constraint to an actual value, returning true if it succeeds - - The actual argument - True if the constraint succeeds, otherwise false. - - - - FalseConstraint tests that the actual value is false - - - - - Initializes a new instance of the class. - - - - - Test whether the constraint is satisfied by a given value - - The value to be tested - True for success, false for failure - - - - FileExistsConstraint is used to determine if a file exists - - - - - Initializes a new instance of the class. - - - - - The Description of what this constraint tests, for - use in messages and in the ConstraintResult. - - - - - FileOrDirectoryExistsConstraint is used to determine if a file or directory exists - - - - - If true, the constraint will only check if files exist, not directories - - - - - If true, the constraint will only check if directories exist, not files - - - - - Initializes a new instance of the class that - will check files and directories. - - - - - Initializes a new instance of the class that - will only check files if ignoreDirectories is true. - - if set to true [ignore directories]. - - - - The Description of what this constraint tests, for - use in messages and in the ConstraintResult. - - - - - Applies the constraint to an actual value, returning a ConstraintResult. - - The value to be tested - A ConstraintResult - - - 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. - - - - - 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 - - - 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 - - - - - 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. - - - - Interface for all constraints - - - - - The display name of this Constraint for use by ToString(). - - - - - The Description of what this constraint tests, for - use in messages and in the ConstraintResult. - - - - - Arguments provided to this Constraint, for use in - formatting the description. - - - - - The ConstraintBuilder holding this constraint - - - - - Applies the constraint to an actual value, returning a ConstraintResult. - - The value to be tested - A ConstraintResult - - - - Applies the constraint to 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 - A ConstraintResult - - - - 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 - A ConstraintResult - - - - 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 - - - - Apply the constraint to an actual value, returning true if it succeeds - - The actual argument - True if the constraint succeeds, otherwise false. - - - - The IResolveConstraint interface is implemented by all - complete and resolvable constraints and expressions. - - - - - Return the top-level constraint for this expression - - - - - - 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. - - - - 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 - - - - - Abstract method to get the max line length - - - - - 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 failing constraint result - - - - 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 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 - - - - Static methods used in creating messages - - - - - Static string used when strings are clipped - - - - - Formatting strings used for expected and actual _values - - - - - Formats text to represent a generalized value. - - The value - The formatted text - - - - Formats 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 - - - - 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 - - - - NaNConstraint tests that the actual value is a double or float NaN - - - - - The Description of what this constraint tests, for - use in messages and in the ConstraintResult. - - - - - Test that the actual value is an NaN - - - - - - - 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. - - - - - - - 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 - - - - NullConstraint tests that the actual value is null - - - - - Initializes a new instance of the class. - - - - - Applies the constraint to an actual value, returning a ConstraintResult. - - The value to be tested - A ConstraintResult - - - - 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 - - - - NUnitComparer encapsulates NUnit's default behavior - in comparing two objects. - - - - - Returns the default NUnitComparer. - - - - - Compares two objects - - - - - - - - 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 - - - - - Comparison objects used in comparisons for some constraints. - - - - - List of points at which a failure occurred. - - - - - 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 the list of external comparers to be used to - test for equality. They are applied to members of - collections, in place of NUnit's own logic. - - - - - Gets the list of failure points for the last Match performed. - The list consists of objects to be interpreted by the caller. - This generally means that the caller may only make use of - objects it has placed on the list at a particular depthy. - - - - - Flags the comparer to include - property in comparison of two values. - - - Using this modifier does not allow to use the - modifier. - - - - - Compares two objects for equality within a tolerance. - - - - - 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 - - - - FailurePoint class represents one point of failure - in an equality test. - - - - - The location of the failure - - - - - The expected value - - - - - The actual value - - - - - Indicates whether the expected value is valid - - - - - Indicates whether the actual value is valid - - - - - 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. - - - - - Operator that requires both it's arguments to succeed - - - - - Construct an AndOperator - - - - - Apply the operator to produce an AndConstraint - - - - - 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. - - - - - 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. - - - - - - Gets the left precedence of the operator - - - - - Gets the right precedence of the operator - - - - - Abstract method that produces a constraint by applying - the operator to its left and right constraint arguments. - - - - - Abstract base for operators that indicate how to - apply a constraint to items in a collection. - - - - - Constructs a CollectionOperator - - - - - 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. - - - - - The syntax element preceding this operator - - - - - The syntax element following 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. - - - - - 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. - - - - - - 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. - - - - - Negates the test of the constraint it wraps. - - - - - Constructs a new NotOperator - - - - - Returns a NotConstraint applied to its argument. - - - - - Operator that requires at least one of it's arguments to succeed - - - - - Construct an OrOperator - - - - - Apply the operator to produce an OrConstraint - - - - - 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. - - - - - - - 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. - - - - - Gets the name of the property to which the operator applies - - - - - 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. - - - - - - Abstract base class for operators that are able to reduce to a - constraint whether or not another syntactic element follows. - - - - - 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. - - - - - 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. - - - - - Represents a constraint that simply wraps the - constraint provided as an argument, without any - further functionality, but which modifies the - order of evaluation because of its precedence. - - - - - Constructor for the WithOperator - - - - - Returns a constraint that wraps its argument - - - - - OrConstraint succeeds if either member succeeds - - - - - Create an OrConstraint from two other constraints - - The first constraint - The second constraint - - - - Gets text describing a 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 - - - - PathConstraint serves as the abstract base of constraints - that operate on paths and provides several helper methods. - - - - - Construct a PathConstraint for a give expected path - - The expected path - - - - Modifies the current instance to be case-sensitive - and returns it. - - - - - Returns the string representation of this constraint - - - - - Canonicalize the provided path - - - The path in standardized form - - - - Test whether one path in canonical form is a subpath of another path - - The first path - supposed to be the parent path - The second path - supposed to be the child path - - - - - Predicate constraint wraps a Predicate in a constraint, - returning success if the predicate is true. - - - - - Construct a PredicateConstraint from a predicate - - - - - Gets text describing a constraint - - - - - Determines whether the predicate succeeds when applied - to the actual value. - - - - - Abstract base class used for prefixes - - - - - The base constraint - - - - - Prefix used in forming the constraint description - - - - - Construct given a base constraint - - - - - - The Description of what this constraint tests, for - use in messages and in the ConstraintResult. - - - - - PropertyConstraint extracts a named property and uses - its value as the actual value for a chained 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 - - - - Returns the string representation of the constraint. - - - - - - 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 value - of the property. The two constraints are now separate. - - - - - Initializes a new instance of the class. - - The name of the property. - - - - The Description of what this constraint tests, for - use in messages and in the ConstraintResult. - - - - - Test whether the property exists for a given object - - The object to be tested - True for success, false for failure - - - - Returns the string representation of the constraint. - - - - - - RangeConstraint tests whether two _values are within a - specified range. - - - - - Initializes a new instance of the class. - - from must be less than or equal to true - Inclusive beginning of the range. Must be less than or equal to to. - Inclusive end of the range. Must be greater than or equal to from. - - - - Gets text describing a constraint - - - - - Test whether the constraint is satisfied by a given value - - The value to be tested - True for success, false for failure - - - - Modifies the constraint to use an and returns self. - - - - - Modifies the constraint to use an and returns self. - - - - - Modifies the constraint to use a and returns self. - - - - - 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 - - - - 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. - - - - - Appends an And Operator to the expression - - - - - Appends an Or operator to the expression. - - - - - Resolve the current expression to a Constraint - - - - - ReusableConstraint wraps a constraint expression after - resolving it so that it can be reused consistently. - - - - - Construct a ReusableConstraint from a constraint expression - - The expression to be resolved and reused - - - - Converts a constraint to a ReusableConstraint - - The constraint to be converted - A ReusableConstraint - - - - Returns a that represents this instance. - - - A that represents this instance. - - - - - Return the top-level constraint for this expression - - - - - - SameAsConstraint tests whether an object is identical to - the object passed to its constructor - - - - - Initializes a new instance of the class. - - The expected object. - - - - The Description of what this constraint tests, for - use in messages and in the ConstraintResult. - - - - - Test whether the constraint is satisfied by a given value - - The value to be tested - True for success, false for failure - - - - Summary description for SamePathConstraint. - - - - - Initializes a new instance of the class. - - The expected path - - - - The Description of what this constraint tests, for - use in messages and in the ConstraintResult. - - - - - Test whether the constraint is satisfied by a given value - - The value to be tested - True for success, false for failure - - - - SamePathOrUnderConstraint tests that one path is under another - - - - - Initializes a new instance of the class. - - The expected path - - - - The Description of what this constraint tests, for - use in messages and in the ConstraintResult. - - - - - Test whether the constraint is satisfied by a given value - - The value to be tested - True for success, false for failure - - - - 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. - - - - - - - The EqualConstraintResult class is tailored for formatting - and displaying the result of an EqualConstraint. - - - - - Construct an EqualConstraintResult - - - - - Write a failure message. Overridden to provide custom - failure messages for EqualConstraint. - - 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 - - - - Display the failure information for two IEnumerables that did not match. - - The MessageWriter on which to display - The expected enumeration. - The actual enumeration - The depth of this failure in a set of nested collections - - - - 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. - - - - - - - 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 - - - - - Description of this constraint - - - - - The Description of what this constraint tests, for - use in messages and in the ConstraintResult. - - - - - Constructs a StringConstraint without an expected value - - - - - Constructs a StringConstraint given an expected value - - The expected value - - - - Modify the constraint to ignore case in matching. - - - - - 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 a given string - - The string to be tested - True for success, false for failure - - - - SubPathConstraint tests that the actual path is under the expected path - - - - - Initializes a new instance of the class. - - The expected path - - - - The Description of what this constraint tests, for - use in messages and in the ConstraintResult. - - - - - Test whether the constraint is satisfied by a given value - - The value to be tested - True for success, false for failure - - - - 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 - - - - 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. - - - - Get the actual exception thrown - used by Assert.Throws. - - - - - Gets text describing a constraint - - - - - 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 actual value for a failing constraint test to a - MessageWriter. This override only handles the special message - used when an exception is expected but none is thrown. - - The writer on which the actual value is displayed - - - - ThrowsExceptionConstraint tests that an exception has - been thrown, without any further tests. - - - - - The Description of what this constraint tests, for - use in messages and in the ConstraintResult. - - - - - Executes the code and returns success if an exception is thrown. - - A delegate representing the code to be tested - True if an exception is thrown, otherwise false - - - - ThrowsNothingConstraint tests that a delegate does not - throw an exception. - - - - - Gets text describing a constraint - - - - - Test whether the constraint is satisfied by a given value - - The value to be tested - True if no exception is thrown, otherwise false - - - - Applies the constraint to 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 - A ConstraintResult - - - - 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. - - - - - Returns a default Tolerance object, equivalent to - specifying an exact match unless - is set, in which case, the - will be used. - - - - - Returns an empty Tolerance object, equivalent to - specifying an exact match even if - is set. - - - - - Constructs a linear tolerance of a specified amount - - - - - Constructs a tolerance given an amount and - - - - - Gets the for the current Tolerance - - - - - Tests that the current Tolerance is linear with a - numeric value, throwing an exception if it is not. - - - - - 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 as the amount, using - the current amount as a number of days. - - - - - Returns a new tolerance with a as the amount, using - the current amount as a number of hours. - - - - - Returns a new tolerance with a as the amount, using - the current amount as a number of minutes. - - - - - Returns a new tolerance with a as the amount, using - the current amount as a number of seconds. - - - - - Returns a new tolerance with a as the amount, using - the current amount as a number of milliseconds. - - - - - Returns a new tolerance with a as the amount, using - the current amount as a number of clock ticks. - - - - - Returns true if the current tolerance has not been set or is using the . - - - - - 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. - - - - - TrueConstraint tests that the actual value is true - - - - - Initializes a new instance of the class. - - - - - Test whether the constraint is satisfied by a given value - - The value to be tested - True for success, false for failure - - - - TypeConstraint is the abstract base for constraints - that take a Type as their expected value. - - - - - The expected Type used by the constraint - - - - - The type of the actual argument to which the constraint was applied - - - - - Construct a TypeConstraint for a given Type - - The expected type for the constraint - Prefix used in forming the constraint description - - - - Applies the constraint to an actual value, returning a ConstraintResult. - - The value to be tested - A ConstraintResult - - - - Apply the constraint to an actual value, returning true if it succeeds - - The actual argument - True if the constraint succeeds, otherwise false. - - - - UniqueItemsConstraint tests whether all the items in a - collection are unique. - - - - - The Description of what this constraint tests, for - use in messages and in the ConstraintResult. - - - - - Check that all items are unique. - - - - - - - XmlSerializableConstraint tests whether - an object is serializable in xml format. - - - - - Gets text describing a constraint - - - - - Test whether the constraint is satisfied by a given value - - The value to be tested - True for success, false for failure - - - - Returns the string representation of this constraint - - - - - ExactCountConstraint applies another constraint to each - item in a collection, succeeding only if a specified - number of items succeed. - - - - - Construct an ExactCountConstraint on top of an existing constraint - - - - - - - Apply the item constraint to each item in the collection, - succeeding only if the expected number of items pass. - - - - - - - Represents a constraint that succeeds if the specified - count of members of a collection match a base constraint. - - - - - Construct an ExactCountOperator for a specified count - - The expected count - - - - Returns a constraint that will apply the argument - to the members of a collection, succeeding if - none of them succeed. - - - - - ExceptionTypeConstraint is a special version of ExactTypeConstraint - used to provided detailed info about the exception thrown in - an error message. - - - - - Constructs an ExceptionTypeConstraint - - - - - Applies the constraint to an actual value, returning a ConstraintResult. - - The value to be tested - A ConstraintResult - - - - Helper class with properties and methods that supply - a number of constraints used in Asserts. - - - - - Returns a new CollectionContainsConstraint checking for the - presence of a particular object in the collection. - - - - - Returns a new DictionaryContainsKeyConstraint checking for the - presence of a particular key in the dictionary. - - - - - Returns a new DictionaryContainsValueConstraint checking for the - presence of a particular value in the dictionary. - - - - - Returns a constraint that succeeds if the actual - value contains the substring supplied as an argument. - - - - - Asserts on Directories - - - - - 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. - - - - - - - Verifies that two directories are equal. Two directories are considered - equal if both are null, or if both point to the same directory. - 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 the 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 point to the same directory. - If they are not 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 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 - - - - Asserts that the directory exists. If it does not exist - an is thrown. - - 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 the directory exists. If it does not exist - an is thrown. - - A directory containing the actual value - - - - Asserts that the directory exists. If it does not exist - an is thrown. - - The path to 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 the directory exists. If it does not exist - an is thrown. - - The path to a directory containing the actual value - - - - Asserts that the directory does not exist. If it does exist - an is thrown. - - 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 the directory does not exist. If it does exist - an is thrown. - - A directory containing the actual value - - - - Asserts that the directory does not exist. If it does exist - an is thrown. - - The path to 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 the directory does not exist. If it does exist - an is thrown. - - The path to a directory containing the actual value - - - - Helper class with properties and methods that supply - a number of constraints used in Asserts. - - - - - Returns a ConstraintExpression that negates any - following constraint. - - - - - Returns a constraint that succeeds if the value - is a file or directory and it exists. - - - - - 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 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 regular expression supplied as an argument. - - - - - 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 - - - - - Gets the ResultState provided by this exception - - - - - Thrown when an assertion failed. - - - - - - - The error message that explains - the reason for the exception - The exception that caused the - current exception - - - - Serialization Constructor - - - - - Gets the ResultState provided by this exception - - - - - 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 - - - - - Gets the ResultState provided by this exception - - - - - Abstract base for Exceptions that terminate a test and provide a ResultState. - - - - 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 - - - - - Gets the ResultState provided by this exception - - - - - Thrown when an assertion failed. - - - - - - - The error message that explains - the reason for the exception - The exception that caused the - current exception - - - - Serialization Constructor - - - - - Gets the ResultState provided by this exception - - - - - The IApplyToContext interface is implemented by attributes - that want to make changes to the execution context before - a test is run. - - - - - Apply changes to the execution context - - The execution context - - - - The IApplyToTest interface is implemented by self-applying - attributes that modify the state of a test in some way. - - - - - Modifies a test as defined for the specific attribute. - - The test to modify - - - - CombiningStrategy is the abstract base for classes that - know how to combine values provided for individual test - parameters to create a set of test cases. - - - - - Gets the test cases generated by the CombiningStrategy. - - The test cases. - - - - ICommandWrapper is implemented by attributes and other - objects able to wrap a TestCommand with another command. - - - Attributes or other objects should implement one of the - derived interfaces, rather than this one, since they - indicate in which part of the command chain the wrapper - should be applied. - - - - - Wrap a command and return the result. - - The command to be wrapped - The wrapped command - - - - Objects implementing this interface are used to wrap - the TestMethodCommand itself. They apply after SetUp - has been run and before TearDown. - - - - - Objects implementing this interface are used to wrap - the entire test, including SetUp and TearDown. - - - - - Any ITest that implements this interface is at a level that the implementing - class should be disposed at the end of the test run - - - - - The IFixtureBuilder interface is exposed by a class that knows how to - build a TestFixture from one or more Types. In general, it is exposed - by an attribute, but may be implemented in a helper class used by the - attribute in some cases. - - - - - Build one or more TestFixtures from type provided. At least one - non-null TestSuite must always be returned, since the method is - generally called because the user has marked the target class as - a fixture. If something prevents the fixture from being used, it - will be returned nonetheless, labelled as non-runnable. - - The type info of the fixture to be used. - A TestSuite object or one derived from TestSuite. - - - - IImplyFixture is an empty marker interface used by attributes like - TestAttribute that cause the class where they are used to be treated - as a TestFixture even without a TestFixtureAttribute. - - Marker interfaces are not usually considered a good practice, but - we use it here to avoid cluttering the attribute hierarchy with - classes that don't contain any extra implementation. - - - - - The IMethodInfo class is used to encapsulate information - about a method in a platform-independent manner. - - - - - Gets the Type from which this method was reflected. - - - - - Gets the MethodInfo for this method. - - - - - Gets the name of the method. - - - - - Gets a value indicating whether the method is abstract. - - - - - Gets a value indicating whether the method is public. - - - - - Gets a value indicating whether the method contains unassigned generic type parameters. - - - - - Gets a value indicating whether the method is a generic method. - - - - - Gets a value indicating whether the MethodInfo represents the definition of a generic method. - - - - - Gets the return Type of the method. - - - - - Gets the parameters of the method. - - - - - - Returns the Type arguments of a generic method or the Type parameters of a generic method definition. - - - - - Replaces the type parameters of the method with the array of types provided and returns a new IMethodInfo. - - The type arguments to be used - A new IMethodInfo with the type arguments replaced - - - - Invokes the method, converting any TargetInvocationException to an NUnitException. - - The object on which to invoke the method - The argument list for the method - The return value from the invoked method - - - - The IDataPointProvider interface is used by extensions - that provide data for a single test parameter. - - - - - Determine whether any data is available for a parameter. - - An IParameterInfo representing one - argument to a parameterized test - True if any data is available, otherwise false. - - - - Return an IEnumerable providing data for use with the - supplied parameter. - - An IParameterInfo representing one - argument to a parameterized test - An IEnumerable providing the required data - - - - The IParameterDataSource interface is implemented by types - that can provide data for a test method parameter. - - - - - Gets an enumeration of data items for use as arguments - for a test method parameter. - - The parameter for which data is needed - An enumeration containing individual data items - - - - The IParameterInfo interface is an abstraction of a .NET parameter. - - - - - Gets a value indicating whether the parameter is optional - - - - - Gets an IMethodInfo representing the method for which this is a parameter - - - - - Gets the underlying .NET ParameterInfo - - - - - Gets the Type of the parameter - - - - - A PropertyBag represents a collection of name/value pairs - that allows duplicate entries with the same key. Methods - are provided for adding a new pair as well as for setting - a key to a single value. All keys are strings but _values - may be of any type. Null _values are not permitted, since - a null entry represents the absence of the key. - - The entries in a PropertyBag are of two kinds: those that - take a single value and those that take multiple _values. - However, the PropertyBag has no knowledge of which entries - fall into each category and the distinction is entirely - up to the code using the PropertyBag. - - When working with multi-valued properties, client code - should use the Add method to add name/value pairs and - indexing to retrieve a list of all _values for a given - key. For example: - - bag.Add("Tag", "one"); - bag.Add("Tag", "two"); - Assert.That(bag["Tag"], - Is.EqualTo(new string[] { "one", "two" })); - - When working with single-valued propeties, client code - should use the Set method to set the value and Get to - retrieve the value. The GetSetting methods may also be - used to retrieve the value in a type-safe manner while - also providing default. For example: - - bag.Set("Priority", "low"); - bag.Set("Priority", "high"); // replaces value - Assert.That(bag.Get("Priority"), - Is.EqualTo("high")); - Assert.That(bag.GetSetting("Priority", "low"), - Is.EqualTo("high")); - - - - - Adds a key/value pair to the property bag - - The key - The value - - - - Sets the value for a key, removing any other - _values that are already in the property set. - - - - - - - Gets a single value for a key, using the first - one if multiple _values are present and returning - null if the value is not found. - - - - - Gets a flag indicating whether the specified key has - any entries in the property set. - - The key to be checked - True if their are _values present, otherwise false - - - - Gets or sets the list of _values for a particular key - - The key for which the _values are to be retrieved or set - - - - Gets a collection containing all the keys in the property set - - - - - The IReflectionInfo interface is implemented by NUnit wrapper objects that perform reflection. - - - - - Returns an array of custom attributes of the specified type applied to this object - - - - - Returns a value indicating whether an attribute of the specified type is defined on this object. - - - - - The ISimpleTestBuilder interface is exposed by a class that knows how to - build a single TestMethod from a suitable MethodInfo Types. In general, - it is exposed by an attribute, but may be implemented in a helper class - used by the attribute in some cases. - - - - - Build a TestMethod from the provided MethodInfo. - - The method to be used as a test - The TestSuite to which the method will be added - A TestMethod object - - - - The ISuiteBuilder interface is exposed by a class that knows how to - build a suite from one or more Types. - - - - - Examine the type and determine if it is suitable for - this builder to use in building a TestSuite. - - Note that returning false will cause the type to be ignored - in loading the tests. If it is desired to load the suite - but label it as non-runnable, ignored, etc., then this - method must return true. - - The type of the fixture to be used - True if the type can be used to build a TestSuite - - - - Build a TestSuite from type provided. - - The type of the fixture to be used - A TestSuite - - - - Common interface supported by all representations - of a test. Only includes informational fields. - The Run method is specifically excluded to allow - for data-only representations of a test. - - - - - Gets the id of the test - - - - - Gets the name of the test - - - - - Gets the fully qualified name of the test - - - - - Gets the name of the class containing this test. Returns - null if the test is not associated with a class. - - - - - Gets the name of the method implementing this test. - Returns null if the test is not implemented as a method. - - - - - Gets the Type of the test fixture, if applicable, or - null if no fixture type is associated with this test. - - - - - Gets an IMethod for the method implementing this test. - Returns null if the test is not implemented as a method. - - - - - Gets the RunState of the test, indicating whether it can be run. - - - - - Count of the test cases ( 1 if this is a test case ) - - - - - Gets the properties of the test - - - - - Gets the parent test, if any. - - The parent test or null if none exists. - - - - Returns true if this is a test suite - - - - - Gets a bool indicating whether the current test - has any descendant tests. - - - - - Gets this test's child tests - - A list of child tests - - - - Gets a fixture object for running this test. - - - - - The ITestBuilder interface is exposed by a class that knows how to - build one or more TestMethods from a MethodInfo. In general, it is exposed - by an attribute, which has additional information available to provide - the necessary test parameters to distinguish the test cases built. - - - - - Build one or more TestMethods from the provided MethodInfo. - - The method to be used as a test - The TestSuite to which the method will be added - A TestMethod object - - - - The ITestCaseBuilder interface is exposed by a class that knows how to - build a test case from certain methods. - - - This interface is not the same as the ITestCaseBuilder interface in NUnit 2.x. - We have reused the name because the two products don't interoperate at all. - - - - - Examine the method and determine if it is suitable for - this builder to use in building a TestCase to be - included in the suite being populated. - - Note that returning false will cause the method to be ignored - in loading the tests. If it is desired to load the method - but label it as non-runnable, ignored, etc., then this - method must return true. - - The test method to examine - The suite being populated - True is the builder can use this method - - - - Build a TestCase from the provided MethodInfo for - inclusion in the suite being constructed. - - The method to be used as a test case - The test suite being populated, or null - A TestCase or null - - - - The ITestCaseData interface is implemented by a class - that is able to return complete testcases for use by - a parameterized test method. - - - - - Gets the expected result of the test case - - - - - Returns true if an expected result has been set - - - - - The ITestData interface is implemented by a class that - represents a single instance of a parameterized test. - - - - - Gets the name to be used for the test - - - - - Gets the RunState for this test case. - - - - - Gets the argument list to be provided to the test - - - - - Gets the property dictionary for the test case - - - - - Interface to be implemented by filters applied to tests. - The filter applies when running the test, after it has been - loaded, since this is the only time an ITest exists. - - - - - Determine if a particular test passes the filter criteria. Pass - may examine the parents and/or descendants of a test, depending - on the semantics of the particular filter - - The test to which the filter is applied - True if the test passes the filter, otherwise false - - - - Determine if a test matches the filter expicitly. That is, it must - be a direct match of the test itself or one of it's children. - - The test to which the filter is applied - True if the test matches the filter explicityly, otherwise false - - - - The ITestCaseData interface is implemented by a class - that is able to return the data required to create an - instance of a parameterized test fixture. - - - - - Get the TypeArgs if separately set - - - - - The ITestListener interface is used internally to receive - notifications of significant events while a test is being - run. The events are propagated to clients by means of an - AsyncCallback. NUnit extensions may also monitor these events. - - - - - Called when a test has just started - - The test that is starting - - - - Called when a test has finished - - The result of the test - - - - The ITestResult interface represents the result of a test. - - - - - Gets the ResultState of the test result, which - indicates the success or failure of the test. - - - - - Gets the name of the test result - - - - - Gets the full name of the test result - - - - - Gets the elapsed time for running the test in seconds - - - - - Gets or sets the time the test started running. - - - - - Gets or sets the time the test finished running. - - - - - Gets the message associated with a test - failure or with not running the test - - - - - Gets any stacktrace associated with an - error or failure. Not available in - the Compact Framework 1.0. - - - - - Gets the number of asserts executed - when running the test and all its children. - - - - - Gets the number of test cases that failed - when running the test and all its children. - - - - - Gets the number of test cases that passed - when running the test and all its children. - - - - - Gets the number of test cases that were skipped - when running the test and all its children. - - - - - Gets the number of test cases that were inconclusive - when running the test and all its children. - - - - - Indicates whether this result has any child results. - Accessing HasChildren should not force creation of the - Children collection in classes implementing this interface. - - - - - Gets the the collection of child results. - - - - - Gets the Test to which this result applies. - - - - - Gets any text output written to this result. - - - - - The ITypeInfo interface is an abstraction of a .NET Type - - - - - Gets the underlying Type on which this ITypeInfo is based - - - - - Gets the base type of this type as an ITypeInfo - - - - - Returns true if the Type wrapped is equal to the argument - - - - - Gets the Name of the Type - - - - - Gets the FullName of the Type - - - - - Gets the assembly in which the type is declared - - - - - Gets the Namespace of the Type - - - - - Gets a value indicating whether the type is abstract. - - - - - Gets a value indicating whether the Type is a generic Type - - - - - Gets a value indicating whether the Type has generic parameters that have not been replaced by specific Types. - - - - - Gets a value indicating whether the Type is a generic Type definition - - - - - Gets a value indicating whether the type is sealed. - - - - - Gets a value indicating whether this type is a static class. - - - - - Get the display name for this typeInfo. - - - - - Get the display name for an oject of this type, constructed with specific arguments - - - - - Returns a Type representing a generic type definition from which this Type can be constructed. - - - - - Returns a new ITypeInfo representing an instance of this generic Type using the supplied Type arguments - - - - - Returns a value indicating whether this type has a method with a specified public attribute - - - - - Returns an array of IMethodInfos for methods of this Type - that match the specified flags. - - - - - Returns a value indicating whether this Type has a public constructor taking the specified argument Types. - - - - - Construct an object of this Type, using the specified arguments. - - - - - An object implementing IXmlNodeBuilder is able to build - an XML representation of itself and any children. - - - - - Returns a TNode representing the current object. - - If true, children are included where applicable - A TNode representing the result - - - - Returns a TNode representing the current object after - adding it as a child of the supplied parent node. - - The parent node. - If true, children are included, where applicable - - - - - The ResultState class represents the outcome of running a test. - It contains two pieces of information. The Status of the test - is an enum indicating whether the test passed, failed, was - skipped or was inconclusive. The Label provides a more - detailed breakdown for use by client runners. - - - - - Initializes a new instance of the class. - - The TestStatus. - - - - Initializes a new instance of the class. - - The TestStatus. - The label. - - - - Initializes a new instance of the class. - - The TestStatus. - The stage at which the result was produced - - - - Initializes a new instance of the class. - - The TestStatus. - The label. - The stage at which the result was produced - - - - The result is inconclusive - - - - - The test has been skipped. - - - - - The test has been ignored. - - - - - The test was skipped because it is explicit - - - - - The test succeeded - - - - - The test failed - - - - - The test encountered an unexpected exception - - - - - The test was cancelled by the user - - - - - The test was not runnable. - - - - - A suite failed because one or more child tests failed or had errors - - - - - A suite failed in its OneTimeSetUp - - - - - A suite had an unexpected exception in its OneTimeSetUp - - - - - A suite had an unexpected exception in its OneTimeDown - - - - - Gets the TestStatus for the test. - - The status. - - - - Gets the label under which this test result is - categorized, if any. - - - - - Gets the stage of test execution in which - the failure or other result took place. - - - - - Get a new ResultState, which is the same as the current - one but with the FailureSite set to the specified value. - - The FailureSite to use - A new ResultState - - - - Determines whether the specified , is equal to this instance. - - The to compare with this instance. - - true if the specified is equal to this instance; otherwise, false. - - - - - Returns a hash code for this instance. - - - A hash code for this instance, suitable for use in hashing algorithms and data structures like a hash table. - - - - - Returns a that represents this instance. - - - A that represents this instance. - - - - - The FailureSite enum indicates the stage of a test - in which an error or failure occurred. - - - - - Failure in the test itself - - - - - Failure in the SetUp method - - - - - Failure in the TearDown method - - - - - Failure of a parent test - - - - - Failure of a child test - - - - - The RunState enum indicates whether a test can be executed. - - - - - The test is not runnable. - - - - - The test is runnable. - - - - - The test can only be run explicitly - - - - - The test has been skipped. This value may - appear on a Test when certain attributes - are used to skip the test. - - - - - The test has been ignored. May appear on - a Test, when the IgnoreAttribute is used. - - - - - The TestStatus enum indicates the result of running a test - - - - - The test was inconclusive - - - - - The test has skipped - - - - - The test succeeded - - - - - The test failed - - - - - TNode represents a single node in the XML representation - of a Test or TestResult. It replaces System.Xml.XmlNode and - System.Xml.Linq.XElement, providing a minimal set of methods - for operating on the XML in a platform-independent manner. - - - - - Constructs a new instance of TNode - - The name of the node - - - - Constructs a new instance of TNode with a value - - The name of the node - The text content of the node - - - - Constructs a new instance of TNode with a value - - The name of the node - The text content of the node - Flag indicating whether to use CDATA when writing the text - - - - Gets the name of the node - - - - - Gets the value of the node - - - - - Gets a flag indicating whether the value should be output using CDATA. - - - - - Gets the dictionary of attributes - - - - - Gets a list of child nodes - - - - - Gets the first ChildNode - - - - - Gets the XML representation of this node. - - - - - Create a TNode from it's XML text representation - - The XML text to be parsed - A TNode - - - - Adds a new element as a child of the current node and returns it. - - The element name. - The newly created child element - - - - Adds a new element with a value as a child of the current node and returns it. - - The element name - The text content of the new element - The newly created child element - - - - Adds a new element with a value as a child of the current node and returns it. - The value will be output using a CDATA section. - - The element name - The text content of the new element - The newly created child element - - - - Adds an attribute with a specified name and value to the XmlNode. - - The name of the attribute. - The value of the attribute. - - - - Finds a single descendant of this node matching an xpath - specification. The format of the specification is - limited to what is needed by NUnit and its tests. - - - - - - - Finds all descendants of this node matching an xpath - specification. The format of the specification is - limited to what is needed by NUnit and its tests. - - - - - Writes the XML representation of the node to an XmlWriter - - - - - - Class used to represent a list of XmlResults - - - - - Class used to represent the attributes of a node - - - - - Gets or sets the value associated with the specified key. - Overridden to return null if attribute is not found. - - The key. - Value of the attribute or null - - - - Asserts on Files - - - - - 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. - - - - - - - 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 - - - - 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 - - - - 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 - - - - 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 - - - - 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 - - - - 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 - - - - Asserts that the file exists. If it does not exist - an is thrown. - - 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 the file exists. If it does not exist - an is thrown. - - A file containing the actual value - - - - Asserts that the file exists. If it does not exist - an is thrown. - - 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 the file exists. If it does not exist - an is thrown. - - The path to a file containing the actual value - - - - Asserts that the file does not exist. If it does exist - an is thrown. - - 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 the file does not exist. If it does exist - an is thrown. - - A file containing the actual value - - - - Asserts that the file does not exist. If it does exist - an is thrown. - - 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 the file does not exist. If it does exist - an is thrown. - - The path to a file containing the actual value - - - - GlobalSettings is a place for setting default _values used - by the framework in performing asserts. - - - - - Default tolerance for floating point equality - - - - - Helper class with properties and methods that supply - a number of constraints used in Asserts. - - - - - 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 ConstraintExpression, which will apply - the following constraint to all members of a collection, - succeeding only if a specified number of them succeed. - - - - - 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 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 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. - - - - - Helper class with properties and methods that supply - a number of constraints used in Asserts. - - - - - 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 a positive value - - - - - Returns a constraint that tests for a negative value - - - - - 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 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 supplied argument - - - - - Returns a constraint that tests whether the - actual value is greater than or equal to the supplied argument - - - - - Returns a constraint that tests whether the - actual value is greater than or equal to the supplied argument - - - - - Returns a constraint that tests whether the - actual value is less than the supplied argument - - - - - Returns a constraint that tests whether the - actual value is less than or equal to the supplied argument - - - - - Returns a constraint that tests whether the - actual value is less than or equal to the supplied 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 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 to the type supplied as an argument. - - - - - Returns a constraint that tests whether the actual value - is assignable to 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 tests whether the actual value - is a superset of the collection supplied as an argument. - - - - - Returns a constraint that tests whether a collection is ordered - - - - - 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 regular expression 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 a subpath of the 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 - inclusively within a specified range. - - from must be less than or equal to true - Inclusive beginning of the range. Must be less than or equal to to. - Inclusive end of the range. Must be greater than or equal to from. - - - - - When implemented by an attribute, this interface implemented to provide actions to execute before and after tests. - - - - - Executed before each test is run - - The test that is going to be run. - - - - Executed after each test is run - - The test that has just been run. - - - - Provides the target for the action attribute - - The target for the action attribute - - - - The Iz class is a synonym for Is intended for use in VB, - which regards Is as a keyword. - - - - - 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 - - - - - 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 - - - - - 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 - - - - 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 - - - - 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 - - - - 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 - - - - 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 - - - - 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 - - - - 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 - - - - 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 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 - - - - 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 TestCaseData class represents a set of arguments - and other parameter info to be used for a parameterized - test case. It is derived from TestCaseParameters and adds a - fluent syntax for use in initializing the 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 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 - - - - - - - - Marks the test case as explicit. - - - - - Marks the test case as explicit, specifying the reason. - - - - - Ignores this TestCase, specifying the reason. - - The reason. - - - - - Provide the context information of the current test. - This is an adapter for the internal ExecutionContext - class, hiding the internals from the user test. - - - - - Construct a TestContext for an ExecutionContext - - The ExecutionContext to adapt - - - - Get the current test context. This is created - as needed. The user may save the context for - use within a test, but it should not be used - outside the test for which it is created. - - - - - Gets a TextWriter that will send output to the current test result. - - - - - Get a representation of the current test. - - - - - Gets a Representation of the TestResult for the current test. - - - - - Gets the directory containing the current test assembly. - - - - - Gets the directory to be used for outputting files created - by this test run. - - - - - Gets the random generator. - - - The random generator. - - - - Write the string representation of a boolean value to the current result - - - Write a char to the current result - - - Write a char array to the current result - - - Write the string representation of a double to the current result - - - Write the string representation of an Int32 value to the current result - - - Write the string representation of an Int64 value to the current result - - - Write the string representation of a decimal value to the current result - - - Write the string representation of an object to the current result - - - Write the string representation of a Single value to the current result - - - Write a string to the current result - - - Write the string representation of a UInt32 value to the current result - - - Write the string representation of a UInt64 value to the current result - - - Write a formatted string to the current result - - - Write a formatted string to the current result - - - Write a formatted string to the current result - - - Write a formatted string to the current result - - - Write a line terminator to the current result - - - Write the string representation of a boolean value to the current result followed by a line terminator - - - Write a char to the current result followed by a line terminator - - - Write a char array to the current result followed by a line terminator - - - Write the string representation of a double to the current result followed by a line terminator - - - Write the string representation of an Int32 value to the current result followed by a line terminator - - - Write the string representation of an Int64 value to the current result followed by a line terminator - - - Write the string representation of a decimal value to the current result followed by a line terminator - - - Write the string representation of an object to the current result followed by a line terminator - - - Write the string representation of a Single value to the current result followed by a line terminator - - - Write a string to the current result followed by a line terminator - - - Write the string representation of a UInt32 value to the current result followed by a line terminator - - - Write the string representation of a UInt64 value to the current result followed by a line terminator - - - Write a formatted string to the current result followed by a line terminator - - - Write a formatted string to the current result followed by a line terminator - - - Write a formatted string to the current result followed by a line terminator - - - Write a formatted string to the current result followed by a line terminator - - - - TestAdapter adapts a Test for consumption by - the user test code. - - - - - Construct a TestAdapter for a Test - - The Test to be adapted - - - - Gets the unique Id of a test - - - - - The name of the test, which may or may not be - the same as the method name. - - - - - The name of the method representing the test. - - - - - The FullName of the test - - - - - The ClassName of the test - - - - - The properties of the test. - - - - - ResultAdapter adapts a TestResult for consumption by - the user test code. - - - - - Construct a ResultAdapter for a TestResult - - The TestResult to be adapted - - - - Gets a ResultState representing the outcome of the test. - - - - - Gets the message associated with a test - failure or with not running the test - - - - - Gets any stacktrace associated with an - error or failure. - - - - - Gets the number of test cases that failed - when running the test and all its children. - - - - - Gets the number of test cases that passed - when running the test and all its children. - - - - - Gets the number of test cases that were skipped - when running the test and all its children. - - - - - Gets the number of test cases that were inconclusive - when running the test and all its children. - - - - - The TestFixtureData class represents a set of arguments - and other parameter info to be used for a parameterized - fixture. It is derived from TestFixtureParameters and adds a - fluent syntax for use in initializing the fixture. - - - - - 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. - - - - Marks the test fixture as explicit. - - - - - Marks the test fixture as explicit, specifying the reason. - - - - - Ignores this TestFixture, specifying the reason. - - The reason. - - - - - Helper class with properties and methods that supply - constraints that operate on exceptions. - - - - - 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 ArgumentException - - - - - Creates a constraint specifying an expected ArgumentNUllException - - - - - Creates a constraint specifying an expected InvalidOperationException - - - - - Creates a constraint specifying that no exception is thrown - - - - - 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 - - - - - Env is a static class that provides some of the features of - System.Environment that are not available under all runtimes - - - - - The newline sequence in the current environment. - - - - - Path to the 'My Documents' folder - - - - - Directory used for file output if not specified on commandline. - - - - - PackageSettings is a static class containing constant values that - are used as keys in setting up a TestPackage. These values are used in - the engine and framework. Setting values may be a string, int or bool. - - - - - Flag (bool) indicating whether tests are being debugged. - - - - - Flag (bool) indicating whether to pause execution of tests to allow - the user to attache a debugger. - - - - - The InternalTraceLevel for this run. Values are: "Default", - "Off", "Error", "Warning", "Info", "Debug", "Verbose". - Default is "Off". "Debug" and "Verbose" are synonyms. - - - - - Full path of the directory to be used for work and result files. - This path is provided to tests by the frameowrk TestContext. - - - - - The name of the config to use in loading a project. - If not specified, the first config found is used. - - - - - Bool indicating whether the engine should determine the private - bin path by examining the paths to all the tests. Defaults to - true unless PrivateBinPath is specified. - - - - - The ApplicationBase to use in loading the tests. If not - specified, and each assembly has its own process, then the - location of the assembly is used. For multiple assemblies - in a single process, the closest common root directory is used. - - - - - Path to the config file to use in running the tests. - - - - - Bool flag indicating whether a debugger should be launched at agent - startup. Used only for debugging NUnit itself. - - - - - Indicates how to load tests across AppDomains. Values are: - "Default", "None", "Single", "Multiple". Default is "Multiple" - if more than one assembly is loaded in a process. Otherwise, - it is "Single". - - - - - The private binpath used to locate assemblies. Directory paths - is separated by a semicolon. It's an error to specify this and - also set AutoBinPath to true. - - - - - The maximum number of test agents permitted to run simultneously. - Ignored if the ProcessModel is not set or defaulted to Multiple. - - - - - Indicates how to allocate assemblies to processes. Values are: - "Default", "Single", "Separate", "Multiple". Default is "Multiple" - for more than one assembly, "Separate" for a single assembly. - - - - - Indicates the desired runtime to use for the tests. Values - are strings like "net-4.5", "mono-4.0", etc. Default is to - use the target framework for which an assembly was built. - - - - - Bool flag indicating that the test should be run in a 32-bit process - on a 64-bit system. By default, NUNit runs in a 64-bit process on - a 64-bit system. Ignored if set on a 32-bit system. - - - - - Indicates that test runners should be disposed after the tests are executed - - - - - Bool flag indicating that the test assemblies should be shadow copied. - Defaults to false. - - - - - Integer value in milliseconds for the default timeout value - for test cases. If not specified, there is no timeout except - as specified by attributes on the tests themselves. - - - - - A TextWriter to which the internal trace will be sent. - - - - - A list of tests to be loaded. - - - - - The number of test threads to run for the assembly. If set to - 1, a single queue is used. If set to 0, tests are executed - directly, without queuing. - - - - - The random seed to be used for this assembly. If specified - as the value reported from a prior run, the framework should - generate identical random values for tests as were used for - that run, provided that no change has been made to the test - assembly. Default is a random value itself. - - - - - If true, execution stops after the first error or failure. - - - - - If true, use of the event queue is suppressed and test events are synchronous. - - - - diff --git a/packages/NUnit.3.0.1/lib/net45/nunit.framework.dll b/packages/NUnit.3.0.1/lib/net45/nunit.framework.dll deleted file mode 100644 index cd864b1c..00000000 Binary files a/packages/NUnit.3.0.1/lib/net45/nunit.framework.dll and /dev/null differ diff --git a/packages/NUnit.3.0.1/lib/net45/nunit.framework.xml b/packages/NUnit.3.0.1/lib/net45/nunit.framework.xml deleted file mode 100644 index cfa263bc..00000000 --- a/packages/NUnit.3.0.1/lib/net45/nunit.framework.xml +++ /dev/null @@ -1,16865 +0,0 @@ - - - - nunit.framework - - - - - AssemblyHelper provides static methods for working - with assemblies. - - - - - Gets the path from which the assembly defining a type was loaded. - - The Type. - The path. - - - - Gets the path from which an assembly was loaded. - - The assembly. - The path. - - - - Gets the path to the directory from which an assembly was loaded. - - The assembly. - The path. - - - - Gets the AssemblyName of an assembly. - - The assembly - An AssemblyName - - - - Loads an assembly given a string, which may be the - path to the assembly or the AssemblyName - - - - - - - Gets the assembly path from code base. - - Public for testing purposes - The code base. - - - - - Interface for logging within the engine - - - - - Logs the specified message at the error level. - - The message. - - - - Logs the specified message at the error level. - - The message. - The arguments. - - - - Logs the specified message at the warning level. - - The message. - - - - Logs the specified message at the warning level. - - The message. - The arguments. - - - - Logs the specified message at the info level. - - The message. - - - - Logs the specified message at the info level. - - The message. - The arguments. - - - - Logs the specified message at the debug level. - - The message. - - - - Logs the specified message at the debug level. - - The message. - The arguments. - - - - InternalTrace provides facilities for tracing the execution - of the NUnit framework. Tests and classes under test may make use - of Console writes, System.Diagnostics.Trace or various loggers and - NUnit itself traps and processes each of them. For that reason, a - separate internal trace is needed. - - Note: - InternalTrace uses a global lock to allow multiple threads to write - trace messages. This can easily make it a bottleneck so it must be - used sparingly. Keep the trace Level as low as possible and only - insert InternalTrace writes where they are needed. - TODO: add some buffering and a separate writer thread as an option. - TODO: figure out a way to turn on trace in specific classes only. - - - - - Gets a flag indicating whether the InternalTrace is initialized - - - - - Initialize the internal trace facility using the name of the log - to be written to and the trace level. - - The log name - The trace level - - - - Initialize the internal trace using a provided TextWriter and level - - A TextWriter - The InternalTraceLevel - - - - Get a named Logger - - - - - - Get a logger named for a particular Type. - - - - - InternalTraceLevel is an enumeration controlling the - level of detailed presented in the internal log. - - - - - Use the default settings as specified by the user. - - - - - Do not display any trace messages - - - - - Display Error messages only - - - - - Display Warning level and higher messages - - - - - Display informational and higher messages - - - - - Display debug messages and higher - i.e. all messages - - - - - Display debug messages and higher - i.e. all messages - - - - - A trace listener that writes to a separate file per domain - and process using it. - - - - - Construct an InternalTraceWriter that writes to a file. - - Path to the file to use - - - - Construct an InternalTraceWriter that writes to a - TextWriter provided by the caller. - - - - - - Returns the character encoding in which the output is written. - - The character encoding in which the output is written. - - - - Writes a character to the text string or stream. - - The character to write to the text stream. - - - - Writes a string to the text string or stream. - - The string to write. - - - - Writes a string followed by a line terminator to the text string or stream. - - The string to write. If is null, only the line terminator is written. - - - - Releases the unmanaged resources used by the and optionally releases the managed resources. - - true to release both managed and unmanaged resources; false to release only unmanaged resources. - - - - Clears all buffers for the current writer and causes any buffered data to be written to the underlying device. - - - - - Provides internal logging to the NUnit framework - - - - - Initializes a new instance of the class. - - The name. - The log level. - The writer where logs are sent. - - - - Logs the message at error level. - - The message. - - - - Logs the message at error level. - - The message. - The message arguments. - - - - Logs the message at warm level. - - The message. - - - - Logs the message at warning level. - - The message. - The message arguments. - - - - Logs the message at info level. - - The message. - - - - Logs the message at info level. - - The message. - The message arguments. - - - - Logs the message at debug level. - - The message. - - - - Logs the message at debug level. - - The message. - The message arguments. - - - - CombinatorialStrategy creates test cases by using all possible - combinations of the parameter data. - - - - - Gets the test cases generated by the CombiningStrategy. - - The test cases. - - - - Provides data from fields marked with the DatapointAttribute or the - DatapointsAttribute. - - - - - Determine whether any data is available for a parameter. - - A ParameterInfo representing one - argument to a parameterized test - - True if any data is available, otherwise false. - - - - - Return an IEnumerable providing data for use with the - supplied parameter. - - A ParameterInfo representing one - argument to a parameterized test - - An IEnumerable providing the required data - - - - - Built-in SuiteBuilder for all types of test classes. - - - - - Checks to see if the provided Type is a fixture. - To be considered a fixture, it must be a non-abstract - class with one or more attributes implementing the - IFixtureBuilder interface or one or more methods - marked as tests. - - The fixture type to check - True if the fixture can be built, false if not - - - - Build a TestSuite from TypeInfo provided. - - The fixture type to build - A TestSuite built from that type - - - - We look for attributes implementing IFixtureBuilder at one level - of inheritance at a time. Attributes on base classes are not used - unless there are no fixture builder attributes at all on the derived - class. This is by design. - - The type being examined for attributes - A list of the attributes found. - - - - Class to build ether a parameterized or a normal NUnitTestMethod. - There are four cases that the builder must deal with: - 1. The method needs no params and none are provided - 2. The method needs params and they are provided - 3. The method needs no params but they are provided in error - 4. The method needs params but they are not provided - This could have been done using two different builders, but it - turned out to be simpler to have just one. The BuildFrom method - takes a different branch depending on whether any parameters are - provided, but all four cases are dealt with in lower-level methods - - - - - Determines if the method can be used to build an NUnit test - test method of some kind. The method must normally be marked - with an identifying attribute for this to be true. - - Note that this method does not check that the signature - of the method for validity. If we did that here, any - test methods with invalid signatures would be passed - over in silence in the test run. Since we want such - methods to be reported, the check for validity is made - in BuildFrom rather than here. - - An IMethodInfo for the method being used as a test method - True if the builder can create a test case from this method - - - - Build a Test from the provided MethodInfo. Depending on - whether the method takes arguments and on the availability - of test case data, this method may return a single test - or a group of tests contained in a ParameterizedMethodSuite. - - The method for which a test is to be built - A Test representing one or more method invocations - - - - Determines if the method can be used to build an NUnit test - test method of some kind. The method must normally be marked - with an identifying attribute for this to be true. - - Note that this method does not check that the signature - of the method for validity. If we did that here, any - test methods with invalid signatures would be passed - over in silence in the test run. Since we want such - methods to be reported, the check for validity is made - in BuildFrom rather than here. - - An IMethodInfo for the method being used as a test method - The test suite being built, to which the new test would be added - True if the builder can create a test case from this method - - - - Build a Test from the provided MethodInfo. Depending on - whether the method takes arguments and on the availability - of test case data, this method may return a single test - or a group of tests contained in a ParameterizedMethodSuite. - - The method for which a test is to be built - The test fixture being populated, or null - A Test representing one or more method invocations - - - - Builds a ParameterizedMethodSuite containing individual test cases. - - The method for which a test is to be built. - The list of test cases to include. - A ParameterizedMethodSuite populated with test cases - - - - Build a simple, non-parameterized TestMethod for this method. - - The MethodInfo for which a test is to be built - The test suite for which the method is being built - A TestMethod. - - - - Class that can build a tree of automatic namespace - suites from a group of fixtures. - - - - - NamespaceDictionary of all test suites we have created to represent - namespaces. Used to locate namespace parent suites for fixtures. - - - - - The root of the test suite being created by this builder. - - - - - Initializes a new instance of the class. - - The root suite. - - - - Gets the root entry in the tree created by the NamespaceTreeBuilder. - - The root suite. - - - - Adds the specified fixtures to the tree. - - The fixtures to be added. - - - - Adds the specified fixture to the tree. - - The fixture to be added. - - - - NUnitTestCaseBuilder is a utility class used by attributes - that build test cases. - - - - - Constructs an - - - - - Builds a single NUnitTestMethod, either as a child of the fixture - or as one of a set of test cases under a ParameterizedTestMethodSuite. - - The MethodInfo from which to construct the TestMethod - The suite or fixture to which the new test will be added - The ParameterSet to be used, or null - - - - - Helper method that checks the signature of a TestMethod and - any supplied parameters to determine if the test is valid. - - Currently, NUnitTestMethods are required to be public, - non-abstract methods, either static or instance, - returning void. They may take arguments but the _values must - be provided or the TestMethod is not considered runnable. - - Methods not meeting these criteria will be marked as - non-runnable and the method will return false in that case. - - The TestMethod to be checked. If it - is found to be non-runnable, it will be modified. - Parameters to be used for this test, or null - True if the method signature is valid, false if not - - The return value is no longer used internally, but is retained - for testing purposes. - - - - - NUnitTestFixtureBuilder is able to build a fixture given - a class marked with a TestFixtureAttribute or an unmarked - class containing test methods. In the first case, it is - called by the attribute and in the second directly by - NUnitSuiteBuilder. - - - - - Build a TestFixture from type provided. A non-null TestSuite - must always be returned, since the method is generally called - because the user has marked the target class as a fixture. - If something prevents the fixture from being used, it should - be returned nonetheless, labelled as non-runnable. - - An ITypeInfo for the fixture to be used. - A TestSuite object or one derived from TestSuite. - - - - Overload of BuildFrom called by tests that have arguments. - Builds a fixture using the provided type and information - in the ITestFixtureData object. - - The TypeInfo for which to construct a fixture. - An object implementing ITestFixtureData or null. - - - - - Method to add test cases to the newly constructed fixture. - - The fixture to which cases should be added - - - - Method to create a test case from a MethodInfo and add - it to the fixture being built. It first checks to see if - any global TestCaseBuilder addin wants to build the - test case. If not, it uses the internal builder - collection maintained by this fixture builder. - - The default implementation has no test case builders. - Derived classes should add builders to the collection - in their constructor. - - The method for which a test is to be created - The test suite being built. - A newly constructed Test - - - - PairwiseStrategy creates test cases by combining the parameter - data so that all possible pairs of data items are used. - - - - The number of test cases that cover all possible pairs of test function - parameters values is significantly less than the number of test cases - that cover all possible combination of test function parameters values. - And because different studies show that most of software failures are - caused by combination of no more than two parameters, pairwise testing - can be an effective ways to test the system when it's impossible to test - all combinations of parameters. - - - The PairwiseStrategy code is based on "jenny" tool by Bob Jenkins: - http://burtleburtle.net/bob/math/jenny.html - - - - - - FleaRand is a pseudo-random number generator developed by Bob Jenkins: - http://burtleburtle.net/bob/rand/talksmall.html#flea - - - - - Initializes a new instance of the FleaRand class. - - The seed. - - - - FeatureInfo represents coverage of a single value of test function - parameter, represented as a pair of indices, Dimension and Feature. In - terms of unit testing, Dimension is the index of the test parameter and - Feature is the index of the supplied value in that parameter's list of - sources. - - - - - Initializes a new instance of FeatureInfo class. - - Index of a dimension. - Index of a feature. - - - - A FeatureTuple represents a combination of features, one per test - parameter, which should be covered by a test case. In the - PairwiseStrategy, we are only trying to cover pairs of features, so the - tuples actually may contain only single feature or pair of features, but - the algorithm itself works with triplets, quadruples and so on. - - - - - Initializes a new instance of FeatureTuple class for a single feature. - - Single feature. - - - - Initializes a new instance of FeatureTuple class for a pair of features. - - First feature. - Second feature. - - - - TestCase represents a single test case covering a list of features. - - - - - Initializes a new instance of TestCaseInfo class. - - A number of features in the test case. - - - - PairwiseTestCaseGenerator class implements an algorithm which generates - a set of test cases which covers all pairs of possible values of test - function. - - - - The algorithm starts with creating a set of all feature tuples which we - will try to cover (see method). This set - includes every single feature and all possible pairs of features. We - store feature tuples in the 3-D collection (where axes are "dimension", - "feature", and "all combinations which includes this feature"), and for - every two feature (e.g. "A" and "B") we generate both ("A", "B") and - ("B", "A") pairs. This data structure extremely reduces the amount of - time needed to calculate coverage for a single test case (this - calculation is the most time-consuming part of the algorithm). - - - Then the algorithm picks one tuple from the uncovered tuple, creates a - test case that covers this tuple, and then removes this tuple and all - other tuples covered by this test case from the collection of uncovered - tuples. - - - Picking a tuple to cover - - - There are no any special rules defined for picking tuples to cover. We - just pick them one by one, in the order they were generated. - - - Test generation - - - Test generation starts from creating a completely random test case which - covers, nevertheless, previously selected tuple. Then the algorithm - tries to maximize number of tuples which this test covers. - - - Test generation and maximization process repeats seven times for every - selected tuple and then the algorithm picks the best test case ("seven" - is a magic number which provides good results in acceptable time). - - Maximizing test coverage - - To maximize tests coverage, the algorithm walks thru the list of mutable - dimensions (mutable dimension is a dimension that are not included in - the previously selected tuple). Then for every dimension, the algorithm - walks thru the list of features and checks if this feature provides - better coverage than randomly selected feature, and if yes keeps this - feature. - - - This process repeats while it shows progress. If the last iteration - doesn't improve coverage, the process ends. - - - In addition, for better results, before start every iteration, the - algorithm "scrambles" dimensions - so for every iteration dimension - probes in a different order. - - - - - - Creates a set of test cases for specified dimensions. - - - An array which contains information about dimensions. Each element of - this array represents a number of features in the specific dimension. - - - A set of test cases. - - - - - Gets the test cases generated by this strategy instance. - - A set of test cases. - - - - The ParameterDataProvider class implements IParameterDataProvider - and hosts one or more individual providers. - - - - - Construct with a collection of individual providers - - - - - Determine whether any data is available for a parameter. - - An IParameterInfo representing one - argument to a parameterized test - True if any data is available, otherwise false. - - - - Return an IEnumerable providing data for use with the - supplied parameter. - - An IParameterInfo representing one - argument to a parameterized test - An IEnumerable providing the required data - - - - ParameterDataSourceProvider supplies individual argument _values for - single parameters using attributes implementing IParameterDataSource. - - - - - Determine whether any data is available for a parameter. - - A ParameterInfo representing one - argument to a parameterized test - - True if any data is available, otherwise false. - - - - - Return an IEnumerable providing data for use with the - supplied parameter. - - An IParameterInfo representing one - argument to a parameterized test - - An IEnumerable providing the required data - - - - - SequentialStrategy creates test cases by using all of the - parameter data sources in parallel, substituting null - when any of them run out of data. - - - - - Gets the test cases generated by the CombiningStrategy. - - The test cases. - - - - Waits for pending asynchronous operations to complete, if appropriate, - and returns a proper result of the invocation by unwrapping task results - - The raw result of the method invocation - The unwrapped result, if necessary - - - - OneTimeSetUpCommand runs any one-time setup methods for a suite, - constructing the user test object if necessary. - - - - - Constructs a OneTimeSetUpCommand for a suite - - The suite to which the command applies - A SetUpTearDownList for use by the command - A List of TestActionItems to be run after Setup - - - - Overridden to run the one-time setup for a suite. - - The TestExecutionContext to be used. - A TestResult - - - - OneTimeTearDownCommand performs any teardown actions - specified for a suite and calls Dispose on the user - test object, if any. - - - - - Construct a OneTimeTearDownCommand - - The test suite to which the command applies - A SetUpTearDownList for use by the command - A List of TestActionItems to be run before teardown. - - - - Overridden to run the teardown methods specified on the test. - - The TestExecutionContext to be used. - A TestResult - - - - ContextSettingsCommand applies specified changes to the - TestExecutionContext prior to running a test. No special - action is needed after the test runs, since the prior - context will be restored automatically. - - - - - The CommandStage enumeration represents the defined stages - of execution for a series of TestCommands. The int _values - of the enum are used to apply decorators in the proper - order. Lower _values are applied first and are therefore - "closer" to the actual test execution. - - - No CommandStage is defined for actual invocation of the test or - for creation of the context. Execution may be imagined as - proceeding from the bottom of the list upwards, with cleanup - after the test running in the opposite order. - - - - - Use an application-defined default value. - - - - - Make adjustments needed before and after running - the raw test - that is, after any SetUp has run - and before TearDown. - - - - - Run SetUp and TearDown for the test. This stage is used - internally by NUnit and should not normally appear - in user-defined decorators. - - - - - Make adjustments needed before and after running - the entire test - including SetUp and TearDown. - - - - - TODO: Documentation needed for class - - - - TODO: Documentation needed for field - - - - TODO: Documentation needed for constructor - - - - - - TODO: Documentation needed for class - - - - - Initializes a new instance of the class. - - The inner command. - The max time allowed in milliseconds - - - - Runs the test, saving a TestResult in the supplied TestExecutionContext - - The context in which the test should run. - A TestResult - - - - SetUpTearDownCommand runs any SetUp methods for a suite, - runs the test and then runs any TearDown methods. - - - - - Initializes a new instance of the class. - - The inner command. - - - - Runs the test, saving a TestResult in the supplied TestExecutionContext. - - The context in which the test should run. - A TestResult - - - - SetUpTearDownItem holds the setup and teardown methods - for a single level of the inheritance hierarchy. - - - - - Construct a SetUpTearDownNode - - A list of setup methods for this level - A list teardown methods for this level - - - - Returns true if this level has any methods at all. - This flag is used to discard levels that do nothing. - - - - - Run SetUp on this level. - - The execution context to use for running. - - - - Run TearDown for this level. - - - - - - TODO: Documentation needed for class - - - - - Initializes a new instance of the class. - - The test being skipped. - - - - Overridden to simply set the CurrentResult to the - appropriate Skipped state. - - The execution context for the test - A TestResult - - - - TestActionCommand runs the BeforeTest actions for a test, - then runs the test and finally runs the AfterTestActions. - - - - - Initializes a new instance of the class. - - The inner command. - - - - Runs the test, saving a TestResult in the supplied TestExecutionContext. - - The context in which the test should run. - A TestResult - - - - TestActionItem represents a single execution of an - ITestAction. It is used to track whether the BeforeTest - method has been called and suppress calling the - AfterTest method if it has not. - - - - - Construct a TestActionItem - - The ITestAction to be included - - - - Run the BeforeTest method of the action and remember that it has been run. - - The test to which the action applies - - - - Run the AfterTest action, but only if the BeforeTest - action was actually run. - - The test to which the action applies - - - - TestCommand is the abstract base class for all test commands - in the framework. A TestCommand represents a single stage in - the execution of a test, e.g.: SetUp/TearDown, checking for - Timeout, verifying the returned result from a method, etc. - - TestCommands may decorate other test commands so that the - execution of a lower-level command is nested within that - of a higher level command. All nested commands are executed - synchronously, as a single unit. Scheduling test execution - on separate threads is handled at a higher level, using the - task dispatcher. - - - - - Construct a TestCommand for a test. - - The test to be executed - - - - Gets the test associated with this command. - - - - - Runs the test in a specified context, returning a TestResult. - - The TestExecutionContext to be used for running the test. - A TestResult - - - - TestMethodCommand is the lowest level concrete command - used to run actual test cases. - - - - - Initializes a new instance of the class. - - The test. - - - - Runs the test, saving a TestResult in the execution context, as - well as returning it. If the test has an expected result, it - is asserts on that value. Since failed tests and errors throw - an exception, this command must be wrapped in an outer command, - will handle that exception and records the failure. This role - is usually played by the SetUpTearDown command. - - The execution context - - - - TheoryResultCommand adjusts the result of a Theory so that - it fails if all the results were inconclusive. - - - - - Constructs a TheoryResultCommand - - The command to be wrapped by this one - - - - Overridden to call the inner command and adjust the result - in case all chlid results were inconclusive. - - - - - - - ClassName filter selects tests based on the class FullName - - - - - Construct a FullNameFilter for a single name - - The name the filter will recognize. - - - - Match a test against a single value. - - - - - Gets the element name - - Element name - - - - A base class for multi-part filters - - - - - Constructs an empty CompositeFilter - - - - - Constructs a CompositeFilter from an array of filters - - - - - - Adds a filter to the list of filters - - The filter to be added - - - - Return a list of the composing filters. - - - - - Adds an XML node - - Parent node - True if recursive - The added XML node - - - - Gets the element name - - Element name - - - - FullName filter selects tests based on their FullName - - - - - Construct a FullNameFilter for a single name - - The name the filter will recognize. - - - - Match a test against a single value. - - - - - Gets the element name - - Element name - - - - FullName filter selects tests based on their FullName - - - - - Construct a MethodNameFilter for a single name - - The name the filter will recognize. - - - - Match a test against a single value. - - - - - Gets the element name - - Element name - - - - PropertyFilter is able to select or exclude tests - based on their properties. - - - - - - Construct a PropertyFilter using a property name and expected value - - A property name - The expected value of the property - - - - Check whether the filter matches a test - - The test to be matched - - - - - Adds an XML node - - Parent node - True if recursive - The added XML node - - - - Gets the element name - - Element name - - - - TestName filter selects tests based on their Name - - - - - Construct a TestNameFilter for a single name - - The name the filter will recognize. - - - - Match a test against a single value. - - - - - Gets the element name - - Element name - - - - Combines multiple filters so that a test must pass all - of them in order to pass this filter. - - - - - Constructs an empty AndFilter - - - - - Constructs an AndFilter from an array of filters - - - - - - Checks whether the AndFilter is matched by a test - - The test to be matched - True if all the component filters pass, otherwise false - - - - Checks whether the AndFilter is matched by a test - - The test to be matched - True if all the component filters match, otherwise false - - - - Gets the element name - - Element name - - - - CategoryFilter is able to select or exclude tests - based on their categories. - - - - - - Construct a CategoryFilter using a single category name - - A category name - - - - Check whether the filter matches a test - - The test to be matched - - - - - Gets the element name - - Element name - - - - IdFilter selects tests based on their id - - - - - Construct an IdFilter for a single value - - The id the filter will recognize. - - - - Match a test against a single value. - - - - - Gets the element name - - Element name - - - - NotFilter negates the operation of another filter - - - - - Construct a not filter on another filter - - The filter to be negated - - - - Gets the base filter - - - - - Determine if a particular test passes the filter criteria. The default - implementation checks the test itself, its parents and any descendants. - - Derived classes may override this method or any of the Match methods - to change the behavior of the filter. - - The test to which the filter is applied - True if the test passes the filter, otherwise false - - - - Check whether the filter matches a test - - The test to be matched - True if it matches, otherwise false - - - - Determine if a test matches the filter expicitly. That is, it must - be a direct match of the test itself or one of it's children. - - The test to which the filter is applied - True if the test matches the filter explicityly, otherwise false - - - - Adds an XML node - - Parent node - True if recursive - The added XML node - - - - Combines multiple filters so that a test must pass one - of them in order to pass this filter. - - - - - Constructs an empty OrFilter - - - - - Constructs an AndFilter from an array of filters - - - - - - Checks whether the OrFilter is matched by a test - - The test to be matched - True if any of the component filters pass, otherwise false - - - - Checks whether the OrFilter is matched by a test - - The test to be matched - True if any of the component filters match, otherwise false - - - - Gets the element name - - Element name - - - - ValueMatchFilter selects tests based on some value, which - is expected to be contained in the test. - - - - - Returns the value matched by the filter - used for testing - - - - - Indicates whether the value is a regular expression - - - - - Construct a ValueMatchFilter for a single value. - - The value to be included. - - - - Match the input provided by the derived class - - The value to be matchedT - True for a match, false otherwise. - - - - Adds an XML node - - Parent node - True if recursive - The added XML node - - - - Gets the element name - - Element name - - - - GenericMethodHelper is able to deduce the Type arguments for - a generic method from the actual arguments provided. - - - - - Construct a GenericMethodHelper for a method - - MethodInfo for the method to examine - - - - Return the type argments for the method, deducing them - from the arguments actually provided. - - The arguments to the method - An array of type arguments. - - - - InvalidTestFixtureException is thrown when an appropriate test - fixture constructor using the provided arguments cannot be found. - - - - - Initializes a new instance of the class. - - - - - Initializes a new instance of the class. - - The message. - - - - Initializes a new instance of the class. - - The message. - The inner. - - - - Serialization Constructor - - - - - CultureDetector is a helper class used by NUnit to determine - whether a test should be run based on the current culture. - - - - - Default constructor uses the current culture. - - - - - Construct a CultureDetector for a particular culture for testing. - - The culture to be used - - - - Test to determine if one of a collection of cultures - is being used currently. - - - - - - - Tests to determine if the current culture is supported - based on a culture attribute. - - The attribute to examine - - - - - Test to determine if the a particular culture or comma- - delimited set of cultures is in use. - - Name of the culture or comma-separated list of culture ids - True if the culture is in use on the system - - - - Return the last failure reason. Results are not - defined if called before IsSupported( Attribute ) - is called. - - - - - ExceptionHelper provides static methods for working with exceptions - - - - - Builds up a message, using the Message field of the specified exception - as well as any InnerExceptions. - - The exception. - A combined message string. - - - - Builds up a message, using the Message field of the specified exception - as well as any InnerExceptions. - - The exception. - A combined stack trace. - - - - Gets the stack trace of the exception. - - The exception. - A string representation of the stack trace. - - - - A utility class to create TestCommands - - - - - Gets the command to be executed before any of - the child tests are run. - - A TestCommand - - - - Gets the command to be executed after all of the - child tests are run. - - A TestCommand - - - - Creates a test command for use in running this test. - - - - - - Creates a command for skipping a test. The result returned will - depend on the test RunState. - - - - - Builds the set up tear down list. - - Type of the fixture. - Type of the set up attribute. - Type of the tear down attribute. - A list of SetUpTearDownItems - - - - A CompositeWorkItem represents a test suite and - encapsulates the execution of the suite as well - as all its child tests. - - - - - Construct a CompositeWorkItem for executing a test suite - using a filter to select child tests. - - The TestSuite to be executed - A filter used to select child tests - - - - Method that actually performs the work. Overridden - in CompositeWorkItem to do setup, run all child - items and then do teardown. - - - - - The EventPumpState enum represents the state of an - EventPump. - - - - - The pump is stopped - - - - - The pump is pumping events with no stop requested - - - - - The pump is pumping events but a stop has been requested - - - - - EventPump pulls events out of an EventQueue and sends - them to a listener. It is used to send events back to - the client without using the CallContext of the test - runner thread. - - - - - The handle on which a thread enqueuing an event with == true - waits, until the EventPump has sent the event to its listeners. - - - - - The downstream listener to which we send events - - - - - The queue that holds our events - - - - - Thread to do the pumping - - - - - The current state of the eventpump - - - - - Constructor - - The EventListener to receive events - The event queue to pull events from - - - - Gets or sets the current state of the pump - - - On volatile and , see - "http://www.albahari.com/threading/part4.aspx". - - - - - Gets or sets the name of this EventPump - (used only internally and for testing). - - - - - Dispose stops the pump - Disposes the used WaitHandle, too. - - - - - Start the pump - - - - - Tell the pump to stop after emptying the queue. - - - - - Our thread proc for removing items from the event - queue and sending them on. Note that this would - need to do more locking if any other thread were - removing events from the queue. - - - - - NUnit.Core.Event is the abstract base for all stored events. - An Event is the stored representation of a call to the - ITestListener interface and is used to record such calls - or to queue them for forwarding on another thread or at - a later time. - - - - - The Send method is implemented by derived classes to send the event to the specified listener. - - The listener. - - - - Gets a value indicating whether this event is delivered synchronously by the NUnit . - - If true, and if has been used to - set a WaitHandle, blocks its calling thread until the - thread has delivered the event and sets the WaitHandle. - - - - - - TestStartedEvent holds information needed to call the TestStarted method. - - - - - Initializes a new instance of the class. - - The test. - - - - Calls TestStarted on the specified listener. - - The listener. - - - - TestFinishedEvent holds information needed to call the TestFinished method. - - - - - Initializes a new instance of the class. - - The result. - - - - Calls TestFinished on the specified listener. - - The listener. - - - - Implements a queue of work items each of which - is queued as a WaitCallback. - - - - - Construct a new EventQueue - - - - - WaitHandle for synchronous event delivery in . - - Having just one handle for the whole implies that - there may be only one producer (the test thread) for synchronous events. - If there can be multiple producers for synchronous events, one would have - to introduce one WaitHandle per event. - - - - - - Gets the count of items in the queue. - - - - - Sets a handle on which to wait, when is called - for an with == true. - - - The wait handle on which to wait, when is called - for an with == true. - The caller is responsible for disposing this wait handle. - - - - - Enqueues the specified event - - The event to enqueue. - - - - Removes the first element from the queue and returns it (or null). - - - If true and the queue is empty, the calling thread is blocked until - either an element is enqueued, or is called. - - - - - If the queue not empty - the first element. - - - otherwise, if ==false - or has been called - null. - - - - - - - Stop processing of the queue - - - - - An IWorkItemDispatcher handles execution of work items. - - - - - Dispatch a single work item for execution. The first - work item dispatched is saved as the top-level - work item and used when stopping the run. - - The item to dispatch - - - - Cancel the ongoing run completely. - If no run is in process, the call has no effect. - - - - - ParallelWorkItemDispatcher handles execution of work items by - queuing them for worker threads to process. - - - - - Construct a ParallelWorkItemDispatcher - - Number of workers to use - - - - Enumerates all the shifts supported by the dispatcher - - - - - Dispatch a single work item for execution. The first - work item dispatched is saved as the top-level - work item and used when stopping the run. - - The item to dispatch - - - - Cancel the ongoing run completely. - If no run is in process, the call has no effect. - - - - - QueuingEventListener uses an EventQueue to store any - events received on its EventListener interface. - - - - - The EvenQueue created and filled by this listener - - - - - A test has started - - The test that is starting - - - - A test case finished - - Result of the test case - - - - A SimpleWorkItem represents a single test case and is - marked as completed immediately upon execution. This - class is also used for skipped or ignored test suites. - - - - - Construct a simple work item for a test. - - The test to be executed - The filter used to select this test - - - - Method that performs actually performs the work. - - - - - SimpleWorkItemDispatcher handles execution of WorkItems by - directly executing them. It is provided so that a dispatcher - is always available in the context, thereby simplifying the - code needed to run child tests. - - - - - Dispatch a single work item for execution. The first - work item dispatched is saved as the top-level - work item and a thread is created on which to - run it. Subsequent calls come from the top level - item or its descendants on the proper thread. - - The item to dispatch - - - - Cancel the ongoing run completely. - If no run is in process, the call has no effect. - - - - - A TestWorker pulls work items from a queue - and executes them. - - - - - Event signaled immediately before executing a WorkItem - - - - - Event signaled immediately after executing a WorkItem - - - - - Construct a new TestWorker. - - The queue from which to pull work items - The name of this worker - The apartment state to use for running tests - - - - The name of this worker - also used for the thread - - - - - Indicates whether the worker thread is running - - - - - Our ThreadProc, which pulls and runs tests in a loop - - - - - Start processing work items. - - - - - Stop the thread, either immediately or after finishing the current WorkItem - - - - - The TextCapture class intercepts console output and writes it - to the current execution context, if one is present on the thread. - If no execution context is found, the output is written to a - default destination, normally the original destination of the - intercepted output. - - - - - Construct a TextCapture object - - The default destination for non-intercepted output - - - - Gets the Encoding in use by this TextWriter - - - - - Writes a single character - - The char to write - - - - Writes a string - - The string to write - - - - Writes a string followed by a line terminator - - The string to write - - - - A WorkItem may be an individual test case, a fixture or - a higher level grouping of tests. All WorkItems inherit - from the abstract WorkItem class, which uses the template - pattern to allow derived classes to perform work in - whatever way is needed. - - A WorkItem is created with a particular TestExecutionContext - and is responsible for re-establishing that context in the - current thread before it begins or resumes execution. - - - - - Creates a work item. - - The test for which this WorkItem is being created. - The filter to be used in selecting any child Tests. - - - - - Construct a WorkItem for a particular test. - - The test that the WorkItem will run - - - - Initialize the TestExecutionContext. This must be done - before executing the WorkItem. - - - Originally, the context was provided in the constructor - but delaying initialization of the context until the item - is about to be dispatched allows changes in the parent - context during OneTimeSetUp to be reflected in the child. - - The TestExecutionContext to use - - - - Event triggered when the item is complete - - - - - Gets the current state of the WorkItem - - - - - The test being executed by the work item - - - - - The execution context - - - - - The test actions to be performed before and after this test - - - - - Indicates whether this WorkItem may be run in parallel - - - - - The test result - - - - - Execute the current work item, including any - child work items. - - - - - Method that performs actually performs the work. It should - set the State to WorkItemState.Complete when done. - - - - - Method called by the derived class when all work is complete - - - - - WorkItemQueueState indicates the current state of a WorkItemQueue - - - - - The queue is paused - - - - - The queue is running - - - - - The queue is stopped - - - - - A WorkItemQueue holds work items that are ready to - be run, either initially or after some dependency - has been satisfied. - - - - - Initializes a new instance of the class. - - The name of the queue. - - - - Gets the name of the work item queue. - - - - - Gets the total number of items processed so far - - - - - Gets the maximum number of work items. - - - - - Gets the current state of the queue - - - - - Get a bool indicating whether the queue is empty. - - - - - Enqueue a WorkItem to be processed - - The WorkItem to process - - - - Dequeue a WorkItem for processing - - A WorkItem or null if the queue has stopped - - - - Start or restart processing of items from the queue - - - - - Signal the queue to stop - - - - - Pause the queue for restarting later - - - - - The current state of a work item - - - - - Ready to run or continue - - - - - Work Item is executing - - - - - Complete - - - - - The dispatcher needs to do different things at different, - non-overlapped times. For example, non-parallel tests may - not be run at the same time as parallel tests. We model - this using the metaphor of a working shift. The WorkShift - class associates one or more WorkItemQueues with one or - more TestWorkers. - - Work in the queues is processed until all queues are empty - and all workers are idle. Both tests are needed because a - worker that is busy may end up adding more work to one of - the queues. At that point, the shift is over and another - shift may begin. This cycle continues until all the tests - have been run. - - - - - Construct a WorkShift - - - - - Event that fires when the shift has ended - - - - - Gets a flag indicating whether the shift is currently active - - - - - Gets a list of the queues associated with this shift. - - Used for testing - - - - Gets the list of workers associated with this shift. - - - - - Gets a bool indicating whether this shift has any work to do - - - - - Add a WorkItemQueue to the shift, starting it if the - shift is currently active. - - - - - Assign a worker to the shift. - - - - - - Start or restart processing for the shift - - - - - End the shift, pausing all queues and raising - the EndOfShift event. - - - - - Shut down the shift. - - - - - Cancel the shift without completing all work - - - - - 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. - - - - - - - Gets or sets the maximum line length for this writer - - - - - Method to write single line message with optional args, usually - written to precede the general failure message, at a given - 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 result of 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 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 ConstraintResult for which the actual value is to be written - - - - Write the generic 'Actual' line for a given value - - The actual value causing a failure - - - - InvalidTestFixtureException is thrown when an appropriate test - fixture constructor using the provided arguments cannot be found. - - - - - Initializes a new instance of the class. - - - - - Initializes a new instance of the class. - - The message. - - - - Initializes a new instance of the class. - - The message. - The inner. - - - - Serialization Constructor - - - - - The MethodWrapper class wraps a MethodInfo so that it may - be used in a platform-independent manner. - - - - - Construct a MethodWrapper for a Type and a MethodInfo. - - - - - Construct a MethodInfo for a given Type and method name. - - - - - Gets the Type from which this method was reflected. - - - - - Gets the MethodInfo for this method. - - - - - Gets the name of the method. - - - - - Gets a value indicating whether the method is abstract. - - - - - Gets a value indicating whether the method is public. - - - - - Gets a value indicating whether the method contains unassigned generic type parameters. - - - - - Gets a value indicating whether the method is a generic method. - - - - - Gets a value indicating whether the MethodInfo represents the definition of a generic method. - - - - - Gets the return Type of the method. - - - - - Gets the parameters of the method. - - - - - - Returns the Type arguments of a generic method or the Type parameters of a generic method definition. - - - - - Replaces the type parameters of the method with the array of types provided and returns a new IMethodInfo. - - The type arguments to be used - A new IMethodInfo with the type arguments replaced - - - - Returns an array of custom attributes of the specified type applied to this method - - - - - Gets a value indicating whether one or more attributes of the spcified type are defined on the method. - - - - - Invokes the method, converting any TargetInvocationException to an NUnitException. - - The object on which to invoke the method - The argument list for the method - The return value from the invoked method - - - - Override ToString() so that error messages in NUnit's own tests make sense - - - - - Thrown when an assertion failed. Here to preserve the inner - exception and hence its stack trace. - - - - - Initializes a new instance of the class. - - - - - Initializes a new instance of the class. - - The error message that explains - the reason for the exception - - - - Initializes a new instance of the class. - - The error message that explains - the reason for the exception - The exception that caused the - current exception - - - - Serialization Constructor - - - - - OSPlatform represents a particular operating system platform - - - - - Platform ID for Unix as defined by Microsoft .NET 2.0 and greater - - - - - Platform ID for Unix as defined by Mono - - - - - Platform ID for XBox as defined by .NET and Mono, but not CF - - - - - Platform ID for MacOSX as defined by .NET and Mono, but not CF - - - - - Get the OSPlatform under which we are currently running - - - - - Gets the actual OS Version, not the incorrect value that might be - returned for Win 8.1 and Win 10 - - - If an application is not manifested as Windows 8.1 or Windows 10, - the version returned from Environment.OSVersion will not be 6.3 and 10.0 - respectively, but will be 6.2 and 6.3. The correct value can be found in - the registry. - - The original version - The correct OS version - - - - Product Type Enumeration used for Windows - - - - - Product type is unknown or unspecified - - - - - Product type is Workstation - - - - - Product type is Domain Controller - - - - - Product type is Server - - - - - Construct from a platform ID and version - - - - - Construct from a platform ID, version and product type - - - - - Get the platform ID of this instance - - - - - Get the Version of this instance - - - - - Get the Product Type of this instance - - - - - Return true if this is a windows platform - - - - - Return true if this is a Unix or Linux platform - - - - - Return true if the platform is Win32S - - - - - Return true if the platform is Win32Windows - - - - - Return true if the platform is Win32NT - - - - - Return true if the platform is Windows CE - - - - - Return true if the platform is Xbox - - - - - Return true if the platform is MacOSX - - - - - Return true if the platform is Windows 95 - - - - - Return true if the platform is Windows 98 - - - - - Return true if the platform is Windows ME - - - - - Return true if the platform is NT 3 - - - - - Return true if the platform is NT 4 - - - - - Return true if the platform is NT 5 - - - - - Return true if the platform is Windows 2000 - - - - - Return true if the platform is Windows XP - - - - - Return true if the platform is Windows 2003 Server - - - - - Return true if the platform is NT 6 - - - - - Return true if the platform is NT 6.0 - - - - - Return true if the platform is NT 6.1 - - - - - Return true if the platform is NT 6.2 - - - - - Return true if the platform is NT 6.3 - - - - - Return true if the platform is Vista - - - - - Return true if the platform is Windows 2008 Server (original or R2) - - - - - Return true if the platform is Windows 2008 Server (original) - - - - - Return true if the platform is Windows 2008 Server R2 - - - - - Return true if the platform is Windows 2012 Server (original or R2) - - - - - Return true if the platform is Windows 2012 Server (original) - - - - - Return true if the platform is Windows 2012 Server R2 - - - - - Return true if the platform is Windows 7 - - - - - Return true if the platform is Windows 8 - - - - - Return true if the platform is Windows 8.1 - - - - - Return true if the platform is Windows 10 - - - - - Return true if the platform is Windows Server. This is named Windows - Server 10 to distinguish it from previous versions of Windows Server. - - - - - The ParameterWrapper class wraps a ParameterInfo so that it may - be used in a platform-independent manner. - - - - - Construct a ParameterWrapper for a given method and parameter - - - - - - - Gets a value indicating whether the parameter is optional - - - - - Gets an IMethodInfo representing the method for which this is a parameter. - - - - - Gets the underlying ParameterInfo - - - - - Gets the Type of the parameter - - - - - Returns an array of custom attributes of the specified type applied to this method - - - - - Gets a value indicating whether one or more attributes of the specified type are defined on the parameter. - - - - - PlatformHelper class is used by the PlatformAttribute class to - determine whether a platform is supported. - - - - - Comma-delimited list of all supported OS platform constants - - - - - Comma-delimited list of all supported Runtime platform constants - - - - - Default constructor uses the operating system and - common language runtime of the system. - - - - - Construct a PlatformHelper for a particular operating - system and common language runtime. Used in testing. - - OperatingSystem to be used - RuntimeFramework to be used - - - - Test to determine if one of a collection of platforms - is being used currently. - - - - - - - Tests to determine if the current platform is supported - based on a platform attribute. - - The attribute to examine - - - - - Tests to determine if the current platform is supported - based on a platform attribute. - - The attribute to examine - - - - - Test to determine if the a particular platform or comma- - delimited set of platforms is in use. - - Name of the platform or comma-separated list of platform ids - True if the platform is in use on the system - - - - Return the last failure reason. Results are not - defined if called before IsSupported( Attribute ) - is called. - - - - - A PropertyBag represents a collection of name value pairs - that allows duplicate entries with the same key. Methods - are provided for adding a new pair as well as for setting - a key to a single value. All keys are strings but _values - may be of any type. Null _values are not permitted, since - a null entry represents the absence of the key. - - - - - Adds a key/value pair to the property set - - The key - The value - - - - Sets the value for a key, removing any other - _values that are already in the property set. - - - - - - - Gets a single value for a key, using the first - one if multiple _values are present and returning - null if the value is not found. - - - - - - - Gets a flag indicating whether the specified key has - any entries in the property set. - - The key to be checked - - True if their are _values present, otherwise false - - - - - Gets a collection containing all the keys in the property set - - - - - - Gets or sets the list of _values for a particular key - - - - - Returns an XmlNode representating the current PropertyBag. - - Not used - An XmlNode representing the PropertyBag - - - - Returns an XmlNode representing the PropertyBag after - adding it as a child of the supplied parent node. - - The parent node. - Not used - - - - - The PropertyNames class provides static constants for the - standard property ids that NUnit uses on tests. - - - - - The FriendlyName of the AppDomain in which the assembly is running - - - - - The selected strategy for joining parameter data into test cases - - - - - The process ID of the executing assembly - - - - - The stack trace from any data provider that threw - an exception. - - - - - The reason a test was not run - - - - - The author of the tests - - - - - The ApartmentState required for running the test - - - - - The categories applying to a test - - - - - The Description of a test - - - - - The number of threads to be used in running tests - - - - - The maximum time in ms, above which the test is considered to have failed - - - - - The ParallelScope associated with a test - - - - - The number of times the test should be repeated - - - - - Indicates that the test should be run on a separate thread - - - - - The culture to be set for a test - - - - - The UI culture to be set for a test - - - - - The type that is under test - - - - - The timeout value for the test - - - - - The test will be ignored until the given date - - - - - Randomizer returns a set of random _values in a repeatable - way, to allow re-running of tests if necessary. It extends - the .NET Random class, providing random values for a much - wider range of types. - - The class is used internally by the framework to generate - test case data and is also exposed for use by users through - the TestContext.Random property. - - - For consistency with the underlying Random Type, methods - returning a single value use the prefix "Next..." Those - without an argument return a non-negative value up to - the full positive range of the Type. Overloads are provided - for specifying a maximum or a range. Methods that return - arrays or strings use the prefix "Get..." to avoid - confusion with the single-value methods. - - - - - Initial seed used to create randomizers for this run - - - - - 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. - - - - - Create a new Randomizer using the next seed - available to ensure that each randomizer gives - a unique sequence of values. - - - - - - Default constructor - - - - - Construct based on seed value - - - - - - Returns a random unsigned int. - - - - - Returns a random unsigned int less than the specified maximum. - - - - - Returns a random unsigned int within a specified range. - - - - - Returns a non-negative random short. - - - - - Returns a non-negative random short less than the specified maximum. - - - - - Returns a non-negative random short within a specified range. - - - - - Returns a random unsigned short. - - - - - Returns a random unsigned short less than the specified maximum. - - - - - Returns a random unsigned short within a specified range. - - - - - Returns a random long. - - - - - Returns a random long less than the specified maximum. - - - - - Returns a non-negative random long within a specified range. - - - - - Returns a random ulong. - - - - - Returns a random ulong less than the specified maximum. - - - - - Returns a non-negative random long within a specified range. - - - - - Returns a random Byte - - - - - Returns a random Byte less than the specified maximum. - - - - - Returns a random Byte within a specified range - - - - - Returns a random SByte - - - - - Returns a random sbyte less than the specified maximum. - - - - - Returns a random sbyte within a specified range - - - - - Returns a random bool - - - - - Returns a random bool based on the probablility a true result - - - - - Returns a random double between 0.0 and the specified maximum. - - - - - Returns a random double within a specified range. - - - - - Returns a random float. - - - - - Returns a random float between 0.0 and the specified maximum. - - - - - Returns a random float within a specified range. - - - - - Returns a random enum value of the specified Type as an object. - - - - - Returns a random enum value of the specified Type. - - - - - Default characters for random functions. - - Default characters are the English alphabet (uppercase & lowercase), arabic numerals, and underscore - - - - Generate a random string based on the characters from the input string. - - desired length of output string. - string representing the set of characters from which to construct the resulting string - A random string of arbitrary length - - - - Generate a random string based on the characters from the input string. - - desired length of output string. - A random string of arbitrary length - Uses DefaultStringChars as the input character set - - - - Generate a random string based on the characters from the input string. - - A random string of the default length - Uses DefaultStringChars as the input character set - - - - Returns a random decimal. - - - - - Returns a random decimal between positive zero and the specified maximum. - - - - - Returns a random decimal within a specified range, which is not - permitted to exceed decimal.MaxVal in the current implementation. - - - A limitation of this implementation is that the range from min - to max must not exceed decimal.MaxVal. - - - - - Helper methods for inspecting a type by reflection. - - Many of these methods take ICustomAttributeProvider as an - argument to avoid duplication, even though certain attributes can - only appear on specific types of members, like MethodInfo or Type. - - In the case where a type is being examined for the presence of - an attribute, interface or named member, the Reflect methods - operate with the full name of the member being sought. This - removes the necessity of the caller having a reference to the - assembly that defines the item being sought and allows the - NUnit core to inspect assemblies that reference an older - version of the NUnit framework. - - - - - Examine a fixture type and return an array of methods having a - particular attribute. The array is order with base methods first. - - The type to examine - The attribute Type to look for - Specifies whether to search the fixture type inheritance chain - The array of methods found - - - - Examine a fixture type and return true if it has a method with - a particular attribute. - - The type to examine - The attribute Type to look for - True if found, otherwise false - - - - Invoke the default constructor on a Type - - The Type to be constructed - An instance of the Type - - - - Invoke a constructor on a Type with arguments - - The Type to be constructed - Arguments to the constructor - An instance of the Type - - - - Returns an array of types from an array of objects. - Used because the compact framework doesn't support - Type.GetTypeArray() - - An array of objects - An array of Types - - - - Invoke a parameterless method returning void on an object. - - A MethodInfo for the method to be invoked - The object on which to invoke the method - - - - Invoke a method, converting any TargetInvocationException to an NUnitException. - - A MethodInfo for the method to be invoked - The object on which to invoke the method - The argument list for the method - The return value from the invoked method - - - - The TestResult class represents the result of a test. - - - - - Error message for when child tests have errors - - - - - Error message for when child tests are ignored - - - - - The minimum duration for tests - - - - - List of child results - - - - - Construct a test result given a Test - - The test to be used - - - - Gets the test with which this result is associated. - - - - - Gets the ResultState of the test result, which - indicates the success or failure of the test. - - - - - Gets the name of the test result - - - - - Gets the full name of the test result - - - - - Gets or sets the elapsed time for running the test in seconds - - - - - Gets or sets the time the test started running. - - - - - Gets or sets the time the test finished running. - - - - - Gets the message associated with a test - failure or with not running the test - - - - - Gets any stacktrace associated with an - error or failure. - - - - - Gets or sets the count of asserts executed - when running the test. - - - - - Gets the number of test cases that failed - when running the test and all its children. - - - - - Gets the number of test cases that passed - when running the test and all its children. - - - - - Gets the number of test cases that were skipped - when running the test and all its children. - - - - - Gets the number of test cases that were inconclusive - when running the test and all its children. - - - - - Indicates whether this result has any child results. - Test HasChildren before accessing Children to avoid - the creation of an empty collection. - - - - - Gets the collection of child results. - - - - - Gets a TextWriter, which will write output to be included in the result. - - - - - Gets any text output written to this result. - - - - - Returns the Xml representation of the result. - - If true, descendant results are included - An XmlNode representing the result - - - - Adds the XML representation of the result as a child of the - supplied parent node.. - - The parent node. - If true, descendant results are included - - - - - Adds a child result to this result, setting this result's - ResultState to Failure if the child result failed. - - The result to be added - - - - Set the result of the test - - The ResultState to use in the result - - - - Set the result of the test - - The ResultState to use in the result - A message associated with the result state - - - - Set the result of the test - - The ResultState to use in the result - A message associated with the result state - Stack trace giving the location of the command - - - - Set the test result based on the type of exception thrown - - The exception that was thrown - - - - Set the test result based on the type of exception thrown - - The exception that was thrown - THe FailureSite to use in the result - - - - RecordTearDownException appends the message and stacktrace - from an exception arising during teardown of the test - to any previously recorded information, so that any - earlier failure information is not lost. Note that - calling Assert.Ignore, Assert.Inconclusive, etc. during - teardown is treated as an error. If the current result - represents a suite, it may show a teardown error even - though all contained tests passed. - - The Exception to be recorded - - - - Adds a reason element to a node and returns it. - - The target node. - The new reason element. - - - - Adds a failure element to a node and returns it. - - The target node. - The new failure element. - - - - Enumeration identifying a common language - runtime implementation. - - - - Any supported runtime framework - - - Microsoft .NET Framework - - - Microsoft .NET Compact Framework - - - Microsoft Shared Source CLI - - - Mono - - - Silverlight - - - MonoTouch - - - - RuntimeFramework represents a particular version - of a common language runtime implementation. - - - - - DefaultVersion is an empty Version, used to indicate that - NUnit should select the CLR version to use for the test. - - - - - Construct from a runtime type and version. If the version has - two parts, it is taken as a framework version. If it has three - or more, it is taken as a CLR version. In either case, the other - version is deduced based on the runtime type and provided version. - - The runtime type of the framework - The version of the framework - - - - Static method to return a RuntimeFramework object - for the framework that is currently in use. - - - - - The type of this runtime framework - - - - - The framework version for this runtime framework - - - - - The CLR version for this runtime framework - - - - - Return true if any CLR version may be used in - matching this RuntimeFramework object. - - - - - Returns the Display name for this framework - - - - - Parses a string representing a RuntimeFramework. - The string may be just a RuntimeType name or just - a Version or a hyphenated RuntimeType-Version or - a Version prefixed by 'versionString'. - - - - - - - Overridden to return the short name of the framework - - - - - - Returns true if the current framework matches the - one supplied as an argument. Two frameworks match - if their runtime types are the same or either one - is RuntimeType.Any and all specified version components - are equal. Negative (i.e. unspecified) version - components are ignored. - - The RuntimeFramework to be matched. - True on match, otherwise false - - - - StackFilter class is used to remove internal NUnit - entries from a stack trace so that the resulting - trace provides better information about the test. - - - - - Filters a raw stack trace and returns the result. - - The original stack trace - A filtered stack trace - - - - Provides methods to support legacy string comparison methods. - - - - - Compares two strings for equality, ignoring case if requested. - - The first string. - The second string.. - if set to true, the case of the letters in the strings is ignored. - Zero if the strings are equivalent, a negative number if strA is sorted first, a positive number if - strB is sorted first - - - - Compares two strings for equality, ignoring case if requested. - - The first string. - The second string.. - if set to true, the case of the letters in the strings is ignored. - True if the strings are equivalent, false if not. - - - - The TestCaseParameters class encapsulates method arguments and - other selected parameters needed for constructing - a parameterized test case. - - - - - The expected result to be returned - - - - - Default Constructor creates an empty parameter set - - - - - Construct a non-runnable ParameterSet, specifying - the provider exception that made it invalid. - - - - - Construct a parameter set with a list of arguments - - - - - - Construct a ParameterSet from an object implementing ITestCaseData - - - - - - The expected result of the test, which - must match the method return type. - - - - - Gets a value indicating whether an expected result was specified. - - - - - Helper class used to save and restore certain static or - singleton settings in the environment that affect tests - or which might be changed by the user tests. - - An internal class is used to hold settings and a stack - of these objects is pushed and popped as Save and Restore - are called. - - - - - Link to a prior saved context - - - - - Indicates that a stop has been requested - - - - - The event listener currently receiving notifications - - - - - The number of assertions for the current test - - - - - The current culture - - - - - The current UI culture - - - - - The current test result - - - - - The current Principal. - - - - - Initializes a new instance of the class. - - - - - Initializes a new instance of the class. - - An existing instance of TestExecutionContext. - - - - The current context, head of the list of saved contexts. - - - - - Gets the current context. - - The current context. - - - - Get the current context or return null if none is found. - - - - - Clear the current context. This is provided to - prevent "leakage" of the CallContext containing - the current context back to any runners. - - - - - Gets or sets the current test - - - - - The time the current test started execution - - - - - The time the current test started in Ticks - - - - - Gets or sets the current test result - - - - - Gets a TextWriter that will send output to the current test result. - - - - - The current test object - that is the user fixture - object on which tests are being executed. - - - - - Get or set the working directory - - - - - Get or set indicator that run should stop on the first error - - - - - Gets an enum indicating whether a stop has been requested. - - - - - The current test event listener - - - - - The current WorkItemDispatcher - - - - - The ParallelScope to be used by tests running in this context. - For builds with out the parallel feature, it has no effect. - - - - - Gets the RandomGenerator specific to this Test - - - - - Gets the assert count. - - The assert count. - - - - Gets or sets the test case timeout value - - - - - Gets a list of ITestActions set by upstream tests - - - - - Saves or restores the CurrentCulture - - - - - Saves or restores the CurrentUICulture - - - - - Gets or sets the current for the Thread. - - - - - Record any changes in the environment made by - the test code in the execution context so it - will be passed on to lower level tests. - - - - - Set up the execution environment to match a context. - Note that we may be running on the same thread where the - context was initially created or on a different thread. - - - - - Increments the assert count by one. - - - - - Increments the assert count by a specified amount. - - - - - Obtain lifetime service object - - - - - - Enumeration indicating whether the tests are - running normally or being cancelled. - - - - - Running normally with no stop requested - - - - - A graceful stop has been requested - - - - - A forced stop has been requested - - - - - Interface to be implemented by filters applied to tests. - The filter applies when running the test, after it has been - loaded, since this is the only time an ITest exists. - - - - - Unique Empty filter. - - - - - Indicates whether this is the EmptyFilter - - - - - Indicates whether this is a top-level filter, - not contained in any other filter. - - - - - Determine if a particular test passes the filter criteria. The default - implementation checks the test itself, its parents and any descendants. - - Derived classes may override this method or any of the Match methods - to change the behavior of the filter. - - The test to which the filter is applied - True if the test passes the filter, otherwise false - - - - Determine if a test matches the filter expicitly. That is, it must - be a direct match of the test itself or one of it's children. - - The test to which the filter is applied - True if the test matches the filter explicityly, otherwise false - - - - Determine whether the test itself matches the filter criteria, without - examining either parents or descendants. This is overridden by each - different type of filter to perform the necessary tests. - - The test to which the filter is applied - True if the filter matches the any parent of the test - - - - Determine whether any ancestor of the test matches the filter criteria - - The test to which the filter is applied - True if the filter matches the an ancestor of the test - - - - Determine whether any descendant of the test matches the filter criteria. - - The test to be matched - True if at least one descendant matches the filter criteria - - - - Create a TestFilter instance from an xml representation. - - - - - Create a TestFilter from it's TNode representation - - - - - Nested class provides an empty filter - one that always - returns true when called. It never matches explicitly. - - - - - Adds an XML node - - True if recursive - The added XML node - - - - Adds an XML node - - Parent node - True if recursive - The added XML node - - - - The TestCaseParameters class encapsulates method arguments and - other selected parameters needed for constructing - a parameterized test case. - - - - - Default Constructor creates an empty parameter set - - - - - Construct a non-runnable ParameterSet, specifying - the provider exception that made it invalid. - - - - - Construct a parameter set with a list of arguments - - - - - - Construct a ParameterSet from an object implementing ITestCaseData - - - - - - Type arguments used to create a generic fixture instance - - - - - TestListener provides an implementation of ITestListener that - does nothing. It is used only through its NULL property. - - - - - Called when a test has just started - - The test that is starting - - - - Called when a test case has finished - - The result of the test - - - - Construct a new TestListener - private so it may not be used. - - - - - Get a listener that does nothing - - - - - TestNameGenerator is able to create test names according to - a coded pattern. - - - - - Construct a TestNameGenerator - - The pattern used by this generator. - - - - Get the display name for a TestMethod and it's arguments - - A TestMethod - The display name - - - - Get the display name for a TestMethod and it's arguments - - A TestMethod - Arguments to be used - The display name - - - - Get the display name for a MethodInfo - - A MethodInfo - The display name - - - - Get the display name for a method with args - - A MethodInfo - Argument list for the method - The display name - - - - TestParameters is the abstract base class for all classes - that know how to provide data for constructing a test. - - - - - Default Constructor creates an empty parameter set - - - - - Construct a parameter set with a list of arguments - - - - - - Construct a non-runnable ParameterSet, specifying - the provider exception that made it invalid. - - - - - Construct a ParameterSet from an object implementing ITestData - - - - - - The RunState for this set of parameters. - - - - - The arguments to be used in running the test, - which must match the method signature. - - - - - A name to be used for this test case in lieu - of the standard generated name containing - the argument list. - - - - - Gets the property dictionary for this test - - - - - Applies ParameterSet _values to the test itself. - - A test. - - - - The original arguments provided by the user, - used for display purposes. - - - - - TestProgressReporter translates ITestListener events into - the async callbacks that are used to inform the client - software about the progress of a test run. - - - - - Initializes a new instance of the class. - - The callback handler to be used for reporting progress. - - - - Called when a test has just started - - The test that is starting - - - - Called when a test has finished. Sends a result summary to the callback. - to - - The result of the test - - - - Returns the parent test item for the targer test item if it exists - - - parent test item - - - - Makes a string safe for use as an attribute, replacing - characters characters that can't be used with their - corresponding xml representations. - - The string to be used - A new string with the _values replaced - - - - ParameterizedFixtureSuite serves as a container for the set of test - fixtures created from a given Type using various parameters. - - - - - Initializes a new instance of the class. - - The ITypeInfo for the type that represents the suite. - - - - Gets a string representing the type of test - - - - - - ParameterizedMethodSuite holds a collection of individual - TestMethods with their arguments applied. - - - - - Construct from a MethodInfo - - - - - - Gets a string representing the type of test - - - - - - SetUpFixture extends TestSuite and supports - Setup and TearDown methods. - - - - - Initializes a new instance of the class. - - The type. - - - - The Test abstract class represents a test within the framework. - - - - - Static value to seed ids. It's started at 1000 so any - uninitialized ids will stand out. - - - - - The SetUp methods. - - - - - The teardown methods - - - - - Constructs a test given its name - - The name of the test - - - - Constructs a test given the path through the - test hierarchy to its parent and a name. - - The parent tests full name - The name of the test - - - - TODO: Documentation needed for constructor - - - - - - Construct a test from a MethodInfo - - - - - - Gets or sets the id of the test - - - - - - Gets or sets the name of the test - - - - - Gets or sets the fully qualified name of the test - - - - - - Gets the name of the class containing this test. Returns - null if the test is not associated with a class. - - - - - Gets the name of the method implementing this test. - Returns null if the test is not implemented as a method. - - - - - Gets the TypeInfo of the fixture used in running this test - or null if no fixture type is associated with it. - - - - - Gets a MethodInfo for the method implementing this test. - Returns null if the test is not implemented as a method. - - - - - Whether or not the test should be run - - - - - Gets the name used for the top-level element in the - XML representation of this test - - - - - Gets a string representing the type of test. Used as an attribute - value in the XML representation of a test and has no other - function in the framework. - - - - - Gets a count of test cases represented by - or contained under this test. - - - - - Gets the properties for this test - - - - - Returns true if this is a TestSuite - - - - - Gets a bool indicating whether the current test - has any descendant tests. - - - - - Gets the parent as a Test object. - Used by the core to set the parent. - - - - - Gets this test's child tests - - A list of child tests - - - - Gets or sets a fixture object for running this test. - - - - - Static prefix used for ids in this AppDomain. - Set by FrameworkController. - - - - - Gets or Sets the Int value representing the seed for the RandomGenerator - - - - - - Creates a TestResult for this test. - - A TestResult suitable for this type of test. - - - - Modify a newly constructed test by applying any of NUnit's common - attributes, based on a supplied ICustomAttributeProvider, which is - usually the reflection element from which the test was constructed, - but may not be in some instances. The attributes retrieved are - saved for use in subsequent operations. - - An object implementing ICustomAttributeProvider - - - - Add standard attributes and members to a test node. - - - - - - - Returns the Xml representation of the test - - If true, include child tests recursively - - - - - Returns an XmlNode representing the current result after - adding it as a child of the supplied parent node. - - The parent node. - If true, descendant results are included - - - - - Compares this test to another test for sorting purposes - - The other test - Value of -1, 0 or +1 depending on whether the current test is less than, equal to or greater than the other test - - - - TestAssembly is a TestSuite that represents the execution - of tests in a managed assembly. - - - - - Initializes a new instance of the class - specifying the Assembly and the path from which it was loaded. - - The assembly this test represents. - The path used to load the assembly. - - - - Initializes a new instance of the class - for a path which could not be loaded. - - The path used to load the assembly. - - - - Gets the Assembly represented by this instance. - - - - - Gets the name used for the top-level element in the - XML representation of this test - - - - - TestFixture is a surrogate for a user test fixture class, - containing one or more tests. - - - - - Initializes a new instance of the class. - - Type of the fixture. - - - - The TestMethod class represents a Test implemented as a method. - - - - - The ParameterSet used to create this test method - - - - - Initializes a new instance of the class. - - The method to be used as a test. - - - - Initializes a new instance of the class. - - The method to be used as a test. - The suite or fixture to which the new test will be added - - - - Overridden to return a TestCaseResult. - - A TestResult for this test. - - - - Gets a bool indicating whether the current test - has any descendant tests. - - - - - Returns a TNode representing the current result after - adding it as a child of the supplied parent node. - - The parent node. - If true, descendant results are included - - - - - Gets this test's child tests - - A list of child tests - - - - Gets the name used for the top-level element in the - XML representation of this test - - - - - Returns the name of the method - - - - - TestSuite represents a composite test, which contains other tests. - - - - - Our collection of child tests - - - - - Initializes a new instance of the class. - - The name of the suite. - - - - Initializes a new instance of the class. - - Name of the parent suite. - The name of the suite. - - - - Initializes a new instance of the class. - - Type of the fixture. - - - - Initializes a new instance of the class. - - Type of the fixture. - - - - Sorts tests under this suite. - - - - - Adds a test to the suite. - - The test. - - - - Gets this test's child tests - - The list of child tests - - - - Gets a count of test cases represented by - or contained under this test. - - - - - - The arguments to use in creating the fixture - - - - - Set to true to suppress sorting this suite's contents - - - - - Overridden to return a TestSuiteResult. - - A TestResult for this test. - - - - Gets a bool indicating whether the current test - has any descendant tests. - - - - - Gets the name used for the top-level element in the - XML representation of this test - - - - - Returns an XmlNode representing the current result after - adding it as a child of the supplied parent node. - - The parent node. - If true, descendant results are included - - - - - Check that setup and teardown methods marked by certain attributes - meet NUnit's requirements and mark the tests not runnable otherwise. - - The attribute type to check for - - - - ThreadUtility provides a set of static methods convenient - for working with threads. - - - - - Do our best to Kill a thread - - The thread to kill - - - - Do our best to kill a thread, passing state info - - The thread to kill - Info for the ThreadAbortException handler - - - - TypeHelper provides static methods that operate on Types. - - - - - A special value, which is used to indicate that BestCommonType() method - was unable to find a common type for the specified arguments. - - - - - Gets the display name for a Type as used by NUnit. - - The Type for which a display name is needed. - The display name for the Type - - - - Gets the display name for a Type as used by NUnit. - - The Type for which a display name is needed. - The arglist provided. - The display name for the Type - - - - Returns the best fit for a common type to be used in - matching actual arguments to a methods Type parameters. - - The first type. - The second type. - Either type1 or type2, depending on which is more general. - - - - Determines whether the specified type is numeric. - - The type to be examined. - - true if the specified type is numeric; otherwise, false. - - - - - Convert an argument list to the required parameter types. - Currently, only widening numeric conversions are performed. - - An array of args to be converted - A ParameterInfo[] whose types will be used as targets - - - - Determines whether this instance can deduce type args for a generic type from the supplied arguments. - - The type to be examined. - The arglist. - The type args to be used. - - true if this the provided args give sufficient information to determine the type args to be used; otherwise, false. - - - - - Gets the _values for an enumeration, using Enum.GetTypes - where available, otherwise through reflection. - - - - - - - Gets the ids of the _values for an enumeration, - using Enum.GetNames where available, otherwise - through reflection. - - - - - - - The TypeWrapper class wraps a Type so it may be used in - a platform-independent manner. - - - - - Construct a TypeWrapper for a specified Type. - - - - - Gets the underlying Type on which this TypeWrapper is based. - - - - - Gets the base type of this type as an ITypeInfo - - - - - Gets the Name of the Type - - - - - Gets the FullName of the Type - - - - - Gets the assembly in which the type is declared - - - - - Gets the namespace of the Type - - - - - Gets a value indicating whether the type is abstract. - - - - - Gets a value indicating whether the Type is a generic Type - - - - - Returns true if the Type wrapped is T - - - - - Gets a value indicating whether the Type has generic parameters that have not been replaced by specific Types. - - - - - Gets a value indicating whether the Type is a generic Type definition - - - - - Gets a value indicating whether the type is sealed. - - - - - Gets a value indicating whether this type represents a static class. - - - - - Get the display name for this type - - - - - Get the display name for an object of this type, constructed with the specified args. - - - - - Returns a new ITypeInfo representing an instance of this generic Type using the supplied Type arguments - - - - - Returns a Type representing a generic type definition from which this Type can be constructed. - - - - - Returns an array of custom attributes of the specified type applied to this type - - - - - Returns a value indicating whether the type has an attribute of the specified type. - - - - - - - - Returns a flag indicating whether this type has a method with an attribute of the specified type. - - - - - - - Returns an array of IMethodInfos for methods of this Type - that match the specified flags. - - - - - Returns a value indicating whether this Type has a public constructor taking the specified argument Types. - - - - - Construct an object of this Type, using the specified arguments. - - - - - Override ToString() so that error messages in NUnit's own tests make sense - - - - - Represents the result of running a single test case. - - - - - Construct a TestCaseResult based on a TestMethod - - A TestMethod to which the result applies. - - - - Gets the number of test cases that failed - when running the test and all its children. - - - - - Gets the number of test cases that passed - when running the test and all its children. - - - - - Gets the number of test cases that were skipped - when running the test and all its children. - - - - - Gets the number of test cases that were inconclusive - when running the test and all its children. - - - - - Represents the result of running a test suite - - - - - Construct a TestSuiteResult base on a TestSuite - - The TestSuite to which the result applies - - - - Gets the number of test cases that failed - when running the test and all its children. - - - - - Gets the number of test cases that passed - when running the test and all its children. - - - - - Gets the number of test cases that were skipped - when running the test and all its children. - - - - - Gets the number of test cases that were inconclusive - when running the test and all its children. - - - - - Add a child result - - The child result to be added - - - - Class used to guard against unexpected argument values - or operations by throwing an appropriate exception. - - - - - Throws an exception if an argument is null - - The value to be tested - The name of the argument - - - - Throws an exception if a string argument is null or empty - - The value to be tested - The name of the argument - - - - Throws an ArgumentOutOfRangeException if the specified condition is not met. - - The condition that must be met - The exception message to be used - The name of the argument - - - - Throws an ArgumentException if the specified condition is not met. - - The condition that must be met - The exception message to be used - The name of the argument - - - - Throws an InvalidOperationException if the specified condition is not met. - - The condition that must be met - The exception message to be used - - - - The different targets a test action attribute can be applied to - - - - - Default target, which is determined by where the action attribute is attached - - - - - Target a individual test case - - - - - Target a suite of test cases - - - - - DefaultTestAssemblyBuilder loads a single assembly and builds a TestSuite - containing test fixtures present in the assembly. - - - - - The default suite builder used by the test assembly builder. - - - - - Initializes a new instance of the class. - - - - - Build a suite of tests from a provided assembly - - The assembly from which tests are to be built - A dictionary of options to use in building the suite - - A TestSuite containing the tests found in the assembly - - - - - Build a suite of tests given the filename of an assembly - - The filename of the assembly from which tests are to be built - A dictionary of options to use in building the suite - - A TestSuite containing the tests found in the assembly - - - - - FrameworkController provides a facade for use in loading, browsing - and running tests without requiring a reference to the NUnit - framework. All calls are encapsulated in constructors for - this class and its nested classes, which only require the - types of the Common Type System as arguments. - - The controller supports four actions: Load, Explore, Count and Run. - They are intended to be called by a driver, which should allow for - proper sequencing of calls. Load must be called before any of the - other actions. The driver may support other actions, such as - reload on run, by combining these calls. - - - - - Construct a FrameworkController using the default builder and runner. - - The AssemblyName or path to the test assembly - A prefix used for all test ids created under this controller. - A Dictionary of settings to use in loading and running the tests - - - - Construct a FrameworkController using the default builder and runner. - - The test assembly - A prefix used for all test ids created under this controller. - A Dictionary of settings to use in loading and running the tests - - - - Construct a FrameworkController, specifying the types to be used - for the runner and builder. This constructor is provided for - purposes of development. - - The full AssemblyName or the path to the test assembly - A prefix used for all test ids created under this controller. - A Dictionary of settings to use in loading and running the tests - The Type of the test runner - The Type of the test builder - - - - Construct a FrameworkController, specifying the types to be used - for the runner and builder. This constructor is provided for - purposes of development. - - The test assembly - A prefix used for all test ids created under this controller. - A Dictionary of settings to use in loading and running the tests - The Type of the test runner - The Type of the test builder - - - - Gets the ITestAssemblyBuilder used by this controller instance. - - The builder. - - - - Gets the ITestAssemblyRunner used by this controller instance. - - The runner. - - - - Gets the AssemblyName or the path for which this FrameworkController was created - - - - - Gets the Assembly for which this - - - - - Gets a dictionary of settings for the FrameworkController - - - - - Inserts environment element - - Target node - The new node - - - - Inserts settings element - - Target node - Settings dictionary - The new node - - - - FrameworkControllerAction is the base class for all actions - performed against a FrameworkController. - - - - - LoadTestsAction loads a test into the FrameworkController - - - - - LoadTestsAction loads the tests in an assembly. - - The controller. - The callback handler. - - - - ExploreTestsAction returns info about the tests in an assembly - - - - - Initializes a new instance of the class. - - The controller for which this action is being performed. - Filter used to control which tests are included (NYI) - The callback handler. - - - - CountTestsAction counts the number of test cases in the loaded TestSuite - held by the FrameworkController. - - - - - Construct a CountsTestAction and perform the count of test cases. - - A FrameworkController holding the TestSuite whose cases are to be counted - A string containing the XML representation of the filter to use - A callback handler used to report results - - - - RunTestsAction runs the loaded TestSuite held by the FrameworkController. - - - - - Construct a RunTestsAction and run all tests in the loaded TestSuite. - - A FrameworkController holding the TestSuite to run - A string containing the XML representation of the filter to use - A callback handler used to report results - - - - RunAsyncAction initiates an asynchronous test run, returning immediately - - - - - Construct a RunAsyncAction and run all tests in the loaded TestSuite. - - A FrameworkController holding the TestSuite to run - A string containing the XML representation of the filter to use - A callback handler used to report results - - - - StopRunAction stops an ongoing run. - - - - - Construct a StopRunAction and stop any ongoing run. If no - run is in process, no error is raised. - - The FrameworkController for which a run is to be stopped. - True the stop should be forced, false for a cooperative stop. - >A callback handler used to report results - A forced stop will cause threads and processes to be killed as needed. - - - - The ITestAssemblyBuilder interface is implemented by a class - that is able to build a suite of tests given an assembly or - an assembly filename. - - - - - Build a suite of tests from a provided assembly - - The assembly from which tests are to be built - A dictionary of options to use in building the suite - A TestSuite containing the tests found in the assembly - - - - Build a suite of tests given the filename of an assembly - - The filename of the assembly from which tests are to be built - A dictionary of options to use in building the suite - A TestSuite containing the tests found in the assembly - - - - The ITestAssemblyRunner interface is implemented by classes - that are able to execute a suite of tests loaded - from an assembly. - - - - - Gets the tree of loaded tests, or null if - no tests have been loaded. - - - - - Gets the tree of test results, if the test - run is completed, otherwise null. - - - - - Indicates whether a test has been loaded - - - - - Indicates whether a test is currently running - - - - - Indicates whether a test run is complete - - - - - Loads the tests found in an Assembly, returning an - indication of whether or not the load succeeded. - - File name of the assembly to load - Dictionary of options to use in loading the test - An ITest representing the loaded tests - - - - Loads the tests found in an Assembly, returning an - indication of whether or not the load succeeded. - - The assembly to load - Dictionary of options to use in loading the test - An ITest representing the loaded tests - - - - Count Test Cases using a filter - - The filter to apply - The number of test cases found - - - - Run selected tests and return a test result. The test is run synchronously, - and the listener interface is notified as it progresses. - - Interface to receive ITestListener notifications. - A test filter used to select tests to be run - - - - Run selected tests asynchronously, notifying the listener interface as it progresses. - - Interface to receive EventListener notifications. - A test filter used to select tests to be run - - - - Wait for the ongoing run to complete. - - Time to wait in milliseconds - True if the run completed, otherwise false - - - - Signal any test run that is in process to stop. Return without error if no test is running. - - If true, kill any test-running threads - - - - Implementation of ITestAssemblyRunner - - - - - Initializes a new instance of the class. - - The builder. - - - - Gets the default level of parallel execution (worker threads) - - - - - The tree of tests that was loaded by the builder - - - - - The test result, if a run has completed - - - - - Indicates whether a test is loaded - - - - - Indicates whether a test is running - - - - - Indicates whether a test run is complete - - - - - Our settings, specified when loading the assembly - - - - - The top level WorkItem created for the assembly as a whole - - - - - The TestExecutionContext for the top level WorkItem - - - - - Loads the tests found in an Assembly - - File name of the assembly to load - Dictionary of option settings for loading the assembly - True if the load was successful - - - - Loads the tests found in an Assembly - - The assembly to load - Dictionary of option settings for loading the assembly - True if the load was successful - - - - Count Test Cases using a filter - - The filter to apply - The number of test cases found - - - - Run selected tests and return a test result. The test is run synchronously, - and the listener interface is notified as it progresses. - - Interface to receive EventListener notifications. - A test filter used to select tests to be run - - - - - Run selected tests asynchronously, notifying the listener interface as it progresses. - - Interface to receive EventListener notifications. - A test filter used to select tests to be run - - RunAsync is a template method, calling various abstract and - virtual methods to be overridden by derived classes. - - - - - Wait for the ongoing run to complete. - - Time to wait in milliseconds - True if the run completed, otherwise false - - - - Initiate the test run. - - - - - Signal any test run that is in process to stop. Return without error if no test is running. - - If true, kill any test-running threads - - - - Create the initial TestExecutionContext used to run tests - - The ITestListener specified in the RunAsync call - - - - Handle the the Completed event for the top level work item - - - - - The Assert class contains a collection of static methods that - implement the most common assertions used in NUnit. - - - - - Verifies that the first int is greater than the second - int. 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 int is greater than the second - int. 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 - - - - 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 - - - - 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 - - - - 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 - - - - 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 - - - - 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 - - - - 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 - - - - 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 - - - - 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 - - - - 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 - - - - 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 - - - - 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 - - - - 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 - - - - 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 - - - - 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 - - - - Verifies that the first value is greater than or equal to 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 or equal to 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 or equal to 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 or equal to 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 or equal to 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 or equal to 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 or equal to 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 or equal to 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 or equal to 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 or equal to 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 or equal to 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 or equal to 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 or equal to 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 or equal to 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 or equal to 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 or equal to 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 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 - - - - 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 - - - - 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 - - - - 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 - - - - 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 - - - - 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 - - - - 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 - - - - 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 - - - - 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 - 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 - - - - 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 - 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 - - - - 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 - 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 - - - - 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 - 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 - - - - 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 - - - - 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 - - - - 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 - - - - 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 - - - - 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 - - - - 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 - - - - 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 - - - - 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 - - - - 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 - - - - 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 - - - - 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. - - - - - - - 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. - - - - - 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 - - - - 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 - - - - 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 - - - - 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 - - - - 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 - - - - 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 - - - - 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 - - - - 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 - - - - 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 - - - - Verifies that a delegate throws a particular exception when called. - - The exception Type expected - A TestDelegate - 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 TestDelegate - - - - Verifies that a delegate throws a particular exception when called. - - Type of the expected exception - A TestDelegate - 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 TestDelegate - - - - 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 - - - - 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 - - - - Verifies that a delegate throws an exception of a certain Type - or one derived from it 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 of a certain Type - or one derived from it when called and returns it. - - A TestDelegate - - - - Verifies that a delegate does not throw an exception - - A TestDelegate - 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 TestDelegate - - - - 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 - - - - Asserts that a condition is true. If the condition is false the method throws - an . - - A lambda that returns a Boolean - 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 . - - A lambda that returns a Boolean - - - - 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. - - 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 - - - - 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 - - - - 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 - 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 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 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. - Used as a synonym for That in rare cases where a private setter - causes a Visual Basic compilation error. - - 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. - Used as a synonym for That in rare cases where a private setter - causes a Visual Basic compilation error. - - - This method is provided for use by VB developers needing to test - the value of properties with private setters. - - 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 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 - - - - 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 - - - - 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 - - - - 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 - - - - 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 - - - - 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 - - - - 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 - - - - 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 - - - - Delegate used by tests that execute code and - capture any thrown exception. - - - - - AssertionHelper is an optional base class for user tests, - allowing the use of shorter ids for constraints and - asserts and avoiding conflict with the definition of - , from which it inherits much of its - behavior, in certain mock object frameworks. - - - - - 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 - - - - 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. - - 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 - - - - 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 - - - - 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 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 - - - - Returns a ListMapper based on a collection. - - The original collection - - - - - 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 - 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. - - 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 - - - - 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 - - - - Asserts that a condition is true. If the condition is false the method throws - an . - - A lambda that returns a Boolean - 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 . - - A lambda that returns a Boolean - - - - 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 - - - - Apply a constraint to an actual value, succeeding if the constraint - is satisfied and throwing an InconclusiveException 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 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 - - - - Marks a test that must run in a particular threading apartment state, causing it - to run in a separate thread if necessary. - - - - - Construct an ApartmentAttribute - - The apartment state that this test must be run under. You must pass in a valid apartment state. - - - - Provides the Author of a test or test fixture. - - - - - Initializes a new instance of the class. - - The name of the author. - - - - Initializes a new instance of the class. - - The name of the author. - The email address of the author. - - - - 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 - - - - - Modifies a test by adding a category to it. - - The test to modify - - - - Marks a test to use a combinatorial join of any argument - data provided. Since this is the default, the attribute is - optional. - - - - - Default constructor - - - - - Marks a test to use a particular CombiningStrategy to join - any parameter data provided. Since this is the default, the - attribute is optional. - - - - - Construct a CombiningStrategyAttribute incorporating an - ICombiningStrategy and an IParamterDataProvider. - - Combining strategy to be used in combining data - An IParameterDataProvider to supply data - - - - Construct a CombiningStrategyAttribute incorporating an object - that implements ICombiningStrategy and an IParameterDataProvider. - This constructor is provided for CLS compliance. - - Combining strategy to be used in combining data - An IParameterDataProvider to supply data - - - - Construct one or more TestMethods from a given MethodInfo, - using available parameter data. - - The MethodInfo for which tests are to be constructed. - The suite to which the tests will be added. - One or more TestMethods - - - - Modify the test by adding the name of the combining strategy - to the properties. - - The test to modify - - - - 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 - - - - Causes a test to be skipped if this CultureAttribute is not satisfied. - - The test to modify - - - - Tests to determine if the current culture is supported - based on the properties of this attribute. - - True, if the current culture is supported - - - - Test to determine if the a particular culture or comma- - delimited set of cultures is in use. - - Name of the culture or comma-separated list of culture ids - True if the culture is in use on the system - - - - Test to determine if one of a collection of cultures - is being used currently. - - - - - - - The abstract base class for all data-providing attributes - defined by NUnit. Used to select all data sources for a - method, class or parameter. - - - - - Default constructor - - - - - 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 a field, property or method providing a set of datapoints to - be used in executing any theories within the same fixture that require an - argument of the Type provided. The data source may provide an array of - the required Type or an . - Synonymous with DatapointSourceAttribute. - - - - - Used to mark a field, property or method providing a set of datapoints to - be used in executing any theories within the same fixture that require an - argument of the Type provided. The data source may provide an array of - the required Type or an . - Synonymous with DatapointsAttribute. - - - - - Attribute used to provide descriptive text about a - test case or fixture. - - - - - Construct a description Attribute - - The text of the description - - - - 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 - - - - Modifies a test by marking it as explicit. - - The test to modify - - - - 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 giving a reason for ignoring the test - - The reason for ignoring the test - - - - The date in the future to stop ignoring the test as a string in UTC time. - For example for a date and time, "2014-12-25 08:10:00Z" or for just a date, - "2014-12-25". If just a date is given, the Ignore will expire at midnight UTC. - - - Once the ignore until date has passed, the test will be marked - as runnable. Tests with an ignore until date will have an IgnoreUntilDate - property set which will appear in the test results. - - The string does not contain a valid string representation of a date and time. - - - - Modifies a test by marking it as Ignored. - - The test to modify - - - - 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 items 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 - - - - - LevelOfParallelismAttribute is used to set the number of worker threads - that may be allocated by the framework for running tests. - - - - - Construct a LevelOfParallelismAttribute. - - The number of worker threads to be created by the framework. - - - - Summary description for MaxTimeAttribute. - - - - - Construct a MaxTimeAttribute, given a time in milliseconds. - - The maximum elapsed time in milliseconds - - - - The abstract base class for all custom attributes defined by NUnit. - - - - - Default constructor - - - - - Attribute used to identify a method that is called once - to perform setup before any child tests are run. - - - - - Attribute used to identify a method that is called once - after all the child tests have run. The method is - guaranteed to be called, even if an exception is thrown. - - - - - Marks a test to use a pairwise join of any argument - data provided. Arguments will be combined in such a - way that all possible pairs of arguments are used. - - - - - Default constructor - - - - - ParallelizableAttribute is used to mark tests that may be run in parallel. - - - - - Construct a ParallelizableAttribute using default ParallelScope.Self. - - - - - Construct a ParallelizableAttribute with a specified scope. - - The ParallelScope associated with this attribute. - - - - Modify the context to be used for child tests - - The current TestExecutionContext - - - - The ParallelScope enumeration permits specifying the degree to - which a test and its descendants may be run in parallel. - - - - - No Parallelism is permitted - - - - - The test itself may be run in parallel with others at the same level - - - - - Descendants of the test may be run in parallel with one another - - - - - Descendants of the test down to the level of TestFixtures may be run in parallel - - - - - 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-delimited list of platforms - - - - Causes a test to be skipped if this PlatformAttribute is not satisfied. - - The test to modify - - - - 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 - - - - - Modifies a test by adding properties to it. - - The test to modify - - - - RandomAttribute is used to supply a set of random _values - to a single parameter of a parameterized test. - - - - - Construct a random set of values appropriate for the Type of the - parameter on which the attribute appears, specifying only the count. - - - - - - Construct a set of ints within a specified range - - - - - Construct a set of unsigned ints within a specified range - - - - - Construct a set of longs within a specified range - - - - - Construct a set of unsigned longs within a specified range - - - - - Construct a set of shorts within a specified range - - - - - Construct a set of unsigned shorts within a specified range - - - - - Construct a set of doubles within a specified range - - - - - Construct a set of floats within a specified range - - - - - Construct a set of bytes within a specified range - - - - - Construct a set of sbytes within a specified range - - - - - 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 unsigned ints using default step of 1 - - - - - - - Construct a range of unsigned ints specifying the step size - - - - - - - - Construct a range of longs using a default step of 1 - - - - - - - Construct a range of longs - - - - - - - - Construct a range of unsigned longs using default step of 1 - - - - - - - Construct a range of unsigned longs specifying the step size - - - - - - - - Construct a range of doubles - - - - - - - - Construct a range of floats - - - - - - - - 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 - - - - Wrap a command and return the result. - - The command to be wrapped - The wrapped command - - - - The test command for the RepeatAttribute - - - - - Initializes a new instance of the class. - - The inner command. - The number of repetitions - - - - Runs the test, saving a TestResult in the supplied TestExecutionContext. - - The context in which the test should run. - A TestResult - - - - 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 in the STA, causing it - to run in a separate thread if necessary. - - - - - Construct a RequiresSTAAttribute - - - - - Marks a test that must run on a separate thread. - - - - - Construct a RequiresThreadAttribute - - - - - Construct a RequiresThreadAttribute, specifying the apartment - - - - - 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 - - - - Wrap a command and return the result. - - The command to be wrapped - The wrapped command - - - - The test command for the RetryAttribute - - - - - Initializes a new instance of the class. - - The inner command. - The number of repetitions - - - - Runs the test, saving a TestResult in the supplied TestExecutionContext. - - The context in which the test should run. - A TestResult - - - - Marks a test to use a Sequential join of any argument - data provided. Arguments will be combined into test cases, - taking the next value of each argument until all are used. - - - - - Default constructor - - - - - Summary description for SetCultureAttribute. - - - - - Construct given the name of a culture - - - - - - Summary description for SetUICultureAttribute. - - - - - Construct given the name of a culture - - - - - - 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 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 class that contains one-time SetUp - and/or TearDown methods that apply to all the tests in a - namespace or an assembly. - - - - - SetUpFixtureAttribute is used to identify a SetUpFixture - - - - - Build a SetUpFixture from type provided. Normally called for a Type - on which the attribute has been placed. - - The type info of the fixture to be used. - A SetUpFixture object as a TestSuite. - - - - 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. - - - - - Provide actions to execute before and after tests. - - - - - Executed before each test is run - - The test that is going to be run. - - - - Executed after each test is run - - The test that has just been run. - - - - Provides the target for the action attribute - - - - - 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")] - public void TestDescriptionMethod() - {} - } - - - - - - Descriptive text for this test - - - - - The author of this test - - - - - The type that this test is testing - - - - - Modifies a test by adding a description, if not already set. - - The test to modify - - - - Gets or sets the expected result. - - The result. - - - - Returns true if an expected result has been set - - - - - Construct a TestMethod from a given method. - - The method for which a test is to be constructed. - The suite to which the test will be added. - A TestMethod - - - - TestCaseAttribute is used to mark parameterized test cases - and provide them with their arguments. - - - - - 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 or sets the name of the test. - - The name of the test. - - - - Gets or sets the RunState of this test case. - - - - - Gets the list of arguments to a test case - - - - - Gets the properties of the test case - - - - - Gets or sets the expected result. - - The result. - - - - Returns true if the expected result has been set - - - - - Gets or sets the description. - - The description. - - - - The author of this test - - - - - The type that this test is testing - - - - - Gets or sets the reason for ignoring the test - - - - - Gets or sets a value indicating whether this is explicit. - - - true if explicit; otherwise, false. - - - - - Gets or sets the reason for not running the test. - - The reason. - - - - Gets or sets the ignore reason. When set to a non-null - non-empty value, the test is marked as ignored. - - The ignore reason. - - - - Comma-delimited list of platforms to run the test for - - - - - Comma-delimited list of platforms to not run the test for - - - - - Gets and sets the category for this test case. - May be a comma-separated list of categories. - - - - - Performs several special conversions allowed by NUnit in order to - permit arguments with types that cannot be used in the constructor - of an Attribute such as TestCaseAttribute or to simplify their use. - - The arguments to be converted - The ParameterInfo array for the method - - - - Construct one or more TestMethods from a given MethodInfo, - using available parameter data. - - The MethodInfo for which tests are to be constructed. - The suite to which the tests will be added. - One or more TestMethods - - - - TestCaseSourceAttribute indicates the source to be used to - provide test cases for a test method. - - - - - Construct with the name of the method, property or field that will provide data - - The name of a static method, property or field that will provide data. - - - - Construct with a Type and name - - The Type that will provide data - The name of a static method, property or field that will provide data. - - - - Construct with a Type - - The type 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 - - - - - Gets or sets the category associated with every fixture created from - this attribute. May be a single category or a comma-separated list. - - - - - Construct one or more TestMethods from a given MethodInfo, - using available parameter data. - - The IMethod for which tests are to be constructed. - The suite to which the tests will be added. - One or more TestMethods - - - - Returns a set of ITestCaseDataItems for use as arguments - to a parameterized test method. - - The method for which data is needed. - - - - - TestFixtureAttribute is used to mark a class that represents a TestFixture. - - - - - 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. - - - - - - Gets or sets the name of the test. - - The name of the test. - - - - Gets or sets the RunState of this test fixture. - - - - - The arguments originally provided to the attribute - - - - - Properties pertaining to this fixture - - - - - Get or set the type arguments. If not set - explicitly, any leading arguments that are - Types are taken as type arguments. - - - - - Descriptive text for this fixture - - - - - The author of this fixture - - - - - The type that this fixture is testing - - - - - Gets or sets the ignore reason. May set RunState as a side effect. - - The ignore reason. - - - - Gets or sets the reason for not running the fixture. - - The reason. - - - - Gets or sets the ignore reason. When set to a non-null - non-empty value, the test is marked as ignored. - - The ignore reason. - - - - Gets or sets a value indicating whether this is explicit. - - - true if explicit; otherwise, false. - - - - - Gets and sets the category for this fixture. - May be a comma-separated list of categories. - - - - - Build a fixture from type provided. Normally called for a Type - on which the attribute has been placed. - - The type info of the fixture to be used. - A an IEnumerable holding one TestFixture object. - - - - Attribute used to identify a method that is - called before any tests in a fixture are run. - - - - - TestCaseSourceAttribute indicates the source to be used to - provide test fixture instances for a test class. - - - - - Error message string is public so the tests can use it - - - - - Construct with the name of the method, property or field that will provide data - - The name of a static method, property or field that will provide data. - - - - Construct with a Type and name - - The Type that will provide data - The name of a static method, property or field that will provide data. - - - - Construct with a Type - - The type 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 - - - - - Gets or sets the category associated with every fixture created from - this attribute. May be a single category or a comma-separated list. - - - - - Construct one or more TestFixtures from a given Type, - using available parameter data. - - The TypeInfo for which fixures are to be constructed. - One or more TestFixtures as TestSuite - - - - Returns a set of ITestFixtureData items for use as arguments - to a parameterized test fixture. - - The type for which data is needed. - - - - - 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. - - - - - Indicates which class the test or test fixture is testing - - - - - Initializes a new instance of the class. - - The type that is being tested. - - - - Initializes a new instance of the class. - - The type that is being tested. - - - - 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")] - public void TestDescriptionMethod() - {} - } - - - - - - Construct the attribute, specifying a combining strategy and source of parameter data. - - - - - Used 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 class or assembly, sets the default timeout - for all contained test methods. - - - - - Construct a TimeoutAttribute given a time in milliseconds - - The timeout value in milliseconds - - - - 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 - - - - - Constructs for use with an Enum parameter. Will pass every enum - value in to the test. - - - - - 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 - - - - - 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 a static method, property or field 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 a static 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 - - - - - Gets an enumeration of data items for use as arguments - for a test method parameter. - - The parameter for which data is needed - - An enumeration containing individual data items - - - - - A set of Assert methods operating 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 - 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 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 - 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 - 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 - 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 - 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 - 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 - 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 - Arguments to be used in formatting the message - - - - Asserts that the superset does not contain the subset - - The IEnumerable subset to be considered - The IEnumerable superset to be considered - - - - Asserts that the superset does not contain the subset - - The IEnumerable subset to be considered - The IEnumerable superset to be considered - The message that will be displayed on failure - Arguments to be used in formatting the message - - - - Asserts that the superset contains the subset. - - The IEnumerable subset to be considered - The IEnumerable superset to be considered - - - - Asserts that the superset contains the subset. - - The IEnumerable subset to be considered - The IEnumerable superset to be considered - The message that will be displayed on failure - Arguments to be used in formatting the message - - - - Asserts that the subset does not contain the superset - - The IEnumerable superset to be considered - The IEnumerable subset to be considered - - - - Asserts that the subset does not contain the superset - - 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 the subset contains the superset. - - The IEnumerable superset to be considered - The IEnumerable subset to be considered - - - - Asserts that the subset contains the superset. - - 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 - - - - 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 - - - - 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 - - - - 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 - - - - Provides a platform-independent methods for getting attributes - for use by AttributeConstraint and AttributeExistsConstraint. - - - - - Gets the custom attributes from the given object. - - Portable libraries do not have an ICustomAttributeProvider, so we need to cast to each of - it's direct subtypes and try to get attributes off those instead. - The actual. - Type of the attribute. - if set to true [inherit]. - A list of the given attribute on the given object. - - - - A MarshalByRefObject that lives forever - - - - - Obtains a lifetime service object to control the lifetime policy for this instance. - - - - - This class is a System.Diagnostics.Stopwatch on operating systems that support it. On those that don't, - it replicates the functionality at the resolution supported. - - - - - 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. - - - - - - - AndConstraint succeeds only if both members succeed. - - - - - Create an AndConstraint from two other constraints - - The first constraint - The second constraint - - - - Gets text describing a 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 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 - - - - AssignableFromConstraint is used to test that an object - can be assigned from a given Type. - - - - - Construct an AssignableFromConstraint for the type provided - - - - - - Apply the constraint to an actual value, returning true if it succeeds - - The actual argument - True if the constraint succeeds, otherwise false. - - - - AssignableToConstraint is used to test that an object - can be assigned to a given Type. - - - - - Construct an AssignableToConstraint for the type provided - - - - - - Apply the constraint to an actual value, returning true if it succeeds - - The actual argument - True if the constraint succeeds, otherwise false. - - - - 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 attribute - Type and base constraint. - - - - - - - Determines whether the Type or other provider has the - expected attribute and if its value matches the - additional constraint specified. - - - - - Returns a string representation of the constraint. - - - - - AttributeExistsConstraint tests for the presence of a - specified attribute on a Type. - - - - - Constructs an AttributeExistsConstraint for a specific attribute Type - - - - - - The Description of what this constraint tests, for - use in messages and in the ConstraintResult. - - - - - Tests whether the object provides the expected attribute. - - A Type, MethodInfo, or other ICustomAttributeProvider - True if the expected attribute is present, otherwise false - - - - BinaryConstraint is the abstract base of all constraints - that combine two other constraints in some fashion. - - - - - The first constraint being combined - - - - - The second constraint being combined - - - - - Construct a BinaryConstraint from two other constraints - - The first constraint - The second constraint - - - - BinarySerializableConstraint tests whether - an object is serializable in binary format. - - - - - The Description of what this constraint tests, for - use in messages and in the ConstraintResult. - - - - - Test whether the constraint is satisfied by a given value - - The value to be tested - True for success, false for failure - - - - Returns the string representation - - - - - 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 - - - - - - - CollectionContainsConstraint is used to test whether a collection - contains an expected object as a member. - - - - - Construct a CollectionContainsConstraint - - - - - - The Description of what this constraint tests, for - use in messages and in the ConstraintResult. - - - - - Gets the expected object - - - - - Test whether the expected item is contained in the collection - - - - - - - CollectionEquivalentConstraint is used to determine whether two - collections are equivalent. - - - - - Construct a CollectionEquivalentConstraint - - - - - - The Description of what this constraint tests, for - use in messages and in the ConstraintResult. - - - - - Test whether two collections are equivalent - - - - - - - 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 ignore case and return 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. - - - - Compares two collection members for equality - - - - - Return a new CollectionTally for use in making tests - - The collection to be included in the tally - - - - CollectionOrderedConstraint is used to test whether a collection is ordered. - - - - - Construct a CollectionOrderedConstraint - - - - - If used performs a reverse comparison - - - - - Modifies the constraint to use an and returns self. - - - - - Modifies the constraint to use an and returns self. - - - - - Modifies the constraint to use a and returns self. - - - - - Modifies the constraint to test ordering by the value of - a specified property and returns self. - - - - - The Description of what this constraint tests, for - use in messages and in the ConstraintResult. - - - - - Test whether the collection is ordered - - - - - - - Returns the string representation of the constraint. - - - - - - 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 - - - - The Description of what this constraint tests, for - use in messages and in the ConstraintResult. - - - - - Test whether the actual collection is a subset of - the expected collection provided. - - - - - - - CollectionSupersetConstraint is used to determine whether - one collection is a superset of another - - - - - Construct a CollectionSupersetConstraint - - The collection that the actual value is expected to be a superset of - - - - The Description of what this constraint tests, for - use in messages and in the ConstraintResult. - - - - - Test whether the actual collection is a superset of - the expected collection provided. - - - - - - - CollectionTally counts (tallies) the number of - occurrences of each object in one or more enumerations. - - - - - Construct a CollectionTally object from a comparer and a collection - - - - - The number of objects remaining in the tally - - - - - 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 - - - - ComparisonAdapter class centralizes all comparisons of - _values in NUnit, adapting to the use of any provided - , - or . - - - - - Gets the default ComparisonAdapter, which wraps an - NUnitComparer object. - - - - - Returns a ComparisonAdapter that wraps an - - - - - Returns a ComparisonAdapter that wraps an - - - - - Returns a ComparisonAdapter that wraps a - - - - - Compares two objects - - - - - Construct a default ComparisonAdapter - - - - - Construct a ComparisonAdapter for an - - - - - Compares two objects - - - - - - - - ComparerAdapter extends and - allows use of an or - to actually perform the comparison. - - - - - Construct a ComparisonAdapter for an - - - - - Compare a Type T to an object - - - - - Construct a ComparisonAdapter for a - - - - - Compare a Type T to an object - - - - - 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 - - - - - 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 - - - - Modifies the constraint to use an and returns self - - The comparer used for comparison tests - A constraint modified to use the given comparer - - - - Modifies the constraint to use an and returns self - - The comparer used for comparison tests - A constraint modified to use the given comparer - - - - Modifies the constraint to use a and returns self - - The comparer used for comparison tests - A constraint modified to use the given comparer - - - - Delegate used to delay evaluation of the actual value - to be used in evaluating a constraint - - - - - The Constraint class is the base of all built-in constraints - within NUnit. It provides the operator overloads used to combine - constraints. - - - - - Construct a constraint with optional arguments - - Arguments to be saved - - - - 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. - - - - - The Description of what this constraint tests, for - use in messages and in the ConstraintResult. - - - - - Arguments provided to this Constraint, for use in - formatting the description. - - - - - The ConstraintBuilder holding this constraint - - - - - Applies the constraint to an actual value, returning a ConstraintResult. - - The value to be tested - A ConstraintResult - - - - Applies the constraint to 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 - A ConstraintResult - - - - 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 - A ConstraintResult - - - - 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 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. - - - - - 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. - - - - - Resolves any pending operators and returns the resolved 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 reorganized. a ConstraintStack holds - input constraints as well as the results of each - operator applied. - - - - - OperatorStack is a type-safe stack for holding ConstraintOperators - - - - - Initializes a new instance of the class. - - The ConstraintBuilder using this stack. - - - - Gets a value indicating whether this is empty. - - true if empty; otherwise, false. - - - - Gets the topmost operator without modifying the stack. - - - - - Pushes the specified operator onto the stack. - - The operator to put onto the stack. - - - - Pops the topmost operator from the stack. - - The topmost operator on the stack - - - - ConstraintStack is a type-safe stack for holding Constraints - - - - - Initializes a new instance of the class. - - The ConstraintBuilder using this stack. - - - - Gets a value indicating whether this is empty. - - true if empty; otherwise, false. - - - - Pushes the specified constraint. As a side effect, - the constraint's Builder field is set to the - ConstraintBuilder owning this stack. - - The constraint to put onto the stack - - - - Pops this topmost constraint from the stack. - As a side effect, the constraint's Builder - field is set to null. - - The topmost contraint on the stack - - - - 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 expression 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. - - - - - 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 - reorganized. When a constraint is appended, it is returned as the - value of the operation so that modifiers may be applied. However, - any partially built expression is attached to the constraint for - later resolution. When an operator is appended, the partial - expression is returned. If it's a self-resolving operator, then - a ResolvableConstraintExpression is returned. - - - - - 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. Note that the constraint - is not reduced at this time. For example, if there - is a NotOperator on the stack we don't reduce and - return a NotConstraint. The original constraint must - be returned because it may support modifiers that - are yet to be applied. - - - - - 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 ConstraintExpression, which will apply - the following constraint to all members of a collection, - succeeding only if a specified number of them succeed. - - - - - 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 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 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. - - - - - With is currently a NOP - reserved for future use. - - - - - 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 for null - - - - - Returns a constraint that tests for True - - - - - Returns a constraint that tests for False - - - - - Returns a constraint that tests for a positive value - - - - - Returns a constraint that tests for a negative value - - - - - 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 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 supplied argument - - - - - Returns a constraint that tests whether the - actual value is greater than or equal to the supplied argument - - - - - Returns a constraint that tests whether the - actual value is greater than or equal to the supplied argument - - - - - Returns a constraint that tests whether the - actual value is less than the supplied argument - - - - - Returns a constraint that tests whether the - actual value is less than or equal to the supplied argument - - - - - Returns a constraint that tests whether the - actual value is less than or equal to the supplied 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 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 tests whether the actual value - is a superset of the collection supplied as an argument. - - - - - Returns a constraint that tests whether a collection is ordered - - - - - 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 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 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 ends with the substring supplied as an argument. - - - - - Returns a constraint that succeeds if the actual - value matches the regular expression supplied as an argument. - - - - - Returns a constraint that succeeds if the actual - value matches the regular expression supplied as an argument. - - - - - Returns a constraint that succeeds if the actual - value matches the regular expression 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 a subpath of the 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 constraint that succeeds if the value - is a file or directory and it exists. - - - - - Helper class with properties and methods that supply - a number of constraints used in Asserts. - - - - - 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 ConstraintExpression, which will apply - the following constraint to all members of a collection, - succeeding only if a specified number of them succeed. - - - - - 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 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 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 for null - - - - - Returns a constraint that tests for True - - - - - Returns a constraint that tests for False - - - - - Returns a constraint that tests for a positive value - - - - - Returns a constraint that tests for a negative value - - - - - 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 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 supplied argument - - - - - Returns a constraint that tests whether the - actual value is greater than or equal to the supplied argument - - - - - Returns a constraint that tests whether the - actual value is greater than or equal to the supplied argument - - - - - Returns a constraint that tests whether the - actual value is less than the supplied argument - - - - - Returns a constraint that tests whether the - actual value is less than or equal to the supplied argument - - - - - Returns a constraint that tests whether the - actual value is less than or equal to the supplied 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 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 tests whether the actual value - is a superset of the collection supplied as an argument. - - - - - Returns a constraint that tests whether a collection is ordered - - - - - 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 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 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 regular expression supplied as an argument. - - - - - Returns a constraint that succeeds if the actual - value matches the regular expression supplied as an argument. - - - - - Returns a constraint that succeeds if the actual - value matches the regular expression 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 a subpath of the 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. - - - - - ConstraintStatus represents the status of a ConstraintResult - returned by a Constraint being applied to an actual value. - - - - - The status has not yet been set - - - - - The constraint succeeded - - - - - The constraint failed - - - - - An error occured in applying the constraint (reserved for future use) - - - - - Contain the result of matching a against an actual value. - - - - - Constructs a for a particular . - - The Constraint to which this result applies. - The actual value to which the Constraint was applied. - - - - Constructs a for a particular . - - The Constraint to which this result applies. - The actual value to which the Constraint was applied. - The status of the new ConstraintResult. - - - - Constructs a for a particular . - - The Constraint to which this result applies. - The actual value to which the Constraint was applied. - If true, applies a status of Success to the result, otherwise Failure. - - - - The actual value that was passed to the method. - - - - - Gets and sets the ResultStatus for this result. - - - - - True if actual value meets the Constraint criteria otherwise false. - - - - - Display friendly name of the constraint. - - - - - Description of the constraint may be affected by the state the constraint had - when was performed against the actual value. - - - - - Write the failure message to the MessageWriter provided - as an argument. The default implementation simply passes - the result 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 - - - - 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 - - - - 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. - - - - The Description of what this constraint tests, for - use in messages and in the ConstraintResult. - - - - - Flag the constraint to ignore case and return self. - - - - - Test whether the constraint is satisfied by a given value - - The value to be tested - True for success, false for failure - - - - Applies a delay to the match so that a match can be evaluated in the future. - - - - - Creates a new DelayedConstraint - - The inner constraint to 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 to decorate - The time interval after which the match is performed, in milliseconds - The time interval used for polling, in milliseconds - If the value of is less than 0 - - - - Gets text describing a constraint - - - - - 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 - A ConstraintResult - - - - 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 - - - - Returns the string representation of the constraint. - - - - - Adjusts a Timestamp by a given TimeSpan - - - - - - - - Returns the difference between two Timestamps as a TimeSpan - - - - - - - - DictionaryContainsKeyConstraint is used to test whether a dictionary - contains an expected object as a key. - - - - - Construct a DictionaryContainsKeyConstraint - - - - - - The Description of what this constraint tests, for - use in messages and in the ConstraintResult. - - - - - Test whether the expected key is contained in the dictionary - - - - - DictionaryContainsValueConstraint is used to test whether a dictionary - contains an expected object as a value. - - - - - Construct a DictionaryContainsValueConstraint - - - - - - The Description of what this constraint tests, for - use in messages and in the ConstraintResult. - - - - - Test whether the expected value is contained in the dictionary - - - - - EmptyCollectionConstraint tests whether a collection is empty. - - - - - The Description of what this constraint tests, for - use in messages and in the ConstraintResult. - - - - - Check that the collection is empty - - - - - - - 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. - - - - - The Description of what this constraint tests, for - use in messages and in the ConstraintResult. - - - - - Test whether the constraint is satisfied by a given value - - The value to be tested - True for success, false for failure - - - - EmptyDirectoryConstraint is used to test that a directory is empty - - - - - The Description of what this constraint tests, for - use in messages and in the ConstraintResult. - - - - - Test whether the constraint is satisfied by a given value - - The value to be tested - True for success, false for failure - - - - EmptyStringConstraint tests whether a string is empty. - - - - - The Description of what this constraint tests, for - use in messages and in the ConstraintResult. - - - - - Test whether the constraint is satisfied by a given value - - The value to be tested - True for success, false for failure - - - - 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. - - - - - - - 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. - - - - - NUnitEqualityComparer used to test equality. - - - - - Initializes a new instance of the class. - - The expected value. - - - - Gets the tolerance for this comparison. - - - The tolerance. - - - - - Gets a value indicating whether to compare case insensitive. - - - true if comparing case insensitive; otherwise, false. - - - - - Gets a value indicating whether or not to clip strings. - - - true if set to clip strings otherwise, false. - - - - - Gets the failure points. - - - The failure points. - - - - - 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. - - - - - Flag the constraint to use a tolerance when determining equality. - - Tolerance value to be used - Self. - - - - Flags the constraint to include - property in comparison of two values. - - - Using this modifier does not allow to use the - constraint modifier. - - - - - 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 - - - - 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 - - - - The Description of what this constraint tests, for - use in messages and in the ConstraintResult. - - - - - EqualityAdapter class handles all equality comparisons - that use an , - or a . - - - - - Compares two objects, returning true if they are equal - - - - - Returns true if the two objects can be compared by this adapter. - The base adapter cannot handle IEnumerables except for strings. - - - - - Returns an that wraps an . - - - - - that wraps an . - - - - - Returns an that wraps an . - - - - - Returns true if the two objects can be compared by this adapter. - Generic adapter requires objects of the specified type. - - - - - Returns an that wraps an . - - - - - Returns an that wraps an . - - - - - that wraps an . - - - - - Returns an that wraps a . - - - - - 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. - - - - Apply the constraint to an actual value, returning true if it succeeds - - The actual argument - True if the constraint succeeds, otherwise false. - - - - FalseConstraint tests that the actual value is false - - - - - Initializes a new instance of the class. - - - - - Test whether the constraint is satisfied by a given value - - The value to be tested - True for success, false for failure - - - - FileExistsConstraint is used to determine if a file exists - - - - - Initializes a new instance of the class. - - - - - The Description of what this constraint tests, for - use in messages and in the ConstraintResult. - - - - - FileOrDirectoryExistsConstraint is used to determine if a file or directory exists - - - - - If true, the constraint will only check if files exist, not directories - - - - - If true, the constraint will only check if directories exist, not files - - - - - Initializes a new instance of the class that - will check files and directories. - - - - - Initializes a new instance of the class that - will only check files if ignoreDirectories is true. - - if set to true [ignore directories]. - - - - The Description of what this constraint tests, for - use in messages and in the ConstraintResult. - - - - - Applies the constraint to an actual value, returning a ConstraintResult. - - The value to be tested - A ConstraintResult - - - 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. - - - - - 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 - - - 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 - - - - - 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. - - - - Interface for all constraints - - - - - The display name of this Constraint for use by ToString(). - - - - - The Description of what this constraint tests, for - use in messages and in the ConstraintResult. - - - - - Arguments provided to this Constraint, for use in - formatting the description. - - - - - The ConstraintBuilder holding this constraint - - - - - Applies the constraint to an actual value, returning a ConstraintResult. - - The value to be tested - A ConstraintResult - - - - Applies the constraint to 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 - A ConstraintResult - - - - 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 - A ConstraintResult - - - - 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 - - - - Apply the constraint to an actual value, returning true if it succeeds - - The actual argument - True if the constraint succeeds, otherwise false. - - - - The IResolveConstraint interface is implemented by all - complete and resolvable constraints and expressions. - - - - - Return the top-level constraint for this expression - - - - - - 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. - - - - 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 - - - - - Abstract method to get the max line length - - - - - 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 failing constraint result - - - - 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 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 - - - - Static methods used in creating messages - - - - - Static string used when strings are clipped - - - - - Formatting strings used for expected and actual _values - - - - - Formats text to represent a generalized value. - - The value - The formatted text - - - - Formats 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 - - - - 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 - - - - NaNConstraint tests that the actual value is a double or float NaN - - - - - The Description of what this constraint tests, for - use in messages and in the ConstraintResult. - - - - - Test that the actual value is an NaN - - - - - - - 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. - - - - - - - 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 - - - - NullConstraint tests that the actual value is null - - - - - Initializes a new instance of the class. - - - - - Applies the constraint to an actual value, returning a ConstraintResult. - - The value to be tested - A ConstraintResult - - - - 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 - - - - NUnitComparer encapsulates NUnit's default behavior - in comparing two objects. - - - - - Returns the default NUnitComparer. - - - - - Compares two objects - - - - - - - - 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 - - - - - Comparison objects used in comparisons for some constraints. - - - - - List of points at which a failure occurred. - - - - - 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 the list of external comparers to be used to - test for equality. They are applied to members of - collections, in place of NUnit's own logic. - - - - - Gets the list of failure points for the last Match performed. - The list consists of objects to be interpreted by the caller. - This generally means that the caller may only make use of - objects it has placed on the list at a particular depthy. - - - - - Flags the comparer to include - property in comparison of two values. - - - Using this modifier does not allow to use the - modifier. - - - - - Compares two objects for equality within a tolerance. - - - - - 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 - - - - FailurePoint class represents one point of failure - in an equality test. - - - - - The location of the failure - - - - - The expected value - - - - - The actual value - - - - - Indicates whether the expected value is valid - - - - - Indicates whether the actual value is valid - - - - - 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. - - - - - Operator that requires both it's arguments to succeed - - - - - Construct an AndOperator - - - - - Apply the operator to produce an AndConstraint - - - - - 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. - - - - - 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. - - - - - - Gets the left precedence of the operator - - - - - Gets the right precedence of the operator - - - - - Abstract method that produces a constraint by applying - the operator to its left and right constraint arguments. - - - - - Abstract base for operators that indicate how to - apply a constraint to items in a collection. - - - - - Constructs a CollectionOperator - - - - - 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. - - - - - The syntax element preceding this operator - - - - - The syntax element following 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. - - - - - 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. - - - - - - 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. - - - - - Negates the test of the constraint it wraps. - - - - - Constructs a new NotOperator - - - - - Returns a NotConstraint applied to its argument. - - - - - Operator that requires at least one of it's arguments to succeed - - - - - Construct an OrOperator - - - - - Apply the operator to produce an OrConstraint - - - - - 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. - - - - - - - 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. - - - - - Gets the name of the property to which the operator applies - - - - - 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. - - - - - - Abstract base class for operators that are able to reduce to a - constraint whether or not another syntactic element follows. - - - - - 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. - - - - - 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. - - - - - Represents a constraint that simply wraps the - constraint provided as an argument, without any - further functionality, but which modifies the - order of evaluation because of its precedence. - - - - - Constructor for the WithOperator - - - - - Returns a constraint that wraps its argument - - - - - OrConstraint succeeds if either member succeeds - - - - - Create an OrConstraint from two other constraints - - The first constraint - The second constraint - - - - Gets text describing a 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 - - - - PathConstraint serves as the abstract base of constraints - that operate on paths and provides several helper methods. - - - - - Construct a PathConstraint for a give expected path - - The expected path - - - - Modifies the current instance to be case-sensitive - and returns it. - - - - - Returns the string representation of this constraint - - - - - Canonicalize the provided path - - - The path in standardized form - - - - Test whether one path in canonical form is a subpath of another path - - The first path - supposed to be the parent path - The second path - supposed to be the child path - - - - - Predicate constraint wraps a Predicate in a constraint, - returning success if the predicate is true. - - - - - Construct a PredicateConstraint from a predicate - - - - - Gets text describing a constraint - - - - - Determines whether the predicate succeeds when applied - to the actual value. - - - - - Abstract base class used for prefixes - - - - - The base constraint - - - - - Prefix used in forming the constraint description - - - - - Construct given a base constraint - - - - - - The Description of what this constraint tests, for - use in messages and in the ConstraintResult. - - - - - PropertyConstraint extracts a named property and uses - its value as the actual value for a chained 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 - - - - Returns the string representation of the constraint. - - - - - - 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 value - of the property. The two constraints are now separate. - - - - - Initializes a new instance of the class. - - The name of the property. - - - - The Description of what this constraint tests, for - use in messages and in the ConstraintResult. - - - - - Test whether the property exists for a given object - - The object to be tested - True for success, false for failure - - - - Returns the string representation of the constraint. - - - - - - RangeConstraint tests whether two _values are within a - specified range. - - - - - Initializes a new instance of the class. - - from must be less than or equal to true - Inclusive beginning of the range. Must be less than or equal to to. - Inclusive end of the range. Must be greater than or equal to from. - - - - Gets text describing a constraint - - - - - Test whether the constraint is satisfied by a given value - - The value to be tested - True for success, false for failure - - - - Modifies the constraint to use an and returns self. - - - - - Modifies the constraint to use an and returns self. - - - - - Modifies the constraint to use a and returns self. - - - - - 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 - - - - 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. - - - - - Appends an And Operator to the expression - - - - - Appends an Or operator to the expression. - - - - - Resolve the current expression to a Constraint - - - - - ReusableConstraint wraps a constraint expression after - resolving it so that it can be reused consistently. - - - - - Construct a ReusableConstraint from a constraint expression - - The expression to be resolved and reused - - - - Converts a constraint to a ReusableConstraint - - The constraint to be converted - A ReusableConstraint - - - - Returns a that represents this instance. - - - A that represents this instance. - - - - - Return the top-level constraint for this expression - - - - - - SameAsConstraint tests whether an object is identical to - the object passed to its constructor - - - - - Initializes a new instance of the class. - - The expected object. - - - - The Description of what this constraint tests, for - use in messages and in the ConstraintResult. - - - - - Test whether the constraint is satisfied by a given value - - The value to be tested - True for success, false for failure - - - - Summary description for SamePathConstraint. - - - - - Initializes a new instance of the class. - - The expected path - - - - The Description of what this constraint tests, for - use in messages and in the ConstraintResult. - - - - - Test whether the constraint is satisfied by a given value - - The value to be tested - True for success, false for failure - - - - SamePathOrUnderConstraint tests that one path is under another - - - - - Initializes a new instance of the class. - - The expected path - - - - The Description of what this constraint tests, for - use in messages and in the ConstraintResult. - - - - - Test whether the constraint is satisfied by a given value - - The value to be tested - True for success, false for failure - - - - 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. - - - - - - - The EqualConstraintResult class is tailored for formatting - and displaying the result of an EqualConstraint. - - - - - Construct an EqualConstraintResult - - - - - Write a failure message. Overridden to provide custom - failure messages for EqualConstraint. - - 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 - - - - Display the failure information for two IEnumerables that did not match. - - The MessageWriter on which to display - The expected enumeration. - The actual enumeration - The depth of this failure in a set of nested collections - - - - 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. - - - - - - - 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 - - - - - Description of this constraint - - - - - The Description of what this constraint tests, for - use in messages and in the ConstraintResult. - - - - - Constructs a StringConstraint without an expected value - - - - - Constructs a StringConstraint given an expected value - - The expected value - - - - Modify the constraint to ignore case in matching. - - - - - 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 a given string - - The string to be tested - True for success, false for failure - - - - SubPathConstraint tests that the actual path is under the expected path - - - - - Initializes a new instance of the class. - - The expected path - - - - The Description of what this constraint tests, for - use in messages and in the ConstraintResult. - - - - - Test whether the constraint is satisfied by a given value - - The value to be tested - True for success, false for failure - - - - 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 - - - - 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. - - - - Get the actual exception thrown - used by Assert.Throws. - - - - - Gets text describing a constraint - - - - - 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 actual value for a failing constraint test to a - MessageWriter. This override only handles the special message - used when an exception is expected but none is thrown. - - The writer on which the actual value is displayed - - - - ThrowsExceptionConstraint tests that an exception has - been thrown, without any further tests. - - - - - The Description of what this constraint tests, for - use in messages and in the ConstraintResult. - - - - - Executes the code and returns success if an exception is thrown. - - A delegate representing the code to be tested - True if an exception is thrown, otherwise false - - - - ThrowsNothingConstraint tests that a delegate does not - throw an exception. - - - - - Gets text describing a constraint - - - - - Test whether the constraint is satisfied by a given value - - The value to be tested - True if no exception is thrown, otherwise false - - - - Applies the constraint to 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 - A ConstraintResult - - - - 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. - - - - - Returns a default Tolerance object, equivalent to - specifying an exact match unless - is set, in which case, the - will be used. - - - - - Returns an empty Tolerance object, equivalent to - specifying an exact match even if - is set. - - - - - Constructs a linear tolerance of a specified amount - - - - - Constructs a tolerance given an amount and - - - - - Gets the for the current Tolerance - - - - - Tests that the current Tolerance is linear with a - numeric value, throwing an exception if it is not. - - - - - 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 as the amount, using - the current amount as a number of days. - - - - - Returns a new tolerance with a as the amount, using - the current amount as a number of hours. - - - - - Returns a new tolerance with a as the amount, using - the current amount as a number of minutes. - - - - - Returns a new tolerance with a as the amount, using - the current amount as a number of seconds. - - - - - Returns a new tolerance with a as the amount, using - the current amount as a number of milliseconds. - - - - - Returns a new tolerance with a as the amount, using - the current amount as a number of clock ticks. - - - - - Returns true if the current tolerance has not been set or is using the . - - - - - 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. - - - - - TrueConstraint tests that the actual value is true - - - - - Initializes a new instance of the class. - - - - - Test whether the constraint is satisfied by a given value - - The value to be tested - True for success, false for failure - - - - TypeConstraint is the abstract base for constraints - that take a Type as their expected value. - - - - - The expected Type used by the constraint - - - - - The type of the actual argument to which the constraint was applied - - - - - Construct a TypeConstraint for a given Type - - The expected type for the constraint - Prefix used in forming the constraint description - - - - Applies the constraint to an actual value, returning a ConstraintResult. - - The value to be tested - A ConstraintResult - - - - Apply the constraint to an actual value, returning true if it succeeds - - The actual argument - True if the constraint succeeds, otherwise false. - - - - UniqueItemsConstraint tests whether all the items in a - collection are unique. - - - - - The Description of what this constraint tests, for - use in messages and in the ConstraintResult. - - - - - Check that all items are unique. - - - - - - - XmlSerializableConstraint tests whether - an object is serializable in xml format. - - - - - Gets text describing a constraint - - - - - Test whether the constraint is satisfied by a given value - - The value to be tested - True for success, false for failure - - - - Returns the string representation of this constraint - - - - - ExactCountConstraint applies another constraint to each - item in a collection, succeeding only if a specified - number of items succeed. - - - - - Construct an ExactCountConstraint on top of an existing constraint - - - - - - - Apply the item constraint to each item in the collection, - succeeding only if the expected number of items pass. - - - - - - - Represents a constraint that succeeds if the specified - count of members of a collection match a base constraint. - - - - - Construct an ExactCountOperator for a specified count - - The expected count - - - - Returns a constraint that will apply the argument - to the members of a collection, succeeding if - none of them succeed. - - - - - ExceptionTypeConstraint is a special version of ExactTypeConstraint - used to provided detailed info about the exception thrown in - an error message. - - - - - Constructs an ExceptionTypeConstraint - - - - - Applies the constraint to an actual value, returning a ConstraintResult. - - The value to be tested - A ConstraintResult - - - - Helper class with properties and methods that supply - a number of constraints used in Asserts. - - - - - Returns a new CollectionContainsConstraint checking for the - presence of a particular object in the collection. - - - - - Returns a new DictionaryContainsKeyConstraint checking for the - presence of a particular key in the dictionary. - - - - - Returns a new DictionaryContainsValueConstraint checking for the - presence of a particular value in the dictionary. - - - - - Returns a constraint that succeeds if the actual - value contains the substring supplied as an argument. - - - - - Asserts on Directories - - - - - 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. - - - - - - - Verifies that two directories are equal. Two directories are considered - equal if both are null, or if both point to the same directory. - 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 the 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 point to the same directory. - If they are not 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 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 - - - - Asserts that the directory exists. If it does not exist - an is thrown. - - 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 the directory exists. If it does not exist - an is thrown. - - A directory containing the actual value - - - - Asserts that the directory exists. If it does not exist - an is thrown. - - The path to 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 the directory exists. If it does not exist - an is thrown. - - The path to a directory containing the actual value - - - - Asserts that the directory does not exist. If it does exist - an is thrown. - - 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 the directory does not exist. If it does exist - an is thrown. - - A directory containing the actual value - - - - Asserts that the directory does not exist. If it does exist - an is thrown. - - The path to 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 the directory does not exist. If it does exist - an is thrown. - - The path to a directory containing the actual value - - - - Helper class with properties and methods that supply - a number of constraints used in Asserts. - - - - - Returns a ConstraintExpression that negates any - following constraint. - - - - - Returns a constraint that succeeds if the value - is a file or directory and it exists. - - - - - 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 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 regular expression supplied as an argument. - - - - - 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 - - - - - Gets the ResultState provided by this exception - - - - - Thrown when an assertion failed. - - - - - - - The error message that explains - the reason for the exception - The exception that caused the - current exception - - - - Serialization Constructor - - - - - Gets the ResultState provided by this exception - - - - - 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 - - - - - Gets the ResultState provided by this exception - - - - - Abstract base for Exceptions that terminate a test and provide a ResultState. - - - - 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 - - - - - Gets the ResultState provided by this exception - - - - - Thrown when an assertion failed. - - - - - - - The error message that explains - the reason for the exception - The exception that caused the - current exception - - - - Serialization Constructor - - - - - Gets the ResultState provided by this exception - - - - - Asserts on Files - - - - - 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. - - - - - - - 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 - - - - 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 - - - - 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 - - - - 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 - - - - 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 - - - - 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 - - - - Asserts that the file exists. If it does not exist - an is thrown. - - 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 the file exists. If it does not exist - an is thrown. - - A file containing the actual value - - - - Asserts that the file exists. If it does not exist - an is thrown. - - 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 the file exists. If it does not exist - an is thrown. - - The path to a file containing the actual value - - - - Asserts that the file does not exist. If it does exist - an is thrown. - - 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 the file does not exist. If it does exist - an is thrown. - - A file containing the actual value - - - - Asserts that the file does not exist. If it does exist - an is thrown. - - 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 the file does not exist. If it does exist - an is thrown. - - The path to a file containing the actual value - - - - GlobalSettings is a place for setting default _values used - by the framework in performing asserts. - - - - - Default tolerance for floating point equality - - - - - Helper class with properties and methods that supply - a number of constraints used in Asserts. - - - - - 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 ConstraintExpression, which will apply - the following constraint to all members of a collection, - succeeding only if a specified number of them succeed. - - - - - 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 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 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. - - - - - The IApplyToContext interface is implemented by attributes - that want to make changes to the execution context before - a test is run. - - - - - Apply changes to the execution context - - The execution context - - - - The IApplyToTest interface is implemented by self-applying - attributes that modify the state of a test in some way. - - - - - Modifies a test as defined for the specific attribute. - - The test to modify - - - - ICommandWrapper is implemented by attributes and other - objects able to wrap a TestCommand with another command. - - - Attributes or other objects should implement one of the - derived interfaces, rather than this one, since they - indicate in which part of the command chain the wrapper - should be applied. - - - - - Wrap a command and return the result. - - The command to be wrapped - The wrapped command - - - - Objects implementing this interface are used to wrap - the TestMethodCommand itself. They apply after SetUp - has been run and before TearDown. - - - - - Objects implementing this interface are used to wrap - the entire test, including SetUp and TearDown. - - - - - Any ITest that implements this interface is at a level that the implementing - class should be disposed at the end of the test run - - - - - The IFixtureBuilder interface is exposed by a class that knows how to - build a TestFixture from one or more Types. In general, it is exposed - by an attribute, but may be implemented in a helper class used by the - attribute in some cases. - - - - - Build one or more TestFixtures from type provided. At least one - non-null TestSuite must always be returned, since the method is - generally called because the user has marked the target class as - a fixture. If something prevents the fixture from being used, it - will be returned nonetheless, labelled as non-runnable. - - The type info of the fixture to be used. - A TestSuite object or one derived from TestSuite. - - - - IImplyFixture is an empty marker interface used by attributes like - TestAttribute that cause the class where they are used to be treated - as a TestFixture even without a TestFixtureAttribute. - - Marker interfaces are not usually considered a good practice, but - we use it here to avoid cluttering the attribute hierarchy with - classes that don't contain any extra implementation. - - - - - The IMethodInfo class is used to encapsulate information - about a method in a platform-independent manner. - - - - - Gets the Type from which this method was reflected. - - - - - Gets the MethodInfo for this method. - - - - - Gets the name of the method. - - - - - Gets a value indicating whether the method is abstract. - - - - - Gets a value indicating whether the method is public. - - - - - Gets a value indicating whether the method contains unassigned generic type parameters. - - - - - Gets a value indicating whether the method is a generic method. - - - - - Gets a value indicating whether the MethodInfo represents the definition of a generic method. - - - - - Gets the return Type of the method. - - - - - Gets the parameters of the method. - - - - - - Returns the Type arguments of a generic method or the Type parameters of a generic method definition. - - - - - Replaces the type parameters of the method with the array of types provided and returns a new IMethodInfo. - - The type arguments to be used - A new IMethodInfo with the type arguments replaced - - - - Invokes the method, converting any TargetInvocationException to an NUnitException. - - The object on which to invoke the method - The argument list for the method - The return value from the invoked method - - - - The IDataPointProvider interface is used by extensions - that provide data for a single test parameter. - - - - - Determine whether any data is available for a parameter. - - An IParameterInfo representing one - argument to a parameterized test - True if any data is available, otherwise false. - - - - Return an IEnumerable providing data for use with the - supplied parameter. - - An IParameterInfo representing one - argument to a parameterized test - An IEnumerable providing the required data - - - - The IParameterDataSource interface is implemented by types - that can provide data for a test method parameter. - - - - - Gets an enumeration of data items for use as arguments - for a test method parameter. - - The parameter for which data is needed - An enumeration containing individual data items - - - - The IParameterInfo interface is an abstraction of a .NET parameter. - - - - - Gets a value indicating whether the parameter is optional - - - - - Gets an IMethodInfo representing the method for which this is a parameter - - - - - Gets the underlying .NET ParameterInfo - - - - - Gets the Type of the parameter - - - - - A PropertyBag represents a collection of name/value pairs - that allows duplicate entries with the same key. Methods - are provided for adding a new pair as well as for setting - a key to a single value. All keys are strings but _values - may be of any type. Null _values are not permitted, since - a null entry represents the absence of the key. - - The entries in a PropertyBag are of two kinds: those that - take a single value and those that take multiple _values. - However, the PropertyBag has no knowledge of which entries - fall into each category and the distinction is entirely - up to the code using the PropertyBag. - - When working with multi-valued properties, client code - should use the Add method to add name/value pairs and - indexing to retrieve a list of all _values for a given - key. For example: - - bag.Add("Tag", "one"); - bag.Add("Tag", "two"); - Assert.That(bag["Tag"], - Is.EqualTo(new string[] { "one", "two" })); - - When working with single-valued propeties, client code - should use the Set method to set the value and Get to - retrieve the value. The GetSetting methods may also be - used to retrieve the value in a type-safe manner while - also providing default. For example: - - bag.Set("Priority", "low"); - bag.Set("Priority", "high"); // replaces value - Assert.That(bag.Get("Priority"), - Is.EqualTo("high")); - Assert.That(bag.GetSetting("Priority", "low"), - Is.EqualTo("high")); - - - - - Adds a key/value pair to the property bag - - The key - The value - - - - Sets the value for a key, removing any other - _values that are already in the property set. - - - - - - - Gets a single value for a key, using the first - one if multiple _values are present and returning - null if the value is not found. - - - - - Gets a flag indicating whether the specified key has - any entries in the property set. - - The key to be checked - True if their are _values present, otherwise false - - - - Gets or sets the list of _values for a particular key - - The key for which the _values are to be retrieved or set - - - - Gets a collection containing all the keys in the property set - - - - - The IReflectionInfo interface is implemented by NUnit wrapper objects that perform reflection. - - - - - Returns an array of custom attributes of the specified type applied to this object - - - - - Returns a value indicating whether an attribute of the specified type is defined on this object. - - - - - The ISimpleTestBuilder interface is exposed by a class that knows how to - build a single TestMethod from a suitable MethodInfo Types. In general, - it is exposed by an attribute, but may be implemented in a helper class - used by the attribute in some cases. - - - - - Build a TestMethod from the provided MethodInfo. - - The method to be used as a test - The TestSuite to which the method will be added - A TestMethod object - - - - The ISuiteBuilder interface is exposed by a class that knows how to - build a suite from one or more Types. - - - - - Examine the type and determine if it is suitable for - this builder to use in building a TestSuite. - - Note that returning false will cause the type to be ignored - in loading the tests. If it is desired to load the suite - but label it as non-runnable, ignored, etc., then this - method must return true. - - The type of the fixture to be used - True if the type can be used to build a TestSuite - - - - Build a TestSuite from type provided. - - The type of the fixture to be used - A TestSuite - - - - Common interface supported by all representations - of a test. Only includes informational fields. - The Run method is specifically excluded to allow - for data-only representations of a test. - - - - - Gets the id of the test - - - - - Gets the name of the test - - - - - Gets the fully qualified name of the test - - - - - Gets the name of the class containing this test. Returns - null if the test is not associated with a class. - - - - - Gets the name of the method implementing this test. - Returns null if the test is not implemented as a method. - - - - - Gets the Type of the test fixture, if applicable, or - null if no fixture type is associated with this test. - - - - - Gets an IMethod for the method implementing this test. - Returns null if the test is not implemented as a method. - - - - - Gets the RunState of the test, indicating whether it can be run. - - - - - Count of the test cases ( 1 if this is a test case ) - - - - - Gets the properties of the test - - - - - Gets the parent test, if any. - - The parent test or null if none exists. - - - - Returns true if this is a test suite - - - - - Gets a bool indicating whether the current test - has any descendant tests. - - - - - Gets this test's child tests - - A list of child tests - - - - Gets a fixture object for running this test. - - - - - The ITestCaseBuilder interface is exposed by a class that knows how to - build a test case from certain methods. - - - This interface is not the same as the ITestCaseBuilder interface in NUnit 2.x. - We have reused the name because the two products don't interoperate at all. - - - - - Examine the method and determine if it is suitable for - this builder to use in building a TestCase to be - included in the suite being populated. - - Note that returning false will cause the method to be ignored - in loading the tests. If it is desired to load the method - but label it as non-runnable, ignored, etc., then this - method must return true. - - The test method to examine - The suite being populated - True is the builder can use this method - - - - Build a TestCase from the provided MethodInfo for - inclusion in the suite being constructed. - - The method to be used as a test case - The test suite being populated, or null - A TestCase or null - - - - The ITestCaseData interface is implemented by a class - that is able to return complete testcases for use by - a parameterized test method. - - - - - Gets the expected result of the test case - - - - - Returns true if an expected result has been set - - - - - The ITestData interface is implemented by a class that - represents a single instance of a parameterized test. - - - - - Gets the name to be used for the test - - - - - Gets the RunState for this test case. - - - - - Gets the argument list to be provided to the test - - - - - Gets the property dictionary for the test case - - - - - Interface to be implemented by filters applied to tests. - The filter applies when running the test, after it has been - loaded, since this is the only time an ITest exists. - - - - - Determine if a particular test passes the filter criteria. Pass - may examine the parents and/or descendants of a test, depending - on the semantics of the particular filter - - The test to which the filter is applied - True if the test passes the filter, otherwise false - - - - Determine if a test matches the filter expicitly. That is, it must - be a direct match of the test itself or one of it's children. - - The test to which the filter is applied - True if the test matches the filter explicityly, otherwise false - - - - The ITestCaseData interface is implemented by a class - that is able to return the data required to create an - instance of a parameterized test fixture. - - - - - Get the TypeArgs if separately set - - - - - The ITestListener interface is used internally to receive - notifications of significant events while a test is being - run. The events are propagated to clients by means of an - AsyncCallback. NUnit extensions may also monitor these events. - - - - - Called when a test has just started - - The test that is starting - - - - Called when a test has finished - - The result of the test - - - - The ITestBuilder interface is exposed by a class that knows how to - build one or more TestMethods from a MethodInfo. In general, it is exposed - by an attribute, which has additional information available to provide - the necessary test parameters to distinguish the test cases built. - - - - - Build one or more TestMethods from the provided MethodInfo. - - The method to be used as a test - The TestSuite to which the method will be added - A TestMethod object - - - - The ITestResult interface represents the result of a test. - - - - - Gets the ResultState of the test result, which - indicates the success or failure of the test. - - - - - Gets the name of the test result - - - - - Gets the full name of the test result - - - - - Gets the elapsed time for running the test in seconds - - - - - Gets or sets the time the test started running. - - - - - Gets or sets the time the test finished running. - - - - - Gets the message associated with a test - failure or with not running the test - - - - - Gets any stacktrace associated with an - error or failure. Not available in - the Compact Framework 1.0. - - - - - Gets the number of asserts executed - when running the test and all its children. - - - - - Gets the number of test cases that failed - when running the test and all its children. - - - - - Gets the number of test cases that passed - when running the test and all its children. - - - - - Gets the number of test cases that were skipped - when running the test and all its children. - - - - - Gets the number of test cases that were inconclusive - when running the test and all its children. - - - - - Indicates whether this result has any child results. - Accessing HasChildren should not force creation of the - Children collection in classes implementing this interface. - - - - - Gets the the collection of child results. - - - - - Gets the Test to which this result applies. - - - - - Gets any text output written to this result. - - - - - The ITypeInfo interface is an abstraction of a .NET Type - - - - - Gets the underlying Type on which this ITypeInfo is based - - - - - Gets the base type of this type as an ITypeInfo - - - - - Returns true if the Type wrapped is equal to the argument - - - - - Gets the Name of the Type - - - - - Gets the FullName of the Type - - - - - Gets the assembly in which the type is declared - - - - - Gets the Namespace of the Type - - - - - Gets a value indicating whether the type is abstract. - - - - - Gets a value indicating whether the Type is a generic Type - - - - - Gets a value indicating whether the Type has generic parameters that have not been replaced by specific Types. - - - - - Gets a value indicating whether the Type is a generic Type definition - - - - - Gets a value indicating whether the type is sealed. - - - - - Gets a value indicating whether this type is a static class. - - - - - Get the display name for this typeInfo. - - - - - Get the display name for an oject of this type, constructed with specific arguments - - - - - Returns a Type representing a generic type definition from which this Type can be constructed. - - - - - Returns a new ITypeInfo representing an instance of this generic Type using the supplied Type arguments - - - - - Returns a value indicating whether this type has a method with a specified public attribute - - - - - Returns an array of IMethodInfos for methods of this Type - that match the specified flags. - - - - - Returns a value indicating whether this Type has a public constructor taking the specified argument Types. - - - - - Construct an object of this Type, using the specified arguments. - - - - - An object implementing IXmlNodeBuilder is able to build - an XML representation of itself and any children. - - - - - Returns a TNode representing the current object. - - If true, children are included where applicable - A TNode representing the result - - - - Returns a TNode representing the current object after - adding it as a child of the supplied parent node. - - The parent node. - If true, children are included, where applicable - - - - - The ResultState class represents the outcome of running a test. - It contains two pieces of information. The Status of the test - is an enum indicating whether the test passed, failed, was - skipped or was inconclusive. The Label provides a more - detailed breakdown for use by client runners. - - - - - Initializes a new instance of the class. - - The TestStatus. - - - - Initializes a new instance of the class. - - The TestStatus. - The label. - - - - Initializes a new instance of the class. - - The TestStatus. - The stage at which the result was produced - - - - Initializes a new instance of the class. - - The TestStatus. - The label. - The stage at which the result was produced - - - - The result is inconclusive - - - - - The test has been skipped. - - - - - The test has been ignored. - - - - - The test was skipped because it is explicit - - - - - The test succeeded - - - - - The test failed - - - - - The test encountered an unexpected exception - - - - - The test was cancelled by the user - - - - - The test was not runnable. - - - - - A suite failed because one or more child tests failed or had errors - - - - - A suite failed in its OneTimeSetUp - - - - - A suite had an unexpected exception in its OneTimeSetUp - - - - - A suite had an unexpected exception in its OneTimeDown - - - - - Gets the TestStatus for the test. - - The status. - - - - Gets the label under which this test result is - categorized, if any. - - - - - Gets the stage of test execution in which - the failure or other result took place. - - - - - Get a new ResultState, which is the same as the current - one but with the FailureSite set to the specified value. - - The FailureSite to use - A new ResultState - - - - Determines whether the specified , is equal to this instance. - - The to compare with this instance. - - true if the specified is equal to this instance; otherwise, false. - - - - - Returns a hash code for this instance. - - - A hash code for this instance, suitable for use in hashing algorithms and data structures like a hash table. - - - - - Returns a that represents this instance. - - - A that represents this instance. - - - - - The FailureSite enum indicates the stage of a test - in which an error or failure occurred. - - - - - Failure in the test itself - - - - - Failure in the SetUp method - - - - - Failure in the TearDown method - - - - - Failure of a parent test - - - - - Failure of a child test - - - - - The RunState enum indicates whether a test can be executed. - - - - - The test is not runnable. - - - - - The test is runnable. - - - - - The test can only be run explicitly - - - - - The test has been skipped. This value may - appear on a Test when certain attributes - are used to skip the test. - - - - - The test has been ignored. May appear on - a Test, when the IgnoreAttribute is used. - - - - - The TestStatus enum indicates the result of running a test - - - - - The test was inconclusive - - - - - The test has skipped - - - - - The test succeeded - - - - - The test failed - - - - - TNode represents a single node in the XML representation - of a Test or TestResult. It replaces System.Xml.XmlNode and - System.Xml.Linq.XElement, providing a minimal set of methods - for operating on the XML in a platform-independent manner. - - - - - Constructs a new instance of TNode - - The name of the node - - - - Constructs a new instance of TNode with a value - - The name of the node - The text content of the node - - - - Constructs a new instance of TNode with a value - - The name of the node - The text content of the node - Flag indicating whether to use CDATA when writing the text - - - - Gets the name of the node - - - - - Gets the value of the node - - - - - Gets a flag indicating whether the value should be output using CDATA. - - - - - Gets the dictionary of attributes - - - - - Gets a list of child nodes - - - - - Gets the first ChildNode - - - - - Gets the XML representation of this node. - - - - - Create a TNode from it's XML text representation - - The XML text to be parsed - A TNode - - - - Adds a new element as a child of the current node and returns it. - - The element name. - The newly created child element - - - - Adds a new element with a value as a child of the current node and returns it. - - The element name - The text content of the new element - The newly created child element - - - - Adds a new element with a value as a child of the current node and returns it. - The value will be output using a CDATA section. - - The element name - The text content of the new element - The newly created child element - - - - Adds an attribute with a specified name and value to the XmlNode. - - The name of the attribute. - The value of the attribute. - - - - Finds a single descendant of this node matching an xpath - specification. The format of the specification is - limited to what is needed by NUnit and its tests. - - - - - - - Finds all descendants of this node matching an xpath - specification. The format of the specification is - limited to what is needed by NUnit and its tests. - - - - - Writes the XML representation of the node to an XmlWriter - - - - - - Class used to represent a list of XmlResults - - - - - Class used to represent the attributes of a node - - - - - Gets or sets the value associated with the specified key. - Overridden to return null if attribute is not found. - - The key. - Value of the attribute or null - - - - CombiningStrategy is the abstract base for classes that - know how to combine values provided for individual test - parameters to create a set of test cases. - - - - - Gets the test cases generated by the CombiningStrategy. - - The test cases. - - - - Helper class with properties and methods that supply - a number of constraints used in Asserts. - - - - - 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 a positive value - - - - - Returns a constraint that tests for a negative value - - - - - 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 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 supplied argument - - - - - Returns a constraint that tests whether the - actual value is greater than or equal to the supplied argument - - - - - Returns a constraint that tests whether the - actual value is greater than or equal to the supplied argument - - - - - Returns a constraint that tests whether the - actual value is less than the supplied argument - - - - - Returns a constraint that tests whether the - actual value is less than or equal to the supplied argument - - - - - Returns a constraint that tests whether the - actual value is less than or equal to the supplied 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 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 to the type supplied as an argument. - - - - - Returns a constraint that tests whether the actual value - is assignable to 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 tests whether the actual value - is a superset of the collection supplied as an argument. - - - - - Returns a constraint that tests whether a collection is ordered - - - - - 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 regular expression 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 a subpath of the 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 - inclusively within a specified range. - - from must be less than or equal to true - Inclusive beginning of the range. Must be less than or equal to to. - Inclusive end of the range. Must be greater than or equal to from. - - - - - When implemented by an attribute, this interface implemented to provide actions to execute before and after tests. - - - - - Executed before each test is run - - The test that is going to be run. - - - - Executed after each test is run - - The test that has just been run. - - - - Provides the target for the action attribute - - The target for the action attribute - - - - The Iz class is a synonym for Is intended for use in VB, - which regards Is as a keyword. - - - - - 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 - - - - - 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 - - - - - 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 - - - - 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 - - - - 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 - - - - 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 - - - - 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 - - - - 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 - - - - 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 - - - - 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 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 - - - - 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 TestCaseData class represents a set of arguments - and other parameter info to be used for a parameterized - test case. It is derived from TestCaseParameters and adds a - fluent syntax for use in initializing the 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 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 - - - - - - - - Marks the test case as explicit. - - - - - Marks the test case as explicit, specifying the reason. - - - - - Ignores this TestCase, specifying the reason. - - The reason. - - - - - Provide the context information of the current test. - This is an adapter for the internal ExecutionContext - class, hiding the internals from the user test. - - - - - Construct a TestContext for an ExecutionContext - - The ExecutionContext to adapt - - - - Get the current test context. This is created - as needed. The user may save the context for - use within a test, but it should not be used - outside the test for which it is created. - - - - - Gets a TextWriter that will send output to the current test result. - - - - - Get a representation of the current test. - - - - - Gets a Representation of the TestResult for the current test. - - - - - Gets the directory containing the current test assembly. - - - - - Gets the directory to be used for outputting files created - by this test run. - - - - - Gets the random generator. - - - The random generator. - - - - Write the string representation of a boolean value to the current result - - - Write a char to the current result - - - Write a char array to the current result - - - Write the string representation of a double to the current result - - - Write the string representation of an Int32 value to the current result - - - Write the string representation of an Int64 value to the current result - - - Write the string representation of a decimal value to the current result - - - Write the string representation of an object to the current result - - - Write the string representation of a Single value to the current result - - - Write a string to the current result - - - Write the string representation of a UInt32 value to the current result - - - Write the string representation of a UInt64 value to the current result - - - Write a formatted string to the current result - - - Write a formatted string to the current result - - - Write a formatted string to the current result - - - Write a formatted string to the current result - - - Write a line terminator to the current result - - - Write the string representation of a boolean value to the current result followed by a line terminator - - - Write a char to the current result followed by a line terminator - - - Write a char array to the current result followed by a line terminator - - - Write the string representation of a double to the current result followed by a line terminator - - - Write the string representation of an Int32 value to the current result followed by a line terminator - - - Write the string representation of an Int64 value to the current result followed by a line terminator - - - Write the string representation of a decimal value to the current result followed by a line terminator - - - Write the string representation of an object to the current result followed by a line terminator - - - Write the string representation of a Single value to the current result followed by a line terminator - - - Write a string to the current result followed by a line terminator - - - Write the string representation of a UInt32 value to the current result followed by a line terminator - - - Write the string representation of a UInt64 value to the current result followed by a line terminator - - - Write a formatted string to the current result followed by a line terminator - - - Write a formatted string to the current result followed by a line terminator - - - Write a formatted string to the current result followed by a line terminator - - - Write a formatted string to the current result followed by a line terminator - - - - TestAdapter adapts a Test for consumption by - the user test code. - - - - - Construct a TestAdapter for a Test - - The Test to be adapted - - - - Gets the unique Id of a test - - - - - The name of the test, which may or may not be - the same as the method name. - - - - - The name of the method representing the test. - - - - - The FullName of the test - - - - - The ClassName of the test - - - - - The properties of the test. - - - - - ResultAdapter adapts a TestResult for consumption by - the user test code. - - - - - Construct a ResultAdapter for a TestResult - - The TestResult to be adapted - - - - Gets a ResultState representing the outcome of the test. - - - - - Gets the message associated with a test - failure or with not running the test - - - - - Gets any stacktrace associated with an - error or failure. - - - - - Gets the number of test cases that failed - when running the test and all its children. - - - - - Gets the number of test cases that passed - when running the test and all its children. - - - - - Gets the number of test cases that were skipped - when running the test and all its children. - - - - - Gets the number of test cases that were inconclusive - when running the test and all its children. - - - - - The TestFixtureData class represents a set of arguments - and other parameter info to be used for a parameterized - fixture. It is derived from TestFixtureParameters and adds a - fluent syntax for use in initializing the fixture. - - - - - 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. - - - - Marks the test fixture as explicit. - - - - - Marks the test fixture as explicit, specifying the reason. - - - - - Ignores this TestFixture, specifying the reason. - - The reason. - - - - - Helper class with properties and methods that supply - constraints that operate on exceptions. - - - - - 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 ArgumentException - - - - - Creates a constraint specifying an expected ArgumentNUllException - - - - - Creates a constraint specifying an expected InvalidOperationException - - - - - Creates a constraint specifying that no exception is thrown - - - - - 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 - - - - - Env is a static class that provides some of the features of - System.Environment that are not available under all runtimes - - - - - The newline sequence in the current environment. - - - - - Path to the 'My Documents' folder - - - - - Directory used for file output if not specified on commandline. - - - - - PackageSettings is a static class containing constant values that - are used as keys in setting up a TestPackage. These values are used in - the engine and framework. Setting values may be a string, int or bool. - - - - - Flag (bool) indicating whether tests are being debugged. - - - - - Flag (bool) indicating whether to pause execution of tests to allow - the user to attache a debugger. - - - - - The InternalTraceLevel for this run. Values are: "Default", - "Off", "Error", "Warning", "Info", "Debug", "Verbose". - Default is "Off". "Debug" and "Verbose" are synonyms. - - - - - Full path of the directory to be used for work and result files. - This path is provided to tests by the frameowrk TestContext. - - - - - The name of the config to use in loading a project. - If not specified, the first config found is used. - - - - - Bool indicating whether the engine should determine the private - bin path by examining the paths to all the tests. Defaults to - true unless PrivateBinPath is specified. - - - - - The ApplicationBase to use in loading the tests. If not - specified, and each assembly has its own process, then the - location of the assembly is used. For multiple assemblies - in a single process, the closest common root directory is used. - - - - - Path to the config file to use in running the tests. - - - - - Bool flag indicating whether a debugger should be launched at agent - startup. Used only for debugging NUnit itself. - - - - - Indicates how to load tests across AppDomains. Values are: - "Default", "None", "Single", "Multiple". Default is "Multiple" - if more than one assembly is loaded in a process. Otherwise, - it is "Single". - - - - - The private binpath used to locate assemblies. Directory paths - is separated by a semicolon. It's an error to specify this and - also set AutoBinPath to true. - - - - - The maximum number of test agents permitted to run simultneously. - Ignored if the ProcessModel is not set or defaulted to Multiple. - - - - - Indicates how to allocate assemblies to processes. Values are: - "Default", "Single", "Separate", "Multiple". Default is "Multiple" - for more than one assembly, "Separate" for a single assembly. - - - - - Indicates the desired runtime to use for the tests. Values - are strings like "net-4.5", "mono-4.0", etc. Default is to - use the target framework for which an assembly was built. - - - - - Bool flag indicating that the test should be run in a 32-bit process - on a 64-bit system. By default, NUNit runs in a 64-bit process on - a 64-bit system. Ignored if set on a 32-bit system. - - - - - Indicates that test runners should be disposed after the tests are executed - - - - - Bool flag indicating that the test assemblies should be shadow copied. - Defaults to false. - - - - - Integer value in milliseconds for the default timeout value - for test cases. If not specified, there is no timeout except - as specified by attributes on the tests themselves. - - - - - A TextWriter to which the internal trace will be sent. - - - - - A list of tests to be loaded. - - - - - The number of test threads to run for the assembly. If set to - 1, a single queue is used. If set to 0, tests are executed - directly, without queuing. - - - - - The random seed to be used for this assembly. If specified - as the value reported from a prior run, the framework should - generate identical random values for tests as were used for - that run, provided that no change has been made to the test - assembly. Default is a random value itself. - - - - - If true, execution stops after the first error or failure. - - - - - If true, use of the event queue is suppressed and test events are synchronous. - - - - diff --git a/packages/NUnit.3.0.1/lib/portable-net45+win8+wp8+wpa81+Xamarin.Mac+MonoAndroid10+MonoTouch10+Xamarin.iOS10/nunit.framework.dll b/packages/NUnit.3.0.1/lib/portable-net45+win8+wp8+wpa81+Xamarin.Mac+MonoAndroid10+MonoTouch10+Xamarin.iOS10/nunit.framework.dll deleted file mode 100644 index e110b173..00000000 Binary files a/packages/NUnit.3.0.1/lib/portable-net45+win8+wp8+wpa81+Xamarin.Mac+MonoAndroid10+MonoTouch10+Xamarin.iOS10/nunit.framework.dll and /dev/null differ diff --git a/packages/NUnit.3.0.1/lib/portable-net45+win8+wp8+wpa81+Xamarin.Mac+MonoAndroid10+MonoTouch10+Xamarin.iOS10/nunit.framework.xml b/packages/NUnit.3.0.1/lib/portable-net45+win8+wp8+wpa81+Xamarin.Mac+MonoAndroid10+MonoTouch10+Xamarin.iOS10/nunit.framework.xml deleted file mode 100644 index eac9226f..00000000 --- a/packages/NUnit.3.0.1/lib/portable-net45+win8+wp8+wpa81+Xamarin.Mac+MonoAndroid10+MonoTouch10+Xamarin.iOS10/nunit.framework.xml +++ /dev/null @@ -1,15264 +0,0 @@ - - - - nunit.framework - - - - - AssemblyHelper provides static methods for working - with assemblies. - - - - - Gets the AssemblyName of an assembly. - - The assembly - An AssemblyName - - - - Loads an assembly given a string, which is the AssemblyName - - - - - - - Interface for logging within the engine - - - - - Logs the specified message at the error level. - - The message. - - - - Logs the specified message at the error level. - - The message. - The arguments. - - - - Logs the specified message at the warning level. - - The message. - - - - Logs the specified message at the warning level. - - The message. - The arguments. - - - - Logs the specified message at the info level. - - The message. - - - - Logs the specified message at the info level. - - The message. - The arguments. - - - - Logs the specified message at the debug level. - - The message. - - - - Logs the specified message at the debug level. - - The message. - The arguments. - - - - InternalTrace provides facilities for tracing the execution - of the NUnit framework. Tests and classes under test may make use - of Console writes, System.Diagnostics.Trace or various loggers and - NUnit itself traps and processes each of them. For that reason, a - separate internal trace is needed. - - Note: - InternalTrace uses a global lock to allow multiple threads to write - trace messages. This can easily make it a bottleneck so it must be - used sparingly. Keep the trace Level as low as possible and only - insert InternalTrace writes where they are needed. - TODO: add some buffering and a separate writer thread as an option. - TODO: figure out a way to turn on trace in specific classes only. - - - - - Gets a flag indicating whether the InternalTrace is initialized - - - - - Initialize the internal trace using a provided TextWriter and level - - A TextWriter - The InternalTraceLevel - - - - Get a named Logger - - - - - - Get a logger named for a particular Type. - - - - - InternalTraceLevel is an enumeration controlling the - level of detailed presented in the internal log. - - - - - Use the default settings as specified by the user. - - - - - Do not display any trace messages - - - - - Display Error messages only - - - - - Display Warning level and higher messages - - - - - Display informational and higher messages - - - - - Display debug messages and higher - i.e. all messages - - - - - Display debug messages and higher - i.e. all messages - - - - - A trace listener that writes to a separate file per domain - and process using it. - - - - - Construct an InternalTraceWriter that writes to a - TextWriter provided by the caller. - - - - - - Returns the character encoding in which the output is written. - - The character encoding in which the output is written. - - - - Writes a character to the text string or stream. - - The character to write to the text stream. - - - - Writes a string to the text string or stream. - - The string to write. - - - - Writes a string followed by a line terminator to the text string or stream. - - The string to write. If is null, only the line terminator is written. - - - - Releases the unmanaged resources used by the and optionally releases the managed resources. - - true to release both managed and unmanaged resources; false to release only unmanaged resources. - - - - Clears all buffers for the current writer and causes any buffered data to be written to the underlying device. - - - - - Provides internal logging to the NUnit framework - - - - - Initializes a new instance of the class. - - The name. - The log level. - The writer where logs are sent. - - - - Logs the message at error level. - - The message. - - - - Logs the message at error level. - - The message. - The message arguments. - - - - Logs the message at warm level. - - The message. - - - - Logs the message at warning level. - - The message. - The message arguments. - - - - Logs the message at info level. - - The message. - - - - Logs the message at info level. - - The message. - The message arguments. - - - - Logs the message at debug level. - - The message. - - - - Logs the message at debug level. - - The message. - The message arguments. - - - - Waits for pending asynchronous operations to complete, if appropriate, - and returns a proper result of the invocation by unwrapping task results - - The raw result of the method invocation - The unwrapped result, if necessary - - - - CombinatorialStrategy creates test cases by using all possible - combinations of the parameter data. - - - - - Gets the test cases generated by the CombiningStrategy. - - The test cases. - - - - Provides data from fields marked with the DatapointAttribute or the - DatapointsAttribute. - - - - - Determine whether any data is available for a parameter. - - A ParameterInfo representing one - argument to a parameterized test - - True if any data is available, otherwise false. - - - - - Return an IEnumerable providing data for use with the - supplied parameter. - - A ParameterInfo representing one - argument to a parameterized test - - An IEnumerable providing the required data - - - - - Built-in SuiteBuilder for all types of test classes. - - - - - Checks to see if the provided Type is a fixture. - To be considered a fixture, it must be a non-abstract - class with one or more attributes implementing the - IFixtureBuilder interface or one or more methods - marked as tests. - - The fixture type to check - True if the fixture can be built, false if not - - - - Build a TestSuite from TypeInfo provided. - - The fixture type to build - A TestSuite built from that type - - - - We look for attributes implementing IFixtureBuilder at one level - of inheritance at a time. Attributes on base classes are not used - unless there are no fixture builder attributes at all on the derived - class. This is by design. - - The type being examined for attributes - A list of the attributes found. - - - - Class to build ether a parameterized or a normal NUnitTestMethod. - There are four cases that the builder must deal with: - 1. The method needs no params and none are provided - 2. The method needs params and they are provided - 3. The method needs no params but they are provided in error - 4. The method needs params but they are not provided - This could have been done using two different builders, but it - turned out to be simpler to have just one. The BuildFrom method - takes a different branch depending on whether any parameters are - provided, but all four cases are dealt with in lower-level methods - - - - - Determines if the method can be used to build an NUnit test - test method of some kind. The method must normally be marked - with an identifying attribute for this to be true. - - Note that this method does not check that the signature - of the method for validity. If we did that here, any - test methods with invalid signatures would be passed - over in silence in the test run. Since we want such - methods to be reported, the check for validity is made - in BuildFrom rather than here. - - An IMethodInfo for the method being used as a test method - True if the builder can create a test case from this method - - - - Build a Test from the provided MethodInfo. Depending on - whether the method takes arguments and on the availability - of test case data, this method may return a single test - or a group of tests contained in a ParameterizedMethodSuite. - - The method for which a test is to be built - A Test representing one or more method invocations - - - - Determines if the method can be used to build an NUnit test - test method of some kind. The method must normally be marked - with an identifying attribute for this to be true. - - Note that this method does not check that the signature - of the method for validity. If we did that here, any - test methods with invalid signatures would be passed - over in silence in the test run. Since we want such - methods to be reported, the check for validity is made - in BuildFrom rather than here. - - An IMethodInfo for the method being used as a test method - The test suite being built, to which the new test would be added - True if the builder can create a test case from this method - - - - Build a Test from the provided MethodInfo. Depending on - whether the method takes arguments and on the availability - of test case data, this method may return a single test - or a group of tests contained in a ParameterizedMethodSuite. - - The method for which a test is to be built - The test fixture being populated, or null - A Test representing one or more method invocations - - - - Builds a ParameterizedMethodSuite containing individual test cases. - - The method for which a test is to be built. - The list of test cases to include. - A ParameterizedMethodSuite populated with test cases - - - - Build a simple, non-parameterized TestMethod for this method. - - The MethodInfo for which a test is to be built - The test suite for which the method is being built - A TestMethod. - - - - Class that can build a tree of automatic namespace - suites from a group of fixtures. - - - - - NamespaceDictionary of all test suites we have created to represent - namespaces. Used to locate namespace parent suites for fixtures. - - - - - The root of the test suite being created by this builder. - - - - - Initializes a new instance of the class. - - The root suite. - - - - Gets the root entry in the tree created by the NamespaceTreeBuilder. - - The root suite. - - - - Adds the specified fixtures to the tree. - - The fixtures to be added. - - - - Adds the specified fixture to the tree. - - The fixture to be added. - - - - NUnitTestCaseBuilder is a utility class used by attributes - that build test cases. - - - - - Constructs an - - - - - Builds a single NUnitTestMethod, either as a child of the fixture - or as one of a set of test cases under a ParameterizedTestMethodSuite. - - The MethodInfo from which to construct the TestMethod - The suite or fixture to which the new test will be added - The ParameterSet to be used, or null - - - - - Helper method that checks the signature of a TestMethod and - any supplied parameters to determine if the test is valid. - - Currently, NUnitTestMethods are required to be public, - non-abstract methods, either static or instance, - returning void. They may take arguments but the _values must - be provided or the TestMethod is not considered runnable. - - Methods not meeting these criteria will be marked as - non-runnable and the method will return false in that case. - - The TestMethod to be checked. If it - is found to be non-runnable, it will be modified. - Parameters to be used for this test, or null - True if the method signature is valid, false if not - - The return value is no longer used internally, but is retained - for testing purposes. - - - - - NUnitTestFixtureBuilder is able to build a fixture given - a class marked with a TestFixtureAttribute or an unmarked - class containing test methods. In the first case, it is - called by the attribute and in the second directly by - NUnitSuiteBuilder. - - - - - Build a TestFixture from type provided. A non-null TestSuite - must always be returned, since the method is generally called - because the user has marked the target class as a fixture. - If something prevents the fixture from being used, it should - be returned nonetheless, labelled as non-runnable. - - An ITypeInfo for the fixture to be used. - A TestSuite object or one derived from TestSuite. - - - - Overload of BuildFrom called by tests that have arguments. - Builds a fixture using the provided type and information - in the ITestFixtureData object. - - The TypeInfo for which to construct a fixture. - An object implementing ITestFixtureData or null. - - - - - Method to add test cases to the newly constructed fixture. - - The fixture to which cases should be added - - - - Method to create a test case from a MethodInfo and add - it to the fixture being built. It first checks to see if - any global TestCaseBuilder addin wants to build the - test case. If not, it uses the internal builder - collection maintained by this fixture builder. - - The default implementation has no test case builders. - Derived classes should add builders to the collection - in their constructor. - - The method for which a test is to be created - The test suite being built. - A newly constructed Test - - - - PairwiseStrategy creates test cases by combining the parameter - data so that all possible pairs of data items are used. - - - - The number of test cases that cover all possible pairs of test function - parameters values is significantly less than the number of test cases - that cover all possible combination of test function parameters values. - And because different studies show that most of software failures are - caused by combination of no more than two parameters, pairwise testing - can be an effective ways to test the system when it's impossible to test - all combinations of parameters. - - - The PairwiseStrategy code is based on "jenny" tool by Bob Jenkins: - http://burtleburtle.net/bob/math/jenny.html - - - - - - FleaRand is a pseudo-random number generator developed by Bob Jenkins: - http://burtleburtle.net/bob/rand/talksmall.html#flea - - - - - Initializes a new instance of the FleaRand class. - - The seed. - - - - FeatureInfo represents coverage of a single value of test function - parameter, represented as a pair of indices, Dimension and Feature. In - terms of unit testing, Dimension is the index of the test parameter and - Feature is the index of the supplied value in that parameter's list of - sources. - - - - - Initializes a new instance of FeatureInfo class. - - Index of a dimension. - Index of a feature. - - - - A FeatureTuple represents a combination of features, one per test - parameter, which should be covered by a test case. In the - PairwiseStrategy, we are only trying to cover pairs of features, so the - tuples actually may contain only single feature or pair of features, but - the algorithm itself works with triplets, quadruples and so on. - - - - - Initializes a new instance of FeatureTuple class for a single feature. - - Single feature. - - - - Initializes a new instance of FeatureTuple class for a pair of features. - - First feature. - Second feature. - - - - TestCase represents a single test case covering a list of features. - - - - - Initializes a new instance of TestCaseInfo class. - - A number of features in the test case. - - - - PairwiseTestCaseGenerator class implements an algorithm which generates - a set of test cases which covers all pairs of possible values of test - function. - - - - The algorithm starts with creating a set of all feature tuples which we - will try to cover (see method). This set - includes every single feature and all possible pairs of features. We - store feature tuples in the 3-D collection (where axes are "dimension", - "feature", and "all combinations which includes this feature"), and for - every two feature (e.g. "A" and "B") we generate both ("A", "B") and - ("B", "A") pairs. This data structure extremely reduces the amount of - time needed to calculate coverage for a single test case (this - calculation is the most time-consuming part of the algorithm). - - - Then the algorithm picks one tuple from the uncovered tuple, creates a - test case that covers this tuple, and then removes this tuple and all - other tuples covered by this test case from the collection of uncovered - tuples. - - - Picking a tuple to cover - - - There are no any special rules defined for picking tuples to cover. We - just pick them one by one, in the order they were generated. - - - Test generation - - - Test generation starts from creating a completely random test case which - covers, nevertheless, previously selected tuple. Then the algorithm - tries to maximize number of tuples which this test covers. - - - Test generation and maximization process repeats seven times for every - selected tuple and then the algorithm picks the best test case ("seven" - is a magic number which provides good results in acceptable time). - - Maximizing test coverage - - To maximize tests coverage, the algorithm walks thru the list of mutable - dimensions (mutable dimension is a dimension that are not included in - the previously selected tuple). Then for every dimension, the algorithm - walks thru the list of features and checks if this feature provides - better coverage than randomly selected feature, and if yes keeps this - feature. - - - This process repeats while it shows progress. If the last iteration - doesn't improve coverage, the process ends. - - - In addition, for better results, before start every iteration, the - algorithm "scrambles" dimensions - so for every iteration dimension - probes in a different order. - - - - - - Creates a set of test cases for specified dimensions. - - - An array which contains information about dimensions. Each element of - this array represents a number of features in the specific dimension. - - - A set of test cases. - - - - - Gets the test cases generated by this strategy instance. - - A set of test cases. - - - - The ParameterDataProvider class implements IParameterDataProvider - and hosts one or more individual providers. - - - - - Construct with a collection of individual providers - - - - - Determine whether any data is available for a parameter. - - An IParameterInfo representing one - argument to a parameterized test - True if any data is available, otherwise false. - - - - Return an IEnumerable providing data for use with the - supplied parameter. - - An IParameterInfo representing one - argument to a parameterized test - An IEnumerable providing the required data - - - - ParameterDataSourceProvider supplies individual argument _values for - single parameters using attributes implementing IParameterDataSource. - - - - - Determine whether any data is available for a parameter. - - A ParameterInfo representing one - argument to a parameterized test - - True if any data is available, otherwise false. - - - - - Return an IEnumerable providing data for use with the - supplied parameter. - - An IParameterInfo representing one - argument to a parameterized test - - An IEnumerable providing the required data - - - - - SequentialStrategy creates test cases by using all of the - parameter data sources in parallel, substituting null - when any of them run out of data. - - - - - Gets the test cases generated by the CombiningStrategy. - - The test cases. - - - - ContextSettingsCommand applies specified changes to the - TestExecutionContext prior to running a test. No special - action is needed after the test runs, since the prior - context will be restored automatically. - - - - - The CommandStage enumeration represents the defined stages - of execution for a series of TestCommands. The int _values - of the enum are used to apply decorators in the proper - order. Lower _values are applied first and are therefore - "closer" to the actual test execution. - - - No CommandStage is defined for actual invocation of the test or - for creation of the context. Execution may be imagined as - proceeding from the bottom of the list upwards, with cleanup - after the test running in the opposite order. - - - - - Use an application-defined default value. - - - - - Make adjustments needed before and after running - the raw test - that is, after any SetUp has run - and before TearDown. - - - - - Run SetUp and TearDown for the test. This stage is used - internally by NUnit and should not normally appear - in user-defined decorators. - - - - - Make adjustments needed before and after running - the entire test - including SetUp and TearDown. - - - - - TODO: Documentation needed for class - - - - TODO: Documentation needed for field - - - - TODO: Documentation needed for constructor - - - - - - TODO: Documentation needed for class - - - - - Initializes a new instance of the class. - - The inner command. - The max time allowed in milliseconds - - - - Runs the test, saving a TestResult in the supplied TestExecutionContext - - The context in which the test should run. - A TestResult - - - - OneTimeSetUpCommand runs any one-time setup methods for a suite, - constructing the user test object if necessary. - - - - - Constructs a OneTimeSetUpCommand for a suite - - The suite to which the command applies - A SetUpTearDownList for use by the command - A List of TestActionItems to be run after Setup - - - - Overridden to run the one-time setup for a suite. - - The TestExecutionContext to be used. - A TestResult - - - - OneTimeTearDownCommand performs any teardown actions - specified for a suite and calls Dispose on the user - test object, if any. - - - - - Construct a OneTimeTearDownCommand - - The test suite to which the command applies - A SetUpTearDownList for use by the command - A List of TestActionItems to be run before teardown. - - - - Overridden to run the teardown methods specified on the test. - - The TestExecutionContext to be used. - A TestResult - - - - SetUpTearDownCommand runs any SetUp methods for a suite, - runs the test and then runs any TearDown methods. - - - - - Initializes a new instance of the class. - - The inner command. - - - - Runs the test, saving a TestResult in the supplied TestExecutionContext. - - The context in which the test should run. - A TestResult - - - - SetUpTearDownItem holds the setup and teardown methods - for a single level of the inheritance hierarchy. - - - - - Construct a SetUpTearDownNode - - A list of setup methods for this level - A list teardown methods for this level - - - - Returns true if this level has any methods at all. - This flag is used to discard levels that do nothing. - - - - - Run SetUp on this level. - - The execution context to use for running. - - - - Run TearDown for this level. - - - - - - TODO: Documentation needed for class - - - - - Initializes a new instance of the class. - - The test being skipped. - - - - Overridden to simply set the CurrentResult to the - appropriate Skipped state. - - The execution context for the test - A TestResult - - - - TestActionCommand runs the BeforeTest actions for a test, - then runs the test and finally runs the AfterTestActions. - - - - - Initializes a new instance of the class. - - The inner command. - - - - Runs the test, saving a TestResult in the supplied TestExecutionContext. - - The context in which the test should run. - A TestResult - - - - TestActionItem represents a single execution of an - ITestAction. It is used to track whether the BeforeTest - method has been called and suppress calling the - AfterTest method if it has not. - - - - - Construct a TestActionItem - - The ITestAction to be included - - - - Run the BeforeTest method of the action and remember that it has been run. - - The test to which the action applies - - - - Run the AfterTest action, but only if the BeforeTest - action was actually run. - - The test to which the action applies - - - - TestCommand is the abstract base class for all test commands - in the framework. A TestCommand represents a single stage in - the execution of a test, e.g.: SetUp/TearDown, checking for - Timeout, verifying the returned result from a method, etc. - - TestCommands may decorate other test commands so that the - execution of a lower-level command is nested within that - of a higher level command. All nested commands are executed - synchronously, as a single unit. Scheduling test execution - on separate threads is handled at a higher level, using the - task dispatcher. - - - - - Construct a TestCommand for a test. - - The test to be executed - - - - Gets the test associated with this command. - - - - - Runs the test in a specified context, returning a TestResult. - - The TestExecutionContext to be used for running the test. - A TestResult - - - - TestMethodCommand is the lowest level concrete command - used to run actual test cases. - - - - - Initializes a new instance of the class. - - The test. - - - - Runs the test, saving a TestResult in the execution context, as - well as returning it. If the test has an expected result, it - is asserts on that value. Since failed tests and errors throw - an exception, this command must be wrapped in an outer command, - will handle that exception and records the failure. This role - is usually played by the SetUpTearDown command. - - The execution context - - - - TheoryResultCommand adjusts the result of a Theory so that - it fails if all the results were inconclusive. - - - - - Constructs a TheoryResultCommand - - The command to be wrapped by this one - - - - Overridden to call the inner command and adjust the result - in case all chlid results were inconclusive. - - - - - - - CultureDetector is a helper class used by NUnit to determine - whether a test should be run based on the current culture. - - - - - Default constructor uses the current culture. - - - - - Construct a CultureDetector for a particular culture for testing. - - The culture to be used - - - - Test to determine if one of a collection of cultures - is being used currently. - - - - - - - Tests to determine if the current culture is supported - based on a culture attribute. - - The attribute to examine - - - - - Test to determine if the a particular culture or comma- - delimited set of cultures is in use. - - Name of the culture or comma-separated list of culture ids - True if the culture is in use on the system - - - - Return the last failure reason. Results are not - defined if called before IsSupported( Attribute ) - is called. - - - - - ExceptionHelper provides static methods for working with exceptions - - - - - Builds up a message, using the Message field of the specified exception - as well as any InnerExceptions. - - The exception. - A combined message string. - - - - Builds up a message, using the Message field of the specified exception - as well as any InnerExceptions. - - The exception. - A combined stack trace. - - - - Gets the stack trace of the exception. - - The exception. - A string representation of the stack trace. - - - - A utility class to create TestCommands - - - - - Gets the command to be executed before any of - the child tests are run. - - A TestCommand - - - - Gets the command to be executed after all of the - child tests are run. - - A TestCommand - - - - Creates a test command for use in running this test. - - - - - - Creates a command for skipping a test. The result returned will - depend on the test RunState. - - - - - Builds the set up tear down list. - - Type of the fixture. - Type of the set up attribute. - Type of the tear down attribute. - A list of SetUpTearDownItems - - - - A CompositeWorkItem represents a test suite and - encapsulates the execution of the suite as well - as all its child tests. - - - - - Construct a CompositeWorkItem for executing a test suite - using a filter to select child tests. - - The TestSuite to be executed - A filter used to select child tests - - - - Method that actually performs the work. Overridden - in CompositeWorkItem to do setup, run all child - items and then do teardown. - - - - - A simplified implementation of .NET 4 CountdownEvent - for use in earlier versions of .NET. Only the methods - used by NUnit are implemented. - - - - - Construct a CountdownEvent - - The initial count - - - - Gets the initial count established for the CountdownEvent - - - - - Gets the current count remaining for the CountdownEvent - - - - - Decrement the count by one - - - - - Block the thread until the count reaches zero - - - - - An IWorkItemDispatcher handles execution of work items. - - - - - Dispatch a single work item for execution. The first - work item dispatched is saved as the top-level - work item and used when stopping the run. - - The item to dispatch - - - - Cancel the ongoing run completely. - If no run is in process, the call has no effect. - - - - - A SimpleWorkItem represents a single test case and is - marked as completed immediately upon execution. This - class is also used for skipped or ignored test suites. - - - - - Construct a simple work item for a test. - - The test to be executed - The filter used to select this test - - - - Method that performs actually performs the work. - - - - - SimpleWorkItemDispatcher handles execution of WorkItems by - directly executing them. It is provided so that a dispatcher - is always available in the context, thereby simplifying the - code needed to run child tests. - - - - - Dispatch a single work item for execution. The first - work item dispatched is saved as the top-level - work item and a thread is created on which to - run it. Subsequent calls come from the top level - item or its descendants on the proper thread. - - The item to dispatch - - - - Cancel the ongoing run completely. - If no run is in process, the call has no effect. - - - - - A WorkItem may be an individual test case, a fixture or - a higher level grouping of tests. All WorkItems inherit - from the abstract WorkItem class, which uses the template - pattern to allow derived classes to perform work in - whatever way is needed. - - A WorkItem is created with a particular TestExecutionContext - and is responsible for re-establishing that context in the - current thread before it begins or resumes execution. - - - - - Creates a work item. - - The test for which this WorkItem is being created. - The filter to be used in selecting any child Tests. - - - - - Construct a WorkItem for a particular test. - - The test that the WorkItem will run - - - - Initialize the TestExecutionContext. This must be done - before executing the WorkItem. - - - Originally, the context was provided in the constructor - but delaying initialization of the context until the item - is about to be dispatched allows changes in the parent - context during OneTimeSetUp to be reflected in the child. - - The TestExecutionContext to use - - - - Event triggered when the item is complete - - - - - Gets the current state of the WorkItem - - - - - The test being executed by the work item - - - - - The execution context - - - - - The test actions to be performed before and after this test - - - - - The test result - - - - - Execute the current work item, including any - child work items. - - - - - Method that performs actually performs the work. It should - set the State to WorkItemState.Complete when done. - - - - - Method called by the derived class when all work is complete - - - - - The current state of a work item - - - - - Ready to run or continue - - - - - Work Item is executing - - - - - Complete - - - - - 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. - - - - - - - Gets or sets the maximum line length for this writer - - - - - Method to write single line message with optional args, usually - written to precede the general failure message, at a given - 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 result of 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 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 ConstraintResult for which the actual value is to be written - - - - Write the generic 'Actual' line for a given value - - The actual value causing a failure - - - - Combines multiple filters so that a test must pass all - of them in order to pass this filter. - - - - - Constructs an empty AndFilter - - - - - Constructs an AndFilter from an array of filters - - - - - - Checks whether the AndFilter is matched by a test - - The test to be matched - True if all the component filters pass, otherwise false - - - - Checks whether the AndFilter is matched by a test - - The test to be matched - True if all the component filters match, otherwise false - - - - Gets the element name - - Element name - - - - CategoryFilter is able to select or exclude tests - based on their categories. - - - - - - Construct a CategoryFilter using a single category name - - A category name - - - - Check whether the filter matches a test - - The test to be matched - - - - - Gets the element name - - Element name - - - - ClassName filter selects tests based on the class FullName - - - - - Construct a FullNameFilter for a single name - - The name the filter will recognize. - - - - Match a test against a single value. - - - - - Gets the element name - - Element name - - - - A base class for multi-part filters - - - - - Constructs an empty CompositeFilter - - - - - Constructs a CompositeFilter from an array of filters - - - - - - Adds a filter to the list of filters - - The filter to be added - - - - Return a list of the composing filters. - - - - - Adds an XML node - - Parent node - True if recursive - The added XML node - - - - Gets the element name - - Element name - - - - FullName filter selects tests based on their FullName - - - - - Construct a FullNameFilter for a single name - - The name the filter will recognize. - - - - Match a test against a single value. - - - - - Gets the element name - - Element name - - - - IdFilter selects tests based on their id - - - - - Construct an IdFilter for a single value - - The id the filter will recognize. - - - - Match a test against a single value. - - - - - Gets the element name - - Element name - - - - FullName filter selects tests based on their FullName - - - - - Construct a MethodNameFilter for a single name - - The name the filter will recognize. - - - - Match a test against a single value. - - - - - Gets the element name - - Element name - - - - NotFilter negates the operation of another filter - - - - - Construct a not filter on another filter - - The filter to be negated - - - - Gets the base filter - - - - - Determine if a particular test passes the filter criteria. The default - implementation checks the test itself, its parents and any descendants. - - Derived classes may override this method or any of the Match methods - to change the behavior of the filter. - - The test to which the filter is applied - True if the test passes the filter, otherwise false - - - - Check whether the filter matches a test - - The test to be matched - True if it matches, otherwise false - - - - Determine if a test matches the filter expicitly. That is, it must - be a direct match of the test itself or one of it's children. - - The test to which the filter is applied - True if the test matches the filter explicityly, otherwise false - - - - Adds an XML node - - Parent node - True if recursive - The added XML node - - - - Combines multiple filters so that a test must pass one - of them in order to pass this filter. - - - - - Constructs an empty OrFilter - - - - - Constructs an AndFilter from an array of filters - - - - - - Checks whether the OrFilter is matched by a test - - The test to be matched - True if any of the component filters pass, otherwise false - - - - Checks whether the OrFilter is matched by a test - - The test to be matched - True if any of the component filters match, otherwise false - - - - Gets the element name - - Element name - - - - PropertyFilter is able to select or exclude tests - based on their properties. - - - - - - Construct a PropertyFilter using a property name and expected value - - A property name - The expected value of the property - - - - Check whether the filter matches a test - - The test to be matched - - - - - Adds an XML node - - Parent node - True if recursive - The added XML node - - - - Gets the element name - - Element name - - - - TestName filter selects tests based on their Name - - - - - Construct a TestNameFilter for a single name - - The name the filter will recognize. - - - - Match a test against a single value. - - - - - Gets the element name - - Element name - - - - ValueMatchFilter selects tests based on some value, which - is expected to be contained in the test. - - - - - Returns the value matched by the filter - used for testing - - - - - Indicates whether the value is a regular expression - - - - - Construct a ValueMatchFilter for a single value. - - The value to be included. - - - - Match the input provided by the derived class - - The value to be matchedT - True for a match, false otherwise. - - - - Adds an XML node - - Parent node - True if recursive - The added XML node - - - - Gets the element name - - Element name - - - - GenericMethodHelper is able to deduce the Type arguments for - a generic method from the actual arguments provided. - - - - - Construct a GenericMethodHelper for a method - - MethodInfo for the method to examine - - - - Return the type argments for the method, deducing them - from the arguments actually provided. - - The arguments to the method - An array of type arguments. - - - - InvalidTestFixtureException is thrown when an appropriate test - fixture constructor using the provided arguments cannot be found. - - - - - Initializes a new instance of the class. - - - - - Initializes a new instance of the class. - - The message. - - - - Initializes a new instance of the class. - - The message. - The inner. - - - - InvalidTestFixtureException is thrown when an appropriate test - fixture constructor using the provided arguments cannot be found. - - - - - Initializes a new instance of the class. - - - - - Initializes a new instance of the class. - - The message. - - - - Initializes a new instance of the class. - - The message. - The inner. - - - - The MethodWrapper class wraps a MethodInfo so that it may - be used in a platform-independent manner. - - - - - Construct a MethodWrapper for a Type and a MethodInfo. - - - - - Construct a MethodInfo for a given Type and method name. - - - - - Gets the Type from which this method was reflected. - - - - - Gets the MethodInfo for this method. - - - - - Gets the name of the method. - - - - - Gets a value indicating whether the method is abstract. - - - - - Gets a value indicating whether the method is public. - - - - - Gets a value indicating whether the method contains unassigned generic type parameters. - - - - - Gets a value indicating whether the method is a generic method. - - - - - Gets a value indicating whether the MethodInfo represents the definition of a generic method. - - - - - Gets the return Type of the method. - - - - - Gets the parameters of the method. - - - - - - Returns the Type arguments of a generic method or the Type parameters of a generic method definition. - - - - - Replaces the type parameters of the method with the array of types provided and returns a new IMethodInfo. - - The type arguments to be used - A new IMethodInfo with the type arguments replaced - - - - Returns an array of custom attributes of the specified type applied to this method - - - - - Gets a value indicating whether one or more attributes of the spcified type are defined on the method. - - - - - Invokes the method, converting any TargetInvocationException to an NUnitException. - - The object on which to invoke the method - The argument list for the method - The return value from the invoked method - - - - Override ToString() so that error messages in NUnit's own tests make sense - - - - - Thrown when an assertion failed. Here to preserve the inner - exception and hence its stack trace. - - - - - Initializes a new instance of the class. - - - - - Initializes a new instance of the class. - - The error message that explains - the reason for the exception - - - - Initializes a new instance of the class. - - The error message that explains - the reason for the exception - The exception that caused the - current exception - - - - The ParameterWrapper class wraps a ParameterInfo so that it may - be used in a platform-independent manner. - - - - - Construct a ParameterWrapper for a given method and parameter - - - - - - - Gets a value indicating whether the parameter is optional - - - - - Gets an IMethodInfo representing the method for which this is a parameter. - - - - - Gets the underlying ParameterInfo - - - - - Gets the Type of the parameter - - - - - Returns an array of custom attributes of the specified type applied to this method - - - - - Gets a value indicating whether one or more attributes of the specified type are defined on the parameter. - - - - - A PropertyBag represents a collection of name value pairs - that allows duplicate entries with the same key. Methods - are provided for adding a new pair as well as for setting - a key to a single value. All keys are strings but _values - may be of any type. Null _values are not permitted, since - a null entry represents the absence of the key. - - - - - Adds a key/value pair to the property set - - The key - The value - - - - Sets the value for a key, removing any other - _values that are already in the property set. - - - - - - - Gets a single value for a key, using the first - one if multiple _values are present and returning - null if the value is not found. - - - - - - - Gets a flag indicating whether the specified key has - any entries in the property set. - - The key to be checked - - True if their are _values present, otherwise false - - - - - Gets a collection containing all the keys in the property set - - - - - - Gets or sets the list of _values for a particular key - - - - - Returns an XmlNode representating the current PropertyBag. - - Not used - An XmlNode representing the PropertyBag - - - - Returns an XmlNode representing the PropertyBag after - adding it as a child of the supplied parent node. - - The parent node. - Not used - - - - - The PropertyNames class provides static constants for the - standard property ids that NUnit uses on tests. - - - - - The FriendlyName of the AppDomain in which the assembly is running - - - - - The selected strategy for joining parameter data into test cases - - - - - The process ID of the executing assembly - - - - - The stack trace from any data provider that threw - an exception. - - - - - The reason a test was not run - - - - - The author of the tests - - - - - The ApartmentState required for running the test - - - - - The categories applying to a test - - - - - The Description of a test - - - - - The number of threads to be used in running tests - - - - - The maximum time in ms, above which the test is considered to have failed - - - - - The ParallelScope associated with a test - - - - - The number of times the test should be repeated - - - - - Indicates that the test should be run on a separate thread - - - - - The culture to be set for a test - - - - - The UI culture to be set for a test - - - - - The type that is under test - - - - - The timeout value for the test - - - - - The test will be ignored until the given date - - - - - Randomizer returns a set of random _values in a repeatable - way, to allow re-running of tests if necessary. It extends - the .NET Random class, providing random values for a much - wider range of types. - - The class is used internally by the framework to generate - test case data and is also exposed for use by users through - the TestContext.Random property. - - - For consistency with the underlying Random Type, methods - returning a single value use the prefix "Next..." Those - without an argument return a non-negative value up to - the full positive range of the Type. Overloads are provided - for specifying a maximum or a range. Methods that return - arrays or strings use the prefix "Get..." to avoid - confusion with the single-value methods. - - - - - Initial seed used to create randomizers for this run - - - - - 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. - - - - - Create a new Randomizer using the next seed - available to ensure that each randomizer gives - a unique sequence of values. - - - - - - Default constructor - - - - - Construct based on seed value - - - - - - Returns a random unsigned int. - - - - - Returns a random unsigned int less than the specified maximum. - - - - - Returns a random unsigned int within a specified range. - - - - - Returns a non-negative random short. - - - - - Returns a non-negative random short less than the specified maximum. - - - - - Returns a non-negative random short within a specified range. - - - - - Returns a random unsigned short. - - - - - Returns a random unsigned short less than the specified maximum. - - - - - Returns a random unsigned short within a specified range. - - - - - Returns a random long. - - - - - Returns a random long less than the specified maximum. - - - - - Returns a non-negative random long within a specified range. - - - - - Returns a random ulong. - - - - - Returns a random ulong less than the specified maximum. - - - - - Returns a non-negative random long within a specified range. - - - - - Returns a random Byte - - - - - Returns a random Byte less than the specified maximum. - - - - - Returns a random Byte within a specified range - - - - - Returns a random SByte - - - - - Returns a random sbyte less than the specified maximum. - - - - - Returns a random sbyte within a specified range - - - - - Returns a random bool - - - - - Returns a random bool based on the probablility a true result - - - - - Returns a random double between 0.0 and the specified maximum. - - - - - Returns a random double within a specified range. - - - - - Returns a random float. - - - - - Returns a random float between 0.0 and the specified maximum. - - - - - Returns a random float within a specified range. - - - - - Returns a random enum value of the specified Type as an object. - - - - - Returns a random enum value of the specified Type. - - - - - Default characters for random functions. - - Default characters are the English alphabet (uppercase & lowercase), arabic numerals, and underscore - - - - Generate a random string based on the characters from the input string. - - desired length of output string. - string representing the set of characters from which to construct the resulting string - A random string of arbitrary length - - - - Generate a random string based on the characters from the input string. - - desired length of output string. - A random string of arbitrary length - Uses DefaultStringChars as the input character set - - - - Generate a random string based on the characters from the input string. - - A random string of the default length - Uses DefaultStringChars as the input character set - - - - Returns a random decimal. - - - - - Returns a random decimal between positive zero and the specified maximum. - - - - - Returns a random decimal within a specified range, which is not - permitted to exceed decimal.MaxVal in the current implementation. - - - A limitation of this implementation is that the range from min - to max must not exceed decimal.MaxVal. - - - - - Helper methods for inspecting a type by reflection. - - Many of these methods take ICustomAttributeProvider as an - argument to avoid duplication, even though certain attributes can - only appear on specific types of members, like MethodInfo or Type. - - In the case where a type is being examined for the presence of - an attribute, interface or named member, the Reflect methods - operate with the full name of the member being sought. This - removes the necessity of the caller having a reference to the - assembly that defines the item being sought and allows the - NUnit core to inspect assemblies that reference an older - version of the NUnit framework. - - - - - Examine a fixture type and return an array of methods having a - particular attribute. The array is order with base methods first. - - The type to examine - The attribute Type to look for - Specifies whether to search the fixture type inheritance chain - The array of methods found - - - - Examine a fixture type and return true if it has a method with - a particular attribute. - - The type to examine - The attribute Type to look for - True if found, otherwise false - - - - Invoke the default constructor on a Type - - The Type to be constructed - An instance of the Type - - - - Invoke a constructor on a Type with arguments - - The Type to be constructed - Arguments to the constructor - An instance of the Type - - - - Returns an array of types from an array of objects. - Used because the compact framework doesn't support - Type.GetTypeArray() - - An array of objects - An array of Types - - - - Invoke a parameterless method returning void on an object. - - A MethodInfo for the method to be invoked - The object on which to invoke the method - - - - Invoke a method, converting any TargetInvocationException to an NUnitException. - - A MethodInfo for the method to be invoked - The object on which to invoke the method - The argument list for the method - The return value from the invoked method - - - - Represents the result of running a single test case. - - - - - Construct a TestCaseResult based on a TestMethod - - A TestMethod to which the result applies. - - - - Gets the number of test cases that failed - when running the test and all its children. - - - - - Gets the number of test cases that passed - when running the test and all its children. - - - - - Gets the number of test cases that were skipped - when running the test and all its children. - - - - - Gets the number of test cases that were inconclusive - when running the test and all its children. - - - - - The TestResult class represents the result of a test. - - - - - Error message for when child tests have errors - - - - - Error message for when child tests are ignored - - - - - The minimum duration for tests - - - - - List of child results - - - - - Construct a test result given a Test - - The test to be used - - - - Gets the test with which this result is associated. - - - - - Gets the ResultState of the test result, which - indicates the success or failure of the test. - - - - - Gets the name of the test result - - - - - Gets the full name of the test result - - - - - Gets or sets the elapsed time for running the test in seconds - - - - - Gets or sets the time the test started running. - - - - - Gets or sets the time the test finished running. - - - - - Gets the message associated with a test - failure or with not running the test - - - - - Gets any stacktrace associated with an - error or failure. - - - - - Gets or sets the count of asserts executed - when running the test. - - - - - Gets the number of test cases that failed - when running the test and all its children. - - - - - Gets the number of test cases that passed - when running the test and all its children. - - - - - Gets the number of test cases that were skipped - when running the test and all its children. - - - - - Gets the number of test cases that were inconclusive - when running the test and all its children. - - - - - Indicates whether this result has any child results. - Test HasChildren before accessing Children to avoid - the creation of an empty collection. - - - - - Gets the collection of child results. - - - - - Gets a TextWriter, which will write output to be included in the result. - - - - - Gets any text output written to this result. - - - - - Returns the Xml representation of the result. - - If true, descendant results are included - An XmlNode representing the result - - - - Adds the XML representation of the result as a child of the - supplied parent node.. - - The parent node. - If true, descendant results are included - - - - - Adds a child result to this result, setting this result's - ResultState to Failure if the child result failed. - - The result to be added - - - - Set the result of the test - - The ResultState to use in the result - - - - Set the result of the test - - The ResultState to use in the result - A message associated with the result state - - - - Set the result of the test - - The ResultState to use in the result - A message associated with the result state - Stack trace giving the location of the command - - - - Set the test result based on the type of exception thrown - - The exception that was thrown - - - - Set the test result based on the type of exception thrown - - The exception that was thrown - THe FailureSite to use in the result - - - - RecordTearDownException appends the message and stacktrace - from an exception arising during teardown of the test - to any previously recorded information, so that any - earlier failure information is not lost. Note that - calling Assert.Ignore, Assert.Inconclusive, etc. during - teardown is treated as an error. If the current result - represents a suite, it may show a teardown error even - though all contained tests passed. - - The Exception to be recorded - - - - Adds a reason element to a node and returns it. - - The target node. - The new reason element. - - - - Adds a failure element to a node and returns it. - - The target node. - The new failure element. - - - - Represents the result of running a test suite - - - - - Construct a TestSuiteResult base on a TestSuite - - The TestSuite to which the result applies - - - - Gets the number of test cases that failed - when running the test and all its children. - - - - - Gets the number of test cases that passed - when running the test and all its children. - - - - - Gets the number of test cases that were skipped - when running the test and all its children. - - - - - Gets the number of test cases that were inconclusive - when running the test and all its children. - - - - - Add a child result - - The child result to be added - - - - StackFilter class is used to remove internal NUnit - entries from a stack trace so that the resulting - trace provides better information about the test. - - - - - Filters a raw stack trace and returns the result. - - The original stack trace - A filtered stack trace - - - - Provides methods to support legacy string comparison methods. - - - - - Compares two strings for equality, ignoring case if requested. - - The first string. - The second string.. - if set to true, the case of the letters in the strings is ignored. - Zero if the strings are equivalent, a negative number if strA is sorted first, a positive number if - strB is sorted first - - - - Compares two strings for equality, ignoring case if requested. - - The first string. - The second string.. - if set to true, the case of the letters in the strings is ignored. - True if the strings are equivalent, false if not. - - - - The TestCaseParameters class encapsulates method arguments and - other selected parameters needed for constructing - a parameterized test case. - - - - - The expected result to be returned - - - - - Default Constructor creates an empty parameter set - - - - - Construct a non-runnable ParameterSet, specifying - the provider exception that made it invalid. - - - - - Construct a parameter set with a list of arguments - - - - - - Construct a ParameterSet from an object implementing ITestCaseData - - - - - - The expected result of the test, which - must match the method return type. - - - - - Gets a value indicating whether an expected result was specified. - - - - - Helper class used to save and restore certain static or - singleton settings in the environment that affect tests - or which might be changed by the user tests. - - An internal class is used to hold settings and a stack - of these objects is pushed and popped as Save and Restore - are called. - - - - - Link to a prior saved context - - - - - Indicates that a stop has been requested - - - - - The event listener currently receiving notifications - - - - - The number of assertions for the current test - - - - - The current culture - - - - - The current UI culture - - - - - The current test result - - - - - Initializes a new instance of the class. - - - - - Initializes a new instance of the class. - - An existing instance of TestExecutionContext. - - - - The current context, head of the list of saved contexts. - - - - - Gets the current context. - - The current context. - - - - Clear the current context. This is provided to - prevent "leakage" of the CallContext containing - the current context back to any runners. - - - - - Gets or sets the current test - - - - - The time the current test started execution - - - - - The time the current test started in Ticks - - - - - Gets or sets the current test result - - - - - Gets a TextWriter that will send output to the current test result. - - - - - The current test object - that is the user fixture - object on which tests are being executed. - - - - - Get or set the working directory - - - - - Get or set indicator that run should stop on the first error - - - - - Gets an enum indicating whether a stop has been requested. - - - - - The current test event listener - - - - - The current WorkItemDispatcher - - - - - The ParallelScope to be used by tests running in this context. - For builds with out the parallel feature, it has no effect. - - - - - Gets the RandomGenerator specific to this Test - - - - - Gets the assert count. - - The assert count. - - - - Gets or sets the test case timeout value - - - - - Gets a list of ITestActions set by upstream tests - - - - - Saves or restores the CurrentCulture - - - - - Saves or restores the CurrentUICulture - - - - - Record any changes in the environment made by - the test code in the execution context so it - will be passed on to lower level tests. - - - - - Set up the execution environment to match a context. - Note that we may be running on the same thread where the - context was initially created or on a different thread. - - - - - Increments the assert count by one. - - - - - Increments the assert count by a specified amount. - - - - - Enumeration indicating whether the tests are - running normally or being cancelled. - - - - - Running normally with no stop requested - - - - - A graceful stop has been requested - - - - - A forced stop has been requested - - - - - Interface to be implemented by filters applied to tests. - The filter applies when running the test, after it has been - loaded, since this is the only time an ITest exists. - - - - - Unique Empty filter. - - - - - Indicates whether this is the EmptyFilter - - - - - Indicates whether this is a top-level filter, - not contained in any other filter. - - - - - Determine if a particular test passes the filter criteria. The default - implementation checks the test itself, its parents and any descendants. - - Derived classes may override this method or any of the Match methods - to change the behavior of the filter. - - The test to which the filter is applied - True if the test passes the filter, otherwise false - - - - Determine if a test matches the filter expicitly. That is, it must - be a direct match of the test itself or one of it's children. - - The test to which the filter is applied - True if the test matches the filter explicityly, otherwise false - - - - Determine whether the test itself matches the filter criteria, without - examining either parents or descendants. This is overridden by each - different type of filter to perform the necessary tests. - - The test to which the filter is applied - True if the filter matches the any parent of the test - - - - Determine whether any ancestor of the test matches the filter criteria - - The test to which the filter is applied - True if the filter matches the an ancestor of the test - - - - Determine whether any descendant of the test matches the filter criteria. - - The test to be matched - True if at least one descendant matches the filter criteria - - - - Create a TestFilter instance from an xml representation. - - - - - Create a TestFilter from it's TNode representation - - - - - Nested class provides an empty filter - one that always - returns true when called. It never matches explicitly. - - - - - Adds an XML node - - True if recursive - The added XML node - - - - Adds an XML node - - Parent node - True if recursive - The added XML node - - - - The TestCaseParameters class encapsulates method arguments and - other selected parameters needed for constructing - a parameterized test case. - - - - - Default Constructor creates an empty parameter set - - - - - Construct a non-runnable ParameterSet, specifying - the provider exception that made it invalid. - - - - - Construct a parameter set with a list of arguments - - - - - - Construct a ParameterSet from an object implementing ITestCaseData - - - - - - Type arguments used to create a generic fixture instance - - - - - TestListener provides an implementation of ITestListener that - does nothing. It is used only through its NULL property. - - - - - Called when a test has just started - - The test that is starting - - - - Called when a test case has finished - - The result of the test - - - - Construct a new TestListener - private so it may not be used. - - - - - Get a listener that does nothing - - - - - TestNameGenerator is able to create test names according to - a coded pattern. - - - - - Construct a TestNameGenerator - - The pattern used by this generator. - - - - Get the display name for a TestMethod and it's arguments - - A TestMethod - The display name - - - - Get the display name for a TestMethod and it's arguments - - A TestMethod - Arguments to be used - The display name - - - - Get the display name for a MethodInfo - - A MethodInfo - The display name - - - - Get the display name for a method with args - - A MethodInfo - Argument list for the method - The display name - - - - TestParameters is the abstract base class for all classes - that know how to provide data for constructing a test. - - - - - Default Constructor creates an empty parameter set - - - - - Construct a parameter set with a list of arguments - - - - - - Construct a non-runnable ParameterSet, specifying - the provider exception that made it invalid. - - - - - Construct a ParameterSet from an object implementing ITestData - - - - - - The RunState for this set of parameters. - - - - - The arguments to be used in running the test, - which must match the method signature. - - - - - A name to be used for this test case in lieu - of the standard generated name containing - the argument list. - - - - - Gets the property dictionary for this test - - - - - Applies ParameterSet _values to the test itself. - - A test. - - - - The original arguments provided by the user, - used for display purposes. - - - - - TestProgressReporter translates ITestListener events into - the async callbacks that are used to inform the client - software about the progress of a test run. - - - - - Initializes a new instance of the class. - - The callback handler to be used for reporting progress. - - - - Called when a test has just started - - The test that is starting - - - - Called when a test has finished. Sends a result summary to the callback. - to - - The result of the test - - - - Returns the parent test item for the targer test item if it exists - - - parent test item - - - - Makes a string safe for use as an attribute, replacing - characters characters that can't be used with their - corresponding xml representations. - - The string to be used - A new string with the _values replaced - - - - ParameterizedFixtureSuite serves as a container for the set of test - fixtures created from a given Type using various parameters. - - - - - Initializes a new instance of the class. - - The ITypeInfo for the type that represents the suite. - - - - Gets a string representing the type of test - - - - - - ParameterizedMethodSuite holds a collection of individual - TestMethods with their arguments applied. - - - - - Construct from a MethodInfo - - - - - - Gets a string representing the type of test - - - - - - SetUpFixture extends TestSuite and supports - Setup and TearDown methods. - - - - - Initializes a new instance of the class. - - The type. - - - - The Test abstract class represents a test within the framework. - - - - - Static value to seed ids. It's started at 1000 so any - uninitialized ids will stand out. - - - - - The SetUp methods. - - - - - The teardown methods - - - - - Constructs a test given its name - - The name of the test - - - - Constructs a test given the path through the - test hierarchy to its parent and a name. - - The parent tests full name - The name of the test - - - - TODO: Documentation needed for constructor - - - - - - Construct a test from a MethodInfo - - - - - - Gets or sets the id of the test - - - - - - Gets or sets the name of the test - - - - - Gets or sets the fully qualified name of the test - - - - - - Gets the name of the class containing this test. Returns - null if the test is not associated with a class. - - - - - Gets the name of the method implementing this test. - Returns null if the test is not implemented as a method. - - - - - Gets the TypeInfo of the fixture used in running this test - or null if no fixture type is associated with it. - - - - - Gets a MethodInfo for the method implementing this test. - Returns null if the test is not implemented as a method. - - - - - Whether or not the test should be run - - - - - Gets the name used for the top-level element in the - XML representation of this test - - - - - Gets a string representing the type of test. Used as an attribute - value in the XML representation of a test and has no other - function in the framework. - - - - - Gets a count of test cases represented by - or contained under this test. - - - - - Gets the properties for this test - - - - - Returns true if this is a TestSuite - - - - - Gets a bool indicating whether the current test - has any descendant tests. - - - - - Gets the parent as a Test object. - Used by the core to set the parent. - - - - - Gets this test's child tests - - A list of child tests - - - - Gets or sets a fixture object for running this test. - - - - - Static prefix used for ids in this AppDomain. - Set by FrameworkController. - - - - - Gets or Sets the Int value representing the seed for the RandomGenerator - - - - - - Creates a TestResult for this test. - - A TestResult suitable for this type of test. - - - - Modify a newly constructed test by applying any of NUnit's common - attributes, based on a supplied ICustomAttributeProvider, which is - usually the reflection element from which the test was constructed, - but may not be in some instances. The attributes retrieved are - saved for use in subsequent operations. - - An object deriving from MemberInfo - - - - Modify a newly constructed test by applying any of NUnit's common - attributes, based on a supplied ICustomAttributeProvider, which is - usually the reflection element from which the test was constructed, - but may not be in some instances. The attributes retrieved are - saved for use in subsequent operations. - - An object deriving from MemberInfo - - - - Add standard attributes and members to a test node. - - - - - - - Returns the Xml representation of the test - - If true, include child tests recursively - - - - - Returns an XmlNode representing the current result after - adding it as a child of the supplied parent node. - - The parent node. - If true, descendant results are included - - - - - Compares this test to another test for sorting purposes - - The other test - Value of -1, 0 or +1 depending on whether the current test is less than, equal to or greater than the other test - - - - TestAssembly is a TestSuite that represents the execution - of tests in a managed assembly. - - - - - Initializes a new instance of the class - specifying the Assembly and the path from which it was loaded. - - The assembly this test represents. - The path used to load the assembly. - - - - Initializes a new instance of the class - for a path which could not be loaded. - - The path used to load the assembly. - - - - Gets the Assembly represented by this instance. - - - - - Gets the name used for the top-level element in the - XML representation of this test - - - - - TestFixture is a surrogate for a user test fixture class, - containing one or more tests. - - - - - Initializes a new instance of the class. - - Type of the fixture. - - - - The TestMethod class represents a Test implemented as a method. - - - - - The ParameterSet used to create this test method - - - - - Initializes a new instance of the class. - - The method to be used as a test. - - - - Initializes a new instance of the class. - - The method to be used as a test. - The suite or fixture to which the new test will be added - - - - Overridden to return a TestCaseResult. - - A TestResult for this test. - - - - Gets a bool indicating whether the current test - has any descendant tests. - - - - - Returns a TNode representing the current result after - adding it as a child of the supplied parent node. - - The parent node. - If true, descendant results are included - - - - - Gets this test's child tests - - A list of child tests - - - - Gets the name used for the top-level element in the - XML representation of this test - - - - - Returns the name of the method - - - - - TestSuite represents a composite test, which contains other tests. - - - - - Our collection of child tests - - - - - Initializes a new instance of the class. - - The name of the suite. - - - - Initializes a new instance of the class. - - Name of the parent suite. - The name of the suite. - - - - Initializes a new instance of the class. - - Type of the fixture. - - - - Initializes a new instance of the class. - - Type of the fixture. - - - - Sorts tests under this suite. - - - - - Adds a test to the suite. - - The test. - - - - Gets this test's child tests - - The list of child tests - - - - Gets a count of test cases represented by - or contained under this test. - - - - - - The arguments to use in creating the fixture - - - - - Set to true to suppress sorting this suite's contents - - - - - Overridden to return a TestSuiteResult. - - A TestResult for this test. - - - - Gets a bool indicating whether the current test - has any descendant tests. - - - - - Gets the name used for the top-level element in the - XML representation of this test - - - - - Returns an XmlNode representing the current result after - adding it as a child of the supplied parent node. - - The parent node. - If true, descendant results are included - - - - - Check that setup and teardown methods marked by certain attributes - meet NUnit's requirements and mark the tests not runnable otherwise. - - The attribute type to check for - - - - TypeHelper provides static methods that operate on Types. - - - - - A special value, which is used to indicate that BestCommonType() method - was unable to find a common type for the specified arguments. - - - - - Gets the display name for a Type as used by NUnit. - - The Type for which a display name is needed. - The display name for the Type - - - - Gets the display name for a Type as used by NUnit. - - The Type for which a display name is needed. - The arglist provided. - The display name for the Type - - - - Returns the best fit for a common type to be used in - matching actual arguments to a methods Type parameters. - - The first type. - The second type. - Either type1 or type2, depending on which is more general. - - - - Determines whether the specified type is numeric. - - The type to be examined. - - true if the specified type is numeric; otherwise, false. - - - - - Convert an argument list to the required parameter types. - Currently, only widening numeric conversions are performed. - - An array of args to be converted - A ParameterInfo[] whose types will be used as targets - - - - Determines whether this instance can deduce type args for a generic type from the supplied arguments. - - The type to be examined. - The arglist. - The type args to be used. - - true if this the provided args give sufficient information to determine the type args to be used; otherwise, false. - - - - - Gets the _values for an enumeration, using Enum.GetTypes - where available, otherwise through reflection. - - - - - - - Gets the ids of the _values for an enumeration, - using Enum.GetNames where available, otherwise - through reflection. - - - - - - - The TypeWrapper class wraps a Type so it may be used in - a platform-independent manner. - - - - - Construct a TypeWrapper for a specified Type. - - - - - Gets the underlying Type on which this TypeWrapper is based. - - - - - Gets the base type of this type as an ITypeInfo - - - - - Gets the Name of the Type - - - - - Gets the FullName of the Type - - - - - Gets the assembly in which the type is declared - - - - - Gets the namespace of the Type - - - - - Gets a value indicating whether the type is abstract. - - - - - Gets a value indicating whether the Type is a generic Type - - - - - Returns true if the Type wrapped is T - - - - - Gets a value indicating whether the Type has generic parameters that have not been replaced by specific Types. - - - - - Gets a value indicating whether the Type is a generic Type definition - - - - - Gets a value indicating whether the type is sealed. - - - - - Gets a value indicating whether this type represents a static class. - - - - - Get the display name for this type - - - - - Get the display name for an object of this type, constructed with the specified args. - - - - - Returns a new ITypeInfo representing an instance of this generic Type using the supplied Type arguments - - - - - Returns a Type representing a generic type definition from which this Type can be constructed. - - - - - Returns an array of custom attributes of the specified type applied to this type - - - - - Returns a value indicating whether the type has an attribute of the specified type. - - - - - - - - Returns a flag indicating whether this type has a method with an attribute of the specified type. - - - - - - - Returns an array of IMethodInfos for methods of this Type - that match the specified flags. - - - - - Returns a value indicating whether this Type has a public constructor taking the specified argument Types. - - - - - Construct an object of this Type, using the specified arguments. - - - - - Override ToString() so that error messages in NUnit's own tests make sense - - - - - Class used to guard against unexpected argument values - or operations by throwing an appropriate exception. - - - - - Throws an exception if an argument is null - - The value to be tested - The name of the argument - - - - Throws an exception if a string argument is null or empty - - The value to be tested - The name of the argument - - - - Throws an ArgumentOutOfRangeException if the specified condition is not met. - - The condition that must be met - The exception message to be used - The name of the argument - - - - Throws an ArgumentException if the specified condition is not met. - - The condition that must be met - The exception message to be used - The name of the argument - - - - Throws an InvalidOperationException if the specified condition is not met. - - The condition that must be met - The exception message to be used - - - - The different targets a test action attribute can be applied to - - - - - Default target, which is determined by where the action attribute is attached - - - - - Target a individual test case - - - - - Target a suite of test cases - - - - - DefaultTestAssemblyBuilder loads a single assembly and builds a TestSuite - containing test fixtures present in the assembly. - - - - - The default suite builder used by the test assembly builder. - - - - - Initializes a new instance of the class. - - - - - Build a suite of tests from a provided assembly - - The assembly from which tests are to be built - A dictionary of options to use in building the suite - - A TestSuite containing the tests found in the assembly - - - - - Build a suite of tests given the filename of an assembly - - The filename of the assembly from which tests are to be built - A dictionary of options to use in building the suite - - A TestSuite containing the tests found in the assembly - - - - - FrameworkController provides a facade for use in loading, browsing - and running tests without requiring a reference to the NUnit - framework. All calls are encapsulated in constructors for - this class and its nested classes, which only require the - types of the Common Type System as arguments. - - The controller supports four actions: Load, Explore, Count and Run. - They are intended to be called by a driver, which should allow for - proper sequencing of calls. Load must be called before any of the - other actions. The driver may support other actions, such as - reload on run, by combining these calls. - - - - - Construct a FrameworkController using the default builder and runner. - - The AssemblyName or path to the test assembly - A prefix used for all test ids created under this controller. - A Dictionary of settings to use in loading and running the tests - - - - Construct a FrameworkController using the default builder and runner. - - The test assembly - A prefix used for all test ids created under this controller. - A Dictionary of settings to use in loading and running the tests - - - - Construct a FrameworkController, specifying the types to be used - for the runner and builder. This constructor is provided for - purposes of development. - - The full AssemblyName or the path to the test assembly - A prefix used for all test ids created under this controller. - A Dictionary of settings to use in loading and running the tests - The Type of the test runner - The Type of the test builder - - - - Construct a FrameworkController, specifying the types to be used - for the runner and builder. This constructor is provided for - purposes of development. - - The test assembly - A prefix used for all test ids created under this controller. - A Dictionary of settings to use in loading and running the tests - The Type of the test runner - The Type of the test builder - - - - Gets the ITestAssemblyBuilder used by this controller instance. - - The builder. - - - - Gets the ITestAssemblyRunner used by this controller instance. - - The runner. - - - - Gets the AssemblyName or the path for which this FrameworkController was created - - - - - Gets the Assembly for which this - - - - - Gets a dictionary of settings for the FrameworkController - - - - - Inserts settings element - - Target node - Settings dictionary - The new node - - - - FrameworkControllerAction is the base class for all actions - performed against a FrameworkController. - - - - - LoadTestsAction loads a test into the FrameworkController - - - - - LoadTestsAction loads the tests in an assembly. - - The controller. - The callback handler. - - - - ExploreTestsAction returns info about the tests in an assembly - - - - - Initializes a new instance of the class. - - The controller for which this action is being performed. - Filter used to control which tests are included (NYI) - The callback handler. - - - - CountTestsAction counts the number of test cases in the loaded TestSuite - held by the FrameworkController. - - - - - Construct a CountsTestAction and perform the count of test cases. - - A FrameworkController holding the TestSuite whose cases are to be counted - A string containing the XML representation of the filter to use - A callback handler used to report results - - - - RunTestsAction runs the loaded TestSuite held by the FrameworkController. - - - - - Construct a RunTestsAction and run all tests in the loaded TestSuite. - - A FrameworkController holding the TestSuite to run - A string containing the XML representation of the filter to use - A callback handler used to report results - - - - RunAsyncAction initiates an asynchronous test run, returning immediately - - - - - Construct a RunAsyncAction and run all tests in the loaded TestSuite. - - A FrameworkController holding the TestSuite to run - A string containing the XML representation of the filter to use - A callback handler used to report results - - - - StopRunAction stops an ongoing run. - - - - - Construct a StopRunAction and stop any ongoing run. If no - run is in process, no error is raised. - - The FrameworkController for which a run is to be stopped. - True the stop should be forced, false for a cooperative stop. - >A callback handler used to report results - A forced stop will cause threads and processes to be killed as needed. - - - - The ITestAssemblyBuilder interface is implemented by a class - that is able to build a suite of tests given an assembly or - an assembly filename. - - - - - Build a suite of tests from a provided assembly - - The assembly from which tests are to be built - A dictionary of options to use in building the suite - A TestSuite containing the tests found in the assembly - - - - Build a suite of tests given the filename of an assembly - - The filename of the assembly from which tests are to be built - A dictionary of options to use in building the suite - A TestSuite containing the tests found in the assembly - - - - The ITestAssemblyRunner interface is implemented by classes - that are able to execute a suite of tests loaded - from an assembly. - - - - - Gets the tree of loaded tests, or null if - no tests have been loaded. - - - - - Gets the tree of test results, if the test - run is completed, otherwise null. - - - - - Indicates whether a test has been loaded - - - - - Indicates whether a test is currently running - - - - - Indicates whether a test run is complete - - - - - Loads the tests found in an Assembly, returning an - indication of whether or not the load succeeded. - - File name of the assembly to load - Dictionary of options to use in loading the test - An ITest representing the loaded tests - - - - Loads the tests found in an Assembly, returning an - indication of whether or not the load succeeded. - - The assembly to load - Dictionary of options to use in loading the test - An ITest representing the loaded tests - - - - Count Test Cases using a filter - - The filter to apply - The number of test cases found - - - - Run selected tests and return a test result. The test is run synchronously, - and the listener interface is notified as it progresses. - - Interface to receive ITestListener notifications. - A test filter used to select tests to be run - - - - Run selected tests asynchronously, notifying the listener interface as it progresses. - - Interface to receive EventListener notifications. - A test filter used to select tests to be run - - - - Wait for the ongoing run to complete. - - Time to wait in milliseconds - True if the run completed, otherwise false - - - - Signal any test run that is in process to stop. Return without error if no test is running. - - If true, kill any test-running threads - - - - Implementation of ITestAssemblyRunner - - - - - Initializes a new instance of the class. - - The builder. - - - - The tree of tests that was loaded by the builder - - - - - The test result, if a run has completed - - - - - Indicates whether a test is loaded - - - - - Indicates whether a test is running - - - - - Indicates whether a test run is complete - - - - - Our settings, specified when loading the assembly - - - - - The top level WorkItem created for the assembly as a whole - - - - - The TestExecutionContext for the top level WorkItem - - - - - Loads the tests found in an Assembly - - File name of the assembly to load - Dictionary of option settings for loading the assembly - True if the load was successful - - - - Loads the tests found in an Assembly - - The assembly to load - Dictionary of option settings for loading the assembly - True if the load was successful - - - - Count Test Cases using a filter - - The filter to apply - The number of test cases found - - - - Run selected tests and return a test result. The test is run synchronously, - and the listener interface is notified as it progresses. - - Interface to receive EventListener notifications. - A test filter used to select tests to be run - - - - - Run selected tests asynchronously, notifying the listener interface as it progresses. - - Interface to receive EventListener notifications. - A test filter used to select tests to be run - - RunAsync is a template method, calling various abstract and - virtual methods to be overridden by derived classes. - - - - - Wait for the ongoing run to complete. - - Time to wait in milliseconds - True if the run completed, otherwise false - - - - Initiate the test run. - - - - - Signal any test run that is in process to stop. Return without error if no test is running. - - If true, kill any test-running threads - - - - Create the initial TestExecutionContext used to run tests - - The ITestListener specified in the RunAsync call - - - - Handle the the Completed event for the top level work item - - - - - The Assert class contains a collection of static methods that - implement the most common assertions used in NUnit. - - - - - Verifies that the first int is greater than the second - int. 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 int is greater than the second - int. 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 - - - - 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 - - - - 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 - - - - 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 - - - - 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 - - - - 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 - - - - 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 - - - - 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 - - - - 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 - - - - 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 - - - - 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 - - - - 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 - - - - 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 - - - - 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 - - - - 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 - - - - Verifies that the first value is greater than or equal to 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 or equal to 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 or equal to 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 or equal to 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 or equal to 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 or equal to 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 or equal to 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 or equal to 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 or equal to 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 or equal to 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 or equal to 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 or equal to 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 or equal to 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 or equal to 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 or equal to 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 or equal to 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 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 - - - - 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 - - - - 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 - - - - 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 - - - - 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 - - - - 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 - - - - 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 - - - - 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 - - - - 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 - 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 - - - - 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 - 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 - - - - 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 - 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 - - - - 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 - 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 - - - - 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 - - - - 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 - - - - 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 - - - - 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 - - - - 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 - - - - 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 - - - - 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 - - - - 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 - - - - 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 - - - - 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 - - - - 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. - - - - - - - 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. - - - - - 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 - - - - 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 - - - - 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 - - - - 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 - - - - 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 - - - - 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 - - - - 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 - - - - 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 - - - - 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 - - - - Verifies that a delegate throws a particular exception when called. - - The exception Type expected - A TestDelegate - 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 TestDelegate - - - - Verifies that a delegate throws a particular exception when called. - - Type of the expected exception - A TestDelegate - 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 TestDelegate - - - - 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 - - - - 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 - - - - Verifies that a delegate throws an exception of a certain Type - or one derived from it 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 of a certain Type - or one derived from it when called and returns it. - - A TestDelegate - - - - Verifies that a delegate does not throw an exception - - A TestDelegate - 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 TestDelegate - - - - 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 - - - - Asserts that a condition is true. If the condition is false the method throws - an . - - A lambda that returns a Boolean - 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 . - - A lambda that returns a Boolean - - - - 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. - - 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 - - - - 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 - - - - 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 - 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 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 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. - Used as a synonym for That in rare cases where a private setter - causes a Visual Basic compilation error. - - 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. - Used as a synonym for That in rare cases where a private setter - causes a Visual Basic compilation error. - - - This method is provided for use by VB developers needing to test - the value of properties with private setters. - - 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 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 - - - - 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 - - - - 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 - - - - 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 - - - - 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 - - - - 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 - - - - 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 - - - - 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 - - - - Delegate used by tests that execute code and - capture any thrown exception. - - - - - AssertionHelper is an optional base class for user tests, - allowing the use of shorter ids for constraints and - asserts and avoiding conflict with the definition of - , from which it inherits much of its - behavior, in certain mock object frameworks. - - - - - 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 - - - - 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. - - 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 - - - - 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 - - - - 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 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 - - - - Returns a ListMapper based on a collection. - - The original collection - - - - - 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 - 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. - - 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 - - - - 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 - - - - Asserts that a condition is true. If the condition is false the method throws - an . - - A lambda that returns a Boolean - 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 . - - A lambda that returns a Boolean - - - - 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 - - - - Apply a constraint to an actual value, succeeding if the constraint - is satisfied and throwing an InconclusiveException 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 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 - - - - Provides the Author of a test or test fixture. - - - - - Initializes a new instance of the class. - - The name of the author. - - - - Initializes a new instance of the class. - - The name of the author. - The email address of the author. - - - - 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 - - - - - Modifies a test by adding a category to it. - - The test to modify - - - - Marks a test to use a combinatorial join of any argument - data provided. Since this is the default, the attribute is - optional. - - - - - Default constructor - - - - - Marks a test to use a particular CombiningStrategy to join - any parameter data provided. Since this is the default, the - attribute is optional. - - - - - Construct a CombiningStrategyAttribute incorporating an - ICombiningStrategy and an IParamterDataProvider. - - Combining strategy to be used in combining data - An IParameterDataProvider to supply data - - - - Construct a CombiningStrategyAttribute incorporating an object - that implements ICombiningStrategy and an IParameterDataProvider. - This constructor is provided for CLS compliance. - - Combining strategy to be used in combining data - An IParameterDataProvider to supply data - - - - Construct one or more TestMethods from a given MethodInfo, - using available parameter data. - - The MethodInfo for which tests are to be constructed. - The suite to which the tests will be added. - One or more TestMethods - - - - Modify the test by adding the name of the combining strategy - to the properties. - - The test to modify - - - - 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 - - - - Causes a test to be skipped if this CultureAttribute is not satisfied. - - The test to modify - - - - Tests to determine if the current culture is supported - based on the properties of this attribute. - - True, if the current culture is supported - - - - Test to determine if the a particular culture or comma- - delimited set of cultures is in use. - - Name of the culture or comma-separated list of culture ids - True if the culture is in use on the system - - - - Test to determine if one of a collection of cultures - is being used currently. - - - - - - - The abstract base class for all data-providing attributes - defined by NUnit. Used to select all data sources for a - method, class or parameter. - - - - - Default constructor - - - - - 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 a field, property or method providing a set of datapoints to - be used in executing any theories within the same fixture that require an - argument of the Type provided. The data source may provide an array of - the required Type or an . - Synonymous with DatapointSourceAttribute. - - - - - Used to mark a field, property or method providing a set of datapoints to - be used in executing any theories within the same fixture that require an - argument of the Type provided. The data source may provide an array of - the required Type or an . - Synonymous with DatapointsAttribute. - - - - - Attribute used to provide descriptive text about a - test case or fixture. - - - - - Construct a description Attribute - - The text of the description - - - - 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 - - - - Modifies a test by marking it as explicit. - - The test to modify - - - - 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 giving a reason for ignoring the test - - The reason for ignoring the test - - - - The date in the future to stop ignoring the test as a string in UTC time. - For example for a date and time, "2014-12-25 08:10:00Z" or for just a date, - "2014-12-25". If just a date is given, the Ignore will expire at midnight UTC. - - - Once the ignore until date has passed, the test will be marked - as runnable. Tests with an ignore until date will have an IgnoreUntilDate - property set which will appear in the test results. - - The string does not contain a valid string representation of a date and time. - - - - Modifies a test by marking it as Ignored. - - The test to modify - - - - 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 items 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 - - - - - LevelOfParallelismAttribute is used to set the number of worker threads - that may be allocated by the framework for running tests. - - - - - Construct a LevelOfParallelismAttribute. - - The number of worker threads to be created by the framework. - - - - Summary description for MaxTimeAttribute. - - - - - Construct a MaxTimeAttribute, given a time in milliseconds. - - The maximum elapsed time in milliseconds - - - - The abstract base class for all custom attributes defined by NUnit. - - - - - Default constructor - - - - - Attribute used to identify a method that is called once - to perform setup before any child tests are run. - - - - - Attribute used to identify a method that is called once - after all the child tests have run. The method is - guaranteed to be called, even if an exception is thrown. - - - - - Marks a test to use a pairwise join of any argument - data provided. Arguments will be combined in such a - way that all possible pairs of arguments are used. - - - - - Default constructor - - - - - ParallelizableAttribute is used to mark tests that may be run in parallel. - - - - - Construct a ParallelizableAttribute using default ParallelScope.Self. - - - - - Construct a ParallelizableAttribute with a specified scope. - - The ParallelScope associated with this attribute. - - - - Modify the context to be used for child tests - - The current TestExecutionContext - - - - The ParallelScope enumeration permits specifying the degree to - which a test and its descendants may be run in parallel. - - - - - No Parallelism is permitted - - - - - The test itself may be run in parallel with others at the same level - - - - - Descendants of the test may be run in parallel with one another - - - - - Descendants of the test down to the level of TestFixtures may be run in parallel - - - - - 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 - - - - - Modifies a test by adding properties to it. - - The test to modify - - - - RandomAttribute is used to supply a set of random _values - to a single parameter of a parameterized test. - - - - - Construct a random set of values appropriate for the Type of the - parameter on which the attribute appears, specifying only the count. - - - - - - Construct a set of ints within a specified range - - - - - Construct a set of unsigned ints within a specified range - - - - - Construct a set of longs within a specified range - - - - - Construct a set of unsigned longs within a specified range - - - - - Construct a set of shorts within a specified range - - - - - Construct a set of unsigned shorts within a specified range - - - - - Construct a set of doubles within a specified range - - - - - Construct a set of floats within a specified range - - - - - Construct a set of bytes within a specified range - - - - - Construct a set of sbytes within a specified range - - - - - 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 unsigned ints using default step of 1 - - - - - - - Construct a range of unsigned ints specifying the step size - - - - - - - - Construct a range of longs using a default step of 1 - - - - - - - Construct a range of longs - - - - - - - - Construct a range of unsigned longs using default step of 1 - - - - - - - Construct a range of unsigned longs specifying the step size - - - - - - - - Construct a range of doubles - - - - - - - - Construct a range of floats - - - - - - - - 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 - - - - Wrap a command and return the result. - - The command to be wrapped - The wrapped command - - - - The test command for the RepeatAttribute - - - - - Initializes a new instance of the class. - - The inner command. - The number of repetitions - - - - Runs the test, saving a TestResult in the supplied TestExecutionContext. - - The context in which the test should run. - A TestResult - - - - 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 - - - - Wrap a command and return the result. - - The command to be wrapped - The wrapped command - - - - The test command for the RetryAttribute - - - - - Initializes a new instance of the class. - - The inner command. - The number of repetitions - - - - Runs the test, saving a TestResult in the supplied TestExecutionContext. - - The context in which the test should run. - A TestResult - - - - Marks a test to use a Sequential join of any argument - data provided. Arguments will be combined into test cases, - taking the next value of each argument until all are used. - - - - - Default constructor - - - - - 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 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 class that contains one-time SetUp - and/or TearDown methods that apply to all the tests in a - namespace or an assembly. - - - - - SetUpFixtureAttribute is used to identify a SetUpFixture - - - - - Build a SetUpFixture from type provided. Normally called for a Type - on which the attribute has been placed. - - The type info of the fixture to be used. - A SetUpFixture object as a TestSuite. - - - - 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. - - - - - Provide actions to execute before and after tests. - - - - - Executed before each test is run - - The test that is going to be run. - - - - Executed after each test is run - - The test that has just been run. - - - - Provides the target for the action attribute - - - - - 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")] - public void TestDescriptionMethod() - {} - } - - - - - - Descriptive text for this test - - - - - The author of this test - - - - - The type that this test is testing - - - - - Modifies a test by adding a description, if not already set. - - The test to modify - - - - Gets or sets the expected result. - - The result. - - - - Returns true if an expected result has been set - - - - - Construct a TestMethod from a given method. - - The method for which a test is to be constructed. - The suite to which the test will be added. - A TestMethod - - - - TestCaseAttribute is used to mark parameterized test cases - and provide them with their arguments. - - - - - 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 or sets the name of the test. - - The name of the test. - - - - Gets or sets the RunState of this test case. - - - - - Gets the list of arguments to a test case - - - - - Gets the properties of the test case - - - - - Gets or sets the expected result. - - The result. - - - - Returns true if the expected result has been set - - - - - Gets or sets the description. - - The description. - - - - The author of this test - - - - - The type that this test is testing - - - - - Gets or sets the reason for ignoring the test - - - - - Gets or sets a value indicating whether this is explicit. - - - true if explicit; otherwise, false. - - - - - Gets or sets the reason for not running the test. - - The reason. - - - - Gets or sets the ignore reason. When set to a non-null - non-empty value, the test is marked as ignored. - - The ignore reason. - - - - Gets and sets the category for this test case. - May be a comma-separated list of categories. - - - - - Performs several special conversions allowed by NUnit in order to - permit arguments with types that cannot be used in the constructor - of an Attribute such as TestCaseAttribute or to simplify their use. - - The arguments to be converted - The ParameterInfo array for the method - - - - Construct one or more TestMethods from a given MethodInfo, - using available parameter data. - - The MethodInfo for which tests are to be constructed. - The suite to which the tests will be added. - One or more TestMethods - - - - TestCaseSourceAttribute indicates the source to be used to - provide test cases for a test method. - - - - - Construct with the name of the method, property or field that will provide data - - The name of a static method, property or field that will provide data. - - - - Construct with a Type and name - - The Type that will provide data - The name of a static method, property or field that will provide data. - - - - Construct with a Type - - The type 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 - - - - - Gets or sets the category associated with every fixture created from - this attribute. May be a single category or a comma-separated list. - - - - - Construct one or more TestMethods from a given MethodInfo, - using available parameter data. - - The IMethod for which tests are to be constructed. - The suite to which the tests will be added. - One or more TestMethods - - - - Returns a set of ITestCaseDataItems for use as arguments - to a parameterized test method. - - The method for which data is needed. - - - - - TestFixtureAttribute is used to mark a class that represents a TestFixture. - - - - - 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. - - - - - - Gets or sets the name of the test. - - The name of the test. - - - - Gets or sets the RunState of this test fixture. - - - - - The arguments originally provided to the attribute - - - - - Properties pertaining to this fixture - - - - - Get or set the type arguments. If not set - explicitly, any leading arguments that are - Types are taken as type arguments. - - - - - Descriptive text for this fixture - - - - - The author of this fixture - - - - - The type that this fixture is testing - - - - - Gets or sets the ignore reason. May set RunState as a side effect. - - The ignore reason. - - - - Gets or sets the reason for not running the fixture. - - The reason. - - - - Gets or sets the ignore reason. When set to a non-null - non-empty value, the test is marked as ignored. - - The ignore reason. - - - - Gets or sets a value indicating whether this is explicit. - - - true if explicit; otherwise, false. - - - - - Gets and sets the category for this fixture. - May be a comma-separated list of categories. - - - - - Build a fixture from type provided. Normally called for a Type - on which the attribute has been placed. - - The type info of the fixture to be used. - A an IEnumerable holding one TestFixture object. - - - - Attribute used to identify a method that is - called before any tests in a fixture are run. - - - - - TestCaseSourceAttribute indicates the source to be used to - provide test fixture instances for a test class. - - - - - Error message string is public so the tests can use it - - - - - Construct with the name of the method, property or field that will provide data - - The name of a static method, property or field that will provide data. - - - - Construct with a Type and name - - The Type that will provide data - The name of a static method, property or field that will provide data. - - - - Construct with a Type - - The type 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 - - - - - Gets or sets the category associated with every fixture created from - this attribute. May be a single category or a comma-separated list. - - - - - Construct one or more TestFixtures from a given Type, - using available parameter data. - - The TypeInfo for which fixures are to be constructed. - One or more TestFixtures as TestSuite - - - - Returns a set of ITestFixtureData items for use as arguments - to a parameterized test fixture. - - The type for which data is needed. - - - - - 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. - - - - - Indicates which class the test or test fixture is testing - - - - - Initializes a new instance of the class. - - The type that is being tested. - - - - Initializes a new instance of the class. - - The type that is being tested. - - - - 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")] - public void TestDescriptionMethod() - {} - } - - - - - - Construct the attribute, specifying a combining strategy and source of parameter data. - - - - - 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 - - - - - Constructs for use with an Enum parameter. Will pass every enum - value in to the test. - - - - - 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 - - - - - 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 a static method, property or field 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 a static 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 - - - - - Gets an enumeration of data items for use as arguments - for a test method parameter. - - The parameter for which data is needed - - An enumeration containing individual data items - - - - - A set of Assert methods operating 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 - 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 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 - 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 - 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 - 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 - 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 - 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 - 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 - Arguments to be used in formatting the message - - - - Asserts that the superset does not contain the subset - - The IEnumerable subset to be considered - The IEnumerable superset to be considered - - - - Asserts that the superset does not contain the subset - - The IEnumerable subset to be considered - The IEnumerable superset to be considered - The message that will be displayed on failure - Arguments to be used in formatting the message - - - - Asserts that the superset contains the subset. - - The IEnumerable subset to be considered - The IEnumerable superset to be considered - - - - Asserts that the superset contains the subset. - - The IEnumerable subset to be considered - The IEnumerable superset to be considered - The message that will be displayed on failure - Arguments to be used in formatting the message - - - - Asserts that the subset does not contain the superset - - The IEnumerable superset to be considered - The IEnumerable subset to be considered - - - - Asserts that the subset does not contain the superset - - 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 the subset contains the superset. - - The IEnumerable superset to be considered - The IEnumerable subset to be considered - - - - Asserts that the subset contains the superset. - - 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 - - - - 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 - - - - 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 - - - - 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 - - - - Provides a platform-independent methods for getting attributes - for use by AttributeConstraint and AttributeExistsConstraint. - - - - - Gets the custom attributes from the given object. - - Portable libraries do not have an ICustomAttributeProvider, so we need to cast to each of - it's direct subtypes and try to get attributes off those instead. - The actual. - Type of the attribute. - if set to true [inherit]. - A list of the given attribute on the given object. - - - - Specifies flags that control binding and the way in which the search for members - and types is conducted by reflection. - - - - - Specifies no binding flag. - - - - - Specifies that only members declared at the level of the supplied type's hierarchy - should be considered. Inherited members are not considered. - - - - - Specifies that instance members are to be included in the search. - - - - - Specifies that static members are to be included in the search. - - - - - Specifies that public members are to be included in the search. - - - - - Specifies that non-public members are to be included in the search. - - - - - Specifies that public and protected static members up the hierarchy should be - returned. Private static members in inherited classes are not returned. Static - members include fields, methods, events, and properties. Nested types are not - returned. - - - - - A MarshalByRefObject that lives forever - - - - - Some path based methods that we need even in the Portable framework which - does not have the System.IO.Path class - - - - - Windows directory separator - - - - - Alternate directory separator - - - - - A volume separator character. - - - - - Get the file name and extension of the specified path string. - - The path string from which to obtain the file name and extension. - The filename as a . If the last character of is a directory or volume separator character, this method returns . If is null, this method returns null. - - - - Provides NUnit specific extensions to aid in Reflection - across multiple frameworks - - - This version of the class allows direct calls on Type on - those platforms that would normally require use of - GetTypeInfo(). - - - - - Returns an array of generic arguments for the give type - - - - - - - Gets the constructor with the given parameter types - - - - - - - - Gets the constructors for a type - - - - - - - - - - - - - - - - - - - - - - - Gets declared or inherited interfaces on this type - - - - - - - Gets the member on a given type by name. BindingFlags ARE IGNORED. - - - - - - - - - Gets all members on a given type. BindingFlags ARE IGNORED. - - - - - - - - Gets field of the given name on the type - - - - - - - - Gets property of the given name on the type - - - - - - - - Gets property of the given name on the type - - - - - - - - - Gets the method with the given name and parameter list - - - - - - - - Gets the method with the given name and parameter list - - - - - - - - - Gets the method with the given name and parameter list - - - - - - - - - Gets public methods on the given type - - - - - - - Gets methods on a type - - - - - - - - Determines if one type can be implicitly converted from another - - - - - - - - Extensions to the various MemberInfo derived classes - - - - - Returns the get method for the given property - - - - - - - - Returns an array of custom attributes of the specified type applied to this member - - Portable throws an argument exception if T does not - derive from Attribute. NUnit uses interfaces to find attributes, thus - this method - - - - Returns an array of custom attributes of the specified type applied to this parameter - - - - - Returns an array of custom attributes of the specified type applied to this assembly - - - - - Extensions for Assembly that are not available in portable - - - - - DNX does not have a version of GetCustomAttributes on Assembly that takes an inherit - parameter since it doesn't make sense on Assemblies. This version just ignores the - inherit parameter. - - The assembly - The type of attribute you are looking for - Ignored - - - - - Gets the types in a given assembly - - - - - - - This class is a System.Diagnostics.Stopwatch on operating systems that support it. On those that don't, - it replicates the functionality at the resolution supported. - - - - - Gets the total elapsed time measured by the current instance, in milliseconds. - - - - - Gets a value indicating whether the Stopwatch timer is running. - - - - - Gets the current number of ticks in the timer mechanism. - - - If the Stopwatch class uses a high-resolution performance counter, GetTimestamp returns the current - value of that counter. If the Stopwatch class uses the system timer, GetTimestamp returns the current - DateTime.Ticks property of the DateTime.Now instance. - - A long integer representing the tick counter value of the underlying timer mechanism. - - - - Stops time interval measurement and resets the elapsed time to zero. - - - - - Starts, or resumes, measuring elapsed time for an interval. - - - - - Initializes a new Stopwatch instance, sets the elapsed time property to zero, and starts measuring elapsed time. - - A Stopwatch that has just begun measuring elapsed time. - - - - Stops measuring elapsed time for an interval. - - - - - Returns a string that represents the current object. - - - A string that represents the current object. - - - - - Gets the frequency of the timer as the number of ticks per second. - - - - - Indicates whether the timer is based on a high-resolution performance counter. - - - - - 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. - - - - - - - AndConstraint succeeds only if both members succeed. - - - - - Create an AndConstraint from two other constraints - - The first constraint - The second constraint - - - - Gets text describing a 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 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 - - - - AssignableFromConstraint is used to test that an object - can be assigned from a given Type. - - - - - Construct an AssignableFromConstraint for the type provided - - - - - - Apply the constraint to an actual value, returning true if it succeeds - - The actual argument - True if the constraint succeeds, otherwise false. - - - - AssignableToConstraint is used to test that an object - can be assigned to a given Type. - - - - - Construct an AssignableToConstraint for the type provided - - - - - - Apply the constraint to an actual value, returning true if it succeeds - - The actual argument - True if the constraint succeeds, otherwise false. - - - - 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 attribute - Type and base constraint. - - - - - - - Determines whether the Type or other provider has the - expected attribute and if its value matches the - additional constraint specified. - - - - - Returns a string representation of the constraint. - - - - - AttributeExistsConstraint tests for the presence of a - specified attribute on a Type. - - - - - Constructs an AttributeExistsConstraint for a specific attribute Type - - - - - - The Description of what this constraint tests, for - use in messages and in the ConstraintResult. - - - - - Tests whether the object provides the expected attribute. - - A Type, MethodInfo, or other ICustomAttributeProvider - True if the expected attribute is present, otherwise false - - - - BinaryConstraint is the abstract base of all constraints - that combine two other constraints in some fashion. - - - - - The first constraint being combined - - - - - The second constraint being combined - - - - - Construct a BinaryConstraint from two other constraints - - The first constraint - The second constraint - - - - 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 - - - - - - - CollectionContainsConstraint is used to test whether a collection - contains an expected object as a member. - - - - - Construct a CollectionContainsConstraint - - - - - - The Description of what this constraint tests, for - use in messages and in the ConstraintResult. - - - - - Gets the expected object - - - - - Test whether the expected item is contained in the collection - - - - - - - CollectionEquivalentConstraint is used to determine whether two - collections are equivalent. - - - - - Construct a CollectionEquivalentConstraint - - - - - - The Description of what this constraint tests, for - use in messages and in the ConstraintResult. - - - - - Test whether two collections are equivalent - - - - - - - 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 ignore case and return 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. - - - - Compares two collection members for equality - - - - - Return a new CollectionTally for use in making tests - - The collection to be included in the tally - - - - CollectionOrderedConstraint is used to test whether a collection is ordered. - - - - - Construct a CollectionOrderedConstraint - - - - - If used performs a reverse comparison - - - - - Modifies the constraint to use an and returns self. - - - - - Modifies the constraint to use an and returns self. - - - - - Modifies the constraint to use a and returns self. - - - - - Modifies the constraint to test ordering by the value of - a specified property and returns self. - - - - - The Description of what this constraint tests, for - use in messages and in the ConstraintResult. - - - - - Test whether the collection is ordered - - - - - - - Returns the string representation of the constraint. - - - - - - 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 - - - - The Description of what this constraint tests, for - use in messages and in the ConstraintResult. - - - - - Test whether the actual collection is a subset of - the expected collection provided. - - - - - - - CollectionSupersetConstraint is used to determine whether - one collection is a superset of another - - - - - Construct a CollectionSupersetConstraint - - The collection that the actual value is expected to be a superset of - - - - The Description of what this constraint tests, for - use in messages and in the ConstraintResult. - - - - - Test whether the actual collection is a superset of - the expected collection provided. - - - - - - - CollectionTally counts (tallies) the number of - occurrences of each object in one or more enumerations. - - - - - Construct a CollectionTally object from a comparer and a collection - - - - - The number of objects remaining in the tally - - - - - 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 - - - - ComparisonAdapter class centralizes all comparisons of - _values in NUnit, adapting to the use of any provided - , - or . - - - - - Gets the default ComparisonAdapter, which wraps an - NUnitComparer object. - - - - - Returns a ComparisonAdapter that wraps an - - - - - Returns a ComparisonAdapter that wraps an - - - - - Returns a ComparisonAdapter that wraps a - - - - - Compares two objects - - - - - Construct a default ComparisonAdapter - - - - - Construct a ComparisonAdapter for an - - - - - Compares two objects - - - - - - - - ComparerAdapter extends and - allows use of an or - to actually perform the comparison. - - - - - Construct a ComparisonAdapter for an - - - - - Compare a Type T to an object - - - - - Construct a ComparisonAdapter for a - - - - - Compare a Type T to an object - - - - - 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 - - - - - 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 - - - - Modifies the constraint to use an and returns self - - The comparer used for comparison tests - A constraint modified to use the given comparer - - - - Modifies the constraint to use an and returns self - - The comparer used for comparison tests - A constraint modified to use the given comparer - - - - Modifies the constraint to use a and returns self - - The comparer used for comparison tests - A constraint modified to use the given comparer - - - - Delegate used to delay evaluation of the actual value - to be used in evaluating a constraint - - - - - The Constraint class is the base of all built-in constraints - within NUnit. It provides the operator overloads used to combine - constraints. - - - - - Construct a constraint with optional arguments - - Arguments to be saved - - - - 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. - - - - - The Description of what this constraint tests, for - use in messages and in the ConstraintResult. - - - - - Arguments provided to this Constraint, for use in - formatting the description. - - - - - The ConstraintBuilder holding this constraint - - - - - Applies the constraint to an actual value, returning a ConstraintResult. - - The value to be tested - A ConstraintResult - - - - Applies the constraint to 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 - A ConstraintResult - - - - 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 - A ConstraintResult - - - - 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 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. - - - - - Resolves any pending operators and returns the resolved 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 reorganized. a ConstraintStack holds - input constraints as well as the results of each - operator applied. - - - - - OperatorStack is a type-safe stack for holding ConstraintOperators - - - - - Initializes a new instance of the class. - - The ConstraintBuilder using this stack. - - - - Gets a value indicating whether this is empty. - - true if empty; otherwise, false. - - - - Gets the topmost operator without modifying the stack. - - - - - Pushes the specified operator onto the stack. - - The operator to put onto the stack. - - - - Pops the topmost operator from the stack. - - The topmost operator on the stack - - - - ConstraintStack is a type-safe stack for holding Constraints - - - - - Initializes a new instance of the class. - - The ConstraintBuilder using this stack. - - - - Gets a value indicating whether this is empty. - - true if empty; otherwise, false. - - - - Pushes the specified constraint. As a side effect, - the constraint's Builder field is set to the - ConstraintBuilder owning this stack. - - The constraint to put onto the stack - - - - Pops this topmost constraint from the stack. - As a side effect, the constraint's Builder - field is set to null. - - The topmost contraint on the stack - - - - 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 expression 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. - - - - - 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 - reorganized. When a constraint is appended, it is returned as the - value of the operation so that modifiers may be applied. However, - any partially built expression is attached to the constraint for - later resolution. When an operator is appended, the partial - expression is returned. If it's a self-resolving operator, then - a ResolvableConstraintExpression is returned. - - - - - 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. Note that the constraint - is not reduced at this time. For example, if there - is a NotOperator on the stack we don't reduce and - return a NotConstraint. The original constraint must - be returned because it may support modifiers that - are yet to be applied. - - - - - 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 ConstraintExpression, which will apply - the following constraint to all members of a collection, - succeeding only if a specified number of them succeed. - - - - - 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 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 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. - - - - - With is currently a NOP - reserved for future use. - - - - - 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 for null - - - - - Returns a constraint that tests for True - - - - - Returns a constraint that tests for False - - - - - Returns a constraint that tests for a positive value - - - - - Returns a constraint that tests for a negative value - - - - - 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 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 supplied argument - - - - - Returns a constraint that tests whether the - actual value is greater than or equal to the supplied argument - - - - - Returns a constraint that tests whether the - actual value is greater than or equal to the supplied argument - - - - - Returns a constraint that tests whether the - actual value is less than the supplied argument - - - - - Returns a constraint that tests whether the - actual value is less than or equal to the supplied argument - - - - - Returns a constraint that tests whether the - actual value is less than or equal to the supplied 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 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 tests whether the actual value - is a superset of the collection supplied as an argument. - - - - - Returns a constraint that tests whether a collection is ordered - - - - - 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 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 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 ends with the substring supplied as an argument. - - - - - Returns a constraint that succeeds if the actual - value matches the regular expression supplied as an argument. - - - - - Returns a constraint that succeeds if the actual - value matches the regular expression supplied as an argument. - - - - - Returns a constraint that succeeds if the actual - value matches the regular expression supplied as an argument. - - - - - Returns a constraint that tests whether the actual value falls - within a specified range. - - - - - Helper class with properties and methods that supply - a number of constraints used in Asserts. - - - - - 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 ConstraintExpression, which will apply - the following constraint to all members of a collection, - succeeding only if a specified number of them succeed. - - - - - 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 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 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 for null - - - - - Returns a constraint that tests for True - - - - - Returns a constraint that tests for False - - - - - Returns a constraint that tests for a positive value - - - - - Returns a constraint that tests for a negative value - - - - - 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 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 supplied argument - - - - - Returns a constraint that tests whether the - actual value is greater than or equal to the supplied argument - - - - - Returns a constraint that tests whether the - actual value is greater than or equal to the supplied argument - - - - - Returns a constraint that tests whether the - actual value is less than the supplied argument - - - - - Returns a constraint that tests whether the - actual value is less than or equal to the supplied argument - - - - - Returns a constraint that tests whether the - actual value is less than or equal to the supplied 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 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 tests whether the actual value - is a superset of the collection supplied as an argument. - - - - - Returns a constraint that tests whether a collection is ordered - - - - - 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 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 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 regular expression supplied as an argument. - - - - - Returns a constraint that succeeds if the actual - value matches the regular expression supplied as an argument. - - - - - Returns a constraint that succeeds if the actual - value matches the regular expression 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 actual value falls - within a specified range. - - - - - ConstraintStatus represents the status of a ConstraintResult - returned by a Constraint being applied to an actual value. - - - - - The status has not yet been set - - - - - The constraint succeeded - - - - - The constraint failed - - - - - An error occured in applying the constraint (reserved for future use) - - - - - Contain the result of matching a against an actual value. - - - - - Constructs a for a particular . - - The Constraint to which this result applies. - The actual value to which the Constraint was applied. - - - - Constructs a for a particular . - - The Constraint to which this result applies. - The actual value to which the Constraint was applied. - The status of the new ConstraintResult. - - - - Constructs a for a particular . - - The Constraint to which this result applies. - The actual value to which the Constraint was applied. - If true, applies a status of Success to the result, otherwise Failure. - - - - The actual value that was passed to the method. - - - - - Gets and sets the ResultStatus for this result. - - - - - True if actual value meets the Constraint criteria otherwise false. - - - - - Display friendly name of the constraint. - - - - - Description of the constraint may be affected by the state the constraint had - when was performed against the actual value. - - - - - Write the failure message to the MessageWriter provided - as an argument. The default implementation simply passes - the result 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 - - - - 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 - - - - 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. - - - - The Description of what this constraint tests, for - use in messages and in the ConstraintResult. - - - - - Flag the constraint to ignore case and return self. - - - - - Test whether the constraint is satisfied by a given value - - The value to be tested - True for success, false for failure - - - - DictionaryContainsKeyConstraint is used to test whether a dictionary - contains an expected object as a key. - - - - - Construct a DictionaryContainsKeyConstraint - - - - - - The Description of what this constraint tests, for - use in messages and in the ConstraintResult. - - - - - Test whether the expected key is contained in the dictionary - - - - - DictionaryContainsValueConstraint is used to test whether a dictionary - contains an expected object as a value. - - - - - Construct a DictionaryContainsValueConstraint - - - - - - The Description of what this constraint tests, for - use in messages and in the ConstraintResult. - - - - - Test whether the expected value is contained in the dictionary - - - - - EmptyCollectionConstraint tests whether a collection is empty. - - - - - The Description of what this constraint tests, for - use in messages and in the ConstraintResult. - - - - - Check that the collection is empty - - - - - - - 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. - - - - - The Description of what this constraint tests, for - use in messages and in the ConstraintResult. - - - - - Test whether the constraint is satisfied by a given value - - The value to be tested - True for success, false for failure - - - - EmptyStringConstraint tests whether a string is empty. - - - - - The Description of what this constraint tests, for - use in messages and in the ConstraintResult. - - - - - Test whether the constraint is satisfied by a given value - - The value to be tested - True for success, false for failure - - - - 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. - - - - - - - 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. - - - - - NUnitEqualityComparer used to test equality. - - - - - Initializes a new instance of the class. - - The expected value. - - - - Gets the tolerance for this comparison. - - - The tolerance. - - - - - Gets a value indicating whether to compare case insensitive. - - - true if comparing case insensitive; otherwise, false. - - - - - Gets a value indicating whether or not to clip strings. - - - true if set to clip strings otherwise, false. - - - - - Gets the failure points. - - - The failure points. - - - - - 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. - - - - - Flag the constraint to use a tolerance when determining equality. - - Tolerance value to be used - Self. - - - - Flags the constraint to include - property in comparison of two values. - - - Using this modifier does not allow to use the - constraint modifier. - - - - - 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 - - - - 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 - - - - The Description of what this constraint tests, for - use in messages and in the ConstraintResult. - - - - - The EqualConstraintResult class is tailored for formatting - and displaying the result of an EqualConstraint. - - - - - Construct an EqualConstraintResult - - - - - Write a failure message. Overridden to provide custom - failure messages for EqualConstraint. - - 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 - - - - Display the failure information for two IEnumerables that did not match. - - The MessageWriter on which to display - The expected enumeration. - The actual enumeration - The depth of this failure in a set of nested collections - - - - EqualityAdapter class handles all equality comparisons - that use an , - or a . - - - - - Compares two objects, returning true if they are equal - - - - - Returns true if the two objects can be compared by this adapter. - The base adapter cannot handle IEnumerables except for strings. - - - - - Returns an that wraps an . - - - - - that wraps an . - - - - - Returns an that wraps an . - - - - - Returns true if the two objects can be compared by this adapter. - Generic adapter requires objects of the specified type. - - - - - Returns an that wraps an . - - - - - Returns an that wraps an . - - - - - that wraps an . - - - - - Returns an that wraps a . - - - - - ExactCountConstraint applies another constraint to each - item in a collection, succeeding only if a specified - number of items succeed. - - - - - Construct an ExactCountConstraint on top of an existing constraint - - - - - - - Apply the item constraint to each item in the collection, - succeeding only if the expected number of items pass. - - - - - - - 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. - - - - Apply the constraint to an actual value, returning true if it succeeds - - The actual argument - True if the constraint succeeds, otherwise false. - - - - ExceptionTypeConstraint is a special version of ExactTypeConstraint - used to provided detailed info about the exception thrown in - an error message. - - - - - Constructs an ExceptionTypeConstraint - - - - - Applies the constraint to an actual value, returning a ConstraintResult. - - The value to be tested - A ConstraintResult - - - - FalseConstraint tests that the actual value is false - - - - - Initializes a new instance of the class. - - - - - Test whether the constraint is satisfied by a given value - - The value to be tested - True for success, false for failure - - - 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. - - - - - 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 - - - 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 - - - - - 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. - - - - Interface for all constraints - - - - - The display name of this Constraint for use by ToString(). - - - - - The Description of what this constraint tests, for - use in messages and in the ConstraintResult. - - - - - Arguments provided to this Constraint, for use in - formatting the description. - - - - - The ConstraintBuilder holding this constraint - - - - - Applies the constraint to an actual value, returning a ConstraintResult. - - The value to be tested - A ConstraintResult - - - - Applies the constraint to 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 - A ConstraintResult - - - - 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 - A ConstraintResult - - - - 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 - - - - Apply the constraint to an actual value, returning true if it succeeds - - The actual argument - True if the constraint succeeds, otherwise false. - - - - The IResolveConstraint interface is implemented by all - complete and resolvable constraints and expressions. - - - - - Return the top-level constraint for this expression - - - - - - 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. - - - - 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 - - - - - Abstract method to get the max line length - - - - - 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 failing constraint result - - - - 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 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 - - - - Static methods used in creating messages - - - - - Static string used when strings are clipped - - - - - Formatting strings used for expected and actual _values - - - - - Formats text to represent a generalized value. - - The value - The formatted text - - - - Formats 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 - - - - 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 - - - - NaNConstraint tests that the actual value is a double or float NaN - - - - - The Description of what this constraint tests, for - use in messages and in the ConstraintResult. - - - - - Test that the actual value is an NaN - - - - - - - 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. - - - - - - - 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 - - - - NullConstraint tests that the actual value is null - - - - - Initializes a new instance of the class. - - - - - Applies the constraint to an actual value, returning a ConstraintResult. - - The value to be tested - A ConstraintResult - - - - 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 - - - - NUnitComparer encapsulates NUnit's default behavior - in comparing two objects. - - - - - Returns the default NUnitComparer. - - - - - Compares two objects - - - - - - - - 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 - - - - - Comparison objects used in comparisons for some constraints. - - - - - List of points at which a failure occurred. - - - - - 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 the list of external comparers to be used to - test for equality. They are applied to members of - collections, in place of NUnit's own logic. - - - - - Gets the list of failure points for the last Match performed. - The list consists of objects to be interpreted by the caller. - This generally means that the caller may only make use of - objects it has placed on the list at a particular depthy. - - - - - Flags the comparer to include - property in comparison of two values. - - - Using this modifier does not allow to use the - modifier. - - - - - Compares two objects for equality within a tolerance. - - - - - Helper method to compare two arrays - - - - - FailurePoint class represents one point of failure - in an equality test. - - - - - The location of the failure - - - - - The expected value - - - - - The actual value - - - - - Indicates whether the expected value is valid - - - - - Indicates whether the actual value is valid - - - - - 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. - - - - - Operator that requires both it's arguments to succeed - - - - - Construct an AndOperator - - - - - Apply the operator to produce an AndConstraint - - - - - 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. - - - - - 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. - - - - - - Gets the left precedence of the operator - - - - - Gets the right precedence of the operator - - - - - Abstract method that produces a constraint by applying - the operator to its left and right constraint arguments. - - - - - Abstract base for operators that indicate how to - apply a constraint to items in a collection. - - - - - Constructs a CollectionOperator - - - - - 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. - - - - - The syntax element preceding this operator - - - - - The syntax element following 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. - - - - - 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. - - - - - - Represents a constraint that succeeds if the specified - count of members of a collection match a base constraint. - - - - - Construct an ExactCountOperator for a specified count - - The expected count - - - - Returns a constraint that will apply the argument - to the members of a collection, succeeding if - none 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. - - - - - Negates the test of the constraint it wraps. - - - - - Constructs a new NotOperator - - - - - Returns a NotConstraint applied to its argument. - - - - - Operator that requires at least one of it's arguments to succeed - - - - - Construct an OrOperator - - - - - Apply the operator to produce an OrConstraint - - - - - 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. - - - - - - - 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. - - - - - Gets the name of the property to which the operator applies - - - - - 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. - - - - - - Abstract base class for operators that are able to reduce to a - constraint whether or not another syntactic element follows. - - - - - 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. - - - - - 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. - - - - - Represents a constraint that simply wraps the - constraint provided as an argument, without any - further functionality, but which modifies the - order of evaluation because of its precedence. - - - - - Constructor for the WithOperator - - - - - Returns a constraint that wraps its argument - - - - - OrConstraint succeeds if either member succeeds - - - - - Create an OrConstraint from two other constraints - - The first constraint - The second constraint - - - - Gets text describing a 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 - - - - Predicate constraint wraps a Predicate in a constraint, - returning success if the predicate is true. - - - - - Construct a PredicateConstraint from a predicate - - - - - Gets text describing a constraint - - - - - Determines whether the predicate succeeds when applied - to the actual value. - - - - - Abstract base class used for prefixes - - - - - The base constraint - - - - - Prefix used in forming the constraint description - - - - - Construct given a base constraint - - - - - - The Description of what this constraint tests, for - use in messages and in the ConstraintResult. - - - - - PropertyConstraint extracts a named property and uses - its value as the actual value for a chained 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 - - - - Returns the string representation of the constraint. - - - - - - 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 value - of the property. The two constraints are now separate. - - - - - Initializes a new instance of the class. - - The name of the property. - - - - The Description of what this constraint tests, for - use in messages and in the ConstraintResult. - - - - - Test whether the property exists for a given object - - The object to be tested - True for success, false for failure - - - - Returns the string representation of the constraint. - - - - - - RangeConstraint tests whether two _values are within a - specified range. - - - - - Initializes a new instance of the class. - - from must be less than or equal to true - Inclusive beginning of the range. Must be less than or equal to to. - Inclusive end of the range. Must be greater than or equal to from. - - - - Gets text describing a constraint - - - - - Test whether the constraint is satisfied by a given value - - The value to be tested - True for success, false for failure - - - - Modifies the constraint to use an and returns self. - - - - - Modifies the constraint to use an and returns self. - - - - - Modifies the constraint to use a and returns self. - - - - - 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 - - - - 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. - - - - - Appends an And Operator to the expression - - - - - Appends an Or operator to the expression. - - - - - Resolve the current expression to a Constraint - - - - - ReusableConstraint wraps a constraint expression after - resolving it so that it can be reused consistently. - - - - - Construct a ReusableConstraint from a constraint expression - - The expression to be resolved and reused - - - - Converts a constraint to a ReusableConstraint - - The constraint to be converted - A ReusableConstraint - - - - Returns a that represents this instance. - - - A that represents this instance. - - - - - Return the top-level constraint for this expression - - - - - - SameAsConstraint tests whether an object is identical to - the object passed to its constructor - - - - - Initializes a new instance of the class. - - The expected object. - - - - The Description of what this constraint tests, for - use in messages and in the ConstraintResult. - - - - - Test whether the constraint is satisfied by a given value - - The value to be tested - True for success, false for failure - - - - 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. - - - - - - - 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. - - - - - - - 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 - - - - - Description of this constraint - - - - - The Description of what this constraint tests, for - use in messages and in the ConstraintResult. - - - - - Constructs a StringConstraint without an expected value - - - - - Constructs a StringConstraint given an expected value - - The expected value - - - - Modify the constraint to ignore case in matching. - - - - - 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 a given string - - The string to be tested - True for success, false for failure - - - - 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 - - - - 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. - - - - Get the actual exception thrown - used by Assert.Throws. - - - - - Gets text describing a constraint - - - - - 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 actual value for a failing constraint test to a - MessageWriter. This override only handles the special message - used when an exception is expected but none is thrown. - - The writer on which the actual value is displayed - - - - ThrowsExceptionConstraint tests that an exception has - been thrown, without any further tests. - - - - - The Description of what this constraint tests, for - use in messages and in the ConstraintResult. - - - - - Executes the code and returns success if an exception is thrown. - - A delegate representing the code to be tested - True if an exception is thrown, otherwise false - - - - ThrowsNothingConstraint tests that a delegate does not - throw an exception. - - - - - Gets text describing a constraint - - - - - Test whether the constraint is satisfied by a given value - - The value to be tested - True if no exception is thrown, otherwise false - - - - Applies the constraint to 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 - A ConstraintResult - - - - 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. - - - - - Returns a default Tolerance object, equivalent to - specifying an exact match unless - is set, in which case, the - will be used. - - - - - Returns an empty Tolerance object, equivalent to - specifying an exact match even if - is set. - - - - - Constructs a linear tolerance of a specified amount - - - - - Constructs a tolerance given an amount and - - - - - Gets the for the current Tolerance - - - - - Tests that the current Tolerance is linear with a - numeric value, throwing an exception if it is not. - - - - - 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 as the amount, using - the current amount as a number of days. - - - - - Returns a new tolerance with a as the amount, using - the current amount as a number of hours. - - - - - Returns a new tolerance with a as the amount, using - the current amount as a number of minutes. - - - - - Returns a new tolerance with a as the amount, using - the current amount as a number of seconds. - - - - - Returns a new tolerance with a as the amount, using - the current amount as a number of milliseconds. - - - - - Returns a new tolerance with a as the amount, using - the current amount as a number of clock ticks. - - - - - Returns true if the current tolerance has not been set or is using the . - - - - - 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. - - - - - TrueConstraint tests that the actual value is true - - - - - Initializes a new instance of the class. - - - - - Test whether the constraint is satisfied by a given value - - The value to be tested - True for success, false for failure - - - - TypeConstraint is the abstract base for constraints - that take a Type as their expected value. - - - - - The expected Type used by the constraint - - - - - The type of the actual argument to which the constraint was applied - - - - - Construct a TypeConstraint for a given Type - - The expected type for the constraint - Prefix used in forming the constraint description - - - - Applies the constraint to an actual value, returning a ConstraintResult. - - The value to be tested - A ConstraintResult - - - - Apply the constraint to an actual value, returning true if it succeeds - - The actual argument - True if the constraint succeeds, otherwise false. - - - - UniqueItemsConstraint tests whether all the items in a - collection are unique. - - - - - The Description of what this constraint tests, for - use in messages and in the ConstraintResult. - - - - - Check that all items are unique. - - - - - - - Helper class with properties and methods that supply - a number of constraints used in Asserts. - - - - - Returns a new CollectionContainsConstraint checking for the - presence of a particular object in the collection. - - - - - Returns a new DictionaryContainsKeyConstraint checking for the - presence of a particular key in the dictionary. - - - - - Returns a new DictionaryContainsValueConstraint checking for the - presence of a particular value in the dictionary. - - - - - Returns a constraint that succeeds if the actual - value contains the substring supplied as an argument. - - - - - Helper class with properties and methods that supply - a number of constraints used in Asserts. - - - - - Returns a ConstraintExpression that negates any - following constraint. - - - - - 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 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 regular expression supplied as an argument. - - - - - 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 - - - - Gets the ResultState provided by this exception - - - - - Thrown when an assertion failed. - - - - - - - The error message that explains - the reason for the exception - The exception that caused the - current exception - - - - Gets the ResultState provided by this exception - - - - - 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 - - - - Gets the ResultState provided by this exception - - - - - Abstract base for Exceptions that terminate a test and provide a ResultState. - - - - 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 - - - - Gets the ResultState provided by this exception - - - - - Thrown when an assertion failed. - - - - - - - The error message that explains - the reason for the exception - The exception that caused the - current exception - - - - Gets the ResultState provided by this exception - - - - - GlobalSettings is a place for setting default _values used - by the framework in performing asserts. - - - - - Default tolerance for floating point equality - - - - - Helper class with properties and methods that supply - a number of constraints used in Asserts. - - - - - 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 ConstraintExpression, which will apply - the following constraint to all members of a collection, - succeeding only if a specified number of them succeed. - - - - - 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 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 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. - - - - - The IApplyToContext interface is implemented by attributes - that want to make changes to the execution context before - a test is run. - - - - - Apply changes to the execution context - - The execution context - - - - The IApplyToTest interface is implemented by self-applying - attributes that modify the state of a test in some way. - - - - - Modifies a test as defined for the specific attribute. - - The test to modify - - - - CombiningStrategy is the abstract base for classes that - know how to combine values provided for individual test - parameters to create a set of test cases. - - - - - Gets the test cases generated by the CombiningStrategy. - - The test cases. - - - - ICommandWrapper is implemented by attributes and other - objects able to wrap a TestCommand with another command. - - - Attributes or other objects should implement one of the - derived interfaces, rather than this one, since they - indicate in which part of the command chain the wrapper - should be applied. - - - - - Wrap a command and return the result. - - The command to be wrapped - The wrapped command - - - - Objects implementing this interface are used to wrap - the TestMethodCommand itself. They apply after SetUp - has been run and before TearDown. - - - - - Objects implementing this interface are used to wrap - the entire test, including SetUp and TearDown. - - - - - Any ITest that implements this interface is at a level that the implementing - class should be disposed at the end of the test run - - - - - The IFixtureBuilder interface is exposed by a class that knows how to - build a TestFixture from one or more Types. In general, it is exposed - by an attribute, but may be implemented in a helper class used by the - attribute in some cases. - - - - - Build one or more TestFixtures from type provided. At least one - non-null TestSuite must always be returned, since the method is - generally called because the user has marked the target class as - a fixture. If something prevents the fixture from being used, it - will be returned nonetheless, labelled as non-runnable. - - The type info of the fixture to be used. - A TestSuite object or one derived from TestSuite. - - - - IImplyFixture is an empty marker interface used by attributes like - TestAttribute that cause the class where they are used to be treated - as a TestFixture even without a TestFixtureAttribute. - - Marker interfaces are not usually considered a good practice, but - we use it here to avoid cluttering the attribute hierarchy with - classes that don't contain any extra implementation. - - - - - The IMethodInfo class is used to encapsulate information - about a method in a platform-independent manner. - - - - - Gets the Type from which this method was reflected. - - - - - Gets the MethodInfo for this method. - - - - - Gets the name of the method. - - - - - Gets a value indicating whether the method is abstract. - - - - - Gets a value indicating whether the method is public. - - - - - Gets a value indicating whether the method contains unassigned generic type parameters. - - - - - Gets a value indicating whether the method is a generic method. - - - - - Gets a value indicating whether the MethodInfo represents the definition of a generic method. - - - - - Gets the return Type of the method. - - - - - Gets the parameters of the method. - - - - - - Returns the Type arguments of a generic method or the Type parameters of a generic method definition. - - - - - Replaces the type parameters of the method with the array of types provided and returns a new IMethodInfo. - - The type arguments to be used - A new IMethodInfo with the type arguments replaced - - - - Invokes the method, converting any TargetInvocationException to an NUnitException. - - The object on which to invoke the method - The argument list for the method - The return value from the invoked method - - - - The IDataPointProvider interface is used by extensions - that provide data for a single test parameter. - - - - - Determine whether any data is available for a parameter. - - An IParameterInfo representing one - argument to a parameterized test - True if any data is available, otherwise false. - - - - Return an IEnumerable providing data for use with the - supplied parameter. - - An IParameterInfo representing one - argument to a parameterized test - An IEnumerable providing the required data - - - - The IParameterDataSource interface is implemented by types - that can provide data for a test method parameter. - - - - - Gets an enumeration of data items for use as arguments - for a test method parameter. - - The parameter for which data is needed - An enumeration containing individual data items - - - - The IParameterInfo interface is an abstraction of a .NET parameter. - - - - - Gets a value indicating whether the parameter is optional - - - - - Gets an IMethodInfo representing the method for which this is a parameter - - - - - Gets the underlying .NET ParameterInfo - - - - - Gets the Type of the parameter - - - - - A PropertyBag represents a collection of name/value pairs - that allows duplicate entries with the same key. Methods - are provided for adding a new pair as well as for setting - a key to a single value. All keys are strings but _values - may be of any type. Null _values are not permitted, since - a null entry represents the absence of the key. - - The entries in a PropertyBag are of two kinds: those that - take a single value and those that take multiple _values. - However, the PropertyBag has no knowledge of which entries - fall into each category and the distinction is entirely - up to the code using the PropertyBag. - - When working with multi-valued properties, client code - should use the Add method to add name/value pairs and - indexing to retrieve a list of all _values for a given - key. For example: - - bag.Add("Tag", "one"); - bag.Add("Tag", "two"); - Assert.That(bag["Tag"], - Is.EqualTo(new string[] { "one", "two" })); - - When working with single-valued propeties, client code - should use the Set method to set the value and Get to - retrieve the value. The GetSetting methods may also be - used to retrieve the value in a type-safe manner while - also providing default. For example: - - bag.Set("Priority", "low"); - bag.Set("Priority", "high"); // replaces value - Assert.That(bag.Get("Priority"), - Is.EqualTo("high")); - Assert.That(bag.GetSetting("Priority", "low"), - Is.EqualTo("high")); - - - - - Adds a key/value pair to the property bag - - The key - The value - - - - Sets the value for a key, removing any other - _values that are already in the property set. - - - - - - - Gets a single value for a key, using the first - one if multiple _values are present and returning - null if the value is not found. - - - - - Gets a flag indicating whether the specified key has - any entries in the property set. - - The key to be checked - True if their are _values present, otherwise false - - - - Gets or sets the list of _values for a particular key - - The key for which the _values are to be retrieved or set - - - - Gets a collection containing all the keys in the property set - - - - - The IReflectionInfo interface is implemented by NUnit wrapper objects that perform reflection. - - - - - Returns an array of custom attributes of the specified type applied to this object - - - - - Returns a value indicating whether an attribute of the specified type is defined on this object. - - - - - The ISimpleTestBuilder interface is exposed by a class that knows how to - build a single TestMethod from a suitable MethodInfo Types. In general, - it is exposed by an attribute, but may be implemented in a helper class - used by the attribute in some cases. - - - - - Build a TestMethod from the provided MethodInfo. - - The method to be used as a test - The TestSuite to which the method will be added - A TestMethod object - - - - The ISuiteBuilder interface is exposed by a class that knows how to - build a suite from one or more Types. - - - - - Examine the type and determine if it is suitable for - this builder to use in building a TestSuite. - - Note that returning false will cause the type to be ignored - in loading the tests. If it is desired to load the suite - but label it as non-runnable, ignored, etc., then this - method must return true. - - The type of the fixture to be used - True if the type can be used to build a TestSuite - - - - Build a TestSuite from type provided. - - The type of the fixture to be used - A TestSuite - - - - Common interface supported by all representations - of a test. Only includes informational fields. - The Run method is specifically excluded to allow - for data-only representations of a test. - - - - - Gets the id of the test - - - - - Gets the name of the test - - - - - Gets the fully qualified name of the test - - - - - Gets the name of the class containing this test. Returns - null if the test is not associated with a class. - - - - - Gets the name of the method implementing this test. - Returns null if the test is not implemented as a method. - - - - - Gets the Type of the test fixture, if applicable, or - null if no fixture type is associated with this test. - - - - - Gets an IMethod for the method implementing this test. - Returns null if the test is not implemented as a method. - - - - - Gets the RunState of the test, indicating whether it can be run. - - - - - Count of the test cases ( 1 if this is a test case ) - - - - - Gets the properties of the test - - - - - Gets the parent test, if any. - - The parent test or null if none exists. - - - - Returns true if this is a test suite - - - - - Gets a bool indicating whether the current test - has any descendant tests. - - - - - Gets this test's child tests - - A list of child tests - - - - Gets a fixture object for running this test. - - - - - The ITestBuilder interface is exposed by a class that knows how to - build one or more TestMethods from a MethodInfo. In general, it is exposed - by an attribute, which has additional information available to provide - the necessary test parameters to distinguish the test cases built. - - - - - Build one or more TestMethods from the provided MethodInfo. - - The method to be used as a test - The TestSuite to which the method will be added - A TestMethod object - - - - The ITestCaseBuilder interface is exposed by a class that knows how to - build a test case from certain methods. - - - This interface is not the same as the ITestCaseBuilder interface in NUnit 2.x. - We have reused the name because the two products don't interoperate at all. - - - - - Examine the method and determine if it is suitable for - this builder to use in building a TestCase to be - included in the suite being populated. - - Note that returning false will cause the method to be ignored - in loading the tests. If it is desired to load the method - but label it as non-runnable, ignored, etc., then this - method must return true. - - The test method to examine - The suite being populated - True is the builder can use this method - - - - Build a TestCase from the provided MethodInfo for - inclusion in the suite being constructed. - - The method to be used as a test case - The test suite being populated, or null - A TestCase or null - - - - The ITestCaseData interface is implemented by a class - that is able to return complete testcases for use by - a parameterized test method. - - - - - Gets the expected result of the test case - - - - - Returns true if an expected result has been set - - - - - The ITestData interface is implemented by a class that - represents a single instance of a parameterized test. - - - - - Gets the name to be used for the test - - - - - Gets the RunState for this test case. - - - - - Gets the argument list to be provided to the test - - - - - Gets the property dictionary for the test case - - - - - Interface to be implemented by filters applied to tests. - The filter applies when running the test, after it has been - loaded, since this is the only time an ITest exists. - - - - - Determine if a particular test passes the filter criteria. Pass - may examine the parents and/or descendants of a test, depending - on the semantics of the particular filter - - The test to which the filter is applied - True if the test passes the filter, otherwise false - - - - Determine if a test matches the filter expicitly. That is, it must - be a direct match of the test itself or one of it's children. - - The test to which the filter is applied - True if the test matches the filter explicityly, otherwise false - - - - The ITestCaseData interface is implemented by a class - that is able to return the data required to create an - instance of a parameterized test fixture. - - - - - Get the TypeArgs if separately set - - - - - The ITestListener interface is used internally to receive - notifications of significant events while a test is being - run. The events are propagated to clients by means of an - AsyncCallback. NUnit extensions may also monitor these events. - - - - - Called when a test has just started - - The test that is starting - - - - Called when a test has finished - - The result of the test - - - - The ITestResult interface represents the result of a test. - - - - - Gets the ResultState of the test result, which - indicates the success or failure of the test. - - - - - Gets the name of the test result - - - - - Gets the full name of the test result - - - - - Gets the elapsed time for running the test in seconds - - - - - Gets or sets the time the test started running. - - - - - Gets or sets the time the test finished running. - - - - - Gets the message associated with a test - failure or with not running the test - - - - - Gets any stacktrace associated with an - error or failure. Not available in - the Compact Framework 1.0. - - - - - Gets the number of asserts executed - when running the test and all its children. - - - - - Gets the number of test cases that failed - when running the test and all its children. - - - - - Gets the number of test cases that passed - when running the test and all its children. - - - - - Gets the number of test cases that were skipped - when running the test and all its children. - - - - - Gets the number of test cases that were inconclusive - when running the test and all its children. - - - - - Indicates whether this result has any child results. - Accessing HasChildren should not force creation of the - Children collection in classes implementing this interface. - - - - - Gets the the collection of child results. - - - - - Gets the Test to which this result applies. - - - - - Gets any text output written to this result. - - - - - The ITypeInfo interface is an abstraction of a .NET Type - - - - - Gets the underlying Type on which this ITypeInfo is based - - - - - Gets the base type of this type as an ITypeInfo - - - - - Returns true if the Type wrapped is equal to the argument - - - - - Gets the Name of the Type - - - - - Gets the FullName of the Type - - - - - Gets the assembly in which the type is declared - - - - - Gets the Namespace of the Type - - - - - Gets a value indicating whether the type is abstract. - - - - - Gets a value indicating whether the Type is a generic Type - - - - - Gets a value indicating whether the Type has generic parameters that have not been replaced by specific Types. - - - - - Gets a value indicating whether the Type is a generic Type definition - - - - - Gets a value indicating whether the type is sealed. - - - - - Gets a value indicating whether this type is a static class. - - - - - Get the display name for this typeInfo. - - - - - Get the display name for an oject of this type, constructed with specific arguments - - - - - Returns a Type representing a generic type definition from which this Type can be constructed. - - - - - Returns a new ITypeInfo representing an instance of this generic Type using the supplied Type arguments - - - - - Returns a value indicating whether this type has a method with a specified public attribute - - - - - Returns an array of IMethodInfos for methods of this Type - that match the specified flags. - - - - - Returns a value indicating whether this Type has a public constructor taking the specified argument Types. - - - - - Construct an object of this Type, using the specified arguments. - - - - - An object implementing IXmlNodeBuilder is able to build - an XML representation of itself and any children. - - - - - Returns a TNode representing the current object. - - If true, children are included where applicable - A TNode representing the result - - - - Returns a TNode representing the current object after - adding it as a child of the supplied parent node. - - The parent node. - If true, children are included, where applicable - - - - - The ResultState class represents the outcome of running a test. - It contains two pieces of information. The Status of the test - is an enum indicating whether the test passed, failed, was - skipped or was inconclusive. The Label provides a more - detailed breakdown for use by client runners. - - - - - Initializes a new instance of the class. - - The TestStatus. - - - - Initializes a new instance of the class. - - The TestStatus. - The label. - - - - Initializes a new instance of the class. - - The TestStatus. - The stage at which the result was produced - - - - Initializes a new instance of the class. - - The TestStatus. - The label. - The stage at which the result was produced - - - - The result is inconclusive - - - - - The test has been skipped. - - - - - The test has been ignored. - - - - - The test was skipped because it is explicit - - - - - The test succeeded - - - - - The test failed - - - - - The test encountered an unexpected exception - - - - - The test was cancelled by the user - - - - - The test was not runnable. - - - - - A suite failed because one or more child tests failed or had errors - - - - - A suite failed in its OneTimeSetUp - - - - - A suite had an unexpected exception in its OneTimeSetUp - - - - - A suite had an unexpected exception in its OneTimeDown - - - - - Gets the TestStatus for the test. - - The status. - - - - Gets the label under which this test result is - categorized, if any. - - - - - Gets the stage of test execution in which - the failure or other result took place. - - - - - Get a new ResultState, which is the same as the current - one but with the FailureSite set to the specified value. - - The FailureSite to use - A new ResultState - - - - Determines whether the specified , is equal to this instance. - - The to compare with this instance. - - true if the specified is equal to this instance; otherwise, false. - - - - - Returns a hash code for this instance. - - - A hash code for this instance, suitable for use in hashing algorithms and data structures like a hash table. - - - - - Returns a that represents this instance. - - - A that represents this instance. - - - - - The FailureSite enum indicates the stage of a test - in which an error or failure occurred. - - - - - Failure in the test itself - - - - - Failure in the SetUp method - - - - - Failure in the TearDown method - - - - - Failure of a parent test - - - - - Failure of a child test - - - - - The RunState enum indicates whether a test can be executed. - - - - - The test is not runnable. - - - - - The test is runnable. - - - - - The test can only be run explicitly - - - - - The test has been skipped. This value may - appear on a Test when certain attributes - are used to skip the test. - - - - - The test has been ignored. May appear on - a Test, when the IgnoreAttribute is used. - - - - - The TestStatus enum indicates the result of running a test - - - - - The test was inconclusive - - - - - The test has skipped - - - - - The test succeeded - - - - - The test failed - - - - - TNode represents a single node in the XML representation - of a Test or TestResult. It replaces System.Xml.XmlNode and - System.Xml.Linq.XElement, providing a minimal set of methods - for operating on the XML in a platform-independent manner. - - - - - Constructs a new instance of TNode - - The name of the node - - - - Constructs a new instance of TNode with a value - - The name of the node - The text content of the node - - - - Constructs a new instance of TNode with a value - - The name of the node - The text content of the node - Flag indicating whether to use CDATA when writing the text - - - - Gets the name of the node - - - - - Gets the value of the node - - - - - Gets a flag indicating whether the value should be output using CDATA. - - - - - Gets the dictionary of attributes - - - - - Gets a list of child nodes - - - - - Gets the first ChildNode - - - - - Gets the XML representation of this node. - - - - - Create a TNode from it's XML text representation - - The XML text to be parsed - A TNode - - - - Adds a new element as a child of the current node and returns it. - - The element name. - The newly created child element - - - - Adds a new element with a value as a child of the current node and returns it. - - The element name - The text content of the new element - The newly created child element - - - - Adds a new element with a value as a child of the current node and returns it. - The value will be output using a CDATA section. - - The element name - The text content of the new element - The newly created child element - - - - Adds an attribute with a specified name and value to the XmlNode. - - The name of the attribute. - The value of the attribute. - - - - Finds a single descendant of this node matching an xpath - specification. The format of the specification is - limited to what is needed by NUnit and its tests. - - - - - - - Finds all descendants of this node matching an xpath - specification. The format of the specification is - limited to what is needed by NUnit and its tests. - - - - - Writes the XML representation of the node to an XmlWriter - - - - - - Class used to represent a list of XmlResults - - - - - Class used to represent the attributes of a node - - - - - Gets or sets the value associated with the specified key. - Overridden to return null if attribute is not found. - - The key. - Value of the attribute or null - - - - Helper class with properties and methods that supply - a number of constraints used in Asserts. - - - - - 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 a positive value - - - - - Returns a constraint that tests for a negative value - - - - - 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 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 supplied argument - - - - - Returns a constraint that tests whether the - actual value is greater than or equal to the supplied argument - - - - - Returns a constraint that tests whether the - actual value is greater than or equal to the supplied argument - - - - - Returns a constraint that tests whether the - actual value is less than the supplied argument - - - - - Returns a constraint that tests whether the - actual value is less than or equal to the supplied argument - - - - - Returns a constraint that tests whether the - actual value is less than or equal to the supplied 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 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 to the type supplied as an argument. - - - - - Returns a constraint that tests whether the actual value - is assignable to 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 tests whether the actual value - is a superset of the collection supplied as an argument. - - - - - Returns a constraint that tests whether a collection is ordered - - - - - 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 regular expression supplied as an argument. - - - - - Returns a constraint that tests whether the actual value falls - inclusively within a specified range. - - from must be less than or equal to true - Inclusive beginning of the range. Must be less than or equal to to. - Inclusive end of the range. Must be greater than or equal to from. - - - - - When implemented by an attribute, this interface implemented to provide actions to execute before and after tests. - - - - - Executed before each test is run - - The test that is going to be run. - - - - Executed after each test is run - - The test that has just been run. - - - - Provides the target for the action attribute - - The target for the action attribute - - - - The Iz class is a synonym for Is intended for use in VB, - which regards Is as a keyword. - - - - - 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 - - - - - 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 - - - - - 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 - - - - 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 - - - - 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 - - - - 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 - - - - 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 - - - - 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 - - - - 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 - - - - 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 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 - - - - 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 TestCaseData class represents a set of arguments - and other parameter info to be used for a parameterized - test case. It is derived from TestCaseParameters and adds a - fluent syntax for use in initializing the 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 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 - - - - - - - - Marks the test case as explicit. - - - - - Marks the test case as explicit, specifying the reason. - - - - - Ignores this TestCase, specifying the reason. - - The reason. - - - - - Provide the context information of the current test. - This is an adapter for the internal ExecutionContext - class, hiding the internals from the user test. - - - - - Construct a TestContext for an ExecutionContext - - The ExecutionContext to adapt - - - - Get the current test context. This is created - as needed. The user may save the context for - use within a test, but it should not be used - outside the test for which it is created. - - - - - Gets a TextWriter that will send output to the current test result. - - - - - Get a representation of the current test. - - - - - Gets a Representation of the TestResult for the current test. - - - - - Gets the directory to be used for outputting files created - by this test run. - - - - - Gets the random generator. - - - The random generator. - - - - Write the string representation of a boolean value to the current result - - - Write a char to the current result - - - Write a char array to the current result - - - Write the string representation of a double to the current result - - - Write the string representation of an Int32 value to the current result - - - Write the string representation of an Int64 value to the current result - - - Write the string representation of a decimal value to the current result - - - Write the string representation of an object to the current result - - - Write the string representation of a Single value to the current result - - - Write a string to the current result - - - Write the string representation of a UInt32 value to the current result - - - Write the string representation of a UInt64 value to the current result - - - Write a formatted string to the current result - - - Write a formatted string to the current result - - - Write a formatted string to the current result - - - Write a formatted string to the current result - - - Write a line terminator to the current result - - - Write the string representation of a boolean value to the current result followed by a line terminator - - - Write a char to the current result followed by a line terminator - - - Write a char array to the current result followed by a line terminator - - - Write the string representation of a double to the current result followed by a line terminator - - - Write the string representation of an Int32 value to the current result followed by a line terminator - - - Write the string representation of an Int64 value to the current result followed by a line terminator - - - Write the string representation of a decimal value to the current result followed by a line terminator - - - Write the string representation of an object to the current result followed by a line terminator - - - Write the string representation of a Single value to the current result followed by a line terminator - - - Write a string to the current result followed by a line terminator - - - Write the string representation of a UInt32 value to the current result followed by a line terminator - - - Write the string representation of a UInt64 value to the current result followed by a line terminator - - - Write a formatted string to the current result followed by a line terminator - - - Write a formatted string to the current result followed by a line terminator - - - Write a formatted string to the current result followed by a line terminator - - - Write a formatted string to the current result followed by a line terminator - - - - TestAdapter adapts a Test for consumption by - the user test code. - - - - - Construct a TestAdapter for a Test - - The Test to be adapted - - - - Gets the unique Id of a test - - - - - The name of the test, which may or may not be - the same as the method name. - - - - - The name of the method representing the test. - - - - - The FullName of the test - - - - - The ClassName of the test - - - - - The properties of the test. - - - - - ResultAdapter adapts a TestResult for consumption by - the user test code. - - - - - Construct a ResultAdapter for a TestResult - - The TestResult to be adapted - - - - Gets a ResultState representing the outcome of the test. - - - - - Gets the message associated with a test - failure or with not running the test - - - - - Gets any stacktrace associated with an - error or failure. - - - - - Gets the number of test cases that failed - when running the test and all its children. - - - - - Gets the number of test cases that passed - when running the test and all its children. - - - - - Gets the number of test cases that were skipped - when running the test and all its children. - - - - - Gets the number of test cases that were inconclusive - when running the test and all its children. - - - - - The TestFixtureData class represents a set of arguments - and other parameter info to be used for a parameterized - fixture. It is derived from TestFixtureParameters and adds a - fluent syntax for use in initializing the fixture. - - - - - 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. - - - - Marks the test fixture as explicit. - - - - - Marks the test fixture as explicit, specifying the reason. - - - - - Ignores this TestFixture, specifying the reason. - - The reason. - - - - - Helper class with properties and methods that supply - constraints that operate on exceptions. - - - - - 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 ArgumentException - - - - - Creates a constraint specifying an expected ArgumentNUllException - - - - - Creates a constraint specifying an expected InvalidOperationException - - - - - Creates a constraint specifying that no exception is thrown - - - - - 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 - - - - - Env is a static class that provides some of the features of - System.Environment that are not available under all runtimes - - - - - The newline sequence in the current environment. - - - - - Path to the 'My Documents' folder - - - - - Directory used for file output if not specified on commandline. - - - - - PackageSettings is a static class containing constant values that - are used as keys in setting up a TestPackage. These values are used in - the engine and framework. Setting values may be a string, int or bool. - - - - - Flag (bool) indicating whether tests are being debugged. - - - - - Flag (bool) indicating whether to pause execution of tests to allow - the user to attache a debugger. - - - - - The InternalTraceLevel for this run. Values are: "Default", - "Off", "Error", "Warning", "Info", "Debug", "Verbose". - Default is "Off". "Debug" and "Verbose" are synonyms. - - - - - Full path of the directory to be used for work and result files. - This path is provided to tests by the frameowrk TestContext. - - - - - The name of the config to use in loading a project. - If not specified, the first config found is used. - - - - - Bool indicating whether the engine should determine the private - bin path by examining the paths to all the tests. Defaults to - true unless PrivateBinPath is specified. - - - - - The ApplicationBase to use in loading the tests. If not - specified, and each assembly has its own process, then the - location of the assembly is used. For multiple assemblies - in a single process, the closest common root directory is used. - - - - - Path to the config file to use in running the tests. - - - - - Bool flag indicating whether a debugger should be launched at agent - startup. Used only for debugging NUnit itself. - - - - - Indicates how to load tests across AppDomains. Values are: - "Default", "None", "Single", "Multiple". Default is "Multiple" - if more than one assembly is loaded in a process. Otherwise, - it is "Single". - - - - - The private binpath used to locate assemblies. Directory paths - is separated by a semicolon. It's an error to specify this and - also set AutoBinPath to true. - - - - - The maximum number of test agents permitted to run simultneously. - Ignored if the ProcessModel is not set or defaulted to Multiple. - - - - - Indicates how to allocate assemblies to processes. Values are: - "Default", "Single", "Separate", "Multiple". Default is "Multiple" - for more than one assembly, "Separate" for a single assembly. - - - - - Indicates the desired runtime to use for the tests. Values - are strings like "net-4.5", "mono-4.0", etc. Default is to - use the target framework for which an assembly was built. - - - - - Bool flag indicating that the test should be run in a 32-bit process - on a 64-bit system. By default, NUNit runs in a 64-bit process on - a 64-bit system. Ignored if set on a 32-bit system. - - - - - Indicates that test runners should be disposed after the tests are executed - - - - - Bool flag indicating that the test assemblies should be shadow copied. - Defaults to false. - - - - - Integer value in milliseconds for the default timeout value - for test cases. If not specified, there is no timeout except - as specified by attributes on the tests themselves. - - - - - A TextWriter to which the internal trace will be sent. - - - - - A list of tests to be loaded. - - - - - The number of test threads to run for the assembly. If set to - 1, a single queue is used. If set to 0, tests are executed - directly, without queuing. - - - - - The random seed to be used for this assembly. If specified - as the value reported from a prior run, the framework should - generate identical random values for tests as were used for - that run, provided that no change has been made to the test - assembly. Default is a random value itself. - - - - - If true, execution stops after the first error or failure. - - - - - If true, use of the event queue is suppressed and test events are synchronous. - - - - - A shim of the .NET interface for platforms that do not support it. - Used to indicate that a control can be the target of a callback event on the server. - - - - - Processes a callback event that targets a control. - - - - - - Returns the results of a callback event that targets a control. - - - - - - A shim of the .NET attribute for platforms that do not support it. - - - - diff --git a/src/TeamCitySharp/ActionTypes/Builds.cs b/src/TeamCitySharp/ActionTypes/Builds.cs index 3d7f7734..6358c2cc 100644 --- a/src/TeamCitySharp/ActionTypes/Builds.cs +++ b/src/TeamCitySharp/ActionTypes/Builds.cs @@ -9,14 +9,24 @@ namespace TeamCitySharp.ActionTypes { public class Builds : IBuilds { + #region Attributes + private readonly ITeamCityCaller _caller; private string _fields; + #endregion + + #region Constructor + internal Builds(ITeamCityCaller caller) { _caller = caller; } + #endregion + + #region Public Methods + public Builds GetFields(string fields) { var newInstance = (Builds) MemberwiseClone(); @@ -33,13 +43,7 @@ public List ByBuildLocator(BuildLocator locator) public List ByBuildLocator(BuildLocator locator, List param) { - var strParam = ""; - foreach (var tmpParam in param) - { - strParam += ","; - strParam += tmpParam; - } - + var strParam = GetParamLocator(param); var buildWrapper = _caller.Get( ActionHelper.CreateFieldUrl(string.Format("/app/rest/builds?locator={0}{1}", locator, strParam), _fields)); @@ -47,9 +51,9 @@ public List ByBuildLocator(BuildLocator locator, List param) return int.Parse(buildWrapper.Count) > 0 ? buildWrapper.Build : new List(); } - public Build LastBuildByAgent(string agentName) + public Build LastBuildByAgent(string agentName, List param = null) { - return ByBuildLocator(BuildLocator.WithDimensions(agentName: agentName, maxResults: 1)).SingleOrDefault(); + return ByBuildLocator(BuildLocator.WithDimensions(agentName: agentName, maxResults: 1),param).SingleOrDefault(); } public void Add2QueueBuildByBuildConfigId(string buildConfigId) @@ -57,67 +61,61 @@ public void Add2QueueBuildByBuildConfigId(string buildConfigId) _caller.GetFormat("/action.html?add2Queue={0}", buildConfigId); } - public List SuccessfulBuildsByBuildConfigId(string buildConfigId) - { - return ByBuildLocator(BuildLocator.WithDimensions(BuildTypeLocator.WithId(buildConfigId), - status: BuildStatus.SUCCESS - )); - } - public List SuccessfulBuildsByBuildConfigId(string buildConfigId, List param) + public List SuccessfulBuildsByBuildConfigId(string buildConfigId, List param = null) { return ByBuildLocator(BuildLocator.WithDimensions(BuildTypeLocator.WithId(buildConfigId), - status: BuildStatus.SUCCESS - ), param); + status: BuildStatus.SUCCESS + ), param); } - public Build LastSuccessfulBuildByBuildConfigId(string buildConfigId) + public Build LastSuccessfulBuildByBuildConfigId(string buildConfigId, List param = null) { var builds = ByBuildLocator(BuildLocator.WithDimensions(BuildTypeLocator.WithId(buildConfigId), status: BuildStatus.SUCCESS, maxResults: 1 - )); + ),param); return builds != null ? builds.FirstOrDefault() : new Build(); } - public List FailedBuildsByBuildConfigId(string buildConfigId) + public List FailedBuildsByBuildConfigId(string buildConfigId, List param = null) { return ByBuildLocator(BuildLocator.WithDimensions(BuildTypeLocator.WithId(buildConfigId), status: BuildStatus.FAILURE - )); + ),param); } - public Build LastFailedBuildByBuildConfigId(string buildConfigId) + public Build LastFailedBuildByBuildConfigId(string buildConfigId, List param = null) { var builds = ByBuildLocator(BuildLocator.WithDimensions(BuildTypeLocator.WithId(buildConfigId), status: BuildStatus.FAILURE, maxResults: 1 - )); + ),param); return builds != null ? builds.FirstOrDefault() : new Build(); } - public Build LastBuildByBuildConfigId(string buildConfigId) + public Build LastBuildByBuildConfigId(string buildConfigId, List param = null) { var builds = ByBuildLocator(BuildLocator.WithDimensions(BuildTypeLocator.WithId(buildConfigId), maxResults: 1 - )); + ),param); return builds != null ? builds.FirstOrDefault() : new Build(); } - public List ErrorBuildsByBuildConfigId(string buildConfigId) + public List ErrorBuildsByBuildConfigId(string buildConfigId, List param = null) { return ByBuildLocator(BuildLocator.WithDimensions(BuildTypeLocator.WithId(buildConfigId), status: BuildStatus.ERROR - )); + ),param); } - public Build LastErrorBuildByBuildConfigId(string buildConfigId) + public Build LastErrorBuildByBuildConfigId(string buildConfigId, List param = null) { var builds = ByBuildLocator(BuildLocator.WithDimensions(BuildTypeLocator.WithId(buildConfigId), status: BuildStatus.ERROR, maxResults: 1 - )); + ),param); return builds != null ? builds.FirstOrDefault() : new Build(); } @@ -164,9 +162,15 @@ public List ByUserName(string userName) )); } - public List AllSinceDate(DateTime date) + public List AllSinceDate(DateTime date, long count = 100, List param = null) { - return ByBuildLocator(BuildLocator.WithDimensions(sinceDate: date)); + if (param == null) + { + param = new List {"defaultFilter:false"}; + } + param.Add($"count({count})"); + + return ByBuildLocator(BuildLocator.WithDimensions(sinceDate: date), param); } public List AllRunningBuild() @@ -195,24 +199,24 @@ public List NonSuccessfulBuildsForUser(string userName) return builds.Where(b => b.Status != "SUCCESS").ToList(); } - public List RetrieveEntireBuildChainFrom(string buildConfigId) + public List RetrieveEntireBuildChainFrom(string buildId, bool includeInitial=true, List param = null) { - var buildWrapper = - _caller.GetFormat( - ActionHelper.CreateFieldUrl( - "/app/rest/builds?locator=snapshotDependency:(from:(id:{0}),includeInitial:true),defaultFilter:false", - _fields), buildConfigId); - return int.Parse(buildWrapper.Count) > 0 ? buildWrapper.Build : new List(); + var strIncludeInitial = includeInitial ? "true" : "false"; + if (param == null) + { + param = new List { "defaultFilter:false" }; + } + return GetBuildListQuery("/app/rest/builds?locator=snapshotDependency:(from:(id:{0}),includeInitial:"+ strIncludeInitial + "){1}", buildId, param); } - public List RetrieveEntireBuildChainTo(string buildConfigId) + public List RetrieveEntireBuildChainTo(string buildId, bool includeInitial = true, List param = null) { - var buildWrapper = - _caller.GetFormat( - ActionHelper.CreateFieldUrl( - "/app/rest/builds?locator=snapshotDependency:(to:(id:{0}),includeInitial:true),defaultFilter:false", _fields), - buildConfigId); - return int.Parse(buildWrapper.Count) > 0 ? buildWrapper.Build : new List(); + var strIncludeInitial = includeInitial ? "true" : "false"; + if (param == null) + { + param = new List { "defaultFilter:false" }; + } + return GetBuildListQuery("/app/rest/builds?locator=snapshotDependency:(to:(id:{0}),includeInitial:" + strIncludeInitial + "){1}", buildId, param); } /// @@ -220,15 +224,60 @@ public List RetrieveEntireBuildChainTo(string buildConfigId) /// /// IMPORTANT NOTE: The list starts from the latest build to oldest (Descending) /// - /// + /// + /// + /// + /// + public List NextBuilds(string buildId, long count = 100, List param = null) + { + return GetBuildListQuery("/app/rest/builds?locator=sinceBuild:(id:{0}),count(" + count + "){1}", + buildId, param); + } + + /// + /// Retrieves the list of build affected by a project. + /// + /// IMPORTANT NOTE: The list starts from the latest build to oldest (Descending) + /// + /// /// + /// /// - public List NextBuilds(string buildid, int count = 100) + public List AffectedProject(string projectId, long count = 100, List param = null) { + return GetBuildListQuery("/app/rest/builds?locator=affectedProject:(id:{0}),count(" + count + "){1}", + projectId, param); + } + + #endregion + + #region Private Methods + + private static string GetParamLocator(List param) + { + var strParam = ""; + if (param != null) + { + foreach (var tmpParam in param) + { + strParam += ","; + strParam += tmpParam; + } + } + return strParam; + } + + private List GetBuildListQuery(string url, string id, List param = null) + { + var strParam = GetParamLocator(param); var buildWrapper = _caller.GetFormat( - ActionHelper.CreateFieldUrl("/app/rest/builds?locator=sinceBuild:(id:{0}),count({1})", _fields),buildid,count); + ActionHelper.CreateFieldUrl( + url, _fields), + id, strParam); return int.Parse(buildWrapper.Count) > 0 ? buildWrapper.Build : new List(); } + + #endregion } } diff --git a/src/TeamCitySharp/ActionTypes/IBuilds.cs b/src/TeamCitySharp/ActionTypes/IBuilds.cs index 5117dc58..0ac05829 100644 --- a/src/TeamCitySharp/ActionTypes/IBuilds.cs +++ b/src/TeamCitySharp/ActionTypes/IBuilds.cs @@ -8,14 +8,14 @@ namespace TeamCitySharp.ActionTypes public interface IBuilds { Builds GetFields(string fields); - List SuccessfulBuildsByBuildConfigId(string buildConfigId); - List SuccessfulBuildsByBuildConfigId(string buildConfigId, List param); - Build LastSuccessfulBuildByBuildConfigId(string buildConfigId); - List FailedBuildsByBuildConfigId(string buildConfigId); - Build LastFailedBuildByBuildConfigId(string buildConfigId); - Build LastBuildByBuildConfigId(string buildConfigId); - List ErrorBuildsByBuildConfigId(string buildConfigId); - Build LastErrorBuildByBuildConfigId(string buildConfigId); + List SuccessfulBuildsByBuildConfigId(string buildConfigId, List param = null); + Build LastSuccessfulBuildByBuildConfigId(string buildConfigId, List param = null); + List FailedBuildsByBuildConfigId(string buildConfigId, List param = null); + Build LastFailedBuildByBuildConfigId(string buildConfigId, List param = null); + Build LastBuildByBuildConfigId(string buildConfigId, List param = null); + List ErrorBuildsByBuildConfigId(string buildConfigId, List param = null); + Build LastErrorBuildByBuildConfigId(string buildConfigId, List param = null); + Build LastBuildByAgent(string agentName, List param = null); Build ById(string id); List ByBuildConfigId(string buildConfigId); List RunningByBuildConfigId(string buildConfigId); @@ -24,15 +24,15 @@ public interface IBuilds List ByConfigIdAndTag(string buildConfigId, string tag); List ByUserName(string userName); List ByBuildLocator(BuildLocator locator); - List AllSinceDate(DateTime date); + List AllSinceDate(DateTime date, long count = 100, List param = null); List AllBuildsOfStatusSinceDate(DateTime date, BuildStatus buildStatus); List NonSuccessfulBuildsForUser(string userName); List ByBranch(string branchName); - Build LastBuildByAgent(string agentName); void Add2QueueBuildByBuildConfigId(string buildConfigId); List AllRunningBuild(); - List RetrieveEntireBuildChainFrom(string buildConfigId); - List RetrieveEntireBuildChainTo(string buildConfigId); - List NextBuilds(string buildid, int count = 100); + List RetrieveEntireBuildChainFrom(string buildConfigId, bool includeInitial = true, List param = null); + List RetrieveEntireBuildChainTo(string buildConfigId, bool includeInitial = true, List param = null); + List NextBuilds(string buildid, long count = 100, List param = null); + List AffectedProject(string projectId, long count = 100, List param = null); } -} \ No newline at end of file +} diff --git a/src/TeamCitySharp/ActionTypes/IVcsRoots.cs b/src/TeamCitySharp/ActionTypes/IVcsRoots.cs index f411e459..cd07e3f1 100644 --- a/src/TeamCitySharp/ActionTypes/IVcsRoots.cs +++ b/src/TeamCitySharp/ActionTypes/IVcsRoots.cs @@ -10,6 +10,6 @@ public interface IVcsRoots VcsRoot ById(string vcsRootId); VcsRoot AttachVcsRoot(BuildTypeLocator locator, VcsRoot vcsRoot); void DetachVcsRoot(BuildTypeLocator locator, string vcsRootId); - void SetVcsRootField(VcsRoot vcsRoot, VcsRootField field, object value); + void SetVcsRootValue(VcsRoot vcsRoot, VcsRootValue field, object value); } } \ No newline at end of file diff --git a/src/TeamCitySharp/ActionTypes/VcsRoots.cs b/src/TeamCitySharp/ActionTypes/VcsRoots.cs index 7a6579c6..bd8017b4 100644 --- a/src/TeamCitySharp/ActionTypes/VcsRoots.cs +++ b/src/TeamCitySharp/ActionTypes/VcsRoots.cs @@ -51,7 +51,7 @@ public void DetachVcsRoot(BuildTypeLocator locator, string vcsRootId) _caller.DeleteFormat("/app/rest/buildTypes/{0}/vcs-root-entries/{1}", locator, vcsRootId); } - public void SetVcsRootField(VcsRoot vcsRoot, VcsRootField field, object value) + public void SetVcsRootValue(VcsRoot vcsRoot, VcsRootValue field, object value) { _caller.PutFormat(value, "/app/rest/vcs-roots/id:{0}/{1}", vcsRoot.Id, ToCamelCase(field.ToString())); } diff --git a/src/TeamCitySharp/Connection/TeamcityJsonEncoderDecoderConfiguration.cs b/src/TeamCitySharp/Connection/TeamcityJsonEncoderDecoderConfiguration.cs index 25e59b01..5b137a17 100644 --- a/src/TeamCitySharp/Connection/TeamcityJsonEncoderDecoderConfiguration.cs +++ b/src/TeamCitySharp/Connection/TeamcityJsonEncoderDecoderConfiguration.cs @@ -3,11 +3,9 @@ using EasyHttp.Codecs; using EasyHttp.Codecs.JsonFXExtensions; using EasyHttp.Configuration; -using JsonFx.IO; using JsonFx.Json; using JsonFx.Model; using JsonFx.Serialization; -using JsonFx.Serialization.Filters; namespace TeamCitySharp.Connection { diff --git a/src/TeamCitySharp/DomainEntities/ArtifactDependency.cs b/src/TeamCitySharp/DomainEntities/ArtifactDependency.cs index 3c154f74..d7de6927 100644 --- a/src/TeamCitySharp/DomainEntities/ArtifactDependency.cs +++ b/src/TeamCitySharp/DomainEntities/ArtifactDependency.cs @@ -22,10 +22,10 @@ public override string ToString() [DataMember(Name = "type")] public string Type { get; set; } - [DataMember(Name = "properties")] + [DataMember] public Properties Properties { get; set; } - [DataMember(Name = "source-buildType")] + [DataMember] public SourceBuildType SourceBuildType { get; set; } public static ArtifactDependency Default(string dependsOnbuildId) diff --git a/src/TeamCitySharp/DomainEntities/Build.cs b/src/TeamCitySharp/DomainEntities/Build.cs index 156d7ecc..525c3de2 100644 --- a/src/TeamCitySharp/DomainEntities/Build.cs +++ b/src/TeamCitySharp/DomainEntities/Build.cs @@ -16,14 +16,19 @@ public class Build public string State { get; set; } public DateTime StartDate { get; set; } public DateTime FinishDate { get; set; } + public DateTime QueuedDate { get; set; } public BuildConfig BuildType { get; set; } public BuildConfig BuildConfig { get; set; } public Agent Agent { get; set; } + public Tags Tags { get; set; } public ChangeWrapper Changes { get; set; } public Properties Properties { get; set; } public Running_info Running_info { get; set; } public BuildSnapshotDepencies SnapshotDependencies { get; set; } public BuildArtifactDependencies ArtifactDependencies { get; set; } + public ChangeWrapper LastChanges { get; set; } + public Triggered Triggered { get; set; } + public Revisions Revisions { get; set; } public override string ToString() { diff --git a/src/TeamCitySharp/DomainEntities/BuildConfig.cs b/src/TeamCitySharp/DomainEntities/BuildConfig.cs index 60db6dac..29f8065b 100644 --- a/src/TeamCitySharp/DomainEntities/BuildConfig.cs +++ b/src/TeamCitySharp/DomainEntities/BuildConfig.cs @@ -17,6 +17,7 @@ public override string ToString() public string Description { get; set; } public string WebUrl { get; set; } public bool? Personal { get; set; } + public bool? Cancelled { get; set; } public bool? History { get; set; } public bool? Pinned { get; set; } public bool? Running { get; set; } diff --git a/src/TeamCitySharp/DomainEntities/Change.cs b/src/TeamCitySharp/DomainEntities/Change.cs index 249df9f1..756fb244 100644 --- a/src/TeamCitySharp/DomainEntities/Change.cs +++ b/src/TeamCitySharp/DomainEntities/Change.cs @@ -6,12 +6,16 @@ public class Change { public string Username { get; set; } public string WebLink { get; set; } + public string WebUrl { get; set; } public string Href { get; set; } public string Id { get; set; } public string Version { get; set; } + public bool Personal { get; set; } public DateTime Date { get; set; } public string Comment { get; set; } public FileWrapper Files { get; set; } + public User User { get; set; } + public VcsRoot VcsRootInstance { get; set; } } } \ No newline at end of file diff --git a/src/TeamCitySharp/DomainEntities/Revision.cs b/src/TeamCitySharp/DomainEntities/Revision.cs new file mode 100644 index 00000000..0bd3c61e --- /dev/null +++ b/src/TeamCitySharp/DomainEntities/Revision.cs @@ -0,0 +1,15 @@ +using System.Collections.Generic; +using System.Runtime.Serialization; + +namespace TeamCitySharp.DomainEntities +{ + public class Revision + { + public string Version { get; set; } + public VcsRoot VcsRootInstance { get; set; } + public override string ToString() + { + return Version; + } + } +} diff --git a/src/TeamCitySharp/DomainEntities/Revisions.cs b/src/TeamCitySharp/DomainEntities/Revisions.cs new file mode 100644 index 00000000..8bc9e247 --- /dev/null +++ b/src/TeamCitySharp/DomainEntities/Revisions.cs @@ -0,0 +1,10 @@ +using System.Collections.Generic; + +namespace TeamCitySharp.DomainEntities +{ + public class Revisions + { + public int Count { get; set; } + public List Revision { get; set; } + } +} diff --git a/src/TeamCitySharp/DomainEntities/SnapshotDependency.cs b/src/TeamCitySharp/DomainEntities/SnapshotDependency.cs index c7a885b9..f629f62d 100644 --- a/src/TeamCitySharp/DomainEntities/SnapshotDependency.cs +++ b/src/TeamCitySharp/DomainEntities/SnapshotDependency.cs @@ -20,13 +20,13 @@ public override string ToString() [DataMember(Name = "id")] public string Id { get; set; } - [DataMember(Name = "properties")] + [DataMember] public Properties Properties { get; set; } [DataMember(Name = "type")] public string Type { get; set; } - [DataMember(Name = "source-buildType")] + [DataMember] public SourceBuildType SourceBuildType { get; set; } public static SnapshotDependency Default(string dependsOnbuildId) diff --git a/src/TeamCitySharp/DomainEntities/Tag.cs b/src/TeamCitySharp/DomainEntities/Tag.cs new file mode 100644 index 00000000..5dc46b84 --- /dev/null +++ b/src/TeamCitySharp/DomainEntities/Tag.cs @@ -0,0 +1,12 @@ +namespace TeamCitySharp.DomainEntities +{ + public class Tag + { + public override string ToString() + { + return "tag"; + } + + public string Name { get; set; } + } +} diff --git a/src/TeamCitySharp/DomainEntities/Tags.cs b/src/TeamCitySharp/DomainEntities/Tags.cs new file mode 100644 index 00000000..f9c0831e --- /dev/null +++ b/src/TeamCitySharp/DomainEntities/Tags.cs @@ -0,0 +1,14 @@ +using System.Collections.Generic; + +namespace TeamCitySharp.DomainEntities +{ + public class Tags + { + public override string ToString() + { + return "tags"; + } + + public List Tag { get; set; } + } +} diff --git a/src/TeamCitySharp/DomainEntities/Triggered.cs b/src/TeamCitySharp/DomainEntities/Triggered.cs new file mode 100644 index 00000000..8db85e61 --- /dev/null +++ b/src/TeamCitySharp/DomainEntities/Triggered.cs @@ -0,0 +1,13 @@ +using System; + +namespace TeamCitySharp.DomainEntities +{ + public class Triggered + { + public string Type { get; set; } + public DateTime Date { get; set; } + public BuildConfig BuildType { get; set; } + public string Details { get; set; } + public User User { get; set; } + } +} diff --git a/src/TeamCitySharp/DomainEntities/VcsRoot.cs b/src/TeamCitySharp/DomainEntities/VcsRoot.cs index cc8bc246..b69aab26 100644 --- a/src/TeamCitySharp/DomainEntities/VcsRoot.cs +++ b/src/TeamCitySharp/DomainEntities/VcsRoot.cs @@ -1,22 +1,46 @@ using System; +using System.Runtime.Serialization; namespace TeamCitySharp.DomainEntities { + [DataContract] public class VcsRoot { + [DataMember(Name = "id")] public string Id { get; set; } + + [DataMember(Name = "vcs-root-id")] + public string VcsRootId { get; set; } + + [DataMember(Name = "vcsName")] public string VcsName { get; set; } + + [DataMember(Name = "href")] public string Href { get; set; } + + [DataMember(Name = "name")] public string Name { get; set; } + + [DataMember(Name = "version")] public string Version { get; set; } + + [DataMember(Name = "status")] public string Status { get; set; } + + [DataMember(Name = "lastChecked")] public DateTime LastChecked { get; set; } + [DataMember(Name = "lastVersion")] + public string LastVersion { get; set; } + + [DataMember] + public Properties Properties { get; set; } + public override string ToString() { return Name; } - public Properties Properties { get; set; } + } } \ No newline at end of file diff --git a/src/TeamCitySharp/DomainEntities/VcsRootField.cs b/src/TeamCitySharp/DomainEntities/VcsRootValue.cs similarity index 71% rename from src/TeamCitySharp/DomainEntities/VcsRootField.cs rename to src/TeamCitySharp/DomainEntities/VcsRootValue.cs index 5932ac2b..ce8cf534 100644 --- a/src/TeamCitySharp/DomainEntities/VcsRootField.cs +++ b/src/TeamCitySharp/DomainEntities/VcsRootValue.cs @@ -1,9 +1,9 @@ -namespace TeamCitySharp.DomainEntities -{ - public enum VcsRootField - { - Name, - Shared, - ProjectId - } +namespace TeamCitySharp.DomainEntities +{ + public enum VcsRootValue + { + Name, + Shared, + ProjectId + } } \ No newline at end of file diff --git a/src/TeamCitySharp/Fields/BuildField.cs b/src/TeamCitySharp/Fields/BuildField.cs index 907bd46c..fd4865a9 100644 --- a/src/TeamCitySharp/Fields/BuildField.cs +++ b/src/TeamCitySharp/Fields/BuildField.cs @@ -15,14 +15,20 @@ public class BuildField : IField public bool StatusText { get; private set; } public bool StartDate { get; private set; } public bool FinishDate { get; private set; } + public bool QueuedDate { get; private set; } public bool State { get; private set; } + public bool Personal { get; private set; } public BuildTypeField BuildType { get; private set; } public AgentField Agent { get; private set; } - /* public ChangeWrapperField Changes { get; private set; }*/ + public TagsField Tags { get; private set; } + public LastChangesField LastChanges { get; private set; } + public TriggeredField Triggered { get; set; } public PropertiesField Properties { get; private set; } public BuildSnapshotDepenciesField SnapshotDependencies { get; private set; } public BuildArtifactDependenciesField ArtifactDependencies { get; private set; } + public RevisionsField Revisions { get; private set; } + public ChangesField Changes { get; private set; } #endregion @@ -37,10 +43,16 @@ public static BuildField WithFields(bool id = false, bool statusText = false, bool startDate = false, bool finishDate = false, + bool queuedDate = false, bool state = false, + bool personal = false, BuildTypeField buildType = null, AgentField agent = null, - /* ChangeWrapperField Changes = null, */ + TagsField tags = null, + LastChangesField lastChanges = null, + ChangesField changes = null, + TriggeredField triggered = null, + RevisionsField revisions = null, PropertiesField properties = null, BuildSnapshotDepenciesField snapshotDepencies = null, BuildArtifactDependenciesField artifactDependencies = null) @@ -56,10 +68,16 @@ public static BuildField WithFields(bool id = false, StatusText = statusText, StartDate = startDate, FinishDate = finishDate, + QueuedDate = queuedDate, State = state, + Personal = personal, BuildType = buildType, Agent = agent, - //Changes = changes, + Tags = tags, + LastChanges = lastChanges, + Changes = changes, + Triggered = triggered, + Revisions = revisions, Properties = properties, SnapshotDependencies = snapshotDepencies, ArtifactDependencies = artifactDependencies @@ -95,15 +113,27 @@ public override string ToString() FieldHelper.AddField(FinishDate, ref currentFields, "finishDate"); + FieldHelper.AddField(QueuedDate, ref currentFields, "queuedDate"); + FieldHelper.AddField(State, ref currentFields, "state"); + FieldHelper.AddField(Personal, ref currentFields, "personal"); + FieldHelper.AddField(BuildTypeId, ref currentFields, "buildTypeId"); FieldHelper.AddFieldGroup(Agent, ref currentFields); + FieldHelper.AddFieldGroup(Tags, ref currentFields); + FieldHelper.AddFieldGroup(BuildType, ref currentFields); - //FieldHelper.AddField(Changes, ref currentFields, "changes"); + FieldHelper.AddFieldGroup(LastChanges, ref currentFields); + + FieldHelper.AddFieldGroup(Changes, ref currentFields); + + FieldHelper.AddFieldGroup(Triggered, ref currentFields); + + FieldHelper.AddFieldGroup(Revisions, ref currentFields); FieldHelper.AddFieldGroup(Properties, ref currentFields); diff --git a/src/TeamCitySharp/Fields/BuildTypeField.cs b/src/TeamCitySharp/Fields/BuildTypeField.cs index 3265e4c1..1bcf22fe 100644 --- a/src/TeamCitySharp/Fields/BuildTypeField.cs +++ b/src/TeamCitySharp/Fields/BuildTypeField.cs @@ -17,6 +17,7 @@ public class BuildTypeField : IField public bool WebUrl { get; private set; } public bool Personal { get; private set; } public bool History { get; private set; } + public bool Cancelled { get; private set; } public bool Pinned { get; private set; } public bool Running { get; private set; } @@ -52,6 +53,7 @@ public static BuildTypeField WithFields(bool id = false, bool webUrl = false, bool personal = false, bool history = false, + bool cancelled = false, bool pinned = false, bool running = false, ProjectField project = null, @@ -66,6 +68,7 @@ public static BuildTypeField WithFields(bool id = false, Running = running, Pinned = pinned, History = history, + Cancelled = cancelled, Personal = personal, WebUrl = webUrl, Description = description, @@ -101,6 +104,7 @@ public override string ToString() FieldHelper.AddField(Running, ref currentFields, "running"); FieldHelper.AddField(Pinned, ref currentFields, "pinned"); FieldHelper.AddField(History, ref currentFields, "history"); + FieldHelper.AddField(Cancelled, ref currentFields, "cancelled"); FieldHelper.AddField(Personal, ref currentFields, "personal"); FieldHelper.AddField(WebUrl, ref currentFields, "webUrl"); FieldHelper.AddField(Description, ref currentFields, "description"); diff --git a/src/TeamCitySharp/Fields/ChangeField.cs b/src/TeamCitySharp/Fields/ChangeField.cs new file mode 100644 index 00000000..0e1e714d --- /dev/null +++ b/src/TeamCitySharp/Fields/ChangeField.cs @@ -0,0 +1,92 @@ +using System; + +namespace TeamCitySharp.Fields +{ + public class ChangeField : IField + { + #region Properties + public bool Id { get; private set; } + public bool Version { get; private set; } + public bool Username { get; private set; } + public bool Href { get; private set; } + public bool WebUrl { get; private set; } + public bool WebLink { get; private set; } + public bool Date { get; private set; } + public bool Comment { get; private set; } + public bool Personal { get; private set; } + public UserField UserField { get; private set; } + public FilesField FilesField { get; private set; } + public VcsRootField VcsRootField { get; private set; } + public VcsRootInstanceField VcsRootInstanceField { get; private set; } + public ChangeVcsRootInstanceField ChangeVcsRootInstanceField { get; private set; } + #endregion + + #region Public Methods + public static ChangeField WithFields( bool id = false, + bool version = false, + bool username = false, + bool href = false, + bool weburl = false, + bool weblink = false, + bool date = false, + bool comment = false, + bool personal = false, + UserField userField = null, + FilesField filesField = null, + VcsRootField vcsRootField = null, + VcsRootInstanceField vcsRootInstanceField=null, + ChangeVcsRootInstanceField changeVcsRootInstanceField=null) + { + return new ChangeField + { + Id = id, + Version = version, + Username = username, + Href = href, + WebUrl = weburl, + WebLink = weblink, + Date = date, + Comment = comment, + Personal = personal, + UserField = userField, + FilesField = filesField, + VcsRootField = vcsRootField, + VcsRootInstanceField = vcsRootInstanceField, + ChangeVcsRootInstanceField = changeVcsRootInstanceField + }; + } + + #endregion + #region Overrides IField + + public string FieldId + { + get { return "change"; } + } + + public override string ToString() + { + var currentFields = String.Empty; + + FieldHelper.AddField(Id, ref currentFields, "id"); + FieldHelper.AddField(Version, ref currentFields, "version"); + FieldHelper.AddField(Username, ref currentFields, "username"); + FieldHelper.AddField(Href, ref currentFields, "href"); + FieldHelper.AddField(WebUrl, ref currentFields, "webUrl"); + FieldHelper.AddField(WebLink, ref currentFields, "webLink"); + FieldHelper.AddField(Date, ref currentFields, "date"); + FieldHelper.AddField(Comment, ref currentFields, "comment"); + FieldHelper.AddField(Personal, ref currentFields, "personal"); + + FieldHelper.AddFieldGroup(UserField, ref currentFields); + FieldHelper.AddFieldGroup(FilesField, ref currentFields); + FieldHelper.AddFieldGroup(VcsRootField, ref currentFields); + FieldHelper.AddFieldGroup(VcsRootInstanceField, ref currentFields); + FieldHelper.AddFieldGroup(ChangeVcsRootInstanceField, ref currentFields); + + return currentFields; + } + + #endregion + } +} diff --git a/src/TeamCitySharp/Fields/ChangeVcsRootInstanceField.cs b/src/TeamCitySharp/Fields/ChangeVcsRootInstanceField.cs new file mode 100644 index 00000000..e4892c5e --- /dev/null +++ b/src/TeamCitySharp/Fields/ChangeVcsRootInstanceField.cs @@ -0,0 +1,77 @@ +using System; + +namespace TeamCitySharp.Fields +{ + public class ChangeVcsRootInstanceField : IField + { + #region Properties + + public bool Id { get; private set; } + public bool VcsName { get; private set; } + public bool VcsRootId { get; private set; } + public bool Href { get; private set; } + public bool Name { get; private set; } + public bool Version { get; private set; } + public bool Status { get; private set; } + public bool LastChecked { get; private set; } + + public PropertiesField Properties { get; set; } + + #endregion + + #region Public Methods + + public static ChangeVcsRootInstanceField WithFields(PropertiesField properties = null, + bool id = false, + bool vcsName = false, + bool vcsrootid = false, + bool href = false, + bool name = false, + bool version = false, + bool status = false, + bool lastChecked = false) + { + return new ChangeVcsRootInstanceField + { + Properties = properties, + Id = id, + VcsName = vcsName, + VcsRootId = vcsrootid, + Href = href, + Name = name, + Version = version, + Status = status, + LastChecked = lastChecked + }; + } + + #endregion + + #region Overrides IField + + public string FieldId + { + get { return "vcsRootInstance"; } + } + + public override string ToString() + { + var currentFields = String.Empty; + + FieldHelper.AddField(Id, ref currentFields, "id"); + FieldHelper.AddField(VcsName, ref currentFields, "vcsName"); + FieldHelper.AddField(VcsRootId, ref currentFields, "vcs-root-id"); + FieldHelper.AddField(Href, ref currentFields, "href"); + FieldHelper.AddField(Name, ref currentFields, "name"); + FieldHelper.AddField(Version, ref currentFields, "version"); + FieldHelper.AddField(Status, ref currentFields, "status"); + FieldHelper.AddField(LastChecked, ref currentFields, "lastChecked"); + + FieldHelper.AddFieldGroup(Properties, ref currentFields); + + return currentFields; + } + + #endregion + } +} \ No newline at end of file diff --git a/src/TeamCitySharp/Fields/ChangesField.cs b/src/TeamCitySharp/Fields/ChangesField.cs new file mode 100644 index 00000000..85c04211 --- /dev/null +++ b/src/TeamCitySharp/Fields/ChangesField.cs @@ -0,0 +1,48 @@ +using System; + +namespace TeamCitySharp.Fields +{ + public class ChangesField : IField + { + #region Properties + + public ChangeField ChangeField { get; private set; } + public bool Count { get; private set; } + + #endregion + + #region Public Methods + + public static ChangesField WithFields(ChangeField changeField = null, + bool count = true) + { + return new ChangesField + { + ChangeField = changeField, + Count = count, + }; + } + + #endregion + + #region Overrides IField + + public string FieldId + { + get { return "changes"; } + } + + public override string ToString() + { + var currentFields = String.Empty; + + FieldHelper.AddField(Count, ref currentFields, "count"); + + FieldHelper.AddFieldGroup(ChangeField, ref currentFields); + + return currentFields; + } + + #endregion + } +} diff --git a/src/TeamCitySharp/Fields/FileField.cs b/src/TeamCitySharp/Fields/FileField.cs new file mode 100644 index 00000000..9390b13d --- /dev/null +++ b/src/TeamCitySharp/Fields/FileField.cs @@ -0,0 +1,48 @@ +using System; + +namespace TeamCitySharp.Fields +{ + public class FileField : IField + { + #region Properties + public bool BeforeRevision { get; private set; } + public bool AfterRevision { get; private set; } + public bool File { get; private set; } + public bool RelativeFile { get; private set; } + #endregion + + #region Public Methods + public static FileField WithFields(bool beforeRevision = false, bool afterRevision = false, bool file = false, bool relativeFile = false) + { + return new FileField + { + BeforeRevision = beforeRevision, + AfterRevision = afterRevision, + File = file, + RelativeFile = relativeFile + }; + } + + #endregion + #region Overrides IField + + public string FieldId + { + get { return "file"; } + } + + public override string ToString() + { + var currentFields = String.Empty; + + FieldHelper.AddField(BeforeRevision, ref currentFields, "before-revision"); + FieldHelper.AddField(AfterRevision, ref currentFields, "after-revision"); + FieldHelper.AddField(File, ref currentFields, "file"); + FieldHelper.AddField(RelativeFile, ref currentFields, "relative-file"); + + return currentFields; + } + + #endregion + } +} diff --git a/src/TeamCitySharp/Fields/FilesField.cs b/src/TeamCitySharp/Fields/FilesField.cs new file mode 100644 index 00000000..0e44548e --- /dev/null +++ b/src/TeamCitySharp/Fields/FilesField.cs @@ -0,0 +1,43 @@ +using System; + +namespace TeamCitySharp.Fields +{ + public class FilesField : IField + { + #region Properties + public FileField FileField { get; private set; } + #endregion + + #region Public Methods + + public static FilesField WithFields(FileField fileField = null) + { + return new FilesField + { + FileField = fileField + }; + } + + #endregion + + #region Overrides IField + + public string FieldId + { + get { return "files"; } + } + + public override string ToString() + { + var currentFields = String.Empty; + + FieldHelper.AddFieldGroup(FileField, ref currentFields); + + return currentFields; + } + + #endregion + } +} + + diff --git a/src/TeamCitySharp/Fields/LastChangesField.cs b/src/TeamCitySharp/Fields/LastChangesField.cs new file mode 100644 index 00000000..49803b02 --- /dev/null +++ b/src/TeamCitySharp/Fields/LastChangesField.cs @@ -0,0 +1,50 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; + +namespace TeamCitySharp.Fields +{ + public class LastChangesField : IField + { + #region Properties + + public ChangeField ChangeField { get; private set; } + public bool Count { get; private set; } + + #endregion + + #region Public Methods + + public static LastChangesField WithFields(ChangeField changeField = null, bool count = true) + { + return new LastChangesField + { + ChangeField = changeField, + Count = count + }; + } + + #endregion + + #region Overrides IField + + public string FieldId + { + get { return "lastChanges"; } + } + + public override string ToString() + { + var currentFields = String.Empty; + + FieldHelper.AddField(Count, ref currentFields, "count"); + + FieldHelper.AddFieldGroup(ChangeField, ref currentFields); + + return currentFields; + } + + #endregion + } +} diff --git a/src/TeamCitySharp/Fields/ProjectField.cs b/src/TeamCitySharp/Fields/ProjectField.cs index c2943cc2..f027298d 100644 --- a/src/TeamCitySharp/Fields/ProjectField.cs +++ b/src/TeamCitySharp/Fields/ProjectField.cs @@ -69,6 +69,7 @@ public override string ToString() FieldHelper.AddField(Href, ref currentFields, "href"); FieldHelper.AddField(Id, ref currentFields, "id"); FieldHelper.AddField(Name, ref currentFields, "name"); + FieldHelper.AddField(WebUrl, ref currentFields, "webUrl"); FieldHelper.AddFieldGroup(ParentProject, ref currentFields); FieldHelper.AddFieldGroup(Parameters, ref currentFields); diff --git a/src/TeamCitySharp/Fields/RevisionField.cs b/src/TeamCitySharp/Fields/RevisionField.cs new file mode 100644 index 00000000..fc720d42 --- /dev/null +++ b/src/TeamCitySharp/Fields/RevisionField.cs @@ -0,0 +1,43 @@ +using System; + +namespace TeamCitySharp.Fields +{ + public class RevisionField : IField + { + #region Properties + public bool Version { get; private set; } + public VcsRootInstanceField VcsRootInstanceField { get; private set; } + #endregion + + #region Public Methods + public static RevisionField WithFields(bool version = false, VcsRootInstanceField vcsRootInstanceField = null) + { + return new RevisionField + { + Version = version, + VcsRootInstanceField = vcsRootInstanceField + }; + } + + #endregion + #region Overrides IField + + public string FieldId + { + get { return "revision"; } + } + + public override string ToString() + { + var currentFields = String.Empty; + + FieldHelper.AddField(Version, ref currentFields, "version"); + + FieldHelper.AddFieldGroup(VcsRootInstanceField, ref currentFields); + + return currentFields; + } + + #endregion + } +} diff --git a/src/TeamCitySharp/Fields/RevisionsField.cs b/src/TeamCitySharp/Fields/RevisionsField.cs new file mode 100644 index 00000000..ef7d36a7 --- /dev/null +++ b/src/TeamCitySharp/Fields/RevisionsField.cs @@ -0,0 +1,48 @@ +using System; + +namespace TeamCitySharp.Fields +{ + public class RevisionsField : IField + { + #region Properties + + public bool Count { get; private set; } + public RevisionField RevisionField { get; private set; } + + #endregion + + #region Public Methods + + public static RevisionsField WithFields(RevisionField revisionField = null, + bool count = true) + { + return new RevisionsField + { + RevisionField = revisionField, + Count = count + }; + } + + #endregion + + #region Overrides IField + + public string FieldId + { + get { return "revisions"; } + } + + public override string ToString() + { + var currentFields = String.Empty; + + FieldHelper.AddField(Count, ref currentFields, "count"); + + FieldHelper.AddFieldGroup(RevisionField, ref currentFields); + + return currentFields; + } + + #endregion + } +} diff --git a/src/TeamCitySharp/Fields/TagField.cs b/src/TeamCitySharp/Fields/TagField.cs new file mode 100644 index 00000000..8d017968 --- /dev/null +++ b/src/TeamCitySharp/Fields/TagField.cs @@ -0,0 +1,43 @@ +using System; + +namespace TeamCitySharp.Fields +{ + public class TagField : IField + { + #region Properties + + public bool Name { get; private set; } + + #endregion + + #region Public Methods + + public static TagField WithFields(bool name = false) + { + return new TagField + { + Name = name + }; + } + + #endregion + + #region Overrides IField + + public string FieldId + { + get { return "tag"; } + } + + public override string ToString() + { + var currentFields = String.Empty; + + FieldHelper.AddField(Name, ref currentFields, "name"); + + return currentFields; + } + + #endregion + } +} \ No newline at end of file diff --git a/src/TeamCitySharp/Fields/TagsField.cs b/src/TeamCitySharp/Fields/TagsField.cs new file mode 100644 index 00000000..942bba00 --- /dev/null +++ b/src/TeamCitySharp/Fields/TagsField.cs @@ -0,0 +1,48 @@ +using System; + +namespace TeamCitySharp.Fields +{ + public class TagsField : IField + { + #region Properties + + public TagField Tag { get; private set; } + public bool Count { get; private set; } + + #endregion + + #region Public Methods + + public static TagsField WithFields(TagField tag = null, + bool count = true) + { + return new TagsField + { + Tag = tag, + Count = count, + }; + } + + #endregion + + #region Overrides IField + + public string FieldId + { + get { return "tags"; } + } + + public override string ToString() + { + var currentFields = String.Empty; + + FieldHelper.AddField(Count, ref currentFields, "count"); + + FieldHelper.AddFieldGroup(Tag, ref currentFields); + + return currentFields; + } + + #endregion + } +} diff --git a/src/TeamCitySharp/Fields/TriggeredField.cs b/src/TeamCitySharp/Fields/TriggeredField.cs new file mode 100644 index 00000000..f92e8b98 --- /dev/null +++ b/src/TeamCitySharp/Fields/TriggeredField.cs @@ -0,0 +1,53 @@ +using System; + +namespace TeamCitySharp.Fields +{ + public class TriggeredField : IField + { + #region Properties + public bool Type { get; private set; } + public bool Date { get; private set; } + public bool Details { get; private set; } + public BuildTypeField BuildTypeField { get; private set; } + public UserField UserField { get; private set; } + #endregion + + #region Public Methods + + public static TriggeredField WithFields(bool type = false, bool date = false,bool details= false, BuildTypeField buildTypeField = null, UserField userField = null) + { + return new TriggeredField + { + Type = type, + Date = date, + Details = details, + BuildTypeField = buildTypeField, + UserField = userField + }; + } + + #endregion + #region Overrides IField + + public string FieldId + { + get { return "triggered"; } + } + + public override string ToString() + { + var currentFields = String.Empty; + + FieldHelper.AddField(Type, ref currentFields, "type"); + FieldHelper.AddField(Date, ref currentFields, "date"); + FieldHelper.AddField(Details, ref currentFields, "details"); + + FieldHelper.AddFieldGroup(BuildTypeField, ref currentFields); + FieldHelper.AddFieldGroup(UserField, ref currentFields); + + return currentFields; + } + + #endregion + } +} diff --git a/src/TeamCitySharp/Fields/UserField.cs b/src/TeamCitySharp/Fields/UserField.cs new file mode 100644 index 00000000..c702a89b --- /dev/null +++ b/src/TeamCitySharp/Fields/UserField.cs @@ -0,0 +1,66 @@ +using System; + +namespace TeamCitySharp.Fields +{ + public class UserField : IField + { + #region Properties + public bool Username { get; private set; } + public bool Name { get; private set; } + public bool Id { get; private set; } + public bool Email { get; private set; } + public bool LastLogin { get; private set; } + public bool Href { get; private set; } + public PropertiesField PropertiesField { get; private set; } + + //TODO: Implement missing field + /* + public RolesField RolesField { get; private set; } + public GroupsField GroupsField { get; private set; } + public FilesField FilesField { get; private set; } + */ + #endregion + + #region Public Methods + + public static UserField WithFields( bool username = false, bool name = false, bool id = false, bool email = false, bool lastlogin = false, bool href = false, PropertiesField propertiesField = null) + { + return new UserField + { + Username = username, + Name = name, + Id = id, + Email = email, + LastLogin = lastlogin, + Href = href, + PropertiesField = propertiesField + }; + } + + #endregion + #region Overrides IField + + public string FieldId + { + get { return "user"; } + } + + public override string ToString() + { + var currentFields = String.Empty; + + FieldHelper.AddField(Username, ref currentFields, "username"); + FieldHelper.AddField(Name, ref currentFields, "name"); + FieldHelper.AddField(Id, ref currentFields, "id"); + FieldHelper.AddField(Email, ref currentFields, "email"); + FieldHelper.AddField(LastLogin, ref currentFields, "lastLogin"); + FieldHelper.AddField(Href, ref currentFields, "href"); + + FieldHelper.AddFieldGroup(PropertiesField, ref currentFields); + + return currentFields; + } + + #endregion + } +} diff --git a/src/TeamCitySharp/Fields/VcsRootInstanceField.cs b/src/TeamCitySharp/Fields/VcsRootInstanceField.cs new file mode 100644 index 00000000..d69edd9b --- /dev/null +++ b/src/TeamCitySharp/Fields/VcsRootInstanceField.cs @@ -0,0 +1,77 @@ +using System; + +namespace TeamCitySharp.Fields +{ + public class VcsRootInstanceField : IField + { + #region Properties + + public bool Id { get; private set; } + public bool VcsName { get; private set; } + public bool VcsRootId { get; private set; } + public bool Href { get; private set; } + public bool Name { get; private set; } + public bool Version { get; private set; } + public bool Status { get; private set; } + public bool LastChecked { get; private set; } + + public PropertiesField Properties { get; set; } + + #endregion + + #region Public Methods + + public static VcsRootInstanceField WithFields(PropertiesField properties = null, + bool id = false, + bool vcsName = false, + bool vcsrootid = false, + bool href = false, + bool name = false, + bool version = false, + bool status = false, + bool lastChecked = false) + { + return new VcsRootInstanceField + { + Properties = properties, + Id = id, + VcsName = vcsName, + VcsRootId = vcsrootid, + Href = href, + Name = name, + Version = version, + Status = status, + LastChecked = lastChecked + }; + } + + #endregion + + #region Overrides IField + + public string FieldId + { + get { return "vcs-root-instance"; } + } + + public override string ToString() + { + var currentFields = String.Empty; + + FieldHelper.AddField(Id, ref currentFields, "id"); + FieldHelper.AddField(VcsName, ref currentFields, "vcsName"); + FieldHelper.AddField(VcsRootId, ref currentFields, "vcs-root-id"); + FieldHelper.AddField(Href, ref currentFields, "href"); + FieldHelper.AddField(Name, ref currentFields, "name"); + FieldHelper.AddField(Version, ref currentFields, "version"); + FieldHelper.AddField(Status, ref currentFields, "status"); + FieldHelper.AddField(LastChecked, ref currentFields, "lastChecked"); + + FieldHelper.AddFieldGroup(Properties, ref currentFields); + + return currentFields; + } + + #endregion + } +} \ No newline at end of file diff --git a/src/TeamCitySharp/TeamCitySharp.csproj b/src/TeamCitySharp/TeamCitySharp.csproj index 88444ede..2f7f2a2b 100644 --- a/src/TeamCitySharp/TeamCitySharp.csproj +++ b/src/TeamCitySharp/TeamCitySharp.csproj @@ -83,12 +83,17 @@ + + + + + @@ -100,6 +105,13 @@ + + + + + + + @@ -109,10 +121,16 @@ + + + + + + @@ -134,7 +152,7 @@ - + @@ -174,10 +192,10 @@ - - + \ No newline at end of file diff --git a/src/Tests/IntegrationTests/SampleServerUsage.cs b/src/Tests/IntegrationTests/SampleServerUsage.cs index 6c5bd742..b1fb8a17 100644 --- a/src/Tests/IntegrationTests/SampleServerUsage.cs +++ b/src/Tests/IntegrationTests/SampleServerUsage.cs @@ -62,4 +62,4 @@ public void it_returns_all_server_plugins() Assert.IsNotNull(plugins, "Server is not returning a plugin list"); } } -} \ No newline at end of file +} diff --git a/src/Tests/IntegrationTests/TeamCitySharp.IntegrationTests.csproj b/src/Tests/IntegrationTests/TeamCitySharp.IntegrationTests.csproj index bba14413..691274f7 100644 --- a/src/Tests/IntegrationTests/TeamCitySharp.IntegrationTests.csproj +++ b/src/Tests/IntegrationTests/TeamCitySharp.IntegrationTests.csproj @@ -80,10 +80,10 @@ - \ No newline at end of file diff --git a/src/Tests/UnitTests/ActionTypes/ServerInformationTest.cs b/src/Tests/UnitTests/ActionTypes/ServerInformationTest.cs index ff6c2f4a..de47623c 100644 --- a/src/Tests/UnitTests/ActionTypes/ServerInformationTest.cs +++ b/src/Tests/UnitTests/ActionTypes/ServerInformationTest.cs @@ -61,4 +61,4 @@ public void GetsBackupStatus() status.Should().Be(Status); } } -} +} \ No newline at end of file diff --git a/src/Tests/UnitTests/TeamCitySharp.UnitTests.csproj b/src/Tests/UnitTests/TeamCitySharp.UnitTests.csproj index 750c0b35..6275975e 100644 --- a/src/Tests/UnitTests/TeamCitySharp.UnitTests.csproj +++ b/src/Tests/UnitTests/TeamCitySharp.UnitTests.csproj @@ -32,7 +32,7 @@ - ..\..\..\packages\EasyHttp.1.6.80.0\lib\net40\EasyHttp.dll + ..\..\..\packages\EasyHttp.1.6.86.0\lib\net40\EasyHttp.dll ..\..\..\packages\FakeItEasy.1.25.3\lib\net40\FakeItEasy.dll