diff --git a/Release/Json.NET.license.txt b/Release/Json.NET.license.txt new file mode 100644 index 00000000..8f532d54 --- /dev/null +++ b/Release/Json.NET.license.txt @@ -0,0 +1,7 @@ +Copyright (c) 2007 James Newton-King + +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. \ No newline at end of file diff --git a/Release/Newtonsoft.Json.dll b/Release/Newtonsoft.Json.dll new file mode 100644 index 00000000..389329dc Binary files /dev/null and b/Release/Newtonsoft.Json.dll differ diff --git a/Release/Twitterizer.Data.dll b/Release/Twitterizer.Data.dll new file mode 100644 index 00000000..c43a294c Binary files /dev/null and b/Release/Twitterizer.Data.dll differ diff --git a/Release/Twitterizer.Data.pdb b/Release/Twitterizer.Data.pdb new file mode 100644 index 00000000..0b8449a8 Binary files /dev/null and b/Release/Twitterizer.Data.pdb differ diff --git a/Release/Twitterizer2.XML b/Release/Twitterizer2.XML new file mode 100644 index 00000000..0025c995 --- /dev/null +++ b/Release/Twitterizer2.XML @@ -0,0 +1,4897 @@ + + + + Twitterizer2 + + + + + The base object class + + + + + The ITwitterObject interface. + + + + + + Gets or sets information about the user's rate usage. + + The rate limiting object. + + + + Gets or sets the oauth tokens. + + The oauth tokens. + + + + The format that all twitter dates are in. + + + + + The format that all twitter search api dates are in. + + + + + Gets or sets information about the user's rate usage. + + The rate limiting object. + + + + Gets or sets the oauth tokens. + + The oauth tokens. + + + + The Show User Command + + http://dev.twitter.com/doc/get/users/show + + + + The base command class. + + The business object the command should return. + + + + The ICommand interface. + + The Type of the BaseObject that the command returns + + + + + Initializes the command. + + + + + Executes the command. + + The results of the command. + + + + + Gets the request parameters. + + The request parameters. + + + + Initializes a new instance of the class. + + The method. + The end point. + The tokens. + The optional properties. + + + + Initializes the command. + + + + + Executes the command. + + The results of the command. + + + + Clones this instance. + + A new instance of the interface. + + + + Sets the command URI. + + The end point. + + + + Parses the rate limit headers. + + The result object. + The web response. + + + + Adds the result to cache. + + The cache key builder. + The cache. + The result object. + + + + Builds the request. + + The query parameters. + + A class. + + + + + Gets or sets the optional properties. + + The optional properties. + + + + Gets or sets the API method URI. + + The URI for the API method. + + + + Gets or sets the method. + + The method. + + + + Gets or sets the request parameters. + + The request parameters. + + + + Gets or sets the serialization delegate. + + The serialization delegate. + + + + Gets the request tokens. + + The request tokens. + + + + Initializes a new instance of the class. + + The request tokens. + The user id. + The username. + The options. + + + + Inits this instance. + + + + + Gets or sets the user ID. + + The user ID. + + + + Gets or sets the name of the user. + + The name of the user. + + + + The CursorCursorPagedCommand class. + + The type of BaseObject that the command returns. + + + + + Initializes a new instance of the class. + + The method. + The end point. + The tokens. + The options. + + + + Gets or sets the cursor. + + The cursor. + + Optional. + Breaks the results into pages. + A single page contains 100 users. + + + + + The User Search Command class. + + + + + The IPagedCommand interface. + + The type of BaseObject that the command returns. + + + + Initializes a new instance of the class. + + The HTTP method. + The end point. + The tokens. + The optional properties. + + + + Gets or sets the page number to obtain. + + The page number. + + + + Initializes a new instance of the class. + + The request tokens. + The query. + The options. + + + + Initializes the command. + + + + + Clones this instance. + + + A new instance of the interface. + + + + + Gets or sets the query. + + The query. + + + + Provides interaction with timelines + + + + + Returns the 20 most recent statuses, including retweets, posted by the authenticating user and that user's friends. This is the equivalent of /timeline/home on the Web. + + The tokens. + The options. + + A object. + + + + The tokens. + + + + The options. + + + + + Gets the user time line. + + The oauth tokens. + The user id. + The options. + + A instance. + + + + + Gets the public timeline. + + A . + + + + Gets the public timeline. + + The oauth tokens. + + A . + + + + + Obtains the authorized user's friends timeline. + + The tokens. + A . + + + + Obtains the authorized user's friends timeline. + + The tokens. + The options. + A . + + + + Returns the 20 most recent tweets of the authenticated user that have been retweeted by others. + + The tokens. + The options. + A instance. + + + + Returns the 20 most recent tweets of the authenticated user that have been retweeted by others. + + The tokens. + + A instance. + + + + + Returns the 20 most recent retweets posted by the authenticating user. + + The tokens. + The options. + A instance. + + + + Returns the 20 most recent retweets posted by the authenticating user. + + The tokens. + + A instance. + + + + + Returns the 20 most recent retweets posted by the authenticating user's friends. + + The tokens. + The options. + A instance. + + + + Returns the 20 most recent retweets posted by the authenticating user's friends. + + The tokens. + + A instance. + + + + + Returns the 20 most recent mentions (status containing @username) for the authenticating user. + + The tokens. + The options. + A instance. + + + + Returns the 20 most recent mentions (status containing @username) for the authenticating user. + + The tokens. + + A instance. + + + + + The twitter place class. Represents a place or area. + + + + + Lookups the specified latitude. + + The latitude. + The longitude. + The options. + A object or null. + + + + Lookups the specified latitude. + + The latitude. + The longitude. + + + + + Gets or sets the country code. + + The country code. + + + + Gets or sets the type of the place. + + The type of the place. + + + + Gets or sets the address of the data. + + The address of the data. + + + + Gets or sets the country. + + The country. + + + + Gets or sets the address of the street. + + The address of the street. + + + + Gets or sets the full name. + + The full name. + + + + Gets or sets the name of the place. + + The name of the place. + + + + Gets or sets the place id. + + The place id. + + + + Gets or sets the bounding box. + + The bounding box. + + + + The command to update the user's status. (a.k.a. post a new tweet) + + + + + Initializes a new instance of the class. + + The request tokens. + The status text. + The optional properties. + + + + Initializes the command. + + + + + Gets or sets the status text. + + The status text. + + + + The Show Status Command + + + + + Initializes a new instance of the class. + + The request tokens. + The status id. + The options. + + + + Inits this instance. + + + + + The timeline options class. Provides optional parameters for timeline methods. + + + + + Provides a base class for method specific optional parameters, as well as properties for providing configuration settings at run time. + + + + + Initializes a new instance of the class. + + + + + Reads the configuration settings. + + + + + Allows modification of the API endpoint addresses to enable SSL communication. + + The default value can be set at an application level by adding a Twitterizer2.EnableSSL application setting with the value true. + For example: + + + + + + +]]> + + + The current configured value. true if enabled, otherwise false. Default: false + + + Allows configuration of the base address for API method requests for support for 3rd party 'twitter-like' APIs. + + + + + The default value can be set at an application level by adding a Twitterizer2.APIBaseAddress application setting with the base address as the value. + For example: + + + + + + +]]> + + The API end point base address. Default: "http://api.twitter.com/1/" + + + + Allows overriding of the default proxy settings for API call requests. + + The supplied , or null. + + + + + Allows run time enabling of API output caching. + + The default value can be set at an application level by adding a Twitterizer2.EnableCaching application setting with value true. + For example: + + + + + + +]]> + + + The currently configured value. true if enabled, otherwise false. Default: false + + + + + Allows configuration of the sliding expiration timespan for output caching. + + The default value can be set at an application level by adding a Twitterizer2.CacheTimeout application setting with value equal to the number of seconds of the duration. + For example: + + + + + + +]]> + + + The duration that API output should be cached, on a sliding expiration, once enabled. Default: 5 minutes + + + + + Initializes a new instance of the class. + + + + + Gets or sets the minimum (earliest) status id to request. + + The since id. + + + + Gets or sets the max (latest) status id to request. + + The max id. + + + + Gets or sets the number of messages to request. + + The number of messages to request. + + + + Gets or sets the page number to request. + + The page number. + + + + Gets or sets a value indicating whether user objects should contain only Id values. + + true if user objects should contain only Id values; otherwise, false. + + + + The direct messages options class. Provides a payload for the command. + + + + + Initializes a new instance of the class. + + + + + Gets or sets the minimum (earliest) status id to request. + + The since id. + + + + Gets or sets the max (latest) status id to request. + + The max id. + + + + Gets or sets the number of messages to request. + + The number of messages to request. + + + + Gets or sets the page number to request. + + The page number. + + + + The Status Update Options class + + + + + Initializes a new instance of the class. + + + + + Gets or sets the in reply to status id. + + The in reply to status id. + + + + Gets or sets the latitude. + + The latitude. + + + + Gets or sets the longitude. + + The longitude. + + + + Gets or sets a value indicating whether or not to put a pin on the exact coordinates a tweet has been sent from. + + true to put a pin on the exact coordinates; otherwise, false. + + + + Gets or sets a place in the world. These IDs can be retrieved from geo/reverse_geocode. + + The place id. + + + + The information class which gives general information about the assembly. + + + + + Obtains the current assembly version. + + The assembly version string in the format (#.#.#.#) + + + + The Retweeted By Me Command. + + + + + Initializes a new instance of the class. + + The request tokens. + The options. + + + + Initializes the command. + + + + + Clones this instance. + + + A new instance of the interface. + + + + + The Mentions Command class + + + + + Initializes a new instance of the class. + + The request tokens. + The options. + + + + Initializes the command. + + + + + Clones this instance. + + + A new instance of the interface. + + + + + The get lists command class + + + + + Initializes a new instance of the class. + + The request tokens. + The username. + The options. + + + + Initializes the command. + + + + + Clones this instance. + + + A new instance of the interface. + + + + + Gets or sets the username. + + The username. + + + + The Direct Messages Command + + + + + The base address to the API method. + + + + + Initializes a new instance of the class. + + The request tokens. + The options. + + + + Initializes the command. + + + + + A wrapper class for the lists collection (Twitter has their data structure wierd for this one) + + + + + Gets or sets the lists. + + The lists. + + + + Gets or sets the next cursor. + + The next cursor. + + + + Gets or sets the previous cursor. + + The previous cursor. + + + + The base class for object collections. + + The type of object stored in the collection. + + + + The oauth tokens + + + + + Gets or sets information about the user's rate usage. + + The rate limiting object. + + + + Gets or sets the oauth tokens. + + The oauth tokens. + + + + The Serialization Helper class. Provides a simple interface for common serialization tasks. + + The type of object to be deserialized + + + + Deserializes the specified web response. + + The web response. + The deserialization handler. + + A strongly typed object representing the deserialized data of type + + + + + Deserializes the specified web response. + + The web response. + + A strongly typed object representing the deserialized data of type + + + + + Deserializes the specified serializer. + + The data to be deserialized. + The javascript conversion deligate. + + A strongly typed object representing the deserialized data of type + + + + + Deserializes the specified serializer. + + The data to be deserialized. + + A strongly typed object representing the deserialized data of type + + + + + The JavascriptConversionDelegate. The delegate is invokes when using the JavaScriptSerializer to manually construct a result object. + + Contains nested dictionary objects containing deserialized values for manual parsing. + A strongly typed object representing the deserialized data of type + + + + The create list command class + + + + + Initializes a new instance of the class. + + The request tokens. + The username. + The list id or slug. + The options. + + + + Initializes the command. + + + + + The followers options class. Provides a payload for optional parameters of the FollowersCommand class. + + + + + Gets or sets the ID of the user for whom to request a list of followers. + + The user id. + + + + Gets or sets the screen name of the user for whom to request a list of followers. + + The name of the screen. + + + + The Create Friendship Options class + + + + + Initializes a new instance of the class. + + + + + Gets or sets a value indicating whether to enable delivery of statuses from this user to the authenticated user's device + + true if follow; otherwise, false. + + + + The XAuthUtility class. + + + + + Allows OAuth applications to directly exchange Twitter usernames and passwords for OAuth access tokens and secrets. + + The consumer key. + The consumer secret. + The username. + The password. + A instance. + + + + The command to obtain followers of a user. + + + + + Initializes a new instance of the class. + + The request tokens. + The options. + + + + Initializes the command. + + + + + Clones this instance. + + A cloned command object. + + + + The retweet command class. + + + + + The base address to the API method. + + + + + Initializes a new instance of the class. + + The request tokens. + The status id. + The options. + + + + Initializes the command. + + + + + The current trends options class. Provides a payload for optional parameters for the CurrentTrendsCommand class. + + + + + Gets or sets a value indicating whether [exclude hash tags]. + + true if [exclude hash tags]; otherwise, false. + + + + The twitter bounding box class. Represents a series of latitude and longitude coordinates that represents an area. + + + + + Gets or sets the type. + + The type of bounding box. + + + + Gets or sets the coordinates. + + The coordinates. + + + + Creates a friendship between the authenticated user and another user + + + + + The base address to the API method. + + + + + Initializes a new instance of the class. + + The request tokens. + The userid. + The optional properties. + + + + Initializes a new instance of the class. + + The request tokens. + Name of the user. + The optional properties. + + + + Initializes the command. + + + + + Gets or sets the user id. + + The user id. + + + + Gets or sets the username. + + The username. + + + + The Twitterizer Exception + + + + + + 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 object that holds the serialized object data. + The contextual information about the source or destination. + + + + When overridden in a derived class, sets the with information about the exception. + + 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 a null reference (Nothing in Visual Basic). + + + + + + + + + Parses the rate limit headers. + + The response. + + + + Gets or sets the result. + + The result. + + + + Gets or sets the response body. + + The response body. + + + + Gets or sets the rate limits. + + The rate limits. + + + + Gets or sets the error details. + + The error details. + + + + Gets the response that the remote host returned. + + + If a response is available from the Internet resource, a instance that contains the error response from an Internet resource; otherwise, null. + + + + Gets the bug report. + + The bug report. + + + + The Twitter Rate Limit Status class + + + + + Initializes a new instance of the class. + + + + + Initializes a new instance of the class. + + OAuth access tokens. + + + + Gets the rate limiting status status for the authenticated user. + + The OAuth tokens. + The options. + + A instance. + + + + + Gets the rate limiting status status based on the application's IP address. + + The OAuth tokens. + + A instance. + + + + + Gets the rate limiting status status based on the application's IP address. + + + A instance. + + + + + Gets or sets the remaining hits. + + The remaining hits. + + + + Gets or sets the hourly limit. + + The hourly limit. + + + + Gets or sets the UTC string value of the time rate limiting will reset. + + The reset time string. + + + + The Direct Message Collection class + + + + + The rate limit status command class. + + + + + Initializes a new instance of the class. + + The request tokens. + The options. + + + + Initializes the command. + + + + + The create list command class + + + + + Initializes a new instance of the class. + + The options. + + + + Initializes the command. + + + + + The create list command class + + + + + Initializes a new instance of the class. + + The request tokens. + The options. + + + + Initializes the command. + + + + + Clones this instance. + + + A new instance of the interface. + + + + + The reverse geocode command class. Performs a reverse geocode lookup. + + + + + Initializes a new instance of the class. + + The latitude. + The longitude. + The options. + + + + Initializes the command. + + + + + Gets or sets the latitude. + + The latitude. + + + + Gets or sets the longitude. + + The longitude. + + + + Converts date strings returned by the Twitter API into + + + + + The date pattern for most dates returned by the API + + + + + Reads the json. + + The reader. + Type of the object. + The existing value. + The serializer. + The parsed value as a DateTime, or null. + + + + Writes the json. + + The writer. + The value. + The serializer. + + + + The TwitterUser class represents a twitter user account and provides methods for interacting with user-centric API methods. + + + + + Initializes a new instance of the class. + + + + + Returns extended information of a given user, specified by ID or screen name as per the required id parameter. The author's most recent status will be returned inline. + + A new instance of the class. + + This method interacts with the users/show API endpoint. Documentation can be found here: http://dev.twitter.com/doc/get/users/show + Indicates that a required argument was not supplied.Indicates that an argument supplied was not valid.Indicates that a command failed pre-execution validation. + The tokens.The user id.Optional parameters for runtime configuration settings. + + // Declare the user's id variable + decimal userId = 1; + + // Declare the options object for configuration settings + OptionalProperties options = new OptionalProperties(); + + // Declare our user variable and fetch the user's details + TwitterUser user = TwitterUser.Show(tokens, userId, options); + + + '-- Declare the user's id variable + Dim userId As decimal = 1 + + '-- Declare the options object for configuration settings + Dim options As new OptionalProperties() + + '-- Declare our user variable and fetch the user's details + Dim user As TwitterUser = TwitterUser.Show(tokens, userId, options) + + + + + + + + Returns extended information of a given user, specified by ID or screen name as per the required id parameter. The author's most recent status will be returned inline. + + A new instance of the class. + + This method interacts with the users/show API endpoint. Documentation can be found here: http://dev.twitter.com/doc/get/users/show + Indicates that a required argument was not supplied.Indicates that an argument supplied was not valid.Indicates that a command failed pre-execution validation. + The user id.Optional parameters for runtime configuration settings. + + // Declare the user's id variable + decimal userId = 1; + + // Declare the options object for configuration settings + OptionalProperties options = new OptionalProperties(); + + // Declare our user variable and fetch the user's details + TwitterUser user = TwitterUser.Show(userId, options); + + + '-- Declare the user's id variable + Dim userId As decimal = 1 + + '-- Declare the options object for configuration settings + Dim options As new OptionalProperties() + + '-- Declare our user variable and fetch the user's details + Dim user As TwitterUser = TwitterUser.Show(userId, options) + + + + + + Returns extended information of a given user, specified by ID or screen name as per the required id parameter. The author's most recent status will be returned inline. + + A new instance of the class. + + This method interacts with the users/show API endpoint. Documentation can be found here: http://dev.twitter.com/doc/get/users/show + Indicates that a required argument was not supplied.Indicates that an argument supplied was not valid.Indicates that a command failed pre-execution validation. + The tokens.The user id. + + // Declare the user's id variable + decimal userId = 1; + + // Declare our user variable and fetch the user's details + TwitterUser user = TwitterUser.Show(tokens, userId); + + + '-- Declare the user's id variable + Dim userId As decimal = 1 + + '-- Declare our user variable and fetch the user's details + Dim user As TwitterUser = TwitterUser.Show(tokens, userId) + + + + + + Returns extended information of a given user, specified by ID or screen name as per the required id parameter. The author's most recent status will be returned inline. + + A new instance of the class. + + This method interacts with the users/show API endpoint. Documentation can be found here: http://dev.twitter.com/doc/get/users/show + Indicates that a required argument was not supplied.Indicates that an argument supplied was not valid.Indicates that a command failed pre-execution validation. + The user id. + + // Declare the user's id variable + decimal userId = 1; + + // Declare our user variable and fetch the user's details + TwitterUser user = TwitterUser.Show(userId); + + + '-- Declare the user's id variable + Dim userId As decimal = 1 + + '-- Declare our user variable and fetch the user's details + Dim user As TwitterUser = TwitterUser.Show(userId) + + + + + + Returns extended information of a given user, specified by ID or screen name as per the required id parameter. The author's most recent status will be returned inline. + + A new instance of the class. + + This method interacts with the users/show API endpoint. Documentation can be found here: http://dev.twitter.com/doc/get/users/show + Indicates that a required argument was not supplied.Indicates that an argument supplied was not valid.Indicates that a command failed pre-execution validation. + The tokens.The user name.The options. + + // Declare the username variable + string userName = "twit_er_izer"; + + // Declare the options object for configuration settings + OptionalProperties options = new OptionalProperties(); + + // Declare our user variable and fetch the user's details + TwitterUser user = TwitterUser.Show(tokens, userName, options); + + + '-- Declare the user's id variable + Dim UserName As String = "twit_er_izer" + + '-- Declare the options object for configuration settings + Dim options As new OptionalProperties() + + '-- Declare our user variable and fetch the user's details + Dim user As TwitterUser = TwitterUser.Show(tokens, UserName, options) + + + + + + + + Returns extended information of a given user, specified by ID or screen name as per the required id parameter. The author's most recent status will be returned inline. + + A new instance of the class. + + This method interacts with the users/show API endpoint. Documentation can be found here: http://dev.twitter.com/doc/get/users/show + Indicates that a required argument was not supplied.Indicates that an argument supplied was not valid.Indicates that a command failed pre-execution validation. + The user name.The options. + + // Declare the username variable + string userName = "twit_er_izer"; + + // Declare the options object for configuration settings + OptionalProperties options = new OptionalProperties(); + + // Declare our user variable and fetch the user's details + TwitterUser user = TwitterUser.Show(userName, options); + + + '-- Declare the user's id variable + Dim UserName As String = "twit_er_izer" + + '-- Declare the options object for configuration settings + Dim options As new OptionalProperties() + + '-- Declare our user variable and fetch the user's details + Dim user As TwitterUser = TwitterUser.Show(UserName, options) + + + + + + + Returns extended information of a given user, specified by ID or screen name as per the required id parameter. The author's most recent status will be returned inline. + + A new instance of the class. + + This method interacts with the users/show API endpoint. Documentation can be found here: http://dev.twitter.com/doc/get/users/show + Indicates that a required argument was not supplied.Indicates that an argument supplied was not valid.Indicates that a command failed pre-execution validation. + The tokens.The user name. + + // Declare the username variable + string userName = "twit_er_izer"; + + // Declare our user variable and fetch the user's details + TwitterUser user = TwitterUser.Show(tokens, userName); + + + '-- Declare the user's id variable + Dim UserName As String = "twit_er_izer" + + '-- Declare our user variable and fetch the user's details + Dim user As TwitterUser = TwitterUser.Show(tokens, UserName, options) + + + + + + + Returns extended information of a given user, specified by ID or screen name as per the required id parameter. The author's most recent status will be returned inline. + + A new instance of the class. + + This method interacts with the users/show API endpoint. Documentation can be found here: http://dev.twitter.com/doc/get/users/show + Indicates that a required argument was not supplied.Indicates that an argument supplied was not valid.Indicates that a command failed pre-execution validation. + The user name. + + // Declare the username variable + string userName = "twit_er_izer"; + + // Declare our user variable and fetch the user's details + TwitterUser user = TwitterUser.Show(userName); + + + '-- Declare the user's id variable + Dim UserName As String = "twit_er_izer" + + '-- Declare our user variable and fetch the user's details + Dim user As TwitterUser = TwitterUser.Show(UserName) + + + + + + Run a search for users similar to the Find People button on Twitter.com; the same results returned by people search on Twitter.com will be returned by using this API. + + This method interacts with the users/search API endpoint. Documentation can be found here: http://dev.twitter.com/doc/get/users/search + Indicates that a required argument was not supplied.Indicates that an argument supplied was not valid.Indicates that a command failed pre-execution validation. + A instance. + + The OAuth access tokens.The search query.Optional parameters. + + // Declare the search query + string query = "from:twit_er_izer @twitterapi"; + + // Declare the optional parameter object + UserSearchOptions options = new UserSearchOptions(); + options.NumberPerPage = 10; + options.Page = 2; + + // Perform the search + TwitterUserCollection searchResults = TwitterUser.Search(oauthTokens, query, options); + + + '-- Declare the search query + Dim Query As String = "from:twit_er_izer @twitterapi" + + '-- Declare the optional parameter object + Dim options As new UserSearchOptions() + options.NumberPerPage = 10 + options.Page = 2 + + '-- Perform the search + Dim searchResults As TwitterUserCollection = TwitterUser.Search(oauthTokens, query, options) + + + + + + Run a search for users similar to the Find People button on Twitter.com; the same results returned by people search on Twitter.com will be returned by using this API. + + This method interacts with the users/search API endpoint. Documentation can be found here: http://dev.twitter.com/doc/get/users/search + Indicates that a required argument was not supplied.Indicates that an argument supplied was not valid.Indicates that a command failed pre-execution validation. + A instance. + + The OAuth access tokens.The search query. + + // Declare the search query + string query = "from:twit_er_izer @twitterapi"; + + // Perform the search + TwitterUserCollection searchResults = TwitterUser.Search(oauthTokens, query); + + + '-- Declare the search query + Dim Query As String = "from:twit_er_izer @twitterapi" + + '-- Perform the search + Dim searchResults As TwitterUserCollection = TwitterUser.Search(oauthTokens, query) + + + + + + Gets or sets the User ID. + + The User ID. + + + + Gets or sets the name of the user. + + The name of the user. + + + + Gets or sets the location. + + The location. + + + + Gets or sets the description. + + The description. + + + + Gets or sets the status. + + The status. + + + + Gets or sets the created date. + + The created date. + + + + Gets or sets the time zone. + + The time zone. + + + + Gets or sets the number of followers. + + The number of followers. + + + + Gets or sets the number of statuses. + + The number of statuses. + + + + Gets or sets the number of friends. + + The number of friends. + + + + Gets or sets a value indicating whether the user has enabled contributors access to his or her account. + + The is contributors enabled value. + + + + Gets or sets the language. + + The language. + + + + Gets or sets a value indicating whether the user receives notifications. + + + true if the user receives notifications; otherwise, false. + + + + + Gets or sets the screenname. + + The screenname. + + + + Gets or sets a value indicating whether the authenticated user is following this user. + + + true if the authenticated user is following this user; otherwise, false. + + + + + Gets or sets the number of favorites. + + The number of favorites. + + + + Gets or sets a value indicating whether this user is protected. + + + true if this user is protected; otherwise, false. + + + + + Gets or sets a value indicating whether this user is geo enabled. + + + true if this user is geo enabled; otherwise, false. + + + + + Gets or sets the time zone offset. + + The time zone offset. + Also called the Coordinated Universal Time (UTC) offset. + + + + Gets or sets the user's website. + + The website address. + + + + Gets or sets the color of the profile background. + + The color of the profile background. + + + + Gets the color of the profile background. + + The color of the profile background. + + + + Gets or sets a value indicating whether this user's profile background image is tiled. + + + true if this user's profile background image is tiled; otherwise, false. + + + + + Gets or sets the color of the profile link. + + The color of the profile link. + + + + Gets the color of the profile link. + + The color of the profile link. + + + + Gets or sets the profile background image location. + + The profile background image location. + + + + Gets or sets the color of the profile text. + + The color of the profile text. + + + + Gets the color of the profile text. + + The color of the profile text. + + + + Gets or sets the profile image location. + + The profile image location. + + + + Gets or sets the color of the profile sidebar border. + + The color of the profile sidebar border. + + + + Gets the color of the profile sidebar border. + + The color of the profile sidebar border. + + + + An exception class indicating that required parameters were missing from a command. + + The command type, derived from ITwitterObject. + + + + 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). + + + + + When overridden in a derived class, sets the with information about the exception. + + 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 a null reference (Nothing in Visual Basic). + + + + + + + + + Gets or sets the name of the method. + + The name of the method. + + + + Gets the name of the command. + + The name of the command. + + + + Gets the parameters. + + The parameters. + + + + Gets or sets the command. + + The command. + + + + The TwitterUserCollection class. + + + + + Gets the next page. + + A instance. + The next page. + + + + Gets the previous page. + + A instance. + The previous page. + + + + Gets or sets the next cursor. + + The next cursor. + + + + Gets or sets the previous cursor. + + The previous cursor. + + + + Gets or sets information about the user's rate usage. + + The rate limiting object. + + + + Gets or sets the paged command. + + The paged command. + + + + Gets or sets the cursor paged command. + + The cursor paged command. + + + + Values returned by Twitter when getting a request token or an access token. + + + + + Gets or sets the token. + + The token. + + + + Gets or sets the token secret. + + The token secret. + + + + Gets or sets the user ID. + + The user ID. + + + + Gets or sets the screenname. + + The screenname. + + + + Gets or sets the verification string. + This is required when overriding the application's callback url. + + The verification string. + + + + The friends options class. Provides a payload for optional parameters of the class. + + + + + Gets or sets the user id. + + The user id. + + + + Gets or sets the user's screen name. + + The screen name of the user. + + + + Gets or sets the cursor. + + The cursor. + + + + The command class to delete a status update. + + + + + Initializes a new instance of the class. + + The tokens. + The status id. + The options. + + + + Initializes the command. + + + + + Gets or sets the status id. + + The status id. + + + + The UpdateListOptions class. Provides a payload for optional parameters for the UpdaetListCommand class. + + + + + Gets or sets the name of the list. + + The name of the list. + + + + Gets or sets a value indicating whether this instance is public. + + true if this instance is public; otherwise, false. + + + + Gets or sets the description. + + The description. + + + + The update list command class + + + + + Initializes a new instance of the class. + + The tokens. + The username. + The list id. + The options. + + + + Initializes the command. + + + + + The list membership command class + + + + + Initializes a new instance of the class. + + The request tokens. + The username. + The options. + + + + Initializes the command. + + + + + Clones this instance. + + + A new instance of the interface. + + + + + Gets or sets the username. + + The username. + + + + The command to obtain followers of a user. + + + + + Initializes a new instance of the class. + + The request tokens. + The options. + + + + Initializes the command. + + + + + Clones this instance. + + A cloned command object. + + + + The available search result type filter options. + + + + + Use Twitter's default + + + + + Include both popular and real time results in the response. + + + + + Return only the most recent results in the response. + + + + + Return only the most popular results in the response. + + + + + The search options class. Provides a payload for optional parameters for the SearchCommand class. + + + + + Initializes a new instance of the class. + + + + + Gets or sets the language. + + The language. + + + + Gets or sets the locale. + + The locale. + + + + Gets or sets the max id. + + The max id. + + + + Gets or sets the number per page. + + The number per page. + + + + Gets or sets the page number. + + The page number. + + + + Gets or sets the since date. + + The since date. + + + + Gets or sets the since id. + + The since id. + + + + Gets or sets the geo code string. + The parameter value is specified by "latitude,longitude,radius", where radius units must be specified as either "mi" (miles) or "km" (kilometers). Note that you cannot use the near operator via the API to geocode arbitrary locations; however you can use this geocode parameter to search near geocodes directly. + + The geo code. + + + + Gets or sets a value indicating whether to prefix the user name to the tweet. + + + true to prefix the user name to the tweet; otherwise, false. + + + + + Gets or sets the until date. + + The until date. + + + + Gets or sets the type of the result. + + The type of the result. + + + + The delete friendship command class. + + + + + The base address to the API method. + + + + + Initializes a new instance of the class. + + The request tokens. + The user id. + The user name. + The optional properties. + + + + Initializes the command. + + + + + Gets or sets the user id. + + The user id. + + + + Gets or sets the username. + + The username. + + + + Provides interaction with the Twitter API to obtain and manage relationships between users. + + + + + Returns the authenticating user's followers, each with current status inline. + + The tokens. + The options. + + A instance. + + + + + Returns the authenticating user's followers, each with current status inline. + + The tokens. + + A instance. + + + + + Returns the authenticating user's followers, each with current status inline. + + The options. + + A instance. + + + + + Returns a user's friends, each with current status inline. They are ordered by the order in which the user followed them, most recently followed first, 100 at a time. + + The tokens. + The options. + + A instance. + + Please note that the result set isn't guaranteed to be 100 every time as suspended users will be filtered out. + + + + Returns a user's friends, each with current status inline. They are ordered by the order in which the user followed them, most recently followed first, 100 at a time. + + The tokens. + + A instance. + + Please note that the result set isn't guaranteed to be 100 every time as suspended users will be filtered out. + + + + Returns a user's friends, each with current status inline. They are ordered by the order in which the user followed them, most recently followed first, 100 at a time. + + The options. + + A instance. + + Please note that the result set isn't guaranteed to be 100 every time as suspended users will be filtered out. + + + + Allows the authenticating users to follow the user specified in the userID parameter. + + The tokens. + The user id. + + Returns the followed user in the requested format when successful. + + + + + Allows the authenticating users to follow the user specified in the userID parameter. + + The tokens. + The user id. + The options. + + Returns the followed user in the requested format when successful. + + + + + Allows the authenticating users to follow the user specified in the userName parameter. + + The tokens. + The user name. + + Returns the followed user in the requested format when successful. + + + + + Allows the authenticating users to follow the user specified in the userName parameter. + + The tokens. + The user name. + The options. + + Returns the followed user in the requested format when successful. + + + + + Allows the authenticating users to unfollow the user specified in the ID parameter. + + The tokens. + The user id. + + Returns the unfollowed user in the requested format when successful. + + + + + Allows the authenticating users to unfollow the user specified in the ID parameter. + + The tokens. + The user id. + The options. + + Returns the unfollowed user in the requested format when successful. + + + + + Allows the authenticating users to unfollow the user specified in the ID parameter. + + The tokens. + The username. + + Returns the unfollowed user in the requested format when successful. + + + + + Allows the authenticating users to unfollow the user specified in the ID parameter. + + The tokens. + The username. + The options. + + Returns the unfollowed user in the requested format when successful. + + + + + Returns detailed information about the relationship between two users. + + The tokens. + The target user id. + A instance. + + + + Returns detailed information about the relationship between two users. + + The tokens. + The target user id. + The options. + A instance. + + + + Returns detailed information about the relationship between two users. + + The tokens. + The source user id. + The target user id. + A instance. + + + + Returns detailed information about the relationship between two users. + + The tokens. + The source user id. + The target user id. + The options. + A instance. + + + + Returns detailed information about the relationship between two users. + + The tokens. + The target user name. + A instance. + + + + Returns detailed information about the relationship between two users. + + The tokens. + The target user name. + The options. + A instance. + + + + Returns detailed information about the relationship between two users. + + The tokens. + The source user name. + The target user name. + A instance. + + + + Returns detailed information about the relationship between two users. + + The tokens. + The source user name. + The target user name. + The options. + A instance. + + + + Returns detailed information about the relationship between two users. + + The first user id. + The second user id. + + A instance. + + + + + Returns detailed information about the relationship between two users. + + The first username. + The second username. + + A instance. + + + + + The TwitterTrend class. + + + + + Gets the current trends. + + The options. + + A collection of objects. + + + + + Gets the current trends. + + + A collection of objects. + + + + + Gets or sets the name. + + The name of the trend. + + + + Gets or sets the address. + + The address. + + + + Gets or sets the search query. + + The search query. + + + + The Twitter search result wrapper class + + + + + Gets or sets the results. + + The results. + + + + Gets or sets the max id. + + The max id. + + + + Gets or sets the since id. + + The since id. + + + + Gets or sets the refresh query string. + + The refresh query string. + + + + Gets or sets the next page query string. + + The next page query string. + + + + Gets or sets the results per page. + + The results per page. + + + + Gets or sets the page number. + + The page number. + + + + Gets or sets the completed in. + + The completed in. + + + + Gets or sets the query. + + The query. + + + + The Command Performer Class + + The business object the performer should return. + + + + + Performs the action. + + The command. + The parsed result of the action. + + + + + + The Home Timeline Command + + + + + Initializes a new instance of the class. + + The request tokens. + The optional properties. + + + + Initializes the command. + + + + + Clones this instance. + + A cloned command object. + + + + The Retweets Options class. Provides a payload for optional parameters for the Retweets Command + + + + + Gets or sets the count of statuses to return. + + The number of statuses to return. + + + + The create list command class + + + + + Initializes a new instance of the class. + + The request tokens. + The query. + The options. + + + + Initializes the command. + + + + + Gets or sets the query. + + The query. + + + + The Twitter Place Collection class. A collection of objects. + + + + + The TwitterStatusCollection class. + + + + + Gets the next page. + + A instance. + + + + Gets the previous page. + + A instance. + + + + Gets or sets the command. + + The command. + + + + Provides data about the user's current rate limiting. + + + + + Gets the remaining number of requests until requests are denied. + + The remaining requests. + + + + Gets the total number of requests allowed before requests are denied. + + The total number of requests. + + + + Gets the date the remaining number of requests will be reset. + + The reset date. + + + + Twitter Error Details class + + Often, twitter returns error details in the body of response. This class represents the data structure of the error for deserialization. + + + + Gets or sets the request path. + + The request path. + + + + Gets or sets the error message. + + The error message. + + + + Gets or sets information about the user's rate usage. + + The rate limiting object. + + + + Gets or sets the oauth tokens. + + The oauth tokens. + + + + The retweets command class. + + + + + Initializes a new instance of the class. + + The request tokens. + The status id. + The options. + + + + Initializes the command. + + + + + The Twitter Search Result class. + + + + + Gets or sets the profile image URL. + + The profile image URL. + + + + Gets or sets the created date. + + The created date. + + + + Gets or sets the name of from user screen. + + The name of from user screen. + + + + Gets or sets from user id. + + From user id. + + + + Gets or sets the name of to user screen. + + The name of to user screen. + + + + Gets or sets to user id. + + To user id. + + + + Gets or sets the status text. + + The status text. + + + + Gets or sets the status id. + + The status id. + + + + Gets or sets the source. + + The source. + + + + Gets or sets the language. + + The language. + + + + The Twitter Result Type Enumeration + + + + + In a future release this will become the default value. Include both popular and real time results in the response. + + + + + The current default value. Return only the most recent results in the response. + + + + + Return only the most popular results in the response. + + + + + The Twitter User Wrapper class. + + + + + The private collection for the contained collection + + + + + Gets or sets the users. + + The users. + + + + Gets or sets the next cursor. + + The next cursor. + + + + Gets or sets the previous cursor. + + The previous cursor. + + + + Describes the result status of a request + + + + + The request was completed successfully + + + + + The URI requested is invalid or the resource requested, such as a user, does not exists. + + + + + The request was invalid. An accompanying error message will explain why. + + + + + Authentication credentials were missing or incorrect. + + + + + Returned by the Search API when an invalid format is specified in the request. + + + + + The authorized user, or client IP address, is being rate limited. + + + + + Twitter is currently down. + + + + + Twitter is online, but is overloaded. Try again later. + + + + + Something unexpected happened. See the error message for additional information. + + + + + The twitter status class. Provides thread-safe information about the last request made. + + + + + A lock for the last status instance + + + + + The last request status + + + + + Initializes a new instance of the class. + + + + + Updates the request status. + + The web response. + true if the status was updated successfully, otherwise false + + + + Gets the last request status. + + The last request status. + + + + Gets the full path. + + The full path. + + + + Gets the error details. + + The error details. + + + + Gets the response body. + + The response body. + + + + Gets the status. + + The status. + + + + The namespace contains abstract classes and interfaces + + + + + The show friendship command class. + + + + + The base address to the API method. + + + + + Initializes a new instance of the class. + + The tokens. + The source user id. + Name of the source user. + The target user id. + Name of the target screen. + The optional properties. + + + + Initializes the command. + + + + + Gets or sets the id of the source user. + + The source id. + + + + Gets or sets the screenname of the source user. + + The screenname of the source user. + + + + Gets or sets the id of the target user. + + The target id. + + + + Gets or sets the screenname of the target user. + + The screenname of the target user. + + + + The Retweeted By Me Command. + + + + + Initializes a new instance of the class. + + The request tokens. + The options. + + + + Initializes the command. + + + + + Clones this instance. + + + A new instance of the interface. + + + + + The Twitter Relationship entity class + + + + + The relationship source + + + + + The relationship target + + + + + Initializes a new instance of the class. + + OAuth access tokens. + + + + Initializes a new instance of the class. + + + + + Gets or sets the source. + + The source. + + + + Gets or sets the target. + + The target. + + + + Gets or sets the relationship. + + The relationship. + + + + The UserTimelineOptions class. Provides a payload for optional parameters of the class. + + + + + Gets or sets the ID of the user for whom to request a list of followers. + + The user id. + + + + Gets or sets the screen name of the user for whom to request a list of followers. + + The name of the screen. + + + + The create list command class + + + + + Initializes a new instance of the class. + + The request tokens. + The name of the list. + The username. + The options. + + + + Initializes the command. + + + + + Gets or sets the name of the list. + + The name of the list. + + + + Gets or sets a value indicating whether this instance is public. + + true if this instance is public; otherwise, false. + + + + Gets or sets the description. + + The description. + + + + The Twitter Search Result Collection class + + + + + The Twitter Search Class + + + + + Searches Twitter with the the specified query. + + The query. + + A instance. + + + + + Searches Twitter with the the specified query. + + The query. + The options. + + A instance. + + + + + The twitter list entity class + + + + + Initializes a new instance of the class. + + OAuth access tokens. + + + + Initializes a new instance of the class. + + + + + Creates a new list. + + The oauth tokens. + The username. + The list name. + if set to true creates a public list. + The description. + The options. + A instance. + + + + Modifies a list. + + The oauth tokens. + The username. + The list id. + The options. + A instance. + + + + List the lists of the specified user. Private lists will be included if the authenticated users is the same as the user who's lists are being returned. + + The tokens. + The username. + The options. + + A instance. + + + + + List the lists of the specified user. Private lists will be included if the authenticated users is the same as the user who's lists are being returned. + + The tokens. + The username. + + A instance. + + + + + List the lists of the specified user. Private lists will be included if the authenticated users is the same as the user who's lists are being returned. + + The username. + The options. + + A instance. + + + + + List the lists of the specified user. Private lists will be included if the authenticated users is the same as the user who's lists are being returned. + + The username. + + A instance. + + + + + Gets a single list by id number. + + The tokens. + The username. + The list id or slug. + The options. + + A instance. + + + + + Deletes the specified list. + + The tokens. + The username. + The list id or slug. + The options. + A instance. + + + + Show tweet timeline for members of the specified list. + + The tokens. + The username. + The list id. + The options. + + A instance. + + + + + List the lists the specified user has been added to. + + The tokens. + The username. + The options. + + A instance. + + + + + List the lists the specified user has been added to. + + The tokens. + The username. + + A instance. + + + + + List the lists the specified user follows. + + The tokens. + The options. + + A instance. + + + + + List the lists the specified user follows. + + The tokens. + + A instance. + + + + + Gets or sets the id. + + The list id. + + + + Gets or sets the name. + + The list name. + + + + Gets or sets the full name. + + The full name. + + + + Gets or sets the slug. + + The list slug. + + + + Gets or sets the description. + + The description. + + + + Gets or sets the number of subscribers. + + The number of subscribers. + + + + Gets or sets the number of members. + + The number of members. + + + + Gets or sets the absolute path. + + The absolute path. + + + + Gets or sets the mode. + + The list mode. + + + + Gets or sets the user that owns the list. + + The owning user. + + + + Gets a value indicating whether this instance is public. + + true if this instance is public; otherwise, false. + + + + Enumeration of the supported HTTP verbs supported by the + + + + + The HTTP GET method is used to retrieve data. + + + + + The HTTP POST method is used to transmit data. + + + + + The HTTP DELETE method is used to indicate that a resource should be deleted. + + + + A utility for handling authorization and request signatures for the OAuth protocol. + Before you begin, you will need to register your application with Twitter. + + To authenticate a user, there are 3 steps you will take:
+ 1) Obtain a Request Token
+ 2) Authentication
+ 3) Obtain an Access Token +
+
+ First, you must obtain a request token from the API. + + string consumerKey = "XXX"; + string consumerSecret = "XXX"; + + // Obtain a request token + OAuthTokenResponse requestToken = OAuthUtility.GetRequestToken(consumerKey, consumerSecret); + + // Direct or instruct the user to the following address: + Uri authorizationUri = OAuthUtility.BuildAuthorizationUri(requestToken.Token); + + + Dim consumerKey As String = "XXX" + Dim consumerSecret As String = "XXX" + + '-- Obtain a request token + Dim requestToken As OAuthTokenResponse = OAuthUtility.GetRequestToken(consumerKey, consumerSecret) + + '-- Direct or instruct the user to the following address: + Dim authorizationUri As Uri = OAuthUtility.BuildAuthorizationUri(requestToken.Token) + + + After the user has returned, you must obtain or reuse the request token and obtain the verifier value. For web applications, both values will be provided on the querystring to the callback url as oauth_token and oauth_verifier, respectively. For desktop and mobile applications, the verifier will be a numeric PIN supplied to the user. + + + string consumerKey = "XXX"; + string consumerSecret = "XXX"; + string requestToken = "XXX"; + string verifier = "XXX"; + + // Obtain the access token for this user. + OAuthTokenResponse accessToken = OAuthUtility.GetAccessToken(consumerKey, consumerSecret, requestToken, verifier); + + // TODO: Save the access token to a database, session, xml file, or whereever my user data is stored. + + + Dim consumerKey As String = "XXX" + Dim consumerSecret As String = "XXX" + Dim requestToken As String = "XXX" + Dim verifier As String = "XXX" + + '-- Obtain the access token for this user. + Dim accessToken As OAuthTokenResponse = OAuthUtility.GetAccessToken(consumerKey, consumerSecret, requestToken, verifier) + + '-- TODO: Save the access token to a database, session, xml file, or whereever my user data is stored. + + +
+ + + The name of the signature type twiter uses. + + + + + Gets a new OAuth request token from the twitter api. + + The consumer key. + The consumer secret. + + A new instance. + + + + + Gets a new OAuth request token from the twitter api. + + The consumer key. + The consumer secret. + Address of the callback. + + A new instance. + + + + + Gets the access token from pin. + + The consumer key. + The consumer secret. + The request token. + The pin number or verifier string. + + An class containing access token information. + + + + + This is a different Url Encode implementation since the default .NET one outputs the percent encoding in lower case. + While this is not a problem with the percent encoding spec, it is used in upper case throughout OAuth + + The value to Url encode + Returns a Url encoded string + + + + Builds the authorization URI. + + The request token. + A new instance. + + + + Builds the authorization URI. + + The request token. + if set to true, the authenticate url will be used. (See: "Sign in with Twitter") + A new instance. + + + + Creates the OAuth request. + + The base URL. + The parameters. + The verb. + The consumer key. + The consumer secret. + The access or request token. + The token secret. + + A new instance of the class. + + + + + Generates the query string for HTTP GET requests. + + The parameters. + + A string of all parameters prepared for use in a querystring. + + + + + Generates the authorization header. + + The new parameters. + A string value of all OAuth parameters formatted for use in the Authorization HTTP header. + + + + Generate the timestamp for the signature + + A timestamp value in a string. + + + + Generate a nonce + + A random number between 123400 and 9999999 in a string. + + + + Generates and adds a signature to parameters. + + The base URL. + The parameters. + The verb. + The consumer secret. + The token secret. + + + + Normalizes the URL. + + The URL to normalize. + The normalized url string. + + + + URLs the encode. + + The parameters. + A string of all the keys and value pairs with the values encoded. + + + + The user timeline command. + + + + + Initializes a new instance of the class. + + The request tokens. + The options. + + + + Initializes the command. + + + + + Clones this instance. + + A cloned command object. + + + + The Friends Timeline Command class + + + + + Initializes a new instance of the class. + + The request tokens. + The options. + + + + Initializes the command. + + + + + Clones this instance. + + + A new instance of the interface. + + + + + The list statuses options class. Provides a payload for the ListStatusesCommand class. + + + + + Gets or sets the since id. + + The since id. + + + + Gets or sets the max id. + + The max id. + + + + Gets or sets the number of items per page to request. + + The number of items per page. + + + + Gets or sets the page. + + The page number. + + + + Identifies command classes that must enforce rate limiting. This will cause rate status to be queried before each command call. + + + + + Initializes a new instance of the class. + + + + + The TwitterStatus class represents a twitter status (also refered to as a tweet) and provides methods for interacting with status-centric API methods. + + + + + Initializes a new instance of the class. + + + + + Updates the authenticated user's status to the supplied text. + + The tokens. + The status text. + A object of the newly created status. + + + + Updates the specified tokens. + + The tokens. + The status text. + The options. + + A object of the newly created status. + + + + + Deletes the specified tokens. + + The oauth tokens. + The status id. + The options. + + A object of the deleted status. + + + + + Deletes the specified tokens. + + The oauth tokens. + The status id. + A object of the deleted status. + + + + Returns a single status, with user information, specified by the id parameter. + + The tokens. + The status id. + The options. + A instance. + + + + Returns a single status, with user information, specified by the id parameter. + + The tokens. + The status id. + A instance. + + + + Returns a single status, with user information, specified by the id parameter. + + The status id. + A instance. + + + + Retweets a tweet. Requires the id parameter of the tweet you are retweeting. (say that 5 times fast) + + The tokens. + The status id. + The options. + A representing the newly created tweet. + + + + Retweets a tweet. Requires the id parameter of the tweet you are retweeting. (say that 5 times fast) + + The tokens. + The status id. + A representing the newly created tweet. + + + + Returns up to 100 of the first retweets of a given tweet. + + The tokens. + The status id. + The options. + + A instance. + + + + + Returns up to 100 of the first retweets of a given tweet. + + The tokens. + The status id. + A instance. + + + + Gets or sets the status id. + + The status id. + + + + Gets or sets a value indicating whether this status message is truncated. + + + true if this status message is truncated; otherwise, false. + + + + + Gets or sets the created date. + + The created date. + + + + Gets or sets the source. + + The source. + + + + Gets or sets the screenName the status is in reply to. + + The screenName. + + + + Gets or sets the user id the status is in reply to. + + The user id. + + + + Gets or sets the status id the status is in reply to. + + The status id. + + + + Gets or sets a value indicating whether the authenticated user has favorited this status. + + + true if this instance is favorited; otherwise, false. + + + + + Gets or sets the text of the status. + + The status text. + + + + Gets or sets the user. + + The user that posted this status. + + + + Gets or sets the retweeted status. + + The retweeted status. + + + + Gets or sets the place. + + The place. + + + + Gets or sets the geo. + + The geo. + + + + The delegate to handle each status received. + + The status received. + + + + The TwitterStream class. Provides an interface to real-time status changes. + + + + + The web request + + + + + This value is set to true to indicate that the stream connection should be closed. + + + + + Initializes a new instance of the class. + + The username. + The password. + + + + Starts the stream. + + + + + Ends the stream. + + + + + Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources. + + + + + Occurs when a status is received from the stream. + + + + + Gets or sets the username. + + The username. + + + + Gets or sets the password. + + The password. + + + Contains security tokens nessisary for performing authorized actions against the Twitter API + To perform authorized actions, you must create a new OAuthTokens variable and supply values for the , , , and properties, as follows: + + OAuthTokens tokens = new OAuthTokens(); + tokens.AccessToken = "XXX"; + tokens.AccessTokenSecret = "XXX"; + tokens.ConsumerKey = "XXX"; + tokens.ConsumerSecret = "XXX"; + + + Dim tokens As new OAuthTokens(); + tokens.AccessToken = "XXX" + tokens.AccessTokenSecret = "XXX" + tokens.ConsumerKey = "XXX" + tokens.ConsumerSecret = "XXX" + + + + + + Gets or sets the access token. + + The access token. + + + + Gets or sets the access token secret. + + The access token secret. + + + + Gets or sets the consumer key. + + The consumer key. + + + + Gets or sets the consumer secret. + + The consumer secret. + + + + The get list statuses command class + + + + + Initializes a new instance of the class. + + The request tokens. + The username. + The list id. + The options. + + + + Initializes the command. + + + + + Clones this instance. + + + A new instance of the interface. + + + + + Gets the username. + + The username. + + + + Gets the list id. + + The list id. + + + + The create list command class + + + + + Initializes a new instance of the class. + + The request tokens. + The username. + The list id or slug. + The options. + + + + Initializes the command. + + + + + The list favorites options class. Provides a payload for optional parameters of the ListFavoritesCommand class. + + + + + Gets or sets the user name or id of the user for whom to return results for. + + The user name or id of the user for whom to return results for. + + + + Gets or sets the page. + + The page number. + + + + The direct messages sent options class. Provides a payload for the command. + + + + + Initializes a new instance of the class. + + + + + Gets or sets the minimum (earliest) status id to request. + + The since id. + + + + Gets or sets the max (latest) status id to request. + + The max id. + + + + Gets or sets the number of messages to request. + + The number of messages to request. + + + + Gets or sets the page number to request. + + The page number. + + + + The twitter list collection class. + + + + + Gets the next page. + + A instance. + The next page. + + + + Gets the previous page. + + A instance. + The previous page. + + + + Gets or sets the next cursor. + + The next cursor. + + + + Gets or sets the previous cursor. + + The previous cursor. + + + + Gets or sets the request parameters. + + The request parameters. + + + + Gets or sets information about the user's rate usage. + + The rate limiting object. + + + + Gets or sets the command. + + The command. + + + + The Direct Message Entity Class + + + + + Initializes a new instance of the class. + + + + + Initializes a new instance of the class. + + OAuth access tokens. + + + + Returns a list of the 20 most recent direct messages sent to the authenticating user. + + The tokens. + A instance. + + + + Returns a list of the 20 most recent direct messages sent to the authenticating user. + + The tokens. + The options. + + A instance. + + + + + Returns a list of the 20 most recent direct messages sent by the authenticating user. + + The tokens. + + A instance. + + + + + Sends a new direct message to the specified user from the authenticating user. + + The OAuth tokens. + The user id. + The text of your direct message. + The options. + + A instance. + + + + + Sends a new direct message to the specified user from the authenticating user. + + The OAuth tokens. + The user id. + The text of your direct message. + + A instance. + + + + + Sends a new direct message to the specified user from the authenticating user. + + The OAuth tokens. + The user's screen name. + The message text. + The options. + A object of the created direct message. + + + + Sends a new direct message to the specified user from the authenticating user. + + The OAuth tokens. + The user's screen name. + The message text. + A object of the created direct message. + + + + Returns a list of the 20 most recent direct messages sent by the authenticating user. + + The tokens. + The options. + + A instance. + + + + + Deletes this direct message. + + + A instance. + + + + + Deletes this direct message. + + The options. + + A instance. + + + + + Gets or sets the direct message id. + + The direct message id. + + + + Gets or sets the sender id. + + The sender id. + + + + Gets or sets the direct message text. + + The direct message text. + + + + Gets or sets the recipient id. + + The recipient id. + + + + Gets or sets the created date. + + The created date. + + + + Gets or sets the name of the sender screen. + + The name of the sender screen. + + + + Gets or sets the name of the recipient screen. + + The name of the recipient screen. + + + + Gets or sets the sender. + + The sender. + + + + Gets or sets the recipient. + + The recipient. + + + + Provides common color converstion methods + + + + + + Converts the color string to a + + The value. + A representation of the color, or null. + + + + Reads the stream into a byte array. + + The response stream. + A byte array. + + + + The Retweets of Me options class. Provides optional parameters for the RetweetsOfMeCommand class. + + + + + Gets or sets the since status id. + + The since status id. + + + + Gets or sets the max status id. + + The max status id. + + + + Gets or sets the count of tweets to return. + + The count of tweets. + + + + Gets or sets the page number to return. + + The page number. + + + + The ListFavoritesCommand class. Returns the 20 most recent favorite statuses for the authenticating user or user specified by the ID parameter in the requested format. + + + + + Initializes a new instance of the class. + + The tokens. + The options. + + + + Initializes the command. + + + + + The Send Direct Message Command class + + + + + Initializes a new instance of the class. + + The tokens. + The text. + The options. + + + + Initializes a new instance of the class. + + The request tokens. + The message text. + The user id. + The options. + + + + Initializes the command. + + + + + Gets or sets the status text. + + The status text. + + + + Gets or sets the recipient user id. + + The recipient user id. + + + + Gets or sets the name of the recipient user. + + The name of the recipient user. + + + + The Delete Direct Message Command class. + + + + + Initializes a new instance of the class. + + The request tokens. + The status id. + The options. + + + + Initializes the command. + + + + + Gets or sets the status id. + + The status id. + + + + The user search options class. Provides a payload for optional parameters of the UserSearchCommand class. + + + + + Gets or sets the number per page. Cannot be greater than 20. + + The number per page. + + + + Gets or sets the page of results to retrieve. + + The page of results to retrieve. + + + + The Retweets Of Me Command. + + + + + Initializes a new instance of the class. + + The request tokens. + The options. + + + + Initializes the command. + + + + + Clones this instance. + + + A new instance of the interface. + + + + + The Public Timeline Command class + + + + + Initializes a new instance of the class. + + The request tokens. + + + + Initializes the command. + + + + + Clones this instance. + + + A new instance of the interface. + + + + + The TwitterFavorite class. Provides static methods for manipulating favorite tweets. + + + + + Prevents a default instance of the TwitterFavorite class from being created. + + + + + Favorites the status specified in the ID parameter as the authenticating user. + + The tokens. + The status id. + The options. + The favorite status when successful. + + + + Favorites the status specified in the ID parameter as the authenticating user. + + The tokens. + The status id. + The favorite status when successful. + + + + Un-favorites the status specified in the ID parameter as the authenticating user. + + The tokens. + The status id. + The options. + The un-favorited status in the requested format when successful. + + + + Un-favorites the status specified in the ID parameter as the authenticating user. + + The tokens. + The status id. + + The un-favorited status in the requested format when successful. + + + + + Returns the 20 most recent favorite statuses for the authenticating user or user specified by the ID parameter in the requested format. + + The tokens. + The options. + The 20 most recent favorite statuses + + + + Returns the 20 most recent favorite statuses for the authenticating user or user specified by the ID parameter in the requested format. + + The tokens. + The 20 most recent favorite statuses + + + + The delete favoriate command class. + Un-favorites the status specified in the ID parameter as the authenticating user. + Returns the un-favorited status in the requested format when successful. + + + + + Initializes a new instance of the class. + + The tokens. + The status id. + The options. + + + + Initializes the command. + + + + + Gets or sets the status id. + + The status id. + + + + The Create Favorite Command class. Favorites the status specified in the ID parameter as the authenticating user. Returns the favorite status when successful. + + + + + Initializes a new instance of the class. + + The tokens. + The status id. + The options. + + + + Initializes the command. + + + + + The Direct Messages Sent Command class + + + + + Initializes a new instance of the class. + + The request tokens. + The options. + + + + Initializes the command. + + + + + Clones this instance. + + + A new instance of the interface. + + + + + Lists the possible types of geographic boundaries. + + + + + A single point. Expect one coordinate. + + + + + A line, or multiple lines joined end-to-end. + + + + + A polygon + + + + + A circle represented by a single point (the center) and the radius + + + + + Represents a geological area + + + + + Gets or sets the type of the shape. + + The type of the shape. + + + + Gets or sets the coordinates. + + The coordinates. + + + + Represents a single point on planet earth. + + + + + Gets or sets the latitude. + + The latitude. + + + + Gets or sets the longitude. + + The longitude. + + + + Reads a json array of coordinates and converts it into a collection of coordinate objects. + + + + + Determines whether this instance can convert the specified object type. + + Type of the object. + + true if this instance can convert the specified object type; otherwise, false. + + + + + Reads the json. + + The reader. + Type of the object. + The existing value. + The serializer. + + + + + Writes the json. + + The writer. + The value. + The serializer. + + + + The TwitterTrendCollection class. Represents multiple elements. + + + + + The Json converter class for the TwitterTrendCollection object + + + + + Determines whether this instance can convert the specified object type. + + Type of the object. + + true if this instance can convert the specified object type; otherwise, false. + + + + + Reads the json. + + The reader. + Type of the object. + The existing value. + The serializer. + + + + + Writes the json. + + The writer. + The value. + The serializer. + + + + Provides a payload for optional parameters for the method. + + + + + A hint on the "region" in which to search. If a number, then this is a radius in meters, but it can also take a string that is suffixed with ft to specify feet. If this is not passed in, then it is assumed to be 0m. If coming from a device, in practice, this value is whatever accuracy the device has measuring its location (whether it be coming from a GPS, WiFi triangulation, etc.). + + + + + The minimal granularity of data to return. If this is not passed in, then neighborhood is assumed. city can also be passed. + + + + + A hint as to the number of results to return. This does not guarantee that the number of results returned will equal max_results, but instead informs how many "nearby" results to return. Ideally, only pass in the number of places you intend to display to the user here. + + +
+
diff --git a/Release/Twitterizer2.dll b/Release/Twitterizer2.dll new file mode 100644 index 00000000..0fadd640 Binary files /dev/null and b/Release/Twitterizer2.dll differ diff --git a/Release/Twitterizer2.license.txt b/Release/Twitterizer2.license.txt new file mode 100644 index 00000000..86be3952 --- /dev/null +++ b/Release/Twitterizer2.license.txt @@ -0,0 +1,19 @@ +Copyright (c) 2010, Patrick "Ricky" Smith +All rights reserved. + +Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: + + - Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. + + - Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in + the documentation and/or other materials provided with the distribution. + + - Neither the name Twitterizer nor the names of its contributors may be used to endorse or promote products derived from + this software without specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, +THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR +CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, +PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF +LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS +SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. \ No newline at end of file diff --git a/Release/Twitterizer2.pdb b/Release/Twitterizer2.pdb new file mode 100644 index 00000000..2402f414 Binary files /dev/null and b/Release/Twitterizer2.pdb differ diff --git a/TestResult.xml b/TestResult.xml new file mode 100644 index 00000000..f4857a3e --- /dev/null +++ b/TestResult.xml @@ -0,0 +1,53 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/Twitterizer2.TestCases/Configuration.cs b/Twitterizer2.TestCases/Configuration.cs new file mode 100644 index 00000000..ec3c4a93 --- /dev/null +++ b/Twitterizer2.TestCases/Configuration.cs @@ -0,0 +1,32 @@ +namespace Twitterizer2.TestCases +{ + using Twitterizer; + using System.Configuration; +using System; +using System.IO; + + public static class Configuration + { + /// + /// Gets the tokens. + /// + /// + public static OAuthTokens GetTokens() + { + ExeConfigurationFileMap fileMap = new ExeConfigurationFileMap() + { + ExeConfigFilename = Path.Combine(Environment.CurrentDirectory, "TestSettings.config") + }; + + System.Configuration.Configuration config = ConfigurationManager.OpenMappedExeConfiguration(fileMap, ConfigurationUserLevel.None); + + OAuthTokens tokens = new OAuthTokens(); + tokens.AccessToken = config.AppSettings.Settings["AccessToken"].Value; + tokens.AccessTokenSecret = config.AppSettings.Settings["AccessTokenSecret"].Value; + tokens.ConsumerKey = config.AppSettings.Settings["ConsumerKey"].Value; + tokens.ConsumerSecret = config.AppSettings.Settings["ConsumerSecret"].Value; + + return tokens; + } + } +} diff --git a/Twitterizer2.TestCases/Properties/AssemblyInfo.cs b/Twitterizer2.TestCases/Properties/AssemblyInfo.cs new file mode 100644 index 00000000..7fe23d28 --- /dev/null +++ b/Twitterizer2.TestCases/Properties/AssemblyInfo.cs @@ -0,0 +1,36 @@ +using System.Reflection; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +// General Information about an assembly is controlled through the following +// set of attributes. Change these attribute values to modify the information +// associated with an assembly. +[assembly: AssemblyTitle("Twitterizer2.TestCases")] +[assembly: AssemblyDescription("")] +[assembly: AssemblyConfiguration("")] +[assembly: AssemblyCompany("Microsoft")] +[assembly: AssemblyProduct("Twitterizer2.TestCases")] +[assembly: AssemblyCopyright("Copyright © Microsoft 2010")] +[assembly: AssemblyTrademark("")] +[assembly: AssemblyCulture("")] + +// Setting ComVisible to false makes the types in this assembly not visible +// to COM components. If you need to access a type in this assembly from +// COM, set the ComVisible attribute to true on that type. +[assembly: ComVisible(false)] + +// The following GUID is for the ID of the typelib if this project is exposed to COM +[assembly: Guid("64d6e67a-a411-4dce-8163-55abba41bb42")] + +// Version information for an assembly consists of the following four values: +// +// Major Version +// Minor Version +// Build Number +// Revision +// +// You can specify all the values or you can default the Build and Revision Numbers +// by using the '*' as shown below: +// [assembly: AssemblyVersion("1.0.*")] +[assembly: AssemblyVersion("1.0.0.0")] +[assembly: AssemblyFileVersion("1.0.0.0")] diff --git a/Twitterizer2.TestCases/Settings.StyleCop b/Twitterizer2.TestCases/Settings.StyleCop new file mode 100644 index 00000000..ded142c1 --- /dev/null +++ b/Twitterizer2.TestCases/Settings.StyleCop @@ -0,0 +1,769 @@ + + + NoMerge + + + + + False + + + + + + + + + False + + + + + False + + + + + False + + + + + False + + + + + False + + + + + False + + + + + False + + + + + False + + + + + False + + + + + False + + + + + False + + + + + False + + + + + False + + + + + False + + + + + False + + + + + False + + + + + False + + + + + False + + + + + False + + + + + False + + + + + False + + + + + False + + + + + False + + + + + False + + + + + False + + + + + False + + + + + False + + + + + False + + + + + False + + + + + False + + + + + False + + + + + False + + + + + False + + + + + False + + + + + False + + + + + False + + + + + False + + + + + False + + + + + False + + + + + False + + + + + + + + + + False + + + + + False + + + + + False + + + + + False + + + + + False + + + + + False + + + + + False + + + + + False + + + + + False + + + + + False + + + + + False + + + + + False + + + + + False + + + + + False + + + + + False + + + + + False + + + + + False + + + + + + + + + + False + + + + + False + + + + + False + + + + + False + + + + + False + + + + + False + + + + + False + + + + + False + + + + + False + + + + + False + + + + + False + + + + + False + + + + + + + + + + False + + + + + False + + + + + False + + + + + False + + + + + False + + + + + False + + + + + False + + + + + False + + + + + False + + + + + False + + + + + False + + + + + + + + + + False + + + + + False + + + + + False + + + + + False + + + + + False + + + + + False + + + + + False + + + + + False + + + + + False + + + + + False + + + + + False + + + + + False + + + + + False + + + + + + + + + + False + + + + + False + + + + + False + + + + + False + + + + + False + + + + + False + + + + + False + + + + + False + + + + + False + + + + + False + + + + + False + + + + + False + + + + + False + + + + + False + + + + + False + + + + + False + + + + + False + + + + + False + + + + + False + + + + + False + + + + + False + + + + + False + + + + + False + + + + + + + + + + False + + + + + False + + + + + False + + + + + False + + + + + False + + + + + False + + + + + False + + + + + False + + + + + False + + + + + False + + + + + False + + + + + False + + + + + False + + + + + False + + + + + False + + + + + False + + + + + False + + + + + False + + + + + False + + + + + False + + + + + False + + + + + False + + + + + False + + + + + False + + + + + False + + + + + False + + + + + False + + + + + False + + + + + + + \ No newline at end of file diff --git a/Twitterizer2.TestCases/StyleCop.Cache b/Twitterizer2.TestCases/StyleCop.Cache new file mode 100644 index 00000000..28b1e213 --- /dev/null +++ b/Twitterizer2.TestCases/StyleCop.Cache @@ -0,0 +1,69 @@ + + 10 + + DEBUG;TRACE + + + + 05/26/2010 17:42:19 + 782 + + 05/26/2010 11:02:37 + 286 + + + + + 05/26/2010 17:42:19 + 782 + + 05/26/2010 14:35:45 + 806 + + + + + 05/26/2010 17:42:19 + 782 + + 05/26/2010 10:19:35 + 686 + + + + + 05/26/2010 17:42:19 + 782 + + 05/26/2010 17:41:52 + 664 + + + + + 05/26/2010 17:42:19 + 782 + + 05/26/2010 12:57:40 + 544 + + + + + 05/26/2010 17:42:19 + 782 + + 05/26/2010 11:17:19 + 988 + + + + + 05/26/2010 17:42:19 + 782 + + 05/26/2010 16:14:40 + 527 + + + \ No newline at end of file diff --git a/Twitterizer2.TestCases/TestSettings.config b/Twitterizer2.TestCases/TestSettings.config new file mode 100644 index 00000000..83f3715a --- /dev/null +++ b/Twitterizer2.TestCases/TestSettings.config @@ -0,0 +1,9 @@ + + + + + + + + + \ No newline at end of file diff --git a/Twitterizer2.TestCases/TwitterGeoTests.cs b/Twitterizer2.TestCases/TwitterGeoTests.cs new file mode 100644 index 00000000..731407eb --- /dev/null +++ b/Twitterizer2.TestCases/TwitterGeoTests.cs @@ -0,0 +1,25 @@ +namespace Twitterizer2.TestCases +{ + using NUnit.Framework; + using Twitterizer; + + [TestFixture] + public class TwitterGeoTests + { + [Test] + public static void LookupPlaces() + { + TwitterPlaceLookupOptions options = new TwitterPlaceLookupOptions() + { + Granularity = "city", + MaxResults = 2 + }; + + TwitterPlaceCollection places = TwitterPlace.Lookup(30.475012, -84.35509, options); + + Assert.IsNotNull(places); + Assert.IsNotEmpty(places); + Assert.That(places.Count == 2); + } + } +} diff --git a/Twitterizer2.TestCases/TwitterStatusTests.cs b/Twitterizer2.TestCases/TwitterStatusTests.cs new file mode 100644 index 00000000..6cc5b673 --- /dev/null +++ b/Twitterizer2.TestCases/TwitterStatusTests.cs @@ -0,0 +1,26 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using NUnit.Framework; +using Twitterizer; + +namespace Twitterizer2.TestCases +{ + [TestFixture] + public static class TwitterStatusTests + { + [Test] + public static void Show() + { + OAuthTokens tokens = Configuration.GetTokens(); + + TwitterStatus missingStatus = TwitterStatus.Show(tokens, 1); + Assert.IsNull(missingStatus); + + TwitterStatus status = TwitterStatus.Show(tokens, 14772516348); + Assert.IsNotNull(status); + Assert.IsNotNullOrEmpty(status.Text); + } + } +} diff --git a/Twitterizer2.TestCases/TwitterTimelineTests.cs b/Twitterizer2.TestCases/TwitterTimelineTests.cs new file mode 100644 index 00000000..05fcfd4c --- /dev/null +++ b/Twitterizer2.TestCases/TwitterTimelineTests.cs @@ -0,0 +1,80 @@ +namespace Twitterizer2.TestCases +{ + using Twitterizer; + using NUnit.Framework; + using System.Globalization; + + [TestFixture] + public static class TwitterTimelineTests + { + [Test] + public static void PublicTimeline() + { + TwitterStatusCollection timeline = TwitterTimeline.PublicTimeline(); + Assert.IsNotNull(timeline); + Assert.IsNotEmpty(timeline); + + Assert.That(timeline.Count > 0 && timeline.Count <= 20, "Timeline should contain between 0 and 20 items."); + } + + [Test] + public static void FriendTimeline() + { + OAuthTokens tokens = Configuration.GetTokens(); + + TwitterStatusCollection timeline = TwitterTimeline.FriendTimeline(tokens); + Assert.IsNotNull(timeline); + Assert.IsNotEmpty(timeline); + + Assert.That(timeline.Count > 0 && timeline.Count <= 20, "Timeline should contain between 0 and 20 items."); + } + + [Test] + public static void RetweetsOfMe() + { + OAuthTokens tokens = Configuration.GetTokens(); + + TwitterStatusCollection timeline = TwitterTimeline.RetweetsOfMe(tokens); + Assert.IsNotNull(timeline); + Assert.IsNotEmpty(timeline); + + Assert.That(timeline.Count > 0 && timeline.Count <= 20, "Timeline should contain between 0 and 20 items."); + } + + [Test] + public static void RetweetedByMe() + { + OAuthTokens tokens = Configuration.GetTokens(); + + TwitterStatusCollection timeline = TwitterTimeline.RetweetedByMe(tokens); + Assert.IsNotNull(timeline); + Assert.IsNotEmpty(timeline); + + Assert.That(timeline.Count > 0 && timeline.Count <= 20, "Timeline should contain between 0 and 20 items."); + } + + [Test] + public static void RetweetedToMe() + { + OAuthTokens tokens = Configuration.GetTokens(); + + TwitterStatusCollection timeline = TwitterTimeline.RetweetedToMe(tokens); + Assert.IsNotNull(timeline); + Assert.IsNotEmpty(timeline); + + Assert.That(timeline.Count > 0 && timeline.Count <= 20, "Timeline should contain between 0 and 20 items."); + } + + [Test] + public static void Mentions() + { + OAuthTokens tokens = Configuration.GetTokens(); + + TwitterStatusCollection timeline = TwitterTimeline.Mentions(tokens); + Assert.IsNotNull(timeline); + Assert.IsNotEmpty(timeline); + + Assert.That(timeline.Count > 0 && timeline.Count <= 20, "Timeline should contain between 0 and 20 items."); + } + } +} diff --git a/Twitterizer2.TestCases/TwitterTrendTests.cs b/Twitterizer2.TestCases/TwitterTrendTests.cs new file mode 100644 index 00000000..5b4a6e80 --- /dev/null +++ b/Twitterizer2.TestCases/TwitterTrendTests.cs @@ -0,0 +1,16 @@ +namespace Twitterizer2.TestCases +{ + using Twitterizer; + using NUnit.Framework; + + [TestFixture] + public static class TwitterTrendTests + { + [Test] + public static void CurrentTrends() + { + TwitterTrendCollection trends = TwitterTrend.Current(); + Assert.IsNotNull(trends); + } + } +} diff --git a/Twitterizer2.TestCases/TwitterUserTests.cs b/Twitterizer2.TestCases/TwitterUserTests.cs new file mode 100644 index 00000000..16ccd160 --- /dev/null +++ b/Twitterizer2.TestCases/TwitterUserTests.cs @@ -0,0 +1,32 @@ +namespace Twitterizer2.TestCases +{ + using NUnit.Framework; + using Twitterizer; + + [TestFixture] + public class TwitterUserTests + { + [Test] + public static void Show() + { + OAuthTokens tokens = Configuration.GetTokens(); + + TwitterUser user = TwitterUser.Show(tokens, "twit_er_izer"); + Assert.IsNotNull(user); + Assert.That(!string.IsNullOrEmpty(user.ScreenName)); + + Assert.IsNotNull(user.Status); + Assert.That(!string.IsNullOrEmpty(user.Status.Text)); + } + + [Test] + public static void Search() + { + OAuthTokens tokens = Configuration.GetTokens(); + + TwitterUserCollection results = TwitterUser.Search(tokens, "twit_er_izer"); + Assert.IsNotNull(results); + Assert.IsNotEmpty(results); + } + } +} diff --git a/Twitterizer2.TestCases/Twitterizer2.TestCases.csproj b/Twitterizer2.TestCases/Twitterizer2.TestCases.csproj new file mode 100644 index 00000000..b75b8d58 --- /dev/null +++ b/Twitterizer2.TestCases/Twitterizer2.TestCases.csproj @@ -0,0 +1,78 @@ + + + + Debug + AnyCPU + 9.0.30729 + 2.0 + {488BB0D8-2A49-4074-BE6F-1100AF6E5D62} + Library + Properties + Twitterizer2.TestCases + Twitterizer2.TestCases + v3.5 + 512 + Full + + + true + full + false + bin\Debug\ + DEBUG;TRACE + prompt + 4 + + + pdbonly + true + bin\Release\ + TRACE + prompt + 4 + + + + + + + 3.5 + + + 3.5 + + + 3.5 + + + + + + + + + + + + + + + + {2FDC3492-6B9E-4771-9755-7892C9CB1E96} + Twitterizer2 + + + + + Always + + + + + \ No newline at end of file diff --git a/Twitterizer2.TestCases/Twitterizer2.TestCases.csproj.user b/Twitterizer2.TestCases/Twitterizer2.TestCases.csproj.user new file mode 100644 index 00000000..40e4efc5 --- /dev/null +++ b/Twitterizer2.TestCases/Twitterizer2.TestCases.csproj.user @@ -0,0 +1,10 @@ + + + Program + C:\Program Files (x86)\NUnit 2.5.2\bin\net-2.0\nunit-x86.exe + C:\Projects\twitterizer\Twitterizer2.nunit + + + ProjectFiles + + \ No newline at end of file diff --git a/Twitterizer2.TestCases/bin/Debug/Newtonsoft.Json.dll b/Twitterizer2.TestCases/bin/Debug/Newtonsoft.Json.dll new file mode 100644 index 00000000..389329dc Binary files /dev/null and b/Twitterizer2.TestCases/bin/Debug/Newtonsoft.Json.dll differ diff --git a/Twitterizer2.TestCases/bin/Debug/TestSettings.config b/Twitterizer2.TestCases/bin/Debug/TestSettings.config new file mode 100644 index 00000000..83f3715a --- /dev/null +++ b/Twitterizer2.TestCases/bin/Debug/TestSettings.config @@ -0,0 +1,9 @@ + + + + + + + + + \ No newline at end of file diff --git a/Twitterizer2.TestCases/bin/Debug/Twitterizer2.TestCases.dll b/Twitterizer2.TestCases/bin/Debug/Twitterizer2.TestCases.dll new file mode 100644 index 00000000..e86d42d0 Binary files /dev/null and b/Twitterizer2.TestCases/bin/Debug/Twitterizer2.TestCases.dll differ diff --git a/Twitterizer2.TestCases/bin/Debug/Twitterizer2.TestCases.pdb b/Twitterizer2.TestCases/bin/Debug/Twitterizer2.TestCases.pdb new file mode 100644 index 00000000..a71af7ba Binary files /dev/null and b/Twitterizer2.TestCases/bin/Debug/Twitterizer2.TestCases.pdb differ diff --git a/Twitterizer2.TestCases/bin/Debug/Twitterizer2.dll b/Twitterizer2.TestCases/bin/Debug/Twitterizer2.dll new file mode 100644 index 00000000..36c6f9d8 Binary files /dev/null and b/Twitterizer2.TestCases/bin/Debug/Twitterizer2.dll differ diff --git a/Twitterizer2.TestCases/bin/Debug/Twitterizer2.pdb b/Twitterizer2.TestCases/bin/Debug/Twitterizer2.pdb new file mode 100644 index 00000000..76afa2cf Binary files /dev/null and b/Twitterizer2.TestCases/bin/Debug/Twitterizer2.pdb differ diff --git a/Twitterizer2.TestCases/bin/Debug/Twitterizer2.xml b/Twitterizer2.TestCases/bin/Debug/Twitterizer2.xml new file mode 100644 index 00000000..fb98656a --- /dev/null +++ b/Twitterizer2.TestCases/bin/Debug/Twitterizer2.xml @@ -0,0 +1,4893 @@ + + + + Twitterizer2 + + + + + The base object class + + + + + The ITwitterObject interface. + + + + + + Gets or sets information about the user's rate usage. + + The rate limiting object. + + + + Gets or sets the oauth tokens. + + The oauth tokens. + + + + The format that all twitter dates are in. + + + + + The format that all twitter search api dates are in. + + + + + Gets or sets information about the user's rate usage. + + The rate limiting object. + + + + Gets or sets the oauth tokens. + + The oauth tokens. + + + + The Show User Command + + http://dev.twitter.com/doc/get/users/show + + + + The base command class. + + The business object the command should return. + + + + The ICommand interface. + + The Type of the BaseObject that the command returns + + + + + Initializes the command. + + + + + Executes the command. + + The results of the command. + + + + + Gets the request parameters. + + The request parameters. + + + + Initializes a new instance of the class. + + The method. + The end point. + The tokens. + The optional properties. + + + + Initializes the command. + + + + + Executes the command. + + The results of the command. + + + + Clones this instance. + + A new instance of the interface. + + + + Sets the command URI. + + The end point. + + + + Parses the rate limit headers. + + The result object. + The web response. + + + + Adds the result to cache. + + The cache key builder. + The cache. + The result object. + + + + Builds the request. + + The query parameters. + + A class. + + + + + Gets or sets the optional properties. + + The optional properties. + + + + Gets or sets the API method URI. + + The URI for the API method. + + + + Gets or sets the method. + + The method. + + + + Gets or sets the request parameters. + + The request parameters. + + + + Gets or sets the serialization delegate. + + The serialization delegate. + + + + Gets the request tokens. + + The request tokens. + + + + Initializes a new instance of the class. + + The request tokens. + The user id. + The username. + The options. + + + + Inits this instance. + + + + + Gets or sets the user ID. + + The user ID. + + + + Gets or sets the name of the user. + + The name of the user. + + + + The CursorCursorPagedCommand class. + + The type of BaseObject that the command returns. + + + + + Initializes a new instance of the class. + + The method. + The end point. + The tokens. + The options. + + + + Gets or sets the cursor. + + The cursor. + + Optional. + Breaks the results into pages. + A single page contains 100 users. + + + + + The User Search Command class. + + + + + The IPagedCommand interface. + + The type of BaseObject that the command returns. + + + + Initializes a new instance of the class. + + The HTTP method. + The end point. + The tokens. + The optional properties. + + + + Gets or sets the page number to obtain. + + The page number. + + + + Initializes a new instance of the class. + + The request tokens. + The query. + The options. + + + + Initializes the command. + + + + + Clones this instance. + + + A new instance of the interface. + + + + + Gets or sets the query. + + The query. + + + + Provides interaction with timelines + + + + + Returns the 20 most recent statuses, including retweets, posted by the authenticating user and that user's friends. This is the equivalent of /timeline/home on the Web. + + The tokens. + The options. + + A object. + + + + The tokens. + + + + The options. + + + + + Gets the user time line. + + The oauth tokens. + The user id. + The options. + + A instance. + + + + + Gets the public timeline. + + A . + + + + Gets the public timeline. + + The oauth tokens. + + A . + + + + + Obtains the authorized user's friends timeline. + + The tokens. + A . + + + + Obtains the authorized user's friends timeline. + + The tokens. + The options. + A . + + + + Returns the 20 most recent tweets of the authenticated user that have been retweeted by others. + + The tokens. + The options. + A instance. + + + + Returns the 20 most recent tweets of the authenticated user that have been retweeted by others. + + The tokens. + + A instance. + + + + + Returns the 20 most recent retweets posted by the authenticating user. + + The tokens. + The options. + A instance. + + + + Returns the 20 most recent retweets posted by the authenticating user. + + The tokens. + + A instance. + + + + + Returns the 20 most recent retweets posted by the authenticating user's friends. + + The tokens. + The options. + A instance. + + + + Returns the 20 most recent retweets posted by the authenticating user's friends. + + The tokens. + + A instance. + + + + + Returns the 20 most recent mentions (status containing @username) for the authenticating user. + + The tokens. + The options. + A instance. + + + + Returns the 20 most recent mentions (status containing @username) for the authenticating user. + + The tokens. + + A instance. + + + + + The twitter place class. Represents a place or area. + + + + + Lookups the specified latitude. + + The latitude. + The longitude. + The options. + A object or null. + + + + Lookups the specified latitude. + + The latitude. + The longitude. + + + + + Gets or sets the country code. + + The country code. + + + + Gets or sets the type of the place. + + The type of the place. + + + + Gets or sets the address of the data. + + The address of the data. + + + + Gets or sets the country. + + The country. + + + + Gets or sets the address of the street. + + The address of the street. + + + + Gets or sets the full name. + + The full name. + + + + Gets or sets the name of the place. + + The name of the place. + + + + Gets or sets the place id. + + The place id. + + + + Gets or sets the bounding box. + + The bounding box. + + + + The command to update the user's status. (a.k.a. post a new tweet) + + + + + Initializes a new instance of the class. + + The request tokens. + The status text. + The optional properties. + + + + Initializes the command. + + + + + Gets or sets the status text. + + The status text. + + + + The Show Status Command + + + + + Initializes a new instance of the class. + + The request tokens. + The status id. + The options. + + + + Inits this instance. + + + + + The timeline options class. Provides optional parameters for timeline methods. + + + + + Provides a base class for method specific optional parameters, as well as properties for providing configuration settings at run time. + + + + + Initializes a new instance of the class. + + + + + Reads the configuration settings. + + + + + Allows modification of the API endpoint addresses to enable SSL communication. + + The default value can be set at an application level by adding a Twitterizer2.EnableSSL application setting with the value true. + For example: + + + + + + +]]> + + + The current configured value. true if enabled, otherwise false. Default: false + + + Allows configuration of the base address for API method requests for support for 3rd party 'twitter-like' APIs. + + + + + The default value can be set at an application level by adding a Twitterizer2.APIBaseAddress application setting with the base address as the value. + For example: + + + + + + +]]> + + The API end point base address. Default: "http://api.twitter.com/1/" + + + + Allows overriding of the default proxy settings for API call requests. + + The supplied , or null. + + + + + Allows run time enabling of API output caching. + + The default value can be set at an application level by adding a Twitterizer2.EnableCaching application setting with value true. + For example: + + + + + + +]]> + + + The currently configured value. true if enabled, otherwise false. Default: false + + + + + Allows configuration of the sliding expiration timespan for output caching. + + The default value can be set at an application level by adding a Twitterizer2.CacheTimeout application setting with value equal to the number of seconds of the duration. + For example: + + + + + + +]]> + + + The duration that API output should be cached, on a sliding expiration, once enabled. Default: 5 minutes + + + + + Initializes a new instance of the class. + + + + + Gets or sets the minimum (earliest) status id to request. + + The since id. + + + + Gets or sets the max (latest) status id to request. + + The max id. + + + + Gets or sets the number of messages to request. + + The number of messages to request. + + + + Gets or sets the page number to request. + + The page number. + + + + Gets or sets a value indicating whether user objects should contain only Id values. + + true if user objects should contain only Id values; otherwise, false. + + + + The direct messages options class. Provides a payload for the command. + + + + + Initializes a new instance of the class. + + + + + Gets or sets the minimum (earliest) status id to request. + + The since id. + + + + Gets or sets the max (latest) status id to request. + + The max id. + + + + Gets or sets the number of messages to request. + + The number of messages to request. + + + + Gets or sets the page number to request. + + The page number. + + + + The Status Update Options class + + + + + Initializes a new instance of the class. + + + + + Gets or sets the in reply to status id. + + The in reply to status id. + + + + Gets or sets the latitude. + + The latitude. + + + + Gets or sets the longitude. + + The longitude. + + + + Gets or sets a value indicating whether or not to put a pin on the exact coordinates a tweet has been sent from. + + true to put a pin on the exact coordinates; otherwise, false. + + + + Gets or sets a place in the world. These IDs can be retrieved from geo/reverse_geocode. + + The place id. + + + + The information class which gives general information about the assembly. + + + + + Obtains the current assembly version. + + The assembly version string in the format (#.#.#.#) + + + + The Retweeted By Me Command. + + + + + Initializes a new instance of the class. + + The request tokens. + The options. + + + + Initializes the command. + + + + + Clones this instance. + + + A new instance of the interface. + + + + + The Mentions Command class + + + + + Initializes a new instance of the class. + + The request tokens. + The options. + + + + Initializes the command. + + + + + Clones this instance. + + + A new instance of the interface. + + + + + The get lists command class + + + + + Initializes a new instance of the class. + + The request tokens. + The username. + The options. + + + + Initializes the command. + + + + + Clones this instance. + + + A new instance of the interface. + + + + + Gets or sets the username. + + The username. + + + + The Direct Messages Command + + + + + The base address to the API method. + + + + + Initializes a new instance of the class. + + The request tokens. + The options. + + + + Initializes the command. + + + + + A wrapper class for the lists collection (Twitter has their data structure wierd for this one) + + + + + Gets or sets the lists. + + The lists. + + + + Gets or sets the next cursor. + + The next cursor. + + + + Gets or sets the previous cursor. + + The previous cursor. + + + + The base class for object collections. + + The type of object stored in the collection. + + + + The oauth tokens + + + + + Gets or sets information about the user's rate usage. + + The rate limiting object. + + + + Gets or sets the oauth tokens. + + The oauth tokens. + + + + The Serialization Helper class. Provides a simple interface for common serialization tasks. + + The type of object to be deserialized + + + + Deserializes the specified web response. + + The web response. + The deserialization handler. + + A strongly typed object representing the deserialized data of type + + + + + Deserializes the specified web response. + + The web response. + + A strongly typed object representing the deserialized data of type + + + + + Deserializes the specified serializer. + + The data to be deserialized. + The javascript conversion deligate. + + A strongly typed object representing the deserialized data of type + + + + + Deserializes the specified serializer. + + The data to be deserialized. + + A strongly typed object representing the deserialized data of type + + + + + The JavascriptConversionDelegate. The delegate is invokes when using the JavaScriptSerializer to manually construct a result object. + + Contains nested dictionary objects containing deserialized values for manual parsing. + A strongly typed object representing the deserialized data of type + + + + The create list command class + + + + + Initializes a new instance of the class. + + The request tokens. + The username. + The list id or slug. + The options. + + + + Initializes the command. + + + + + The followers options class. Provides a payload for optional parameters of the FollowersCommand class. + + + + + Gets or sets the ID of the user for whom to request a list of followers. + + The user id. + + + + Gets or sets the screen name of the user for whom to request a list of followers. + + The name of the screen. + + + + The Create Friendship Options class + + + + + Initializes a new instance of the class. + + + + + Gets or sets a value indicating whether to enable delivery of statuses from this user to the authenticated user's device + + true if follow; otherwise, false. + + + + The XAuthUtility class. + + + + + Allows OAuth applications to directly exchange Twitter usernames and passwords for OAuth access tokens and secrets. + + The consumer key. + The consumer secret. + The username. + The password. + A instance. + + + + The command to obtain followers of a user. + + + + + Initializes a new instance of the class. + + The request tokens. + The options. + + + + Initializes the command. + + + + + Clones this instance. + + A cloned command object. + + + + The retweet command class. + + + + + The base address to the API method. + + + + + Initializes a new instance of the class. + + The request tokens. + The status id. + The options. + + + + Initializes the command. + + + + + The current trends options class. Provides a payload for optional parameters for the CurrentTrendsCommand class. + + + + + Gets or sets a value indicating whether [exclude hash tags]. + + true if [exclude hash tags]; otherwise, false. + + + + The twitter bounding box class. Represents a series of latitude and longitude coordinates that represents an area. + + + + + Gets or sets the type. + + The type of bounding box. + + + + Gets or sets the coordinates. + + The coordinates. + + + + Creates a friendship between the authenticated user and another user + + + + + The base address to the API method. + + + + + Initializes a new instance of the class. + + The request tokens. + The userid. + The optional properties. + + + + Initializes a new instance of the class. + + The request tokens. + Name of the user. + The optional properties. + + + + Initializes the command. + + + + + Gets or sets the user id. + + The user id. + + + + Gets or sets the username. + + The username. + + + + The Twitterizer Exception + + + + + + 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 object that holds the serialized object data. + The contextual information about the source or destination. + + + + When overridden in a derived class, sets the with information about the exception. + + 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 a null reference (Nothing in Visual Basic). + + + + + + + + + Parses the rate limit headers. + + The response. + + + + Gets or sets the result. + + The result. + + + + Gets or sets the response body. + + The response body. + + + + Gets or sets the rate limits. + + The rate limits. + + + + Gets or sets the error details. + + The error details. + + + + Gets the response that the remote host returned. + + + If a response is available from the Internet resource, a instance that contains the error response from an Internet resource; otherwise, null. + + + + Gets the bug report. + + The bug report. + + + + The Twitter Rate Limit Status class + + + + + Initializes a new instance of the class. + + + + + Initializes a new instance of the class. + + OAuth access tokens. + + + + Gets the rate limiting status status for the authenticated user. + + The OAuth tokens. + The options. + + A instance. + + + + + Gets the rate limiting status status based on the application's IP address. + + The OAuth tokens. + + A instance. + + + + + Gets the rate limiting status status based on the application's IP address. + + + A instance. + + + + + Gets or sets the remaining hits. + + The remaining hits. + + + + Gets or sets the hourly limit. + + The hourly limit. + + + + Gets or sets the UTC string value of the time rate limiting will reset. + + The reset time string. + + + + The Direct Message Collection class + + + + + The rate limit status command class. + + + + + Initializes a new instance of the class. + + The request tokens. + The options. + + + + Initializes the command. + + + + + The create list command class + + + + + Initializes a new instance of the class. + + The options. + + + + Initializes the command. + + + + + The create list command class + + + + + Initializes a new instance of the class. + + The request tokens. + The username. + The options. + + + + Initializes the command. + + + + + Clones this instance. + + + A new instance of the interface. + + + + + The reverse geocode command class. Performs a reverse geocode lookup. + + + + + Initializes a new instance of the class. + + The latitude. + The longitude. + The options. + + + + Initializes the command. + + + + + Gets or sets the latitude. + + The latitude. + + + + Gets or sets the longitude. + + The longitude. + + + + Converts date strings returned by the Twitter API into + + + + + The date pattern for most dates returned by the API + + + + + Reads the json. + + The reader. + Type of the object. + The existing value. + The serializer. + The parsed value as a DateTime, or null. + + + + Writes the json. + + The writer. + The value. + The serializer. + + + + The TwitterUser class represents a twitter user account and provides methods for interacting with user-centric API methods. + + + + + Initializes a new instance of the class. + + + + + Returns extended information of a given user, specified by ID or screen name as per the required id parameter. The author's most recent status will be returned inline. + + A new instance of the class. + + This method interacts with the users/show API endpoint. Documentation can be found here: http://dev.twitter.com/doc/get/users/show + Indicates that a required argument was not supplied.Indicates that an argument supplied was not valid.Indicates that a command failed pre-execution validation. + The tokens.The user id.Optional parameters for runtime configuration settings. + + // Declare the user's id variable + decimal userId = 1; + + // Declare the options object for configuration settings + OptionalProperties options = new OptionalProperties(); + + // Declare our user variable and fetch the user's details + TwitterUser user = TwitterUser.Show(tokens, userId, options); + + + '-- Declare the user's id variable + Dim userId As decimal = 1 + + '-- Declare the options object for configuration settings + Dim options As new OptionalProperties() + + '-- Declare our user variable and fetch the user's details + Dim user As TwitterUser = TwitterUser.Show(tokens, userId, options) + + + + + + + + Returns extended information of a given user, specified by ID or screen name as per the required id parameter. The author's most recent status will be returned inline. + + A new instance of the class. + + This method interacts with the users/show API endpoint. Documentation can be found here: http://dev.twitter.com/doc/get/users/show + Indicates that a required argument was not supplied.Indicates that an argument supplied was not valid.Indicates that a command failed pre-execution validation. + The user id.Optional parameters for runtime configuration settings. + + // Declare the user's id variable + decimal userId = 1; + + // Declare the options object for configuration settings + OptionalProperties options = new OptionalProperties(); + + // Declare our user variable and fetch the user's details + TwitterUser user = TwitterUser.Show(userId, options); + + + '-- Declare the user's id variable + Dim userId As decimal = 1 + + '-- Declare the options object for configuration settings + Dim options As new OptionalProperties() + + '-- Declare our user variable and fetch the user's details + Dim user As TwitterUser = TwitterUser.Show(userId, options) + + + + + + Returns extended information of a given user, specified by ID or screen name as per the required id parameter. The author's most recent status will be returned inline. + + A new instance of the class. + + This method interacts with the users/show API endpoint. Documentation can be found here: http://dev.twitter.com/doc/get/users/show + Indicates that a required argument was not supplied.Indicates that an argument supplied was not valid.Indicates that a command failed pre-execution validation. + The tokens.The user id. + + // Declare the user's id variable + decimal userId = 1; + + // Declare our user variable and fetch the user's details + TwitterUser user = TwitterUser.Show(tokens, userId); + + + '-- Declare the user's id variable + Dim userId As decimal = 1 + + '-- Declare our user variable and fetch the user's details + Dim user As TwitterUser = TwitterUser.Show(tokens, userId) + + + + + + Returns extended information of a given user, specified by ID or screen name as per the required id parameter. The author's most recent status will be returned inline. + + A new instance of the class. + + This method interacts with the users/show API endpoint. Documentation can be found here: http://dev.twitter.com/doc/get/users/show + Indicates that a required argument was not supplied.Indicates that an argument supplied was not valid.Indicates that a command failed pre-execution validation. + The user id. + + // Declare the user's id variable + decimal userId = 1; + + // Declare our user variable and fetch the user's details + TwitterUser user = TwitterUser.Show(userId); + + + '-- Declare the user's id variable + Dim userId As decimal = 1 + + '-- Declare our user variable and fetch the user's details + Dim user As TwitterUser = TwitterUser.Show(userId) + + + + + + Returns extended information of a given user, specified by ID or screen name as per the required id parameter. The author's most recent status will be returned inline. + + A new instance of the class. + + This method interacts with the users/show API endpoint. Documentation can be found here: http://dev.twitter.com/doc/get/users/show + Indicates that a required argument was not supplied.Indicates that an argument supplied was not valid.Indicates that a command failed pre-execution validation. + The tokens.The user name.The options. + + // Declare the username variable + string userName = "twit_er_izer"; + + // Declare the options object for configuration settings + OptionalProperties options = new OptionalProperties(); + + // Declare our user variable and fetch the user's details + TwitterUser user = TwitterUser.Show(tokens, userName, options); + + + '-- Declare the user's id variable + Dim UserName As String = "twit_er_izer" + + '-- Declare the options object for configuration settings + Dim options As new OptionalProperties() + + '-- Declare our user variable and fetch the user's details + Dim user As TwitterUser = TwitterUser.Show(tokens, UserName, options) + + + + + + + + Returns extended information of a given user, specified by ID or screen name as per the required id parameter. The author's most recent status will be returned inline. + + A new instance of the class. + + This method interacts with the users/show API endpoint. Documentation can be found here: http://dev.twitter.com/doc/get/users/show + Indicates that a required argument was not supplied.Indicates that an argument supplied was not valid.Indicates that a command failed pre-execution validation. + The user name.The options. + + // Declare the username variable + string userName = "twit_er_izer"; + + // Declare the options object for configuration settings + OptionalProperties options = new OptionalProperties(); + + // Declare our user variable and fetch the user's details + TwitterUser user = TwitterUser.Show(userName, options); + + + '-- Declare the user's id variable + Dim UserName As String = "twit_er_izer" + + '-- Declare the options object for configuration settings + Dim options As new OptionalProperties() + + '-- Declare our user variable and fetch the user's details + Dim user As TwitterUser = TwitterUser.Show(UserName, options) + + + + + + + Returns extended information of a given user, specified by ID or screen name as per the required id parameter. The author's most recent status will be returned inline. + + A new instance of the class. + + This method interacts with the users/show API endpoint. Documentation can be found here: http://dev.twitter.com/doc/get/users/show + Indicates that a required argument was not supplied.Indicates that an argument supplied was not valid.Indicates that a command failed pre-execution validation. + The tokens.The user name. + + // Declare the username variable + string userName = "twit_er_izer"; + + // Declare our user variable and fetch the user's details + TwitterUser user = TwitterUser.Show(tokens, userName); + + + '-- Declare the user's id variable + Dim UserName As String = "twit_er_izer" + + '-- Declare our user variable and fetch the user's details + Dim user As TwitterUser = TwitterUser.Show(tokens, UserName, options) + + + + + + + Returns extended information of a given user, specified by ID or screen name as per the required id parameter. The author's most recent status will be returned inline. + + A new instance of the class. + + This method interacts with the users/show API endpoint. Documentation can be found here: http://dev.twitter.com/doc/get/users/show + Indicates that a required argument was not supplied.Indicates that an argument supplied was not valid.Indicates that a command failed pre-execution validation. + The user name. + + // Declare the username variable + string userName = "twit_er_izer"; + + // Declare our user variable and fetch the user's details + TwitterUser user = TwitterUser.Show(userName); + + + '-- Declare the user's id variable + Dim UserName As String = "twit_er_izer" + + '-- Declare our user variable and fetch the user's details + Dim user As TwitterUser = TwitterUser.Show(UserName) + + + + + + Run a search for users similar to the Find People button on Twitter.com; the same results returned by people search on Twitter.com will be returned by using this API. + + This method interacts with the users/search API endpoint. Documentation can be found here: http://dev.twitter.com/doc/get/users/search + Indicates that a required argument was not supplied.Indicates that an argument supplied was not valid.Indicates that a command failed pre-execution validation. + A instance. + + The OAuth access tokens.The search query.Optional parameters. + + // Declare the search query + string query = "from:twit_er_izer @twitterapi"; + + // Declare the optional parameter object + UserSearchOptions options = new UserSearchOptions(); + options.NumberPerPage = 10; + options.Page = 2; + + // Perform the search + TwitterUserCollection searchResults = TwitterUser.Search(oauthTokens, query, options); + + + '-- Declare the search query + Dim Query As String = "from:twit_er_izer @twitterapi" + + '-- Declare the optional parameter object + Dim options As new UserSearchOptions() + options.NumberPerPage = 10 + options.Page = 2 + + '-- Perform the search + Dim searchResults As TwitterUserCollection = TwitterUser.Search(oauthTokens, query, options) + + + + + + Run a search for users similar to the Find People button on Twitter.com; the same results returned by people search on Twitter.com will be returned by using this API. + + This method interacts with the users/search API endpoint. Documentation can be found here: http://dev.twitter.com/doc/get/users/search + Indicates that a required argument was not supplied.Indicates that an argument supplied was not valid.Indicates that a command failed pre-execution validation. + A instance. + + The OAuth access tokens.The search query. + + // Declare the search query + string query = "from:twit_er_izer @twitterapi"; + + // Perform the search + TwitterUserCollection searchResults = TwitterUser.Search(oauthTokens, query); + + + '-- Declare the search query + Dim Query As String = "from:twit_er_izer @twitterapi" + + '-- Perform the search + Dim searchResults As TwitterUserCollection = TwitterUser.Search(oauthTokens, query) + + + + + + Gets or sets the User ID. + + The User ID. + + + + Gets or sets the name of the user. + + The name of the user. + + + + Gets or sets the location. + + The location. + + + + Gets or sets the description. + + The description. + + + + Gets or sets the status. + + The status. + + + + Gets or sets the created date. + + The created date. + + + + Gets or sets the time zone. + + The time zone. + + + + Gets or sets the number of followers. + + The number of followers. + + + + Gets or sets the number of statuses. + + The number of statuses. + + + + Gets or sets the number of friends. + + The number of friends. + + + + Gets or sets a value indicating whether the user has enabled contributors access to his or her account. + + The is contributors enabled value. + + + + Gets or sets the language. + + The language. + + + + Gets or sets a value indicating whether the user receives notifications. + + + true if the user receives notifications; otherwise, false. + + + + + Gets or sets the screenname. + + The screenname. + + + + Gets or sets a value indicating whether the authenticated user is following this user. + + + true if the authenticated user is following this user; otherwise, false. + + + + + Gets or sets the number of favorites. + + The number of favorites. + + + + Gets or sets a value indicating whether this user is protected. + + + true if this user is protected; otherwise, false. + + + + + Gets or sets a value indicating whether this user is geo enabled. + + + true if this user is geo enabled; otherwise, false. + + + + + Gets or sets the time zone offset. + + The time zone offset. + Also called the Coordinated Universal Time (UTC) offset. + + + + Gets or sets the user's website. + + The website address. + + + + Gets or sets the color of the profile background. + + The color of the profile background. + + + + Gets the color of the profile background. + + The color of the profile background. + + + + Gets or sets a value indicating whether this user's profile background image is tiled. + + + true if this user's profile background image is tiled; otherwise, false. + + + + + Gets or sets the color of the profile link. + + The color of the profile link. + + + + Gets the color of the profile link. + + The color of the profile link. + + + + Gets or sets the profile background image location. + + The profile background image location. + + + + Gets or sets the color of the profile text. + + The color of the profile text. + + + + Gets the color of the profile text. + + The color of the profile text. + + + + Gets or sets the profile image location. + + The profile image location. + + + + Gets or sets the color of the profile sidebar border. + + The color of the profile sidebar border. + + + + Gets the color of the profile sidebar border. + + The color of the profile sidebar border. + + + + An exception class indicating that required parameters were missing from a command. + + The command type, derived from ITwitterObject. + + + + 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). + + + + + When overridden in a derived class, sets the with information about the exception. + + 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 a null reference (Nothing in Visual Basic). + + + + + + + + + Gets or sets the name of the method. + + The name of the method. + + + + Gets the name of the command. + + The name of the command. + + + + Gets the parameters. + + The parameters. + + + + Gets or sets the command. + + The command. + + + + The TwitterUserCollection class. + + + + + Gets the next page. + + A instance. + The next page. + + + + Gets the previous page. + + A instance. + The previous page. + + + + Gets or sets the next cursor. + + The next cursor. + + + + Gets or sets the previous cursor. + + The previous cursor. + + + + Gets or sets information about the user's rate usage. + + The rate limiting object. + + + + Gets or sets the paged command. + + The paged command. + + + + Gets or sets the cursor paged command. + + The cursor paged command. + + + + Values returned by Twitter when getting a request token or an access token. + + + + + Gets or sets the token. + + The token. + + + + Gets or sets the token secret. + + The token secret. + + + + Gets or sets the user ID. + + The user ID. + + + + Gets or sets the screenname. + + The screenname. + + + + Gets or sets the verification string. + This is required when overriding the application's callback url. + + The verification string. + + + + The friends options class. Provides a payload for optional parameters of the class. + + + + + Gets or sets the user id. + + The user id. + + + + Gets or sets the user's screen name. + + The screen name of the user. + + + + Gets or sets the cursor. + + The cursor. + + + + The command class to delete a status update. + + + + + Initializes a new instance of the class. + + The tokens. + The status id. + The options. + + + + Initializes the command. + + + + + Gets or sets the status id. + + The status id. + + + + The UpdateListOptions class. Provides a payload for optional parameters for the UpdaetListCommand class. + + + + + Gets or sets the name of the list. + + The name of the list. + + + + Gets or sets a value indicating whether this instance is public. + + true if this instance is public; otherwise, false. + + + + Gets or sets the description. + + The description. + + + + The update list command class + + + + + Initializes a new instance of the class. + + The tokens. + The username. + The list id. + The options. + + + + Initializes the command. + + + + + The list membership command class + + + + + Initializes a new instance of the class. + + The request tokens. + The username. + The options. + + + + Initializes the command. + + + + + Clones this instance. + + + A new instance of the interface. + + + + + Gets or sets the username. + + The username. + + + + The command to obtain followers of a user. + + + + + Initializes a new instance of the class. + + The request tokens. + The options. + + + + Initializes the command. + + + + + Clones this instance. + + A cloned command object. + + + + The available search result type filter options. + + + + + Use Twitter's default + + + + + Include both popular and real time results in the response. + + + + + Return only the most recent results in the response. + + + + + Return only the most popular results in the response. + + + + + The search options class. Provides a payload for optional parameters for the SearchCommand class. + + + + + Initializes a new instance of the class. + + + + + Gets or sets the language. + + The language. + + + + Gets or sets the locale. + + The locale. + + + + Gets or sets the max id. + + The max id. + + + + Gets or sets the number per page. + + The number per page. + + + + Gets or sets the page number. + + The page number. + + + + Gets or sets the since date. + + The since date. + + + + Gets or sets the since id. + + The since id. + + + + Gets or sets the geo code string. + The parameter value is specified by "latitude,longitude,radius", where radius units must be specified as either "mi" (miles) or "km" (kilometers). Note that you cannot use the near operator via the API to geocode arbitrary locations; however you can use this geocode parameter to search near geocodes directly. + + The geo code. + + + + Gets or sets a value indicating whether to prefix the user name to the tweet. + + + true to prefix the user name to the tweet; otherwise, false. + + + + + Gets or sets the until date. + + The until date. + + + + Gets or sets the type of the result. + + The type of the result. + + + + The delete friendship command class. + + + + + The base address to the API method. + + + + + Initializes a new instance of the class. + + The request tokens. + The user id. + The user name. + The optional properties. + + + + Initializes the command. + + + + + Gets or sets the user id. + + The user id. + + + + Gets or sets the username. + + The username. + + + + Provides interaction with the Twitter API to obtain and manage relationships between users. + + + + + Returns the authenticating user's followers, each with current status inline. + + The tokens. + The options. + + A instance. + + + + + Returns the authenticating user's followers, each with current status inline. + + The tokens. + + A instance. + + + + + Returns the authenticating user's followers, each with current status inline. + + The options. + + A instance. + + + + + Returns a user's friends, each with current status inline. They are ordered by the order in which the user followed them, most recently followed first, 100 at a time. + + The tokens. + The options. + + A instance. + + Please note that the result set isn't guaranteed to be 100 every time as suspended users will be filtered out. + + + + Returns a user's friends, each with current status inline. They are ordered by the order in which the user followed them, most recently followed first, 100 at a time. + + The tokens. + + A instance. + + Please note that the result set isn't guaranteed to be 100 every time as suspended users will be filtered out. + + + + Returns a user's friends, each with current status inline. They are ordered by the order in which the user followed them, most recently followed first, 100 at a time. + + The options. + + A instance. + + Please note that the result set isn't guaranteed to be 100 every time as suspended users will be filtered out. + + + + Allows the authenticating users to follow the user specified in the userID parameter. + + The tokens. + The user id. + + Returns the followed user in the requested format when successful. + + + + + Allows the authenticating users to follow the user specified in the userID parameter. + + The tokens. + The user id. + The options. + + Returns the followed user in the requested format when successful. + + + + + Allows the authenticating users to follow the user specified in the userName parameter. + + The tokens. + The user name. + + Returns the followed user in the requested format when successful. + + + + + Allows the authenticating users to follow the user specified in the userName parameter. + + The tokens. + The user name. + The options. + + Returns the followed user in the requested format when successful. + + + + + Allows the authenticating users to unfollow the user specified in the ID parameter. + + The tokens. + The user id. + + Returns the unfollowed user in the requested format when successful. + + + + + Allows the authenticating users to unfollow the user specified in the ID parameter. + + The tokens. + The user id. + The options. + + Returns the unfollowed user in the requested format when successful. + + + + + Allows the authenticating users to unfollow the user specified in the ID parameter. + + The tokens. + The username. + + Returns the unfollowed user in the requested format when successful. + + + + + Allows the authenticating users to unfollow the user specified in the ID parameter. + + The tokens. + The username. + The options. + + Returns the unfollowed user in the requested format when successful. + + + + + Returns detailed information about the relationship between two users. + + The tokens. + The target user id. + A instance. + + + + Returns detailed information about the relationship between two users. + + The tokens. + The target user id. + The options. + A instance. + + + + Returns detailed information about the relationship between two users. + + The tokens. + The source user id. + The target user id. + A instance. + + + + Returns detailed information about the relationship between two users. + + The tokens. + The source user id. + The target user id. + The options. + A instance. + + + + Returns detailed information about the relationship between two users. + + The tokens. + The target user name. + A instance. + + + + Returns detailed information about the relationship between two users. + + The tokens. + The target user name. + The options. + A instance. + + + + Returns detailed information about the relationship between two users. + + The tokens. + The source user name. + The target user name. + A instance. + + + + Returns detailed information about the relationship between two users. + + The tokens. + The source user name. + The target user name. + The options. + A instance. + + + + Returns detailed information about the relationship between two users. + + The first user id. + The second user id. + + A instance. + + + + + Returns detailed information about the relationship between two users. + + The first username. + The second username. + + A instance. + + + + + The TwitterTrend class. + + + + + Gets the current trends. + + The options. + + A instance. + + + + + Gets the current trends. + + + A instance. + + + + + Gets or sets the name. + + The name of the trend. + + + + Gets or sets the address. + + The address. + + + + Gets or sets the search query. + + The search query. + + + + The Twitter search result wrapper class + + + + + Gets or sets the results. + + The results. + + + + Gets or sets the max id. + + The max id. + + + + Gets or sets the since id. + + The since id. + + + + Gets or sets the refresh query string. + + The refresh query string. + + + + Gets or sets the next page query string. + + The next page query string. + + + + Gets or sets the results per page. + + The results per page. + + + + Gets or sets the page number. + + The page number. + + + + Gets or sets the completed in. + + The completed in. + + + + Gets or sets the query. + + The query. + + + + The Command Performer Class + + The business object the performer should return. + + + + + Performs the action. + + The command. + The parsed result of the action. + + + + + + The Home Timeline Command + + + + + Initializes a new instance of the class. + + The request tokens. + The optional properties. + + + + Initializes the command. + + + + + Clones this instance. + + A cloned command object. + + + + The Retweets Options class. Provides a payload for optional parameters for the Retweets Command + + + + + Gets or sets the count of statuses to return. + + The number of statuses to return. + + + + The create list command class + + + + + Initializes a new instance of the class. + + The request tokens. + The query. + The options. + + + + Initializes the command. + + + + + Gets or sets the query. + + The query. + + + + The Twitter Place Collection class. A collection of objects. + + + + + The TwitterStatusCollection class. + + + + + Gets the next page. + + A instance. + + + + Gets the previous page. + + A instance. + + + + Gets or sets the command. + + The command. + + + + Provides data about the user's current rate limiting. + + + + + Gets the remaining number of requests until requests are denied. + + The remaining requests. + + + + Gets the total number of requests allowed before requests are denied. + + The total number of requests. + + + + Gets the date the remaining number of requests will be reset. + + The reset date. + + + + Twitter Error Details class + + Often, twitter returns error details in the body of response. This class represents the data structure of the error for deserialization. + + + + Gets or sets the request path. + + The request path. + + + + Gets or sets the error message. + + The error message. + + + + Gets or sets information about the user's rate usage. + + The rate limiting object. + + + + Gets or sets the oauth tokens. + + The oauth tokens. + + + + The retweets command class. + + + + + Initializes a new instance of the class. + + The request tokens. + The status id. + The options. + + + + Initializes the command. + + + + + The Twitter Search Result class. + + + + + Gets or sets the profile image URL. + + The profile image URL. + + + + Gets or sets the created date. + + The created date. + + + + Gets or sets the name of from user screen. + + The name of from user screen. + + + + Gets or sets from user id. + + From user id. + + + + Gets or sets the name of to user screen. + + The name of to user screen. + + + + Gets or sets to user id. + + To user id. + + + + Gets or sets the status text. + + The status text. + + + + Gets or sets the status id. + + The status id. + + + + Gets or sets the source. + + The source. + + + + Gets or sets the language. + + The language. + + + + The Twitter Result Type Enumeration + + + + + In a future release this will become the default value. Include both popular and real time results in the response. + + + + + The current default value. Return only the most recent results in the response. + + + + + Return only the most popular results in the response. + + + + + The Twitter User Wrapper class. + + + + + The private collection for the contained collection + + + + + Gets or sets the users. + + The users. + + + + Gets or sets the next cursor. + + The next cursor. + + + + Gets or sets the previous cursor. + + The previous cursor. + + + + Describes the result status of a request + + + + + The request was completed successfully + + + + + The URI requested is invalid or the resource requested, such as a user, does not exists. + + + + + The request was invalid. An accompanying error message will explain why. + + + + + Authentication credentials were missing or incorrect. + + + + + Returned by the Search API when an invalid format is specified in the request. + + + + + The authorized user, or client IP address, is being rate limited. + + + + + Twitter is currently down. + + + + + Twitter is online, but is overloaded. Try again later. + + + + + Something unexpected happened. See the error message for additional information. + + + + + The twitter status class. Provides thread-safe information about the last request made. + + + + + A lock for the last status instance + + + + + The last request status + + + + + Initializes a new instance of the class. + + + + + Updates the request status. + + The web response. + true if the status was updated successfully, otherwise false + + + + Gets the last request status. + + The last request status. + + + + Gets the full path. + + The full path. + + + + Gets the error details. + + The error details. + + + + Gets the response body. + + The response body. + + + + Gets the status. + + The status. + + + + The namespace contains abstract classes and interfaces + + + + + The show friendship command class. + + + + + The base address to the API method. + + + + + Initializes a new instance of the class. + + The tokens. + The source user id. + Name of the source user. + The target user id. + Name of the target screen. + The optional properties. + + + + Initializes the command. + + + + + Gets or sets the id of the source user. + + The source id. + + + + Gets or sets the screenname of the source user. + + The screenname of the source user. + + + + Gets or sets the id of the target user. + + The target id. + + + + Gets or sets the screenname of the target user. + + The screenname of the target user. + + + + The Retweeted By Me Command. + + + + + Initializes a new instance of the class. + + The request tokens. + The options. + + + + Initializes the command. + + + + + Clones this instance. + + + A new instance of the interface. + + + + + The Twitter Relationship entity class + + + + + The relationship source + + + + + The relationship target + + + + + Initializes a new instance of the class. + + OAuth access tokens. + + + + Initializes a new instance of the class. + + + + + Gets or sets the source. + + The source. + + + + Gets or sets the target. + + The target. + + + + Gets or sets the relationship. + + The relationship. + + + + The UserTimelineOptions class. Provides a payload for optional parameters of the class. + + + + + Gets or sets the ID of the user for whom to request a list of followers. + + The user id. + + + + Gets or sets the screen name of the user for whom to request a list of followers. + + The name of the screen. + + + + The create list command class + + + + + Initializes a new instance of the class. + + The request tokens. + The name of the list. + The username. + The options. + + + + Initializes the command. + + + + + Gets or sets the name of the list. + + The name of the list. + + + + Gets or sets a value indicating whether this instance is public. + + true if this instance is public; otherwise, false. + + + + Gets or sets the description. + + The description. + + + + The Twitter Search Result Collection class + + + + + The Twitter Search Class + + + + + Searches Twitter with the the specified query. + + The query. + + A instance. + + + + + Searches Twitter with the the specified query. + + The query. + The options. + + A instance. + + + + + The twitter list entity class + + + + + Initializes a new instance of the class. + + OAuth access tokens. + + + + Initializes a new instance of the class. + + + + + Creates a new list. + + The oauth tokens. + The username. + The list name. + if set to true creates a public list. + The description. + The options. + A instance. + + + + Modifies a list. + + The oauth tokens. + The username. + The list id. + The options. + A instance. + + + + List the lists of the specified user. Private lists will be included if the authenticated users is the same as the user who's lists are being returned. + + The tokens. + The username. + The options. + + A instance. + + + + + List the lists of the specified user. Private lists will be included if the authenticated users is the same as the user who's lists are being returned. + + The tokens. + The username. + + A instance. + + + + + List the lists of the specified user. Private lists will be included if the authenticated users is the same as the user who's lists are being returned. + + The username. + The options. + + A instance. + + + + + List the lists of the specified user. Private lists will be included if the authenticated users is the same as the user who's lists are being returned. + + The username. + + A instance. + + + + + Gets a single list by id number. + + The tokens. + The username. + The list id or slug. + The options. + + A instance. + + + + + Deletes the specified list. + + The tokens. + The username. + The list id or slug. + The options. + A instance. + + + + Show tweet timeline for members of the specified list. + + The tokens. + The username. + The list id. + The options. + + A instance. + + + + + List the lists the specified user has been added to. + + The tokens. + The username. + The options. + + A instance. + + + + + List the lists the specified user has been added to. + + The tokens. + The username. + + A instance. + + + + + List the lists the specified user follows. + + The tokens. + The options. + + A instance. + + + + + List the lists the specified user follows. + + The tokens. + + A instance. + + + + + Gets or sets the id. + + The list id. + + + + Gets or sets the name. + + The list name. + + + + Gets or sets the full name. + + The full name. + + + + Gets or sets the slug. + + The list slug. + + + + Gets or sets the description. + + The description. + + + + Gets or sets the number of subscribers. + + The number of subscribers. + + + + Gets or sets the number of members. + + The number of members. + + + + Gets or sets the absolute path. + + The absolute path. + + + + Gets or sets the mode. + + The list mode. + + + + Gets or sets the user that owns the list. + + The owning user. + + + + Gets a value indicating whether this instance is public. + + true if this instance is public; otherwise, false. + + + + Enumeration of the supported HTTP verbs supported by the + + + + + The HTTP GET method is used to retrieve data. + + + + + The HTTP POST method is used to transmit data. + + + + + The HTTP DELETE method is used to indicate that a resource should be deleted. + + + + A utility for handling authorization and request signatures for the OAuth protocol. + Before you begin, you will need to register your application with Twitter. + + To authenticate a user, there are 3 steps you will take:
+ 1) Obtain a Request Token
+ 2) Authentication
+ 3) Obtain an Access Token +
+
+ First, you must obtain a request token from the API. + + string consumerKey = "XXX"; + string consumerSecret = "XXX"; + + // Obtain a request token + OAuthTokenResponse requestToken = OAuthUtility.GetRequestToken(consumerKey, consumerSecret); + + // Direct or instruct the user to the following address: + Uri authorizationUri = OAuthUtility.BuildAuthorizationUri(requestToken.Token); + + + Dim consumerKey As String = "XXX" + Dim consumerSecret As String = "XXX" + + '-- Obtain a request token + Dim requestToken As OAuthTokenResponse = OAuthUtility.GetRequestToken(consumerKey, consumerSecret) + + '-- Direct or instruct the user to the following address: + Dim authorizationUri As Uri = OAuthUtility.BuildAuthorizationUri(requestToken.Token) + + + After the user has returned, you must obtain or reuse the request token and obtain the verifier value. For web applications, both values will be provided on the querystring to the callback url as oauth_token and oauth_verifier, respectively. For desktop and mobile applications, the verifier will be a numeric PIN supplied to the user. + + + string consumerKey = "XXX"; + string consumerSecret = "XXX"; + string requestToken = "XXX"; + string verifier = "XXX"; + + // Obtain the access token for this user. + OAuthTokenResponse accessToken = OAuthUtility.GetAccessToken(consumerKey, consumerSecret, requestToken, verifier); + + // TODO: Save the access token to a database, session, xml file, or whereever my user data is stored. + + + Dim consumerKey As String = "XXX" + Dim consumerSecret As String = "XXX" + Dim requestToken As String = "XXX" + Dim verifier As String = "XXX" + + '-- Obtain the access token for this user. + Dim accessToken As OAuthTokenResponse = OAuthUtility.GetAccessToken(consumerKey, consumerSecret, requestToken, verifier) + + '-- TODO: Save the access token to a database, session, xml file, or whereever my user data is stored. + + +
+ + + The name of the signature type twiter uses. + + + + + Gets a new OAuth request token from the twitter api. + + The consumer key. + The consumer secret. + + A new instance. + + + + + Gets a new OAuth request token from the twitter api. + + The consumer key. + The consumer secret. + Address of the callback. + + A new instance. + + + + + Gets the access token from pin. + + The consumer key. + The consumer secret. + The request token. + The pin number or verifier string. + + An class containing access token information. + + + + + This is a different Url Encode implementation since the default .NET one outputs the percent encoding in lower case. + While this is not a problem with the percent encoding spec, it is used in upper case throughout OAuth + + The value to Url encode + Returns a Url encoded string + + + + Builds the authorization URI. + + The request token. + A new instance. + + + + Builds the authorization URI. + + The request token. + if set to true, the authenticate url will be used. (See: "Sign in with Twitter") + A new instance. + + + + Creates the OAuth request. + + The base URL. + The parameters. + The verb. + The consumer key. + The consumer secret. + The access or request token. + The token secret. + + A new instance of the class. + + + + + Generates the query string for HTTP GET requests. + + The parameters. + + A string of all parameters prepared for use in a querystring. + + + + + Generates the authorization header. + + The new parameters. + A string value of all OAuth parameters formatted for use in the Authorization HTTP header. + + + + Generate the timestamp for the signature + + A timestamp value in a string. + + + + Generate a nonce + + A random number between 123400 and 9999999 in a string. + + + + Generates and adds a signature to parameters. + + The base URL. + The parameters. + The verb. + The consumer secret. + The token secret. + + + + Normalizes the URL. + + The URL to normalize. + The normalized url string. + + + + URLs the encode. + + The parameters. + A string of all the keys and value pairs with the values encoded. + + + + The user timeline command. + + + + + Initializes a new instance of the class. + + The request tokens. + The options. + + + + Initializes the command. + + + + + Clones this instance. + + A cloned command object. + + + + The Friends Timeline Command class + + + + + Initializes a new instance of the class. + + The request tokens. + The options. + + + + Initializes the command. + + + + + Clones this instance. + + + A new instance of the interface. + + + + + The list statuses options class. Provides a payload for the ListStatusesCommand class. + + + + + Gets or sets the since id. + + The since id. + + + + Gets or sets the max id. + + The max id. + + + + Gets or sets the number of items per page to request. + + The number of items per page. + + + + Gets or sets the page. + + The page number. + + + + Identifies command classes that must enforce rate limiting. This will cause rate status to be queried before each command call. + + + + + Initializes a new instance of the class. + + + + + The TwitterStatus class represents a twitter status (also refered to as a tweet) and provides methods for interacting with status-centric API methods. + + + + + Initializes a new instance of the class. + + + + + Updates the authenticated user's status to the supplied text. + + The tokens. + The status text. + A object of the newly created status. + + + + Updates the specified tokens. + + The tokens. + The status text. + The options. + + A object of the newly created status. + + + + + Deletes the specified tokens. + + The oauth tokens. + The status id. + The options. + + A object of the deleted status. + + + + + Deletes the specified tokens. + + The oauth tokens. + The status id. + A object of the deleted status. + + + + Returns a single status, with user information, specified by the id parameter. + + The tokens. + The status id. + The options. + A instance. + + + + Returns a single status, with user information, specified by the id parameter. + + The tokens. + The status id. + A instance. + + + + Returns a single status, with user information, specified by the id parameter. + + The status id. + A instance. + + + + Retweets a tweet. Requires the id parameter of the tweet you are retweeting. (say that 5 times fast) + + The tokens. + The status id. + The options. + A representing the newly created tweet. + + + + Retweets a tweet. Requires the id parameter of the tweet you are retweeting. (say that 5 times fast) + + The tokens. + The status id. + A representing the newly created tweet. + + + + Returns up to 100 of the first retweets of a given tweet. + + The tokens. + The status id. + The options. + + A instance. + + + + + Returns up to 100 of the first retweets of a given tweet. + + The tokens. + The status id. + A instance. + + + + Gets or sets the status id. + + The status id. + + + + Gets or sets a value indicating whether this status message is truncated. + + + true if this status message is truncated; otherwise, false. + + + + + Gets or sets the created date. + + The created date. + + + + Gets or sets the source. + + The source. + + + + Gets or sets the screenName the status is in reply to. + + The screenName. + + + + Gets or sets the user id the status is in reply to. + + The user id. + + + + Gets or sets the status id the status is in reply to. + + The status id. + + + + Gets or sets a value indicating whether the authenticated user has favorited this status. + + + true if this instance is favorited; otherwise, false. + + + + + Gets or sets the text of the status. + + The status text. + + + + Gets or sets the user. + + The user that posted this status. + + + + Gets or sets the retweeted status. + + The retweeted status. + + + + Gets or sets the place. + + The place. + + + + Gets or sets the geo. + + The geo. + + + + The delegate to handle each status received. + + The status received. + + + + The TwitterStream class. Provides an interface to real-time status changes. + + + + + The web request + + + + + This value is set to true to indicate that the stream connection should be closed. + + + + + Initializes a new instance of the class. + + The username. + The password. + + + + Starts the stream. + + + + + Ends the stream. + + + + + Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources. + + + + + Occurs when a status is received from the stream. + + + + + Gets or sets the username. + + The username. + + + + Gets or sets the password. + + The password. + + + Contains security tokens nessisary for performing authorized actions against the Twitter API + To perform authorized actions, you must create a new OAuthTokens variable and supply values for the , , , and properties, as follows: + + OAuthTokens tokens = new OAuthTokens(); + tokens.AccessToken = "XXX"; + tokens.AccessTokenSecret = "XXX"; + tokens.ConsumerKey = "XXX"; + tokens.ConsumerSecret = "XXX"; + + + Dim tokens As new OAuthTokens(); + tokens.AccessToken = "XXX" + tokens.AccessTokenSecret = "XXX" + tokens.ConsumerKey = "XXX" + tokens.ConsumerSecret = "XXX" + + + + + + Gets or sets the access token. + + The access token. + + + + Gets or sets the access token secret. + + The access token secret. + + + + Gets or sets the consumer key. + + The consumer key. + + + + Gets or sets the consumer secret. + + The consumer secret. + + + + The get list statuses command class + + + + + Initializes a new instance of the class. + + The request tokens. + The username. + The list id. + The options. + + + + Initializes the command. + + + + + Clones this instance. + + + A new instance of the interface. + + + + + Gets the username. + + The username. + + + + Gets the list id. + + The list id. + + + + The create list command class + + + + + Initializes a new instance of the class. + + The request tokens. + The username. + The list id or slug. + The options. + + + + Initializes the command. + + + + + The list favorites options class. Provides a payload for optional parameters of the ListFavoritesCommand class. + + + + + Gets or sets the user name or id of the user for whom to return results for. + + The user name or id of the user for whom to return results for. + + + + Gets or sets the page. + + The page number. + + + + The direct messages sent options class. Provides a payload for the command. + + + + + Initializes a new instance of the class. + + + + + Gets or sets the minimum (earliest) status id to request. + + The since id. + + + + Gets or sets the max (latest) status id to request. + + The max id. + + + + Gets or sets the number of messages to request. + + The number of messages to request. + + + + Gets or sets the page number to request. + + The page number. + + + + The twitter list collection class. + + + + + Gets the next page. + + A instance. + The next page. + + + + Gets the previous page. + + A instance. + The previous page. + + + + Gets or sets the next cursor. + + The next cursor. + + + + Gets or sets the previous cursor. + + The previous cursor. + + + + Gets or sets the request parameters. + + The request parameters. + + + + Gets or sets information about the user's rate usage. + + The rate limiting object. + + + + Gets or sets the command. + + The command. + + + + The Direct Message Entity Class + + + + + Initializes a new instance of the class. + + + + + Initializes a new instance of the class. + + OAuth access tokens. + + + + Returns a list of the 20 most recent direct messages sent to the authenticating user. + + The tokens. + A instance. + + + + Returns a list of the 20 most recent direct messages sent to the authenticating user. + + The tokens. + The options. + + A instance. + + + + + Returns a list of the 20 most recent direct messages sent by the authenticating user. + + The tokens. + + A instance. + + + + + Sends a new direct message to the specified user from the authenticating user. + + The OAuth tokens. + The user id. + The text of your direct message. + The options. + + A instance. + + + + + Sends a new direct message to the specified user from the authenticating user. + + The OAuth tokens. + The user id. + The text of your direct message. + + A instance. + + + + + Sends a new direct message to the specified user from the authenticating user. + + The OAuth tokens. + The user's screen name. + The message text. + The options. + A object of the created direct message. + + + + Sends a new direct message to the specified user from the authenticating user. + + The OAuth tokens. + The user's screen name. + The message text. + A object of the created direct message. + + + + Returns a list of the 20 most recent direct messages sent by the authenticating user. + + The tokens. + The options. + + A instance. + + + + + Deletes this direct message. + + + A instance. + + + + + Deletes this direct message. + + The options. + + A instance. + + + + + Gets or sets the direct message id. + + The direct message id. + + + + Gets or sets the sender id. + + The sender id. + + + + Gets or sets the direct message text. + + The direct message text. + + + + Gets or sets the recipient id. + + The recipient id. + + + + Gets or sets the created date. + + The created date. + + + + Gets or sets the name of the sender screen. + + The name of the sender screen. + + + + Gets or sets the name of the recipient screen. + + The name of the recipient screen. + + + + Gets or sets the sender. + + The sender. + + + + Gets or sets the recipient. + + The recipient. + + + + Provides common color converstion methods + + + + + + Converts the color string to a + + The value. + A representation of the color, or null. + + + + Reads the stream into a byte array. + + The response stream. + A byte array. + + + + The Retweets of Me options class. Provides optional parameters for the RetweetsOfMeCommand class. + + + + + Gets or sets the since status id. + + The since status id. + + + + Gets or sets the max status id. + + The max status id. + + + + Gets or sets the count of tweets to return. + + The count of tweets. + + + + Gets or sets the page number to return. + + The page number. + + + + The ListFavoritesCommand class. Returns the 20 most recent favorite statuses for the authenticating user or user specified by the ID parameter in the requested format. + + + + + Initializes a new instance of the class. + + The tokens. + The options. + + + + Initializes the command. + + + + + The Send Direct Message Command class + + + + + Initializes a new instance of the class. + + The tokens. + The text. + The options. + + + + Initializes a new instance of the class. + + The request tokens. + The message text. + The user id. + The options. + + + + Initializes the command. + + + + + Gets or sets the status text. + + The status text. + + + + Gets or sets the recipient user id. + + The recipient user id. + + + + Gets or sets the name of the recipient user. + + The name of the recipient user. + + + + The Delete Direct Message Command class. + + + + + Initializes a new instance of the class. + + The request tokens. + The status id. + The options. + + + + Initializes the command. + + + + + Gets or sets the status id. + + The status id. + + + + The user search options class. Provides a payload for optional parameters of the UserSearchCommand class. + + + + + Gets or sets the number per page. Cannot be greater than 20. + + The number per page. + + + + Gets or sets the page of results to retrieve. + + The page of results to retrieve. + + + + The Retweets Of Me Command. + + + + + Initializes a new instance of the class. + + The request tokens. + The options. + + + + Initializes the command. + + + + + Clones this instance. + + + A new instance of the interface. + + + + + The Public Timeline Command class + + + + + Initializes a new instance of the class. + + The request tokens. + + + + Initializes the command. + + + + + Clones this instance. + + + A new instance of the interface. + + + + + The TwitterFavorite class. Provides static methods for manipulating favorite tweets. + + + + + Prevents a default instance of the TwitterFavorite class from being created. + + + + + Favorites the status specified in the ID parameter as the authenticating user. + + The tokens. + The status id. + The options. + The favorite status when successful. + + + + Favorites the status specified in the ID parameter as the authenticating user. + + The tokens. + The status id. + The favorite status when successful. + + + + Un-favorites the status specified in the ID parameter as the authenticating user. + + The tokens. + The status id. + The options. + The un-favorited status in the requested format when successful. + + + + Un-favorites the status specified in the ID parameter as the authenticating user. + + The tokens. + The status id. + + The un-favorited status in the requested format when successful. + + + + + Returns the 20 most recent favorite statuses for the authenticating user or user specified by the ID parameter in the requested format. + + The tokens. + The options. + The 20 most recent favorite statuses + + + + Returns the 20 most recent favorite statuses for the authenticating user or user specified by the ID parameter in the requested format. + + The tokens. + The 20 most recent favorite statuses + + + + The delete favoriate command class. + Un-favorites the status specified in the ID parameter as the authenticating user. + Returns the un-favorited status in the requested format when successful. + + + + + Initializes a new instance of the class. + + The tokens. + The status id. + The options. + + + + Initializes the command. + + + + + Gets or sets the status id. + + The status id. + + + + The Create Favorite Command class. Favorites the status specified in the ID parameter as the authenticating user. Returns the favorite status when successful. + + + + + Initializes a new instance of the class. + + The tokens. + The status id. + The options. + + + + Initializes the command. + + + + + The Direct Messages Sent Command class + + + + + Initializes a new instance of the class. + + The request tokens. + The options. + + + + Initializes the command. + + + + + Clones this instance. + + + A new instance of the interface. + + + + + Lists the possible types of geographic boundaries. + + + + + A single point. Expect one coordinate. + + + + + A line, or multiple lines joined end-to-end. + + + + + A polygon + + + + + A circle represented by a single point (the center) and the radius + + + + + Gets or sets the type of the shape. + + The type of the shape. + + + + Gets or sets the coordinates. + + The coordinates. + + + + Represents a single point on planet earth. + + + + + Gets or sets the latitude. + + The latitude. + + + + Gets or sets the longitude. + + The longitude. + + + + Reads a json array of coordinates and converts it into a collection of coordinate objects. + + + + + Determines whether this instance can convert the specified object type. + + Type of the object. + + true if this instance can convert the specified object type; otherwise, false. + + + + + Reads the json. + + The reader. + Type of the object. + The existing value. + The serializer. + + + + + Writes the json. + + The writer. + The value. + The serializer. + + + + The TwitterTrendCollection class. Represents multiple elements. + + + + + The Json converter class for the TwitterTrendCollection object + + + + + Determines whether this instance can convert the specified object type. + + Type of the object. + + true if this instance can convert the specified object type; otherwise, false. + + + + + Reads the json. + + The reader. + Type of the object. + The existing value. + The serializer. + + + + + Writes the json. + + The writer. + The value. + The serializer. + + + + Provides a payload for optional parameters for the method. + + + + + A hint on the "region" in which to search. If a number, then this is a radius in meters, but it can also take a string that is suffixed with ft to specify feet. If this is not passed in, then it is assumed to be 0m. If coming from a device, in practice, this value is whatever accuracy the device has measuring its location (whether it be coming from a GPS, WiFi triangulation, etc.). + + + + + The minimal granularity of data to return. If this is not passed in, then neighborhood is assumed. city can also be passed. + + + + + A hint as to the number of results to return. This does not guarantee that the number of results returned will equal max_results, but instead informs how many "nearby" results to return. Ideally, only pass in the number of places you intend to display to the user here. + + +
+
diff --git a/Twitterizer2.TestCases/bin/Debug/nunit.framework.dll b/Twitterizer2.TestCases/bin/Debug/nunit.framework.dll new file mode 100644 index 00000000..2729ddf2 Binary files /dev/null and b/Twitterizer2.TestCases/bin/Debug/nunit.framework.dll differ diff --git a/Twitterizer2.TestCases/bin/Debug/nunit.framework.xml b/Twitterizer2.TestCases/bin/Debug/nunit.framework.xml new file mode 100644 index 00000000..ccfa9ee6 --- /dev/null +++ b/Twitterizer2.TestCases/bin/Debug/nunit.framework.xml @@ -0,0 +1,10088 @@ + + + + nunit.framework + + + + + TypeConstraint is the abstract base for constraints + that take a Type as their expected value. + + + + + The Constraint class is the base of all built-in constraints + within NUnit. It provides the operator overloads used to combine + constraints. + + + + + The IConstraintExpression interface is implemented by all + complete and resolvable constraints and expressions. + + + + + Return the top-level constraint for this expression + + + + + + Static UnsetObject used to detect derived constraints + failing to set the actual value. + + + + + The actual value being tested against a constraint + + + + + The display name of this Constraint for use by ToString() + + + + + Argument fields used by ToString(); + + + + + The builder holding this constraint + + + + + Construct a constraint with no arguments + + + + + Construct a constraint with one argument + + + + + Construct a constraint with two arguments + + + + + Sets the ConstraintBuilder holding this constraint + + + + + Write the failure message to the MessageWriter provided + as an argument. The default implementation simply passes + the constraint and the actual value to the writer, which + then displays the constraint description and the value. + + Constraints that need to provide additional details, + such as where the error occured can override this. + + The MessageWriter on which to display the message + + + + Test whether the constraint is satisfied by a given value + + The value to be tested + True for success, false for failure + + + + Test whether the constraint is satisfied by an + ActualValueDelegate that returns the value to be tested. + The default implementation simply evaluates the delegate + but derived classes may override it to provide for delayed + processing. + + An ActualValueDelegate + True for success, false for failure + + + + Test whether the constraint is satisfied by a given reference. + The default implementation simply dereferences the value but + derived classes may override it to provide for delayed processing. + + A reference to the value to be tested + True for success, false for failure + + + + Write the constraint description to a MessageWriter + + The writer on which the description is displayed + + + + Write the actual value for a failing constraint test to a + MessageWriter. The default implementation simply writes + the raw value of actual, leaving it to the writer to + perform any formatting. + + The writer on which the actual value is displayed + + + + Default override of ToString returns the constraint DisplayName + followed by any arguments within angle brackets. + + + + + + This operator creates a constraint that is satisfied only if both + argument constraints are satisfied. + + + + + This operator creates a constraint that is satisfied if either + of the argument constraints is satisfied. + + + + + This operator creates a constraint that is satisfied if the + argument constraint is not satisfied. + + + + + Returns a DelayedConstraint with the specified delay time. + + The delay in milliseconds. + + + + + Returns a DelayedConstraint with the specified delay time + and polling interval. + + The delay in milliseconds. + The interval at which to test the constraint. + + + + + The display name of this Constraint for use by ToString(). + The default value is the name of the constraint with + trailing "Constraint" removed. Derived classes may set + this to another name in their constructors. + + + + + Returns a ConstraintExpression by appending And + to the current constraint. + + + + + Returns a ConstraintExpression by appending And + to the current constraint. + + + + + Returns a ConstraintExpression by appending Or + to the current constraint. + + + + + Class used to detect any derived constraints + that fail to set the actual value in their + Matches override. + + + + + The expected Type used by the constraint + + + + + Construct a TypeConstraint for a given Type + + + + + + Write the actual value for a failing constraint test to a + MessageWriter. TypeConstraints override this method to write + the name of the type. + + The writer on which the actual value is displayed + + + + ExactTypeConstraint is used to test that an object + is of the exact type provided in the constructor + + + + + Construct an ExactTypeConstraint for a given Type + + The expected Type. + + + + Test that an object is of the exact type specified + + The actual value. + True if the tested object is of the exact type provided, otherwise false. + + + + Write the description of this constraint to a MessageWriter + + The MessageWriter to use + + + + InstanceOfTypeConstraint is used to test that an object + is of the same type provided or derived from it. + + + + + Construct an InstanceOfTypeConstraint for the type provided + + The expected Type + + + + Test whether an object is of the specified type or a derived type + + The object to be tested + True if the object is of the provided type or derives from it, otherwise false. + + + + Write a description of this constraint to a MessageWriter + + The MessageWriter to use + + + + AssignableFromConstraint is used to test that an object + can be assigned from a given Type. + + + + + Construct an AssignableFromConstraint for the type provided + + + + + + Test whether an object can be assigned from the specified type + + The object to be tested + True if the object can be assigned a value of the expected Type, otherwise false. + + + + Write a description of this constraint to a MessageWriter + + The MessageWriter to use + + + + AssignableToConstraint is used to test that an object + can be assigned to a given Type. + + + + + Construct an AssignableToConstraint for the type provided + + + + + + Test whether an object can be assigned to the specified type + + The object to be tested + True if the object can be assigned a value of the expected Type, otherwise false. + + + + Write a description of this constraint to a MessageWriter + + The MessageWriter to use + + + + ConstraintBuilder maintains the stacks that are used in + processing a ConstraintExpression. An OperatorStack + is used to hold operators that are waiting for their + operands to be reognized. a ConstraintStack holds + input constraints as well as the results of each + operator applied. + + + + + Initializes a new instance of the class. + + + + + Appends the specified operator to the expression by first + reducing the operator stack and then pushing the new + operator on the stack. + + The operator to push. + + + + Appends the specified constraint to the expresson by pushing + it on the constraint stack. + + The constraint to push. + + + + Sets the top operator right context. + + The right context. + + + + Reduces the operator stack until the topmost item + precedence is greater than or equal to the target precedence. + + The target precedence. + + + + Resolves this instance, returning a Constraint. If the builder + is not currently in a resolvable state, an exception is thrown. + + The resolved constraint + + + + Gets a value indicating whether this instance is resolvable. + + + true if this instance is resolvable; otherwise, false. + + + + + OperatorStack is a type-safe stack for holding ConstraintOperators + + + + + Initializes a new instance of the class. + + The builder. + + + + Pushes the specified operator onto the stack. + + The op. + + + + Pops the topmost operator from the stack. + + + + + + Gets a value indicating whether this is empty. + + true if empty; otherwise, false. + + + + Gets the topmost operator without modifying the stack. + + The top. + + + + ConstraintStack is a type-safe stack for holding Constraints + + + + + Initializes a new instance of the class. + + The builder. + + + + Pushes the specified constraint. As a side effect, + the constraint's builder field is set to the + ConstraintBuilder owning this stack. + + The constraint. + + + + Pops this topmost constrait from the stack. + As a side effect, the constraint's builder + field is set to null. + + + + + + Gets a value indicating whether this is empty. + + true if empty; otherwise, false. + + + + Gets the topmost constraint without modifying the stack. + + The topmost constraint + + + + ThrowsConstraint is used to test the exception thrown by + a delegate by applying a constraint to it. + + + + + Abstract base class used for prefixes + + + + + The base constraint + + + + + Construct given a base constraint + + + + + + Initializes a new instance of the class, + using a constraint to be applied to the exception. + + A constraint to apply to the caught exception. + + + + Executes the code of the delegate and captures any exception. + If a non-null base constraint was provided, it applies that + constraint to the exception. + + A delegate representing the code to be tested + True if an exception is thrown and the constraint succeeds, otherwise false + + + + Converts an ActualValueDelegate to a TestDelegate + before calling the primary overload. + + + + + + + Write the constraint description to a MessageWriter + + The writer on which the description is displayed + + + + Write the actual value for a failing constraint test to a + MessageWriter. The default implementation simply writes + the raw value of actual, leaving it to the writer to + perform any formatting. + + The writer on which the actual value is displayed + + + + Returns the string representation of this constraint + + + + + Get the actual exception thrown - used by Assert.Throws. + + + + + ThrowsNothingConstraint tests that a delegate does not + throw an exception. + + + + + Test whether the constraint is satisfied by a given value + + The value to be tested + True if no exception is thrown, otherwise false + + + + Write the constraint description to a MessageWriter + + The writer on which the description is displayed + + + + Write the actual value for a failing constraint test to a + MessageWriter. The default implementation simply writes + the raw value of actual, leaving it to the writer to + perform any formatting. + + The writer on which the actual value is displayed + + + + CollectionConstraint is the abstract base class for + constraints that operate on collections. + + + + + Construct an empty CollectionConstraint + + + + + Construct a CollectionConstraint + + + + + + Determines whether the specified enumerable is empty. + + The enumerable. + + true if the specified enumerable is empty; otherwise, false. + + + + + Test whether the constraint is satisfied by a given value + + The value to be tested + True for success, false for failure + + + + Protected method to be implemented by derived classes + + + + + + + CollectionItemsEqualConstraint is the abstract base class for all + collection constraints that apply some notion of item equality + as a part of their operation. + + + + + Construct an empty CollectionConstraint + + + + + Construct a CollectionConstraint + + + + + + Flag the constraint to use the supplied IComparer object. + + The IComparer object to use. + Self. + + + + Flag the constraint to use the supplied IComparer object. + + The IComparer object to use. + Self. + + + + Flag the constraint to use the supplied Comparison object. + + The IComparer object to use. + Self. + + + + Flag the constraint to use the supplied IEqualityComparer object. + + The IComparer object to use. + Self. + + + + Flag the constraint to use the supplied IEqualityComparer object. + + The IComparer object to use. + Self. + + + + Compares two collection members for equality + + + + + Return a new CollectionTally for use in making tests + + The collection to be included in the tally + + + + Flag the constraint to ignore case and return self. + + + + + CollectionTally counts (tallies) the number of + occurences of each object in one or more enumerations. + + + + + Construct a CollectionTally object from a comparer and a collection + + + + + Try to remove an object from the tally + + The object to remove + True if successful, false if the object was not found + + + + Try to remove a set of objects from the tally + + The objects to remove + True if successful, false if any object was not found + + + + The number of objects remaining in the tally + + + + + EmptyCollectionConstraint tests whether a collection is empty. + + + + + Check that the collection is empty + + + + + + + Write the constraint description to a MessageWriter + + + + + + UniqueItemsConstraint tests whether all the items in a + collection are unique. + + + + + Check that all items are unique. + + + + + + + Write a description of this constraint to a MessageWriter + + + + + + CollectionContainsConstraint is used to test whether a collection + contains an expected object as a member. + + + + + Construct a CollectionContainsConstraint + + + + + + Test whether the expected item is contained in the collection + + + + + + + Write a descripton of the constraint to a MessageWriter + + + + + + CollectionEquivalentCOnstraint is used to determine whether two + collections are equivalent. + + + + + Construct a CollectionEquivalentConstraint + + + + + + Test whether two collections are equivalent + + + + + + + Write a description of this constraint to a MessageWriter + + + + + + CollectionSubsetConstraint is used to determine whether + one collection is a subset of another + + + + + Construct a CollectionSubsetConstraint + + The collection that the actual value is expected to be a subset of + + + + Test whether the actual collection is a subset of + the expected collection provided. + + + + + + + Write a description of this constraint to a MessageWriter + + + + + + CollectionOrderedConstraint is used to test whether a collection is ordered. + + + + + Construct a CollectionOrderedConstraint + + + + + Modifies the constraint to use an IComparer and returns self. + + + + + Modifies the constraint to use an IComparer<T> and returns self. + + + + + Modifies the constraint to use a Comparison<T> and returns self. + + + + + Modifies the constraint to test ordering by the value of + a specified property and returns self. + + + + + Test whether the collection is ordered + + + + + + + Write a description of the constraint to a MessageWriter + + + + + + Returns the string representation of the constraint. + + + + + + If used performs a reverse comparison + + + + + EmptyDirectoryConstraint is used to test that a directory is empty + + + + + Test whether the constraint is satisfied by a given value + + The value to be tested + True for success, false for failure + + + + Write the constraint description to a MessageWriter + + The writer on which the description is displayed + + + + Write the actual value for a failing constraint test to a + MessageWriter. The default implementation simply writes + the raw value of actual, leaving it to the writer to + perform any formatting. + + The writer on which the actual value is displayed + + + + SubDirectoryConstraint is used to test that one directory is a subdirectory of another. + + + + + Initializes a new instance of the class. + + The dir info. + + + + Test whether the constraint is satisfied by a given value + + The value to be tested + True for success, false for failure + + + + Write the constraint description to a MessageWriter + + The writer on which the description is displayed + + + + Builds a list of DirectoryInfo objects, recursing where necessary + + directory to recurse + list of DirectoryInfo objects from the top level + + + + private method to determine whether a directory is within the path + + top-level directory to search + directory to search for + true if found, false if not + + + + Method to compare two DirectoryInfo objects + + first directory to compare + second directory to compare + true if equivalent, false if not + + + + PathConstraint serves as the abstract base of constraints + that operate on paths and provides several helper methods. + + + + + The expected path used in the constraint + + + + + Flag indicating whether a caseInsensitive comparison should be made + + + + + Construct a PathConstraint for a give expected path + + The expected path + + + + Returns the string representation of this constraint + + + + + Canonicalize the provided path + + + The path in standardized form + + + + Test whether two paths are the same + + The first path + The second path + + + + + Test whether one path is the same as or under another path + + The first path - supposed to be the parent path + The second path - supposed to be the child path + + + + + Modifies the current instance to be case-insensitve + and returns it. + + + + + Modifies the current instance to be case-sensitve + and returns it. + + + + + Summary description for SamePathConstraint. + + + + + Initializes a new instance of the class. + + The expected path + + + + Test whether the constraint is satisfied by a given value + + The value to be tested + True for success, false for failure + + + + Write the constraint description to a MessageWriter + + The writer on which the description is displayed + + + + SamePathOrUnderConstraint tests that one path is under another + + + + + Initializes a new instance of the class. + + The expected path + + + + Test whether the constraint is satisfied by a given value + + The value to be tested + True for success, false for failure + + + + Write the constraint description to a MessageWriter + + The writer on which the description is displayed + + + + PropertyExistsConstraint tests that a named property + exists on the object provided through Match. + + Originally, PropertyConstraint provided this feature + in addition to making optional tests on the vaue + of the property. The two constraints are now separate. + + + + + Initializes a new instance of the class. + + The name of the property. + + + + Test whether the property exists for a given object + + The object to be tested + True for success, false for failure + + + + Write the constraint description to a MessageWriter + + The writer on which the description is displayed + + + + Write the actual value for a failing constraint test to a + MessageWriter. + + The writer on which the actual value is displayed + + + + Returns the string representation of the constraint. + + + + + + PropertyConstraint extracts a named property and uses + its value as the actual value for a chained constraint. + + + + + Initializes a new instance of the class. + + The name. + The constraint to apply to the property. + + + + Test whether the constraint is satisfied by a given value + + The value to be tested + True for success, false for failure + + + + Write the constraint description to a MessageWriter + + The writer on which the description is displayed + + + + Write the actual value for a failing constraint test to a + MessageWriter. The default implementation simply writes + the raw value of actual, leaving it to the writer to + perform any formatting. + + The writer on which the actual value is displayed + + + + Returns the string representation of the constraint. + + + + + + ConstraintExpression represents a compound constraint in the + process of being constructed from a series of syntactic elements. + + Individual elements are appended to the expression as they are + reognized. Once an actual Constraint is appended, the expression + returns a resolvable Constraint. + + + + + ConstraintExpressionBase is the abstract base class for the + generated ConstraintExpression class, which represents a + compound constraint in the process of being constructed + from a series of syntactic elements. + + NOTE: ConstraintExpressionBase is aware of some of its + derived classes, which is an apparent violation of + encapsulation. Ideally, these classes would be a + single class, but they must be separated in order to + allow parts to be generated under .NET 1.x and to + provide proper user feedback in syntactically + aware IDEs. + + + + + The ConstraintBuilder holding the elements recognized so far + + + + + Initializes a new instance of the class. + + + + + Initializes a new instance of the + class passing in a ConstraintBuilder, which may be pre-populated. + + The builder. + + + + Returns a string representation of the expression as it + currently stands. This should only be used for testing, + since it has the side-effect of resolving the expression. + + + + + + Appends an operator to the expression and returns the + resulting expression itself. + + + + + Appends a self-resolving operator to the expression and + returns a new ResolvableConstraintExpression. + + + + + Appends a constraint to the expression and returns that + constraint, which is associated with the current state + of the expression being built. + + + + + Initializes a new instance of the class. + + + + + Initializes a new instance of the + class passing in a ConstraintBuilder, which may be pre-populated. + + The builder. + + + + Returns a new PropertyConstraintExpression, which will either + test for the existence of the named property on the object + being tested or apply any following constraint to that property. + + + + + Returns a new AttributeConstraint checking for the + presence of a particular attribute on an object. + + + + + Returns a new AttributeConstraint checking for the + presence of a particular attribute on an object. + + + + + Returns the constraint provided as an argument - used to allow custom + custom constraints to easily participate in the syntax. + + + + + Returns the constraint provided as an argument - used to allow custom + custom constraints to easily participate in the syntax. + + + + + Returns a constraint that tests two items for equality + + + + + Returns a constraint that tests that two references are the same object + + + + + Returns a constraint that tests whether the + actual value is greater than the suppled argument + + + + + Returns a constraint that tests whether the + actual value is greater than or equal to the suppled argument + + + + + Returns a constraint that tests whether the + actual value is greater than or equal to the suppled argument + + + + + Returns a constraint that tests whether the + actual value is less than the suppled argument + + + + + Returns a constraint that tests whether the + actual value is less than or equal to the suppled argument + + + + + Returns a constraint that tests whether the + actual value is less than or equal to the suppled argument + + + + + Returns a constraint that tests whether the actual + value is of the exact type supplied as an argument. + + + + + Returns a constraint that tests whether the actual + value is of the exact type supplied as an argument. + + + + + Returns a constraint that tests whether the actual value + is of the type supplied as an argument or a derived type. + + + + + Returns a constraint that tests whether the actual value + is of the type supplied as an argument or a derived type. + + + + + Returns a constraint that tests whether the actual value + is of the type supplied as an argument or a derived type. + + + + + Returns a constraint that tests whether the actual value + is of the type supplied as an argument or a derived type. + + + + + Returns a constraint that tests whether the actual value + is assignable from the type supplied as an argument. + + + + + Returns a constraint that tests whether the actual value + is assignable from the type supplied as an argument. + + + + + Returns a constraint that tests whether the actual value + is assignable from the type supplied as an argument. + + + + + Returns a constraint that tests whether the actual value + is assignable from the type supplied as an argument. + + + + + Returns a constraint that tests whether the actual value + is a collection containing the same elements as the + collection supplied as an argument. + + + + + Returns a constraint that tests whether the actual value + is a subset of the collection supplied as an argument. + + + + + Returns a new CollectionContainsConstraint checking for the + presence of a particular object in the collection. + + + + + Returns a new CollectionContainsConstraint checking for the + presence of a particular object in the collection. + + + + + Returns a new ContainsConstraint. This constraint + will, in turn, make use of the appropriate second-level + constraint, depending on the type of the actual argument. + This overload is only used if the item sought is a string, + since any other type implies that we are looking for a + collection member. + + + + + Returns a constraint that succeeds if the actual + value contains the substring supplied as an argument. + + + + + Returns a constraint that succeeds if the actual + value contains the substring supplied as an argument. + + + + + Returns a constraint that succeeds if the actual + value starts with the substring supplied as an argument. + + + + + Returns a constraint that succeeds if the actual + value starts with the substring supplied as an argument. + + + + + Returns a constraint that succeeds if the actual + value ends with the substring supplied as an argument. + + + + + Returns a constraint that succeeds if the actual + value ends with the substring supplied as an argument. + + + + + Returns a constraint that succeeds if the actual + value matches the Regex pattern supplied as an argument. + + + + + Returns a constraint that succeeds if the actual + value matches the Regex pattern supplied as an argument. + + + + + Returns a constraint that tests whether the path provided + is the same as an expected path after canonicalization. + + + + + Returns a constraint that tests whether the path provided + is the same path or under an expected path after canonicalization. + + + + + Returns a constraint that tests whether the actual value falls + within a specified range. + + + + + Returns a ConstraintExpression that negates any + following constraint. + + + + + Returns a ConstraintExpression that negates any + following constraint. + + + + + Returns a ConstraintExpression, which will apply + the following constraint to all members of a collection, + succeeding if all of them succeed. + + + + + Returns a ConstraintExpression, which will apply + the following constraint to all members of a collection, + succeeding if at least one of them succeeds. + + + + + Returns a ConstraintExpression, which will apply + the following constraint to all members of a collection, + succeeding if all of them fail. + + + + + Returns a new ConstraintExpression, which will apply the following + constraint to the Length property of the object being tested. + + + + + Returns a new ConstraintExpression, which will apply the following + constraint to the Count property of the object being tested. + + + + + Returns a new ConstraintExpression, which will apply the following + constraint to the Message property of the object being tested. + + + + + Returns a new ConstraintExpression, which will apply the following + constraint to the InnerException property of the object being tested. + + + + + With is currently a NOP - reserved for future use. + + + + + Returns a constraint that tests for null + + + + + Returns a constraint that tests for True + + + + + Returns a constraint that tests for False + + + + + Returns a constraint that tests for NaN + + + + + Returns a constraint that tests for empty + + + + + Returns a constraint that tests whether a collection + contains all unique items. + + + + + Returns a constraint that tests whether an object graph is serializable in binary format. + + + + + Returns a constraint that tests whether an object graph is serializable in xml format. + + + + + Returns a constraint that tests whether a collection is ordered + + + + + RangeConstraint tests whethe two values are within a + specified range. + + + + + Initializes a new instance of the class. + + From. + To. + + + + Test whether the constraint is satisfied by a given value + + The value to be tested + True for success, false for failure + + + + Write the constraint description to a MessageWriter + + The writer on which the description is displayed + + + + Modifies the constraint to use an IComparer and returns self. + + + + + Modifies the constraint to use an IComparer<T> and returns self. + + + + + Modifies the constraint to use a Comparison<T> and returns self. + + + + + EqualConstraint is able to compare an actual value with the + expected value provided in its constructor. Two objects are + considered equal if both are null, or if both have the same + value. NUnit has special semantics for some object types. + + + + + If true, strings in error messages will be clipped + + + + + NUnitEqualityComparer used to test equality. + + + + + Initializes a new instance of the class. + + The expected value. + + + + Flag the constraint to use a tolerance when determining equality. + + Tolerance value to be used + Self. + + + + Flag the constraint to use the supplied IComparer object. + + The IComparer object to use. + Self. + + + + Flag the constraint to use the supplied IComparer object. + + The IComparer object to use. + Self. + + + + Flag the constraint to use the supplied IComparer object. + + The IComparer object to use. + Self. + + + + Flag the constraint to use the supplied Comparison object. + + The IComparer object to use. + Self. + + + + Flag the constraint to use the supplied IEqualityComparer object. + + The IComparer object to use. + Self. + + + + Flag the constraint to use the supplied IEqualityComparer object. + + The IComparer object to use. + Self. + + + + Test whether the constraint is satisfied by a given value + + The value to be tested + True for success, false for failure + + + + Write a failure message. Overridden to provide custom + failure messages for EqualConstraint. + + The MessageWriter to write to + + + + Write description of this constraint + + The MessageWriter to write to + + + + Display the failure information for two collections that did not match. + + The MessageWriter on which to display + The expected collection. + The actual collection + The depth of this failure in a set of nested collections + + + + Displays a single line showing the types and sizes of the expected + and actual collections or arrays. If both are identical, the value is + only shown once. + + The MessageWriter on which to display + The expected collection or array + The actual collection or array + The indentation level for the message line + + + + Displays a single line showing the point in the expected and actual + arrays at which the comparison failed. If the arrays have different + structures or dimensions, both values are shown. + + The MessageWriter on which to display + The expected array + The actual array + Index of the failure point in the underlying collections + The indentation level for the message line + + + + Flag the constraint to ignore case and return self. + + + + + Flag the constraint to suppress string clipping + and return self. + + + + + Flag the constraint to compare arrays as collections + and return self. + + + + + Switches the .Within() modifier to interpret its tolerance as + a distance in representable values (see remarks). + + Self. + + Ulp stands for "unit in the last place" and describes the minimum + amount a given value can change. For any integers, an ulp is 1 whole + digit. For floating point values, the accuracy of which is better + for smaller numbers and worse for larger numbers, an ulp depends + on the size of the number. Using ulps for comparison of floating + point results instead of fixed tolerances is safer because it will + automatically compensate for the added inaccuracy of larger numbers. + + + + + Switches the .Within() modifier to interpret its tolerance as + a percentage that the actual values is allowed to deviate from + the expected value. + + Self + + + + Causes the tolerance to be interpreted as a TimeSpan in days. + + Self + + + + Causes the tolerance to be interpreted as a TimeSpan in hours. + + Self + + + + Causes the tolerance to be interpreted as a TimeSpan in minutes. + + Self + + + + Causes the tolerance to be interpreted as a TimeSpan in seconds. + + Self + + + + Causes the tolerance to be interpreted as a TimeSpan in milliseconds. + + Self + + + + Causes the tolerance to be interpreted as a TimeSpan in clock ticks. + + Self + + + + NotConstraint negates the effect of some other constraint + + + + + Initializes a new instance of the class. + + The base constraint to be negated. + + + + Test whether the constraint is satisfied by a given value + + The value to be tested + True for if the base constraint fails, false if it succeeds + + + + Write the constraint description to a MessageWriter + + The writer on which the description is displayed + + + + Write the actual value for a failing constraint test to a MessageWriter. + + The writer on which the actual value is displayed + + + + AllItemsConstraint applies another constraint to each + item in a collection, succeeding if they all succeed. + + + + + Construct an AllItemsConstraint on top of an existing constraint + + + + + + Apply the item constraint to each item in the collection, + failing if any item fails. + + + + + + + Write a description of this constraint to a MessageWriter + + + + + + SomeItemsConstraint applies another constraint to each + item in a collection, succeeding if any of them succeeds. + + + + + Construct a SomeItemsConstraint on top of an existing constraint + + + + + + Apply the item constraint to each item in the collection, + succeeding if any item succeeds. + + + + + + + Write a description of this constraint to a MessageWriter + + + + + + NoItemConstraint applies another constraint to each + item in a collection, failing if any of them succeeds. + + + + + Construct a SomeItemsConstraint on top of an existing constraint + + + + + + Apply the item constraint to each item in the collection, + failing if any item fails. + + + + + + + Write a description of this constraint to a MessageWriter + + + + + + ContainsConstraint tests a whether a string contains a substring + or a collection contains an object. It postpones the decision of + which test to use until the type of the actual argument is known. + This allows testing whether a string is contained in a collection + or as a substring of another string using the same syntax. + + + + + Initializes a new instance of the class. + + The expected. + + + + Test whether the constraint is satisfied by a given value + + The value to be tested + True for success, false for failure + + + + Write the constraint description to a MessageWriter + + The writer on which the description is displayed + + + + Flag the constraint to ignore case and return self. + + + + + Static methods used in creating messages + + + + + Static string used when strings are clipped + + + + + Returns the representation of a type as used in NUnitLite. + This is the same as Type.ToString() except for arrays, + which are displayed with their declared sizes. + + + + + + + Converts any control characters in a string + to their escaped representation. + + The string to be converted + The converted string + + + + Return the a string representation for a set of indices into an array + + Array of indices for which a string is needed + + + + Get an array of indices representing the point in a collection or + array corresponding to a single int index into the collection. + + The collection to which the indices apply + Index in the collection + Array of indices + + + + Clip a string to a given length, starting at a particular offset, returning the clipped + string with ellipses representing the removed parts + + The string to be clipped + The maximum permitted length of the result string + The point at which to start clipping + The clipped string + + + + Clip the expected and actual strings in a coordinated fashion, + so that they may be displayed together. + + + + + + + + + Shows the position two strings start to differ. Comparison + starts at the start index. + + The expected string + The actual string + The index in the strings at which comparison should start + Boolean indicating whether case should be ignored + -1 if no mismatch found, or the index where mismatch found + + + + BasicConstraint is the abstract base for constraints that + perform a simple comparison to a constant value. + + + + + Initializes a new instance of the class. + + The expected. + The description. + + + + Test whether the constraint is satisfied by a given value + + The value to be tested + True for success, false for failure + + + + Write the constraint description to a MessageWriter + + The writer on which the description is displayed + + + + NullConstraint tests that the actual value is null + + + + + Initializes a new instance of the class. + + + + + TrueConstraint tests that the actual value is true + + + + + Initializes a new instance of the class. + + + + + FalseConstraint tests that the actual value is false + + + + + Initializes a new instance of the class. + + + + + NaNConstraint tests that the actual value is a double or float NaN + + + + + Test that the actual value is an NaN + + + + + + + Write the constraint description to a specified writer + + + + + + MessageWriter is the abstract base for classes that write + constraint descriptions and messages in some form. The + class has separate methods for writing various components + of a message, allowing implementations to tailor the + presentation as needed. + + + + + Construct a MessageWriter given a culture + + + + + Method to write single line message with optional args, usually + written to precede the general failure message. + + The message to be written + Any arguments used in formatting the message + + + + Method to write single line message with optional args, usually + written to precede the general failure message, at a givel + indentation level. + + The indentation level of the message + The message to be written + Any arguments used in formatting the message + + + + Display Expected and Actual lines for a constraint. This + is called by MessageWriter's default implementation of + WriteMessageTo and provides the generic two-line display. + + The constraint that failed + + + + Display Expected and Actual lines for given values. This + method may be called by constraints that need more control over + the display of actual and expected values than is provided + by the default implementation. + + The expected value + The actual value causing the failure + + + + Display Expected and Actual lines for given values, including + a tolerance value on the Expected line. + + The expected value + The actual value causing the failure + The tolerance within which the test was made + + + + Display the expected and actual string values on separate lines. + If the mismatch parameter is >=0, an additional line is displayed + line containing a caret that points to the mismatch point. + + The expected string value + The actual string value + The point at which the strings don't match or -1 + If true, case is ignored in locating the point where the strings differ + If true, the strings should be clipped to fit the line + + + + Writes the text for a connector. + + The connector. + + + + Writes the text for a predicate. + + The predicate. + + + + Writes the text for an expected value. + + The expected value. + + + + Writes the text for a modifier + + The modifier. + + + + Writes the text for an actual value. + + The actual value. + + + + Writes the text for a generalized value. + + The value. + + + + Writes the text for a collection value, + starting at a particular point, to a max length + + The collection containing elements to write. + The starting point of the elements to write + The maximum number of elements to write + + + + Abstract method to get the max line length + + + + + Modes in which the tolerance value for a comparison can + be interpreted. + + + + + The tolerance was created with a value, without specifying + how the value would be used. This is used to prevent setting + the mode more than once and is generally changed to Linear + upon execution of the test. + + + + + The tolerance is used as a numeric range within which + two compared values are considered to be equal. + + + + + Interprets the tolerance as the percentage by which + the two compared values my deviate from each other. + + + + + Compares two values based in their distance in + representable numbers. + + + + + The Tolerance class generalizes the notion of a tolerance + within which an equality test succeeds. Normally, it is + used with numeric types, but it can be used with any + type that supports taking a difference between two + objects and comparing that difference to a value. + + + + + Constructs a linear tolerance of a specdified amount + + + + + Constructs a tolerance given an amount and ToleranceMode + + + + + Tests that the current Tolerance is linear with a + numeric value, throwing an exception if it is not. + + + + + Returns an empty Tolerance object, equivalent to + specifying an exact match. + + + + + Gets the ToleranceMode for the current Tolerance + + + + + Gets the value of the current Tolerance instance. + + + + + Returns a new tolerance, using the current amount as a percentage. + + + + + Returns a new tolerance, using the current amount in Ulps. + + + + + Returns a new tolerance with a TimeSpan as the amount, using + the current amount as a number of days. + + + + + Returns a new tolerance with a TimeSpan as the amount, using + the current amount as a number of hours. + + + + + Returns a new tolerance with a TimeSpan as the amount, using + the current amount as a number of minutes. + + + + + Returns a new tolerance with a TimeSpan as the amount, using + the current amount as a number of seconds. + + + + + Returns a new tolerance with a TimeSpan as the amount, using + the current amount as a number of milliseconds. + + + + + Returns a new tolerance with a TimeSpan as the amount, using + the current amount as a number of clock ticks. + + + + + Returns true if the current tolerance is empty. + + + + + 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 + + + + EmptyConstraint tests a whether a string or collection is empty, + postponing the decision about which test is applied until the + type of the actual argument is known. + + + + + Test whether the constraint is satisfied by a given value + + The value to be tested + True for success, false for failure + + + + Write the constraint description to a MessageWriter + + The writer on which the description is displayed + + + + StringConstraint is the abstract base for constraints + that operate on strings. It supports the IgnoreCase + modifier for string operations. + + + + + The expected value + + + + + Indicates whether tests should be case-insensitive + + + + + Constructs a StringConstraint given an expected value + + The expected value + + + + Modify the constraint to ignore case in matching. + + + + + EmptyStringConstraint tests whether a string is empty. + + + + + Test whether the constraint is satisfied by a given value + + The value to be tested + True for success, false for failure + + + + Write the constraint description to a MessageWriter + + The writer on which the description is displayed + + + + NullEmptyStringConstraint tests whether a string is either null or empty. + + + + + Constructs a new NullOrEmptyStringConstraint + + + + + Test whether the constraint is satisfied by a given value + + The value to be tested + True for success, false for failure + + + + Write the constraint description to a MessageWriter + + The writer on which the description is displayed + + + + SubstringConstraint can test whether a string contains + the expected substring. + + + + + Initializes a new instance of the class. + + The expected. + + + + Test whether the constraint is satisfied by a given value + + The value to be tested + True for success, false for failure + + + + Write the constraint description to a MessageWriter + + The writer on which the description is displayed + + + + StartsWithConstraint can test whether a string starts + with an expected substring. + + + + + Initializes a new instance of the class. + + The expected string + + + + Test whether the constraint is matched by the actual value. + This is a template method, which calls the IsMatch method + of the derived class. + + + + + + + Write the constraint description to a MessageWriter + + The writer on which the description is displayed + + + + EndsWithConstraint can test whether a string ends + with an expected substring. + + + + + Initializes a new instance of the class. + + The expected string + + + + Test whether the constraint is matched by the actual value. + This is a template method, which calls the IsMatch method + of the derived class. + + + + + + + Write the constraint description to a MessageWriter + + The writer on which the description is displayed + + + + RegexConstraint can test whether a string matches + the pattern provided. + + + + + Initializes a new instance of the class. + + The pattern. + + + + Test whether the constraint is satisfied by a given value + + The value to be tested + True for success, false for failure + + + + Write the constraint description to a MessageWriter + + The writer on which the description is displayed + + + + Abstract base class for constraints that compare values to + determine if one is greater than, equal to or less than + the other. + + + + + The value against which a comparison is to be made + + + + + If true, less than returns success + + + + + if true, equal returns success + + + + + if true, greater than returns success + + + + + The predicate used as a part of the description + + + + + ComparisonAdapter to be used in making the comparison + + + + + Initializes a new instance of the class. + + The value against which to make a comparison. + if set to true less succeeds. + if set to true equal succeeds. + if set to true greater succeeds. + String used in describing the constraint. + + + + Test whether the constraint is satisfied by a given value + + The value to be tested + True for success, false for failure + + + + Write the constraint description to a MessageWriter + + The writer on which the description is displayed + + + + Modifies the constraint to use an IComparer and returns self + + + + + Modifies the constraint to use an IComparer<T> and returns self + + + + + Modifies the constraint to use a Comparison<T> and returns self + + + + + Tests whether a value is greater than the value supplied to its constructor + + + + + Initializes a new instance of the class. + + The expected value. + + + + Tests whether a value is greater than or equal to the value supplied to its constructor + + + + + Initializes a new instance of the class. + + The expected value. + + + + Tests whether a value is less than the value supplied to its constructor + + + + + Initializes a new instance of the class. + + The expected value. + + + + Tests whether a value is less than or equal to the value supplied to its constructor + + + + + Initializes a new instance of the class. + + The expected value. + + + + SameAsConstraint tests whether an object is identical to + the object passed to its constructor + + + + + Initializes a new instance of the class. + + The expected object. + + + + Test whether the constraint is satisfied by a given value + + The value to be tested + True for success, false for failure + + + + Write the constraint description to a MessageWriter + + The writer on which the description is displayed + + + + 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 + + + + AndConstraint succeeds only if both members succeed. + + + + + Create an AndConstraint from two other constraints + + The first constraint + The second constraint + + + + Apply both member constraints to an actual value, succeeding + succeeding only if both of them succeed. + + The actual value + True if the constraints both succeeded + + + + Write a description for this contraint to a MessageWriter + + The MessageWriter to receive the description + + + + Write the actual value for a failing constraint test to a + MessageWriter. The default implementation simply writes + the raw value of actual, leaving it to the writer to + perform any formatting. + + The writer on which the actual value is displayed + + + + OrConstraint succeeds if either member succeeds + + + + + Create an OrConstraint from two other constraints + + The first constraint + The second constraint + + + + Apply the member constraints to an actual value, succeeding + succeeding as soon as one of them succeeds. + + The actual value + True if either constraint succeeded + + + + Write a description for this contraint to a MessageWriter + + The MessageWriter to receive the description + + + + Helper class with properties and methods that supply + a number of constraints used in Asserts. + + + + + Returns a new PropertyConstraintExpression, which will either + test for the existence of the named property on the object + being tested or apply any following constraint to that property. + + + + + Returns a new AttributeConstraint checking for the + presence of a particular attribute on an object. + + + + + Returns a new AttributeConstraint checking for the + presence of a particular attribute on an object. + + + + + Returns a constraint that tests two items for equality + + + + + Returns a constraint that tests that two references are the same object + + + + + Returns a constraint that tests whether the + actual value is greater than the suppled argument + + + + + Returns a constraint that tests whether the + actual value is greater than or equal to the suppled argument + + + + + Returns a constraint that tests whether the + actual value is greater than or equal to the suppled argument + + + + + Returns a constraint that tests whether the + actual value is less than the suppled argument + + + + + Returns a constraint that tests whether the + actual value is less than or equal to the suppled argument + + + + + Returns a constraint that tests whether the + actual value is less than or equal to the suppled argument + + + + + Returns a constraint that tests whether the actual + value is of the exact type supplied as an argument. + + + + + Returns a constraint that tests whether the actual + value is of the exact type supplied as an argument. + + + + + Returns a constraint that tests whether the actual value + is of the type supplied as an argument or a derived type. + + + + + Returns a constraint that tests whether the actual value + is of the type supplied as an argument or a derived type. + + + + + Returns a constraint that tests whether the actual value + is of the type supplied as an argument or a derived type. + + + + + Returns a constraint that tests whether the actual value + is of the type supplied as an argument or a derived type. + + + + + Returns a constraint that tests whether the actual value + is assignable from the type supplied as an argument. + + + + + Returns a constraint that tests whether the actual value + is assignable from the type supplied as an argument. + + + + + Returns a constraint that tests whether the actual value + is assignable from the type supplied as an argument. + + + + + Returns a constraint that tests whether the actual value + is assignable from the type supplied as an argument. + + + + + Returns a constraint that tests whether the actual value + is a collection containing the same elements as the + collection supplied as an argument. + + + + + Returns a constraint that tests whether the actual value + is a subset of the collection supplied as an argument. + + + + + Returns a new CollectionContainsConstraint checking for the + presence of a particular object in the collection. + + + + + Returns a new CollectionContainsConstraint checking for the + presence of a particular object in the collection. + + + + + Returns a new ContainsConstraint. This constraint + will, in turn, make use of the appropriate second-level + constraint, depending on the type of the actual argument. + This overload is only used if the item sought is a string, + since any other type implies that we are looking for a + collection member. + + + + + Returns a constraint that succeeds if the actual + value contains the substring supplied as an argument. + + + + + Returns a constraint that succeeds if the actual + value contains the substring supplied as an argument. + + + + + Returns a constraint that fails if the actual + value contains the substring supplied as an argument. + + + + + Returns a constraint that succeeds if the actual + value starts with the substring supplied as an argument. + + + + + Returns a constraint that succeeds if the actual + value starts with the substring supplied as an argument. + + + + + Returns a constraint that fails if the actual + value starts with the substring supplied as an argument. + + + + + Returns a constraint that succeeds if the actual + value ends with the substring supplied as an argument. + + + + + Returns a constraint that succeeds if the actual + value ends with the substring supplied as an argument. + + + + + Returns a constraint that fails if the actual + value ends with the substring supplied as an argument. + + + + + Returns a constraint that succeeds if the actual + value matches the Regex pattern supplied as an argument. + + + + + Returns a constraint that succeeds if the actual + value matches the Regex pattern supplied as an argument. + + + + + Returns a constraint that fails if the actual + value matches the pattern supplied as an argument. + + + + + Returns a constraint that tests whether the path provided + is the same as an expected path after canonicalization. + + + + + Returns a constraint that tests whether the path provided + is the same path or under an expected path after canonicalization. + + + + + Returns a constraint that tests whether the actual value falls + within a specified range. + + + + + Returns a ConstraintExpression that negates any + following constraint. + + + + + Returns a ConstraintExpression that negates any + following constraint. + + + + + Returns a ConstraintExpression, which will apply + the following constraint to all members of a collection, + succeeding if all of them succeed. + + + + + Returns a ConstraintExpression, which will apply + the following constraint to all members of a collection, + succeeding if at least one of them succeeds. + + + + + Returns a ConstraintExpression, which will apply + the following constraint to all members of a collection, + succeeding if all of them fail. + + + + + Returns a new ConstraintExpression, which will apply the following + constraint to the Length property of the object being tested. + + + + + Returns a new ConstraintExpression, which will apply the following + constraint to the Count property of the object being tested. + + + + + Returns a new ConstraintExpression, which will apply the following + constraint to the Message property of the object being tested. + + + + + Returns a new ConstraintExpression, which will apply the following + constraint to the InnerException property of the object being tested. + + + + + Returns a constraint that tests for null + + + + + Returns a constraint that tests for True + + + + + Returns a constraint that tests for False + + + + + Returns a constraint that tests for NaN + + + + + Returns a constraint that tests for empty + + + + + Returns a constraint that tests whether a collection + contains all unique items. + + + + + Returns a constraint that tests whether an object graph is serializable in binary format. + + + + + Returns a constraint that tests whether an object graph is serializable in xml format. + + + + + Returns a constraint that tests whether a collection is ordered + + + + + Applies a delay to the match so that a match can be evaluated in the future. + + + + + Creates a new DelayedConstraint + + The inner constraint two decorate + The time interval after which the match is performed + If the value of is less than 0 + + + + Creates a new DelayedConstraint + + The inner constraint two decorate + The time interval after which the match is performed + The time interval used for polling + If the value of is less than 0 + + + + Test whether the constraint is satisfied by a given value + + The value to be tested + True for if the base constraint fails, false if it succeeds + + + + Test whether the constraint is satisfied by a delegate + + The delegate whose value is to be tested + True for if the base constraint fails, false if it succeeds + + + + Test whether the constraint is satisfied by a given reference. + Overridden to wait for the specified delay period before + calling the base constraint with the dereferenced value. + + A reference to the value to be tested + True for success, false for failure + + + + Write the constraint description to a MessageWriter + + The writer on which the description is displayed + + + + Write the actual value for a failing constraint test to a MessageWriter. + + The writer on which the actual value is displayed + + + + Returns the string representation of the constraint. + + + + + NUnitComparer encapsulates NUnit's default behavior + in comparing two objects. + + + + + Compares two objects + + + + + + + + Returns the default NUnitComparer. + + + + + Delegate used to delay evaluation of the actual value + to be used in evaluating a constraint + + + + + NUnitEqualityComparer encapsulates NUnit's handling of + equality tests between objects. + + + + + If true, all string comparisons will ignore case + + + + + If true, arrays will be treated as collections, allowing + those of different dimensions to be compared + + + + + If non-zero, equality comparisons within the specified + tolerance will succeed. + + + + + Comparison object used in comparisons for some constraints. + + + + + Compares two objects for equality. + + + + + Helper method to compare two arrays + + + + + Method to compare two DirectoryInfo objects + + first directory to compare + second directory to compare + true if equivalent, false if not + + + + Returns the default NUnitEqualityComparer + + + + + Gets and sets a flag indicating whether case should + be ignored in determining equality. + + + + + Gets and sets a flag indicating that arrays should be + compared as collections, without regard to their shape. + + + + + Gets and sets an external comparer to be used to + test for equality. It is applied to members of + collections, in place of NUnit's own logic. + + + + + Gets and sets a tolerance used to compare objects of + certin types. + + + + + Gets the list of failure points for the last Match performed. + + + + + ComparisonAdapter class centralizes all comparisons of + values in NUnit, adapting to the use of any provided + IComparer, IComparer<T> or Comparison<T> + + + + + Returns a ComparisonAdapter that wraps an IComparer + + + + + Returns a ComparisonAdapter that wraps an IComparer<T> + + + + + Returns a ComparisonAdapter that wraps a Comparison<T> + + + + + Compares two objects + + + + + Gets the default ComparisonAdapter, which wraps an + NUnitComparer object. + + + + + Construct a ComparisonAdapter for an IComparer + + + + + Compares two objects + + + + + + + + Construct a default ComparisonAdapter + + + + + ComparisonAdapter<T> extends ComparisonAdapter and + allows use of an IComparer<T> or Comparison<T> + to actually perform the comparison. + + + + + Construct a ComparisonAdapter for an IComparer<T> + + + + + Compare a Type T to an object + + + + + Construct a ComparisonAdapter for a Comparison<T> + + + + + Compare a Type T to an object + + + + + The ConstraintOperator class is used internally by a + ConstraintBuilder to represent an operator that + modifies or combines constraints. + + Constraint operators use left and right precedence + values to determine whether the top operator on the + stack should be reduced before pushing a new operator. + + + + + The precedence value used when the operator + is about to be pushed to the stack. + + + + + The precedence value used when the operator + is on the top of the stack. + + + + + Reduce produces a constraint from the operator and + any arguments. It takes the arguments from the constraint + stack and pushes the resulting constraint on it. + + + + + + The syntax element preceding this operator + + + + + The syntax element folowing this operator + + + + + The precedence value used when the operator + is about to be pushed to the stack. + + + + + The precedence value used when the operator + is on the top of the stack. + + + + + PrefixOperator takes a single constraint and modifies + it's action in some way. + + + + + Reduce produces a constraint from the operator and + any arguments. It takes the arguments from the constraint + stack and pushes the resulting constraint on it. + + + + + + Returns the constraint created by applying this + prefix to another constraint. + + + + + + + Negates the test of the constraint it wraps. + + + + + Constructs a new NotOperator + + + + + Returns a NotConstraint applied to its argument. + + + + + Abstract base for operators that indicate how to + apply a constraint to items in a collection. + + + + + Constructs a CollectionOperator + + + + + Represents a constraint that succeeds if all the + members of a collection match a base constraint. + + + + + Returns a constraint that will apply the argument + to the members of a collection, succeeding if + they all succeed. + + + + + Represents a constraint that succeeds if any of the + members of a collection match a base constraint. + + + + + Returns a constraint that will apply the argument + to the members of a collection, succeeding if + any of them succeed. + + + + + Represents a constraint that succeeds if none of the + members of a collection match a base constraint. + + + + + Returns a constraint that will apply the argument + to the members of a collection, succeeding if + none of them succeed. + + + + + Represents a constraint that simply wraps the + constraint provided as an argument, without any + further functionality, but which modifes the + order of evaluation because of its precedence. + + + + + Constructor for the WithOperator + + + + + Returns a constraint that wraps its argument + + + + + Abstract base class for operators that are able to reduce to a + constraint whether or not another syntactic element follows. + + + + + Operator used to test for the presence of a named Property + on an object and optionally apply further tests to the + value of that property. + + + + + Constructs a PropOperator for a particular named property + + + + + Reduce produces a constraint from the operator and + any arguments. It takes the arguments from the constraint + stack and pushes the resulting constraint on it. + + + + + + Gets the name of the property to which the operator applies + + + + + Operator that tests for the presence of a particular attribute + on a type and optionally applies further tests to the attribute. + + + + + Construct an AttributeOperator for a particular Type + + The Type of attribute tested + + + + Reduce produces a constraint from the operator and + any arguments. It takes the arguments from the constraint + stack and pushes the resulting constraint on it. + + + + + Operator that tests that an exception is thrown and + optionally applies further tests to the exception. + + + + + Construct a ThrowsOperator + + + + + Reduce produces a constraint from the operator and + any arguments. It takes the arguments from the constraint + stack and pushes the resulting constraint on it. + + + + + Abstract base class for all binary operators + + + + + Reduce produces a constraint from the operator and + any arguments. It takes the arguments from the constraint + stack and pushes the resulting constraint on it. + + + + + + Abstract method that produces a constraint by applying + the operator to its left and right constraint arguments. + + + + + Gets the left precedence of the operator + + + + + Gets the right precedence of the operator + + + + + Operator that requires both it's arguments to succeed + + + + + Construct an AndOperator + + + + + Apply the operator to produce an AndConstraint + + + + + Operator that requires at least one of it's arguments to succeed + + + + + Construct an OrOperator + + + + + Apply the operator to produce an OrConstraint + + + + + BinarySerializableConstraint tests whether + an object is serializable in binary format. + + + + + Test whether the constraint is satisfied by a given value + + The value to be tested + True for success, false for failure + + + + Write the constraint description to a MessageWriter + + The writer on which the description is displayed + + + + Write the actual value for a failing constraint test to a + MessageWriter. The default implementation simply writes + the raw value of actual, leaving it to the writer to + perform any formatting. + + The writer on which the actual value is displayed + + + + Returns the string representation + + + + + BinarySerializableConstraint tests whether + an object is serializable in binary format. + + + + + Test whether the constraint is satisfied by a given value + + The value to be tested + True for success, false for failure + + + + Write the constraint description to a MessageWriter + + The writer on which the description is displayed + + + + Write the actual value for a failing constraint test to a + MessageWriter. The default implementation simply writes + the raw value of actual, leaving it to the writer to + perform any formatting. + + The writer on which the actual value is displayed + + + + Returns the string representation of this constraint + + + + + ResolvableConstraintExpression is used to represent a compound + constraint being constructed at a point where the last operator + may either terminate the expression or may have additional + qualifying constraints added to it. + + It is used, for example, for a Property element or for + an Exception element, either of which may be optionally + followed by constraints that apply to the property or + exception. + + + + + Create a new instance of ResolvableConstraintExpression + + + + + Create a new instance of ResolvableConstraintExpression, + passing in a pre-populated ConstraintBuilder. + + + + + Resolve the current expression to a Constraint + + + + + Appends an And Operator to the expression + + + + + Appends an Or operator to the expression. + + + + + EqualityAdapter class handles all equality comparisons + that use an IEqualityComparer, IEqualityComparer<T> + or a ComparisonAdapter. + + + + + Compares two objects, returning true if they are equal + + + + + Returns an EqualityAdapter that wraps an IComparer. + + + + + Returns an EqualityAdapter that wraps an IEqualityComparer. + + + + + Returns an EqualityAdapter that wraps an IEqualityComparer<T>. + + + + + Returns an EqualityAdapter that wraps an IComparer<T>. + + + + + Returns an EqualityAdapter that wraps a Comparison<T>. + + + + + AttributeExistsConstraint tests for the presence of a + specified attribute on a Type. + + + + + Constructs an AttributeExistsConstraint for a specific attribute Type + + + + + + Tests whether the object provides the expected attribute. + + A Type, MethodInfo, or other ICustomAttributeProvider + True if the expected attribute is present, otherwise false + + + + Writes the description of the constraint to the specified writer + + + + + AttributeConstraint tests that a specified attribute is present + on a Type or other provider and that the value of the attribute + satisfies some other constraint. + + + + + Constructs an AttributeConstraint for a specified attriute + Type and base constraint. + + + + + + + Determines whether the Type or other provider has the + expected attribute and if its value matches the + additional constraint specified. + + + + + Writes a description of the attribute to the specified writer. + + + + + Writes the actual value supplied to the specified writer. + + + + + Returns a string representation of the constraint. + + + + Helper routines for working with floating point numbers + + + The floating point comparison code is based on this excellent article: + http://www.cygnus-software.com/papers/comparingfloats/comparingfloats.htm + + + "ULP" means Unit in the Last Place and in the context of this library refers to + the distance between two adjacent floating point numbers. IEEE floating point + numbers can only represent a finite subset of natural numbers, with greater + accuracy for smaller numbers and lower accuracy for very large numbers. + + + If a comparison is allowed "2 ulps" of deviation, that means the values are + allowed to deviate by up to 2 adjacent floating point values, which might be + as low as 0.0000001 for small numbers or as high as 10.0 for large numbers. + + + + + Compares two floating point values for equality + First floating point value to be compared + Second floating point value t be compared + + Maximum number of representable floating point values that are allowed to + be between the left and the right floating point values + + True if both numbers are equal or close to being equal + + + Floating point values can only represent a finite subset of natural numbers. + For example, the values 2.00000000 and 2.00000024 can be stored in a float, + but nothing inbetween them. + + + This comparison will count how many possible floating point values are between + the left and the right number. If the number of possible values between both + numbers is less than or equal to maxUlps, then the numbers are considered as + being equal. + + + Implementation partially follows the code outlined here: + http://www.anttirt.net/2007/08/19/proper-floating-point-comparisons/ + + + + + Compares two double precision floating point values for equality + First double precision floating point value to be compared + Second double precision floating point value t be compared + + Maximum number of representable double precision floating point values that are + allowed to be between the left and the right double precision floating point values + + True if both numbers are equal or close to being equal + + + Double precision floating point values can only represent a limited series of + natural numbers. For example, the values 2.0000000000000000 and 2.0000000000000004 + can be stored in a double, but nothing inbetween them. + + + This comparison will count how many possible double precision floating point + values are between the left and the right number. If the number of possible + values between both numbers is less than or equal to maxUlps, then the numbers + are considered as being equal. + + + Implementation partially follows the code outlined here: + http://www.anttirt.net/2007/08/19/proper-floating-point-comparisons/ + + + + + + Reinterprets the memory contents of a floating point value as an integer value + + + Floating point value whose memory contents to reinterpret + + + The memory contents of the floating point value interpreted as an integer + + + + + Reinterprets the memory contents of a double precision floating point + value as an integer value + + + Double precision floating point value whose memory contents to reinterpret + + + The memory contents of the double precision floating point value + interpreted as an integer + + + + + Reinterprets the memory contents of an integer as a floating point value + + Integer value whose memory contents to reinterpret + + The memory contents of the integer value interpreted as a floating point value + + + + + Reinterprets the memory contents of an integer value as a double precision + floating point value + + Integer whose memory contents to reinterpret + + The memory contents of the integer interpreted as a double precision + floating point value + + + + Union of a floating point variable and an integer + + + The union's value as a floating point variable + + + The union's value as an integer + + + The union's value as an unsigned integer + + + Union of a double precision floating point variable and a long + + + The union's value as a double precision floating point variable + + + The union's value as a long + + + The union's value as an unsigned long + + + + Predicate constraint wraps a Predicate in a constraint, + returning success if the predicate is true. + + + + + Construct a PredicateConstraint from a predicate + + + + + Determines whether the predicate succeeds when applied + to the actual value. + + + + + Writes the description to a MessageWriter + + + + + The TestCaseData class represents a set of arguments + and other parameter info to be used for a parameterized + test case. It provides a number of instance modifiers + for use in initializing the test case. + + Note: Instance modifiers are getters that return + the same instance after modifying it's state. + + + + + The ITestCaseData interface is implemented by a class + that is able to return complete testcases for use by + a parameterized test method. + + NOTE: This interface is used in both the framework + and the core, even though that results in two different + types. However, sharing the source code guarantees that + the various implementations will be compatible and that + the core is able to reflect successfully over the + framework implementations of ITestCaseData. + + + + + Gets the argument list to be provided to the test + + + + + Gets the expected result + + + + + Gets the expected exception Type + + + + + Gets the FullName of the expected exception + + + + + Gets the name to be used for the test + + + + + Gets the description of the test + + + + + Gets a value indicating whether this is ignored. + + true if ignored; otherwise, false. + + + + Gets the ignore reason. + + The ignore reason. + + + + The argument list to be provided to the test + + + + + The expected result to be returned + + + + + The expected exception Type + + + + + The FullName of the expected exception + + + + + The name to be used for the test + + + + + The description of the test + + + + + A dictionary of properties, used to add information + to tests without requiring the class to change. + + + + + If true, indicates that the test case is to be ignored + + + + + The reason for ignoring a test case + + + + + Initializes a new instance of the class. + + The arguments. + + + + Initializes a new instance of the class. + + The argument. + + + + Initializes a new instance of the class. + + The first argument. + The second argument. + + + + Initializes a new instance of the class. + + The first argument. + The second argument. + The third argument. + + + + Sets the expected result for the test + + The expected result + A modified TestCaseData + + + + Sets the expected exception type for the test + + Type of the expected exception. + The modified TestCaseData instance + + + + Sets the expected exception type for the test + + FullName of the expected exception. + The modified TestCaseData instance + + + + Sets the name of the test case + + The modified TestCaseData instance + + + + Sets the description for the test case + being constructed. + + The description. + The modified TestCaseData instance. + + + + Applies a category to the test + + + + + + + Applies a named property to the test + + + + + + + + Applies a named property to the test + + + + + + + + Applies a named property to the test + + + + + + + + Ignores this TestCase. + + + + + + Ignores this TestCase, specifying the reason. + + The reason. + + + + + Gets the argument list to be provided to the test + + + + + Gets the expected result + + + + + Gets the expected exception Type + + + + + Gets the FullName of the expected exception + + + + + Gets the name to be used for the test + + + + + Gets the description of the test + + + + + Gets a value indicating whether this is ignored. + + true if ignored; otherwise, false. + + + + Gets the ignore reason. + + The ignore reason. + + + + Gets a list of categories associated with this test. + + + + + Gets the property dictionary for this test + + + + + FactoryAttribute indicates the source to be used to + provide test cases for a test method. + + + + + Construct with the name of the factory - for use with languages + that don't support params arrays. + + An array of the names of the factories that will provide data + + + + Construct with a Type and name - for use with languages + that don't support params arrays. + + The Type that will provide data + The name of the method, property or field that will provide data + + + + The name of a the method, property or fiend to be used as a source + + + + + A Type to be used as a source + + + + + Helper class with properties and methods that supply + a number of constraints used in Asserts. + + + + + Returns a new PropertyConstraintExpression, which will either + test for the existence of the named property on the object + being tested or apply any following constraint to that property. + + + + + Returns a new AttributeConstraint checking for the + presence of a particular attribute on an object. + + + + + Returns a new AttributeConstraint checking for the + presence of a particular attribute on an object. + + + + + Returns a new CollectionContainsConstraint checking for the + presence of a particular object in the collection. + + + + + Returns a ConstraintExpression that negates any + following constraint. + + + + + Returns a ConstraintExpression, which will apply + the following constraint to all members of a collection, + succeeding if all of them succeed. + + + + + Returns a ConstraintExpression, which will apply + the following constraint to all members of a collection, + succeeding if at least one of them succeeds. + + + + + Returns a ConstraintExpression, which will apply + the following constraint to all members of a collection, + succeeding if all of them fail. + + + + + Returns a new ConstraintExpression, which will apply the following + constraint to the Length property of the object being tested. + + + + + Returns a new ConstraintExpression, which will apply the following + constraint to the Count property of the object being tested. + + + + + Returns a new ConstraintExpression, which will apply the following + constraint to the Message property of the object being tested. + + + + + Returns a new ConstraintExpression, which will apply the following + constraint to the InnerException property of the object being tested. + + + + + 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. + + + + + + + Enumeration indicating how the expected message parameter is to be used + + + + Expect an exact match + + + Expect a message containing the parameter string + + + Match the regular expression provided as a parameter + + + Expect a message that starts with the parameter string + + + + ExpectedExceptionAttribute + + + + + + Constructor for a non-specific exception + + + + + Constructor for a given type of exception + + The type of the expected exception + + + + Constructor for a given exception name + + The full name of the expected exception + + + + Gets or sets the expected exception type + + + + + Gets or sets the full Type name of the expected exception + + + + + Gets or sets the expected message text + + + + + Gets or sets the user message displayed in case of failure + + + + + Gets or sets the type of match to be performed on the expected message + + + + + Gets the name of a method to be used as an exception handler + + + + + 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 the list of arguments to a test case + + + + + Gets or sets the expected result. + + The result. + + + + Gets or sets the expected exception. + + The expected exception. + + + + Gets or sets the name the expected exception. + + The expected name of the exception. + + + + Gets or sets the expected message of the expected exception + + The expected message of the exception. + + + + Gets or sets the type of match to be performed on the expected message + + + + + Gets or sets the description. + + The description. + + + + Gets or sets the name of the test. + + The name of the test. + + + + Gets or sets the ignored status of the test + + + + + Gets or sets the ignored status of the test + + + + + Gets the ignore reason. + + The ignore reason. + + + + Thrown when an assertion failed. + + + + + + + The error message that explains + the reason for the exception + The exception that caused the + current exception + + + + Serialization Constructor + + + + + Thrown when a test executes inconclusively. + + + + + The error message that explains + the reason for the exception + + + The error message that explains + the reason for the exception + The exception that caused the + current exception + + + + Serialization Constructor + + + + + Delegate used by tests that execute code and + capture any thrown exception. + + + + + The Assert class contains a collection of static methods that + implement the most common assertions used in NUnit. + + + + + We don't actually want any instances of this object, but some people + like to inherit from it to add other static methods. Hence, the + protected constructor disallows any instances of this object. + + + + + The Equals method throws an AssertionException. This is done + to make sure there is no mistake by calling this function. + + + + + + + override the default ReferenceEquals to throw an AssertionException. This + implementation makes sure there is no mistake in calling this function + as part of Assert. + + + + + + + Helper for Assert.AreEqual(double expected, double actual, ...) + allowing code generation to work consistently. + + The expected value + The actual value + The maximum acceptable difference between the + the expected and the actual + The message to display in case of failure + Array of objects to be used in formatting the message + + + + Throws a with the message and arguments + that are passed in. This allows a test to be cut short, with a result + of success returned to NUnit. + + The message to initialize the with. + Arguments to be used in formatting the message + + + + Throws a with the message and arguments + that are passed in. This allows a test to be cut short, with a result + of success returned to NUnit. + + The message to initialize the with. + + + + Throws a with the message and arguments + that are passed in. This allows a test to be cut short, with a result + of success returned to NUnit. + + + + + Throws an with the message and arguments + that are passed in. This is used by the other Assert functions. + + The message to initialize the with. + Arguments to be used in formatting the message + + + + Throws an with the message that is + passed in. This is used by the other Assert functions. + + The message to initialize the with. + + + + Throws an . + This is used by the other Assert functions. + + + + + Throws an with the message and arguments + that are passed in. This causes the test to be reported as ignored. + + The message to initialize the with. + Arguments to be used in formatting the message + + + + Throws an with the message that is + passed in. This causes the test to be reported as ignored. + + The message to initialize the with. + + + + Throws an . + This causes the test to be reported as ignored. + + + + + Throws an with the message and arguments + that are passed in. This causes the test to be reported as inconclusive. + + The message to initialize the with. + Arguments to be used in formatting the message + + + + Throws an with the message that is + passed in. This causes the test to be reported as inconclusive. + + The message to initialize the with. + + + + Throws an . + This causes the test to be reported as Inconclusive. + + + + + Apply a constraint to an actual value, succeeding if the constraint + is satisfied and throwing an assertion exception on failure. + + A Constraint to be applied + The actual value to test + + + + Apply a constraint to an actual value, succeeding if the constraint + is satisfied and throwing an assertion exception on failure. + + A Constraint to be applied + The actual value to test + The message that will be displayed on failure + + + + Apply a constraint to an actual value, succeeding if the constraint + is satisfied and throwing an assertion exception on failure. + + A Constraint expression to be applied + The actual value to test + The message that will be displayed on failure + Arguments to be used in formatting the message + + + + Apply a constraint to an actual value, succeeding if the constraint + is satisfied and throwing an assertion exception on failure. + + A Constraint expression to be applied + An ActualValueDelegate returning the value to be tested + + + + Apply a constraint to an actual value, succeeding if the constraint + is satisfied and throwing an assertion exception on failure. + + A Constraint expression to be applied + An ActualValueDelegate returning the value to be tested + The message that will be displayed on failure + + + + Apply a constraint to an actual value, succeeding if the constraint + is satisfied and throwing an assertion exception on failure. + + An ActualValueDelegate returning the value to be tested + A Constraint expression to be applied + The message that will be displayed on failure + Arguments to be used in formatting the message + + + + Apply a constraint to a referenced value, succeeding if the constraint + is satisfied and throwing an assertion exception on failure. + + A Constraint to be applied + The actual value to test + + + + Apply a constraint to a referenced value, succeeding if the constraint + is satisfied and throwing an assertion exception on failure. + + A Constraint to be applied + The actual value to test + The message that will be displayed on failure + + + + Apply a constraint to a referenced value, succeeding if the constraint + is satisfied and throwing an assertion exception on failure. + + A Constraint to be applied + The actual value to test + The message that will be displayed on failure + Arguments to be used in formatting the message + + + + Asserts that a condition is true. If the condition is false the method throws + an . + + The evaluated condition + The message to display if the condition is false + Arguments to be used in formatting the message + + + + Asserts that a condition is true. If the condition is false the method throws + an . + + The evaluated condition + The message to display if the condition is false + + + + Asserts that a condition is true. If the condition is false the method throws + an . + + The evaluated condition + + + + Asserts that the code represented by a delegate throws an exception + that satisfies the constraint provided. + + A TestDelegate to be executed + A ThrowsConstraint used in the test + + + + Verifies that a delegate throws a particular exception when called. + + A constraint to be satisfied by the exception + A TestSnippet delegate + The message that will be displayed on failure + Arguments to be used in formatting the message + + + + Verifies that a delegate throws a particular exception when called. + + A constraint to be satisfied by the exception + A TestSnippet delegate + The message that will be displayed on failure + + + + Verifies that a delegate throws a particular exception when called. + + A constraint to be satisfied by the exception + A TestSnippet delegate + + + + Verifies that a delegate throws a particular exception when called. + + The exception Type expected + A TestSnippet delegate + The message that will be displayed on failure + Arguments to be used in formatting the message + + + + Verifies that a delegate throws a particular exception when called. + + The exception Type expected + A TestSnippet delegate + The message that will be displayed on failure + + + + Verifies that a delegate throws a particular exception when called. + + The exception Type expected + A TestSnippet delegate + + + + Verifies that a delegate throws a particular exception when called. + + Type of the expected exception + A TestSnippet delegate + The message that will be displayed on failure + Arguments to be used in formatting the message + + + + Verifies that a delegate throws a particular exception when called. + + Type of the expected exception + A TestSnippet delegate + The message that will be displayed on failure + + + + Verifies that a delegate throws a particular exception when called. + + Type of the expected exception + A TestSnippet delegate + + + + Verifies that a delegate throws an exception when called + and returns it. + + A TestDelegate + The message that will be displayed on failure + Arguments to be used in formatting the message + + + + Verifies that a delegate throws an exception when called + and returns it. + + A TestDelegate + The message that will be displayed on failure + + + + Verifies that a delegate throws an exception when called + and returns it. + + A TestDelegate + + + + Verifies that a delegate throws an exception of a certain Type + or one derived from it when called and returns it. + + The expected Exception Type + A TestDelegate + The message that will be displayed on failure + Arguments to be used in formatting the message + + + + Verifies that a delegate throws an exception of a certain Type + or one derived from it when called and returns it. + + The expected Exception Type + A TestDelegate + The message that will be displayed on failure + + + + Verifies that a delegate throws an exception of a certain Type + or one derived from it when called and returns it. + + The expected Exception Type + A TestDelegate + + + + Verifies that a delegate throws an exception of a certain Type + or one derived from it when called and returns it. + + The expected Exception Type + A TestDelegate + The message that will be displayed on failure + Arguments to be used in formatting the message + + + + Verifies that a delegate throws an exception of a certain Type + or one derived from it when called and returns it. + + The expected Exception Type + A TestDelegate + The message that will be displayed on failure + + + + Verifies that a delegate throws an exception of a certain Type + or one derived from it when called and returns it. + + The expected Exception Type + A TestDelegate + + + + Verifies that a delegate does not throw an exception + + A TestSnippet delegate + The message that will be displayed on failure + Arguments to be used in formatting the message + + + + Verifies that a delegate does not throw an exception. + + A TestSnippet delegate + The message that will be displayed on failure + + + + Verifies that a delegate does not throw an exception. + + A TestSnippet delegate + + + + Asserts that a condition is true. If the condition is false the method throws + an . + + The evaluated condition + The message to display in case of failure + Array of objects to be used in formatting the message + + + + Asserts that a condition is true. If the condition is false the method throws + an . + + The evaluated condition + The message to display in case of failure + + + + Asserts that a condition is true. If the condition is false the method throws + an . + + The evaluated condition + + + + Asserts that a condition is true. If the condition is false the method throws + an . + + The evaluated condition + The message to display in case of failure + Array of objects to be used in formatting the message + + + + Asserts that a condition is true. If the condition is false the method throws + an . + + The evaluated condition + The message to display in case of failure + + + + Asserts that a condition is true. If the condition is false the method throws + an . + + The evaluated condition + + + + Asserts that a condition is false. If the condition is true the method throws + an . + + The evaluated condition + The message to display in case of failure + Array of objects to be used in formatting the message + + + + Asserts that a condition is false. If the condition is true the method throws + an . + + The evaluated condition + The message to display in case of failure + + + + Asserts that a condition is false. If the condition is true the method throws + an . + + The evaluated condition + + + + Asserts that a condition is false. If the condition is true the method throws + an . + + The evaluated condition + The message to display in case of failure + Array of objects to be used in formatting the message + + + + Asserts that a condition is false. If the condition is true the method throws + an . + + The evaluated condition + The message to display in case of failure + + + + Asserts that a condition is false. If the condition is true the method throws + an . + + The evaluated condition + + + + Verifies that the object that is passed in is not equal to null + If the object is null then an + is thrown. + + The object that is to be tested + The message to display in case of failure + Array of objects to be used in formatting the message + + + + Verifies that the object that is passed in is not equal to null + If the object is null then an + is thrown. + + The object that is to be tested + The message to display in case of failure + + + + Verifies that the object that is passed in is not equal to null + If the object is null then an + is thrown. + + The object that is to be tested + + + + Verifies that the object that is passed in is not equal to null + If the object is null then an + is thrown. + + The object that is to be tested + The message to display in case of failure + Array of objects to be used in formatting the message + + + + Verifies that the object that is passed in is not equal to null + If the object is null then an + is thrown. + + The object that is to be tested + The message to display in case of failure + + + + Verifies that the object that is passed in is not equal to null + If the object is null then an + is thrown. + + The object that is to be tested + + + + Verifies that the object that is passed in is equal to null + If the object is not null then an + is thrown. + + The object that is to be tested + The message to display in case of failure + Array of objects to be used in formatting the message + + + + Verifies that the object that is passed in is equal to null + If the object is not null then an + is thrown. + + The object that is to be tested + The message to display in case of failure + + + + Verifies that the object that is passed in is equal to null + If the object is not null then an + is thrown. + + The object that is to be tested + + + + Verifies that the object that is passed in is equal to null + If the object is not null then an + is thrown. + + The object that is to be tested + The message to display in case of failure + Array of objects to be used in formatting the message + + + + Verifies that the object that is passed in is equal to null + If the object is not null then an + is thrown. + + The object that is to be tested + The message to display in case of failure + + + + Verifies that the object that is passed in is equal to null + If the object is not null then an + is thrown. + + The object that is to be tested + + + + Verifies that the double that is passed in is an NaN value. + If the object is not NaN then an + is thrown. + + The value that is to be tested + The message to display in case of failure + Array of objects to be used in formatting the message + + + + Verifies that the double that is passed in is an NaN value. + If the object is not NaN then an + is thrown. + + The value that is to be tested + The message to display in case of failure + + + + Verifies that the double that is passed in is an NaN value. + If the object is not NaN then an + is thrown. + + The value that is to be tested + + + + Verifies that the double that is passed in is an NaN value. + If the object is not NaN then an + is thrown. + + The value that is to be tested + The message to display in case of failure + Array of objects to be used in formatting the message + + + + Verifies that the double that is passed in is an NaN value. + If the object is not NaN then an + is thrown. + + The value that is to be tested + The message to display in case of failure + + + + Verifies that the double that is passed in is an NaN value. + If the object is not NaN then an + is thrown. + + The value that is to be tested + + + + Assert that a string is empty - that is equal to string.Empty + + The string to be tested + The message to display in case of failure + Array of objects to be used in formatting the message + + + + Assert that a string is empty - that is equal to string.Empty + + The string to be tested + The message to display in case of failure + + + + Assert that a string is empty - that is equal to string.Empty + + The string to be tested + + + + Assert that an array, list or other collection is empty + + An array, list or other collection implementing ICollection + The message to display in case of failure + Array of objects to be used in formatting the message + + + + Assert that an array, list or other collection is empty + + An array, list or other collection implementing ICollection + The message to display in case of failure + + + + Assert that an array, list or other collection is empty + + An array, list or other collection implementing ICollection + + + + Assert that a string is not empty - that is not equal to string.Empty + + The string to be tested + The message to display in case of failure + Array of objects to be used in formatting the message + + + + Assert that a string is not empty - that is not equal to string.Empty + + The string to be tested + The message to display in case of failure + + + + Assert that a string is not empty - that is not equal to string.Empty + + The string to be tested + + + + Assert that an array, list or other collection is not empty + + An array, list or other collection implementing ICollection + The message to display in case of failure + Array of objects to be used in formatting the message + + + + Assert that an array, list or other collection is not empty + + An array, list or other collection implementing ICollection + The message to display in case of failure + + + + Assert that an array, list or other collection is not empty + + An array, list or other collection implementing ICollection + + + + Assert that a string is either null or equal to string.Empty + + The string to be tested + The message to display in case of failure + Array of objects to be used in formatting the message + + + + Assert that a string is either null or equal to string.Empty + + The string to be tested + The message to display in case of failure + + + + Assert that a string is either null or equal to string.Empty + + The string to be tested + + + + Assert that a string is not null or empty + + The string to be tested + The message to display in case of failure + Array of objects to be used in formatting the message + + + + Assert that a string is not null or empty + + The string to be tested + The message to display in case of failure + + + + Assert that a string is not null or empty + + The string to be tested + + + + Asserts that an object may be assigned a value of a given Type. + + The expected Type. + The object under examination + The message to display in case of failure + Array of objects to be used in formatting the message + + + + Asserts that an object may be assigned a value of a given Type. + + The expected Type. + The object under examination + The message to display in case of failure + + + + Asserts that an object may be assigned a value of a given Type. + + The expected Type. + The object under examination + + + + Asserts that an object may be assigned a value of a given Type. + + The expected Type. + The object under examination + The message to display in case of failure + Array of objects to be used in formatting the message + + + + Asserts that an object may be assigned a value of a given Type. + + The expected Type. + The object under examination + The message to display in case of failure + + + + Asserts that an object may be assigned a value of a given Type. + + The expected Type. + The object under examination + + + + Asserts that an object may not be assigned a value of a given Type. + + The expected Type. + The object under examination + The message to display in case of failure + Array of objects to be used in formatting the message + + + + Asserts that an object may not be assigned a value of a given Type. + + The expected Type. + The object under examination + The message to display in case of failure + + + + Asserts that an object may not be assigned a value of a given Type. + + The expected Type. + The object under examination + + + + Asserts that an object may not be assigned a value of a given Type. + + The expected Type. + The object under examination + The message to display in case of failure + Array of objects to be used in formatting the message + + + + Asserts that an object may not be assigned a value of a given Type. + + The expected Type. + The object under examination + The message to display in case of failure + + + + Asserts that an object may not be assigned a value of a given Type. + + The expected Type. + The object under examination + + + + Asserts that an object is an instance of a given type. + + The expected Type + The object being examined + The message to display in case of failure + Array of objects to be used in formatting the message + + + + Asserts that an object is an instance of a given type. + + The expected Type + The object being examined + The message to display in case of failure + + + + Asserts that an object is an instance of a given type. + + The expected Type + The object being examined + + + + Asserts that an object is an instance of a given type. + + The expected Type + The object being examined + The message to display in case of failure + Array of objects to be used in formatting the message + + + + Asserts that an object is an instance of a given type. + + The expected Type + The object being examined + The message to display in case of failure + + + + Asserts that an object is an instance of a given type. + + The expected Type + The object being examined + + + + Asserts that an object is an instance of a given type. + + The expected Type + The object being examined + The message to display in case of failure + Array of objects to be used in formatting the message + + + + Asserts that an object is an instance of a given type. + + The expected Type + The object being examined + The message to display in case of failure + + + + Asserts that an object is an instance of a given type. + + The expected Type + The object being examined + + + + Asserts that an object is not an instance of a given type. + + The expected Type + The object being examined + The message to display in case of failure + Array of objects to be used in formatting the message + + + + Asserts that an object is not an instance of a given type. + + The expected Type + The object being examined + The message to display in case of failure + + + + Asserts that an object is not an instance of a given type. + + The expected Type + The object being examined + + + + Asserts that an object is not an instance of a given type. + + The expected Type + The object being examined + The message to display in case of failure + Array of objects to be used in formatting the message + + + + Asserts that an object is not an instance of a given type. + + The expected Type + The object being examined + The message to display in case of failure + + + + Asserts that an object is not an instance of a given type. + + The expected Type + The object being examined + + + + Asserts that an object is not an instance of a given type. + + The expected Type + The object being examined + The message to display in case of failure + Array of objects to be used in formatting the message + + + + Asserts that an object is not an instance of a given type. + + The expected Type + The object being examined + The message to display in case of failure + + + + Asserts that an object is not an instance of a given type. + + The expected Type + The object being examined + + + + Verifies that two values are equal. If they are not, then an + is thrown. + + The expected value + The actual value + The message to display in case of failure + Array of objects to be used in formatting the message + + + + Verifies that two values are equal. If they are not, then an + is thrown. + + The expected value + The actual value + The message to display in case of failure + + + + Verifies that two values are equal. If they are not, then an + is thrown. + + The expected value + The actual value + + + + Verifies that two values are equal. If they are not, then an + is thrown. + + The expected value + The actual value + The message to display in case of failure + Array of objects to be used in formatting the message + + + + Verifies that two values are equal. If they are not, then an + is thrown. + + The expected value + The actual value + The message to display in case of failure + + + + Verifies that two values are equal. If they are not, then an + is thrown. + + The expected value + The actual value + + + + Verifies that two values are equal. If they are not, then an + is thrown. + + The expected value + The actual value + The message to display in case of failure + Array of objects to be used in formatting the message + + + + Verifies that two values are equal. If they are not, then an + is thrown. + + The expected value + The actual value + The message to display in case of failure + + + + Verifies that two values are equal. If they are not, then an + is thrown. + + The expected value + The actual value + + + + Verifies that two values are equal. If they are not, then an + is thrown. + + The expected value + The actual value + The message to display in case of failure + Array of objects to be used in formatting the message + + + + Verifies that two values are equal. If they are not, then an + is thrown. + + The expected value + The actual value + The message to display in case of failure + + + + Verifies that two values are equal. If they are not, then an + is thrown. + + The expected value + The actual value + + + + Verifies that two values are equal. If they are not, then an + is thrown. + + The expected value + The actual value + The message to display in case of failure + Array of objects to be used in formatting the message + + + + Verifies that two values are equal. If they are not, then an + is thrown. + + The expected value + The actual value + The message to display in case of failure + + + + Verifies that two values are equal. If they are not, then an + is thrown. + + The expected value + The actual value + + + + Verifies that two doubles are equal considering a delta. If the + expected value is infinity then the delta value is ignored. If + they are not equal then an is + thrown. + + The expected value + The actual value + The maximum acceptable difference between the + the expected and the actual + The message to display in case of failure + Array of objects to be used in formatting the message + + + + Verifies that two doubles are equal considering a delta. If the + expected value is infinity then the delta value is ignored. If + they are not equal then an is + thrown. + + The expected value + The actual value + The maximum acceptable difference between the + the expected and the actual + The message to display in case of failure + + + + Verifies that two doubles are equal considering a delta. If the + expected value is infinity then the delta value is ignored. If + they are not equal then an is + thrown. + + The expected value + The actual value + The maximum acceptable difference between the + the expected and the actual + + + + Verifies that two doubles are equal considering a delta. If the + expected value is infinity then the delta value is ignored. If + they are not equal then an is + thrown. + + The expected value + The actual value + The maximum acceptable difference between the + the expected and the actual + The message to display in case of failure + Array of objects to be used in formatting the message + + + + Verifies that two doubles are equal considering a delta. If the + expected value is infinity then the delta value is ignored. If + they are not equal then an is + thrown. + + The expected value + The actual value + The maximum acceptable difference between the + the expected and the actual + The message to display in case of failure + + + + Verifies that two doubles are equal considering a delta. If the + expected value is infinity then the delta value is ignored. If + they are not equal then an is + thrown. + + The expected value + The actual value + The maximum acceptable difference between the + the expected and the actual + + + + Verifies that two objects are equal. Two objects are considered + equal if both are null, or if both have the same value. NUnit + has special semantics for some object types. + If they are not equal an is thrown. + + The value that is expected + The actual value + The message to display in case of failure + Array of objects to be used in formatting the message + + + + Verifies that two objects are equal. Two objects are considered + equal if both are null, or if both have the same value. NUnit + has special semantics for some object types. + If they are not equal an is thrown. + + The value that is expected + The actual value + The message to display in case of failure + + + + Verifies that two objects are equal. Two objects are considered + equal if both are null, or if both have the same value. NUnit + has special semantics for some object types. + If they are not equal an is thrown. + + The value that is expected + The actual value + + + + Verifies that two values are not equal. If they are equal, then an + is thrown. + + The expected value + The actual value + The message to display in case of failure + Array of objects to be used in formatting the message + + + + Verifies that two values are not equal. If they are equal, then an + is thrown. + + The expected value + The actual value + The message to display in case of failure + + + + Verifies that two values are not equal. If they are equal, then an + is thrown. + + The expected value + The actual value + + + + Verifies that two values are not equal. If they are equal, then an + is thrown. + + The expected value + The actual value + The message to display in case of failure + Array of objects to be used in formatting the message + + + + Verifies that two values are not equal. If they are equal, then an + is thrown. + + The expected value + The actual value + The message to display in case of failure + + + + Verifies that two values are not equal. If they are equal, then an + is thrown. + + The expected value + The actual value + + + + Verifies that two values are not equal. If they are equal, then an + is thrown. + + The expected value + The actual value + The message to display in case of failure + Array of objects to be used in formatting the message + + + + Verifies that two values are not equal. If they are equal, then an + is thrown. + + The expected value + The actual value + The message to display in case of failure + + + + Verifies that two values are not equal. If they are equal, then an + is thrown. + + The expected value + The actual value + + + + Verifies that two values are not equal. If they are equal, then an + is thrown. + + The expected value + The actual value + The message to display in case of failure + Array of objects to be used in formatting the message + + + + Verifies that two values are not equal. If they are equal, then an + is thrown. + + The expected value + The actual value + The message to display in case of failure + + + + Verifies that two values are not equal. If they are equal, then an + is thrown. + + The expected value + The actual value + + + + Verifies that two values are not equal. If they are equal, then an + is thrown. + + The expected value + The actual value + The message to display in case of failure + Array of objects to be used in formatting the message + + + + Verifies that two values are not equal. If they are equal, then an + is thrown. + + The expected value + The actual value + The message to display in case of failure + + + + Verifies that two values are not equal. If they are equal, then an + is thrown. + + The expected value + The actual value + + + + Verifies that two values are not equal. If they are equal, then an + is thrown. + + The expected value + The actual value + The message to display in case of failure + Array of objects to be used in formatting the message + + + + Verifies that two values are not equal. If they are equal, then an + is thrown. + + The expected value + The actual value + The message to display in case of failure + + + + Verifies that two values are not equal. If they are equal, then an + is thrown. + + The expected value + The actual value + + + + Verifies that two values are not equal. If they are equal, then an + is thrown. + + The expected value + The actual value + The message to display in case of failure + Array of objects to be used in formatting the message + + + + Verifies that two values are not equal. If they are equal, then an + is thrown. + + The expected value + The actual value + The message to display in case of failure + + + + Verifies that two values are not equal. If they are equal, then an + is thrown. + + The expected value + The actual value + + + + Verifies that two objects are not equal. Two objects are considered + equal if both are null, or if both have the same value. NUnit + has special semantics for some object types. + If they are equal an is thrown. + + The value that is expected + The actual value + The message to display in case of failure + Array of objects to be used in formatting the message + + + + Verifies that two objects are not equal. Two objects are considered + equal if both are null, or if both have the same value. NUnit + has special semantics for some object types. + If they are equal an is thrown. + + The value that is expected + The actual value + The message to display in case of failure + + + + Verifies that two objects are not equal. Two objects are considered + equal if both are null, or if both have the same value. NUnit + has special semantics for some object types. + If they are equal an is thrown. + + The value that is expected + The actual value + + + + Asserts that two objects refer to the same object. If they + are not the same an is thrown. + + The expected object + The actual object + The message to display in case of failure + Array of objects to be used in formatting the message + + + + Asserts that two objects refer to the same object. If they + are not the same an is thrown. + + The expected object + The actual object + The message to display in case of failure + + + + Asserts that two objects refer to the same object. If they + are not the same an is thrown. + + The expected object + The actual object + + + + Asserts that two objects do not refer to the same object. If they + are the same an is thrown. + + The expected object + The actual object + The message to display in case of failure + Array of objects to be used in formatting the message + + + + Asserts that two objects do not refer to the same object. If they + are the same an is thrown. + + The expected object + The actual object + The message to display in case of failure + + + + Asserts that two objects do not refer to the same object. If they + are the same an is thrown. + + The expected object + The actual object + + + + Verifies that the first value is greater than the second + value. If it is not, then an + is thrown. + + The first value, expected to be greater + The second value, expected to be less + The message to display in case of failure + Array of objects to be used in formatting the message + + + + Verifies that the first value is greater than the second + value. If it is not, then an + is thrown. + + The first value, expected to be greater + The second value, expected to be less + The message to display in case of failure + + + + Verifies that the first value is greater than the second + value. If it is not, then an + is thrown. + + The first value, expected to be greater + The second value, expected to be less + + + + Verifies that the first value is greater than the second + value. If it is not, then an + is thrown. + + The first value, expected to be greater + The second value, expected to be less + The message to display in case of failure + Array of objects to be used in formatting the message + + + + Verifies that the first value is greater than the second + value. If it is not, then an + is thrown. + + The first value, expected to be greater + The second value, expected to be less + The message to display in case of failure + + + + Verifies that the first value is greater than the second + value. If it is not, then an + is thrown. + + The first value, expected to be greater + The second value, expected to be less + + + + Verifies that the first value is greater than the second + value. If it is not, then an + is thrown. + + The first value, expected to be greater + The second value, expected to be less + The message to display in case of failure + Array of objects to be used in formatting the message + + + + Verifies that the first value is greater than the second + value. If it is not, then an + is thrown. + + The first value, expected to be greater + The second value, expected to be less + The message to display in case of failure + + + + Verifies that the first value is greater than the second + value. If it is not, then an + is thrown. + + The first value, expected to be greater + The second value, expected to be less + + + + Verifies that the first value is greater than the second + value. If it is not, then an + is thrown. + + The first value, expected to be greater + The second value, expected to be less + The message to display in case of failure + Array of objects to be used in formatting the message + + + + Verifies that the first value is greater than the second + value. If it is not, then an + is thrown. + + The first value, expected to be greater + The second value, expected to be less + The message to display in case of failure + + + + Verifies that the first value is greater than the second + value. If it is not, then an + is thrown. + + The first value, expected to be greater + The second value, expected to be less + + + + Verifies that the first value is greater than the second + value. If it is not, then an + is thrown. + + The first value, expected to be greater + The second value, expected to be less + The message to display in case of failure + Array of objects to be used in formatting the message + + + + Verifies that the first value is greater than the second + value. If it is not, then an + is thrown. + + The first value, expected to be greater + The second value, expected to be less + The message to display in case of failure + + + + Verifies that the first value is greater than the second + value. If it is not, then an + is thrown. + + The first value, expected to be greater + The second value, expected to be less + + + + Verifies that the first value is greater than the second + value. If it is not, then an + is thrown. + + The first value, expected to be greater + The second value, expected to be less + The message to display in case of failure + Array of objects to be used in formatting the message + + + + Verifies that the first value is greater than the second + value. If it is not, then an + is thrown. + + The first value, expected to be greater + The second value, expected to be less + The message to display in case of failure + + + + Verifies that the first value is greater than the second + value. If it is not, then an + is thrown. + + The first value, expected to be greater + The second value, expected to be less + + + + Verifies that the first value is greater than the second + value. If it is not, then an + is thrown. + + The first value, expected to be greater + The second value, expected to be less + The message to display in case of failure + Array of objects to be used in formatting the message + + + + Verifies that the first value is greater than the second + value. If it is not, then an + is thrown. + + The first value, expected to be greater + The second value, expected to be less + The message to display in case of failure + + + + Verifies that the first value is greater than the second + value. If it is not, then an + is thrown. + + The first value, expected to be greater + The second value, expected to be less + + + + Verifies that the first value is greater than the second + value. If it is not, then an + is thrown. + + The first value, expected to be greater + The second value, expected to be less + The message to display in case of failure + Array of objects to be used in formatting the message + + + + Verifies that the first value is greater than the second + value. If it is not, then an + is thrown. + + The first value, expected to be greater + The second value, expected to be less + The message to display in case of failure + + + + Verifies that the first value is greater than the second + value. If it is not, then an + is thrown. + + The first value, expected to be greater + The second value, expected to be less + + + + Verifies that the first value is less than the second + value. If it is not, then an + is thrown. + + The first value, expected to be less + The second value, expected to be greater + The message to display in case of failure + Array of objects to be used in formatting the message + + + + Verifies that the first value is less than the second + value. If it is not, then an + is thrown. + + The first value, expected to be less + The second value, expected to be greater + The message to display in case of failure + + + + Verifies that the first value is less than the second + value. If it is not, then an + is thrown. + + The first value, expected to be less + The second value, expected to be greater + + + + Verifies that the first value is less than the second + value. If it is not, then an + is thrown. + + The first value, expected to be less + The second value, expected to be greater + The message to display in case of failure + Array of objects to be used in formatting the message + + + + Verifies that the first value is less than the second + value. If it is not, then an + is thrown. + + The first value, expected to be less + The second value, expected to be greater + The message to display in case of failure + + + + Verifies that the first value is less than the second + value. If it is not, then an + is thrown. + + The first value, expected to be less + The second value, expected to be greater + + + + Verifies that the first value is less than the second + value. If it is not, then an + is thrown. + + The first value, expected to be less + The second value, expected to be greater + The message to display in case of failure + Array of objects to be used in formatting the message + + + + Verifies that the first value is less than the second + value. If it is not, then an + is thrown. + + The first value, expected to be less + The second value, expected to be greater + The message to display in case of failure + + + + Verifies that the first value is less than the second + value. If it is not, then an + is thrown. + + The first value, expected to be less + The second value, expected to be greater + + + + Verifies that the first value is less than the second + value. If it is not, then an + is thrown. + + The first value, expected to be less + The second value, expected to be greater + The message to display in case of failure + Array of objects to be used in formatting the message + + + + Verifies that the first value is less than the second + value. If it is not, then an + is thrown. + + The first value, expected to be less + The second value, expected to be greater + The message to display in case of failure + + + + Verifies that the first value is less than the second + value. If it is not, then an + is thrown. + + The first value, expected to be less + The second value, expected to be greater + + + + Verifies that the first value is less than the second + value. If it is not, then an + is thrown. + + The first value, expected to be less + The second value, expected to be greater + The message to display in case of failure + Array of objects to be used in formatting the message + + + + Verifies that the first value is less than the second + value. If it is not, then an + is thrown. + + The first value, expected to be less + The second value, expected to be greater + The message to display in case of failure + + + + Verifies that the first value is less than the second + value. If it is not, then an + is thrown. + + The first value, expected to be less + The second value, expected to be greater + + + + Verifies that the first value is less than the second + value. If it is not, then an + is thrown. + + The first value, expected to be less + The second value, expected to be greater + The message to display in case of failure + Array of objects to be used in formatting the message + + + + Verifies that the first value is less than the second + value. If it is not, then an + is thrown. + + The first value, expected to be less + The second value, expected to be greater + The message to display in case of failure + + + + Verifies that the first value is less than the second + value. If it is not, then an + is thrown. + + The first value, expected to be less + The second value, expected to be greater + + + + Verifies that the first value is less than the second + value. If it is not, then an + is thrown. + + The first value, expected to be less + The second value, expected to be greater + The message to display in case of failure + Array of objects to be used in formatting the message + + + + Verifies that the first value is less than the second + value. If it is not, then an + is thrown. + + The first value, expected to be less + The second value, expected to be greater + The message to display in case of failure + + + + Verifies that the first value is less than the second + value. If it is not, then an + is thrown. + + The first value, expected to be less + The second value, expected to be greater + + + + Verifies that the first value is less than the second + value. If it is not, then an + is thrown. + + The first value, expected to be less + The second value, expected to be greater + The message to display in case of failure + Array of objects to be used in formatting the message + + + + Verifies that the first value is less than the second + value. If it is not, then an + is thrown. + + The first value, expected to be less + The second value, expected to be greater + The message to display in case of failure + + + + Verifies that the first value is less than the second + value. If it is not, then an + is thrown. + + The first value, expected to be less + The second value, expected to be greater + + + + Verifies that the first value is greater than or equal tothe second + value. If it is not, then an + is thrown. + + The first value, expected to be greater + The second value, expected to be less + The message to display in case of failure + Array of objects to be used in formatting the message + + + + Verifies that the first value is greater than or equal tothe second + value. If it is not, then an + is thrown. + + The first value, expected to be greater + The second value, expected to be less + The message to display in case of failure + + + + Verifies that the first value is greater than or equal tothe second + value. If it is not, then an + is thrown. + + The first value, expected to be greater + The second value, expected to be less + + + + Verifies that the first value is greater than or equal tothe second + value. If it is not, then an + is thrown. + + The first value, expected to be greater + The second value, expected to be less + The message to display in case of failure + Array of objects to be used in formatting the message + + + + Verifies that the first value is greater than or equal tothe second + value. If it is not, then an + is thrown. + + The first value, expected to be greater + The second value, expected to be less + The message to display in case of failure + + + + Verifies that the first value is greater than or equal tothe second + value. If it is not, then an + is thrown. + + The first value, expected to be greater + The second value, expected to be less + + + + Verifies that the first value is greater than or equal tothe second + value. If it is not, then an + is thrown. + + The first value, expected to be greater + The second value, expected to be less + The message to display in case of failure + Array of objects to be used in formatting the message + + + + Verifies that the first value is greater than or equal tothe second + value. If it is not, then an + is thrown. + + The first value, expected to be greater + The second value, expected to be less + The message to display in case of failure + + + + Verifies that the first value is greater than or equal tothe second + value. If it is not, then an + is thrown. + + The first value, expected to be greater + The second value, expected to be less + + + + Verifies that the first value is greater than or equal tothe second + value. If it is not, then an + is thrown. + + The first value, expected to be greater + The second value, expected to be less + The message to display in case of failure + Array of objects to be used in formatting the message + + + + Verifies that the first value is greater than or equal tothe second + value. If it is not, then an + is thrown. + + The first value, expected to be greater + The second value, expected to be less + The message to display in case of failure + + + + Verifies that the first value is greater than or equal tothe second + value. If it is not, then an + is thrown. + + The first value, expected to be greater + The second value, expected to be less + + + + Verifies that the first value is greater than or equal tothe second + value. If it is not, then an + is thrown. + + The first value, expected to be greater + The second value, expected to be less + The message to display in case of failure + Array of objects to be used in formatting the message + + + + Verifies that the first value is greater than or equal tothe second + value. If it is not, then an + is thrown. + + The first value, expected to be greater + The second value, expected to be less + The message to display in case of failure + + + + Verifies that the first value is greater than or equal tothe second + value. If it is not, then an + is thrown. + + The first value, expected to be greater + The second value, expected to be less + + + + Verifies that the first value is greater than or equal tothe second + value. If it is not, then an + is thrown. + + The first value, expected to be greater + The second value, expected to be less + The message to display in case of failure + Array of objects to be used in formatting the message + + + + Verifies that the first value is greater than or equal tothe second + value. If it is not, then an + is thrown. + + The first value, expected to be greater + The second value, expected to be less + The message to display in case of failure + + + + Verifies that the first value is greater than or equal tothe second + value. If it is not, then an + is thrown. + + The first value, expected to be greater + The second value, expected to be less + + + + Verifies that the first value is greater than or equal tothe second + value. If it is not, then an + is thrown. + + The first value, expected to be greater + The second value, expected to be less + The message to display in case of failure + Array of objects to be used in formatting the message + + + + Verifies that the first value is greater than or equal tothe second + value. If it is not, then an + is thrown. + + The first value, expected to be greater + The second value, expected to be less + The message to display in case of failure + + + + Verifies that the first value is greater than or equal tothe second + value. If it is not, then an + is thrown. + + The first value, expected to be greater + The second value, expected to be less + + + + Verifies that the first value is greater than or equal tothe second + value. If it is not, then an + is thrown. + + The first value, expected to be greater + The second value, expected to be less + The message to display in case of failure + Array of objects to be used in formatting the message + + + + Verifies that the first value is greater than or equal tothe second + value. If it is not, then an + is thrown. + + The first value, expected to be greater + The second value, expected to be less + The message to display in case of failure + + + + Verifies that the first value is greater than or equal tothe second + value. If it is not, then an + is thrown. + + The first value, expected to be greater + The second value, expected to be less + + + + Verifies that the first value is less than or equal to the second + value. If it is not, then an + is thrown. + + The first value, expected to be less + The second value, expected to be greater + The message to display in case of failure + Array of objects to be used in formatting the message + + + + Verifies that the first value is less than or equal to the second + value. If it is not, then an + is thrown. + + The first value, expected to be less + The second value, expected to be greater + The message to display in case of failure + + + + Verifies that the first value is less than or equal to the second + value. If it is not, then an + is thrown. + + The first value, expected to be less + The second value, expected to be greater + + + + Verifies that the first value is less than or equal to the second + value. If it is not, then an + is thrown. + + The first value, expected to be less + The second value, expected to be greater + The message to display in case of failure + Array of objects to be used in formatting the message + + + + Verifies that the first value is less than or equal to the second + value. If it is not, then an + is thrown. + + The first value, expected to be less + The second value, expected to be greater + The message to display in case of failure + + + + Verifies that the first value is less than or equal to the second + value. If it is not, then an + is thrown. + + The first value, expected to be less + The second value, expected to be greater + + + + Verifies that the first value is less than or equal to the second + value. If it is not, then an + is thrown. + + The first value, expected to be less + The second value, expected to be greater + The message to display in case of failure + Array of objects to be used in formatting the message + + + + Verifies that the first value is less than or equal to the second + value. If it is not, then an + is thrown. + + The first value, expected to be less + The second value, expected to be greater + The message to display in case of failure + + + + Verifies that the first value is less than or equal to the second + value. If it is not, then an + is thrown. + + The first value, expected to be less + The second value, expected to be greater + + + + Verifies that the first value is less than or equal to the second + value. If it is not, then an + is thrown. + + The first value, expected to be less + The second value, expected to be greater + The message to display in case of failure + Array of objects to be used in formatting the message + + + + Verifies that the first value is less than or equal to the second + value. If it is not, then an + is thrown. + + The first value, expected to be less + The second value, expected to be greater + The message to display in case of failure + + + + Verifies that the first value is less than or equal to the second + value. If it is not, then an + is thrown. + + The first value, expected to be less + The second value, expected to be greater + + + + Verifies that the first value is less than or equal to the second + value. If it is not, then an + is thrown. + + The first value, expected to be less + The second value, expected to be greater + The message to display in case of failure + Array of objects to be used in formatting the message + + + + Verifies that the first value is less than or equal to the second + value. If it is not, then an + is thrown. + + The first value, expected to be less + The second value, expected to be greater + The message to display in case of failure + + + + Verifies that the first value is less than or equal to the second + value. If it is not, then an + is thrown. + + The first value, expected to be less + The second value, expected to be greater + + + + Verifies that the first value is less than or equal to the second + value. If it is not, then an + is thrown. + + The first value, expected to be less + The second value, expected to be greater + The message to display in case of failure + Array of objects to be used in formatting the message + + + + Verifies that the first value is less than or equal to the second + value. If it is not, then an + is thrown. + + The first value, expected to be less + The second value, expected to be greater + The message to display in case of failure + + + + Verifies that the first value is less than or equal to the second + value. If it is not, then an + is thrown. + + The first value, expected to be less + The second value, expected to be greater + + + + Verifies that the first value is less than or equal to the second + value. If it is not, then an + is thrown. + + The first value, expected to be less + The second value, expected to be greater + The message to display in case of failure + Array of objects to be used in formatting the message + + + + Verifies that the first value is less than or equal to the second + value. If it is not, then an + is thrown. + + The first value, expected to be less + The second value, expected to be greater + The message to display in case of failure + + + + Verifies that the first value is less than or equal to the second + value. If it is not, then an + is thrown. + + The first value, expected to be less + The second value, expected to be greater + + + + Verifies that the first value is less than or equal to the second + value. If it is not, then an + is thrown. + + The first value, expected to be less + The second value, expected to be greater + The message to display in case of failure + Array of objects to be used in formatting the message + + + + Verifies that the first value is less than or equal to the second + value. If it is not, then an + is thrown. + + The first value, expected to be less + The second value, expected to be greater + The message to display in case of failure + + + + Verifies that the first value is less than or equal to the second + value. If it is not, then an + is thrown. + + The first value, expected to be less + The second value, expected to be greater + + + + Asserts that an object is contained in a list. + + The expected object + The list to be examined + The message to display in case of failure + Array of objects to be used in formatting the message + + + + Asserts that an object is contained in a list. + + The expected object + The list to be examined + The message to display in case of failure + + + + Asserts that an object is contained in a list. + + The expected object + The list to be examined + + + + Gets the number of assertions executed so far and + resets the counter to zero. + + + + + RequiredAddinAttribute may be used to indicate the names of any addins + that must be present in order to run some or all of the tests in an + assembly. If the addin is not loaded, the entire assembly is marked + as NotRunnable. + + + + + Initializes a new instance of the class. + + The required addin. + + + + Gets the name of required addin. + + The required addin name. + + + + Marks a test to use a combinatorial join of any argument + data provided. Since this is the default, the attribute is + not needed. + + + + + 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 + + + + + Default constructor + + + + + Marks a test to use a combinatorial join of any argument + data provided. Since this is the default, the attribute is + not needed. + + + + + Default constructor + + + + + Marks a test to use a combinatorial join of any argument + data provided. Since this is the default, the attribute is + not needed. + + + + + Default constructor + + + + + Adding this attribute to a method within a + class makes the method callable from the NUnit test runner. There is a property + called Description which is optional which you can provide a more detailed test + description. This class cannot be inherited. + + + + [TestFixture] + public class Fixture + { + [Test] + public void MethodToTest() + {} + + [Test(Description = "more detailed description")] + publc void TestDescriptionMethod() + {} + } + + + + + + Descriptive text for this test + + + + + [TestFixture] + public class ExampleClass + {} + + + + + Default constructor + + + + + Construct with a object[] representing a set of arguments. + In .NET 2.0, the arguments may later be separated into + type arguments and constructor arguments. + + + + + + Descriptive text for this fixture + + + + + The arguments originally provided to the attribute + + + + + Gets or sets a value indicating whether this should be ignored. + + true if ignore; otherwise, false. + + + + Gets or sets the ignore reason. May set Ignored as a side effect. + + The ignore reason. + + + + Get or set the type arguments. If not set + explicitly, any leading arguments that are + Types are taken as type arguments. + + + + + A set of Assert methods operationg on one or more collections + + + + + The Equals method throws an AssertionException. This is done + to make sure there is no mistake by calling this function. + + + + + + + override the default ReferenceEquals to throw an AssertionException. This + implementation makes sure there is no mistake in calling this function + as part of Assert. + + + + + + + Asserts that all items contained in collection are of the type specified by expectedType. + + IEnumerable containing objects to be considered + System.Type that all objects in collection must be instances of + + + + Asserts that all items contained in collection are of the type specified by expectedType. + + IEnumerable containing objects to be considered + System.Type that all objects in collection must be instances of + The message that will be displayed on failure + + + + Asserts that all items contained in collection are of the type specified by expectedType. + + IEnumerable containing objects to be considered + System.Type that all objects in collection must be instances of + The message that will be displayed on failure + Arguments to be used in formatting the message + + + + Asserts that all items contained in collection are not equal to null. + + IEnumerable containing objects to be considered + + + + Asserts that all items contained in collection are not equal to null. + + IEnumerable containing objects to be considered + The message that will be displayed on failure + + + + Asserts that all items contained in collection are not equal to null. + + IEnumerable of objects to be considered + The message that will be displayed on failure + Arguments to be used in formatting the message + + + + Ensures that every object contained in collection exists within the collection + once and only once. + + IEnumerable of objects to be considered + + + + Ensures that every object contained in collection exists within the collection + once and only once. + + IEnumerable of objects to be considered + The message that will be displayed on failure + + + + Ensures that every object contained in collection exists within the collection + once and only once. + + IEnumerable of objects to be considered + The message that will be displayed on failure + Arguments to be used in formatting the message + + + + Asserts that expected and actual are exactly equal. The collections must have the same count, + and contain the exact same objects in the same order. + + The first IEnumerable of objects to be considered + The second IEnumerable of objects to be considered + + + + Asserts that expected and actual are exactly equal. The collections must have the same count, + and contain the exact same objects in the same order. + If comparer is not null then it will be used to compare the objects. + + The first IEnumerable of objects to be considered + The second IEnumerable of objects to be considered + The IComparer to use in comparing objects from each IEnumerable + + + + Asserts that expected and actual are exactly equal. The collections must have the same count, + and contain the exact same objects in the same order. + + The first IEnumerable of objects to be considered + The second IEnumerable of objects to be considered + The message that will be displayed on failure + + + + Asserts that expected and actual are exactly equal. The collections must have the same count, + and contain the exact same objects in the same order. + If comparer is not null then it will be used to compare the objects. + + The first IEnumerable of objects to be considered + The second IEnumerable of objects to be considered + The IComparer to use in comparing objects from each IEnumerable + The message that will be displayed on failure + + + + Asserts that expected and actual are exactly equal. The collections must have the same count, + and contain the exact same objects in the same order. + + The first IEnumerable of objects to be considered + The second IEnumerable of objects to be considered + The message that will be displayed on failure + Arguments to be used in formatting the message + + + + Asserts that expected and actual are exactly equal. The collections must have the same count, + and contain the exact same objects in the same order. + If comparer is not null then it will be used to compare the objects. + + The first IEnumerable of objects to be considered + The second IEnumerable of objects to be considered + The IComparer to use in comparing objects from each IEnumerable + The message that will be displayed on failure + Arguments to be used in formatting the message + + + + Asserts that expected and actual are equivalent, containing the same objects but the match may be in any order. + + The first IEnumerable of objects to be considered + The second IEnumerable of objects to be considered + + + + Asserts that expected and actual are equivalent, containing the same objects but the match may be in any order. + + The first IEnumerable of objects to be considered + The second IEnumerable of objects to be considered + The message that will be displayed on failure + + + + Asserts that expected and actual are equivalent, containing the same objects but the match may be in any order. + + The first IEnumerable of objects to be considered + The second IEnumerable of objects to be considered + The message that will be displayed on failure + Arguments to be used in formatting the message + + + + Asserts that expected and actual are not exactly equal. + + The first IEnumerable of objects to be considered + The second IEnumerable of objects to be considered + + + + Asserts that expected and actual are not exactly equal. + If comparer is not null then it will be used to compare the objects. + + The first IEnumerable of objects to be considered + The second IEnumerable of objects to be considered + The IComparer to use in comparing objects from each IEnumerable + + + + Asserts that expected and actual are not exactly equal. + + The first IEnumerable of objects to be considered + The second IEnumerable of objects to be considered + The message that will be displayed on failure + + + + Asserts that expected and actual are not exactly equal. + If comparer is not null then it will be used to compare the objects. + + The first IEnumerable of objects to be considered + The second IEnumerable of objects to be considered + The IComparer to use in comparing objects from each IEnumerable + The message that will be displayed on failure + + + + Asserts that expected and actual are not exactly equal. + + The first IEnumerable of objects to be considered + The second IEnumerable of objects to be considered + The message that will be displayed on failure + Arguments to be used in formatting the message + + + + Asserts that expected and actual are not exactly equal. + If comparer is not null then it will be used to compare the objects. + + The first IEnumerable of objects to be considered + The second IEnumerable of objects to be considered + The IComparer to use in comparing objects from each IEnumerable + The message that will be displayed on failure + Arguments to be used in formatting the message + + + + Asserts that expected and actual are not equivalent. + + The first IEnumerable of objects to be considered + The second IEnumerable of objects to be considered + + + + Asserts that expected and actual are not equivalent. + + The first IEnumerable of objects to be considered + The second IEnumerable of objects to be considered + The message that will be displayed on failure + + + + Asserts that expected and actual are not equivalent. + + The first IEnumerable of objects to be considered + The second IEnumerable of objects to be considered + The message that will be displayed on failure + Arguments to be used in formatting the message + + + + Asserts that collection contains actual as an item. + + IEnumerable of objects to be considered + Object to be found within collection + + + + Asserts that collection contains actual as an item. + + IEnumerable of objects to be considered + Object to be found within collection + The message that will be displayed on failure + + + + Asserts that collection contains actual as an item. + + IEnumerable of objects to be considered + Object to be found within collection + The message that will be displayed on failure + Arguments to be used in formatting the message + + + + Asserts that collection does not contain actual as an item. + + IEnumerable of objects to be considered + Object that cannot exist within collection + + + + Asserts that collection does not contain actual as an item. + + IEnumerable of objects to be considered + Object that cannot exist within collection + The message that will be displayed on failure + + + + Asserts that collection does not contain actual as an item. + + IEnumerable of objects to be considered + Object that cannot exist within collection + The message that will be displayed on failure + Arguments to be used in formatting the message + + + + Asserts that superset is not a subject of subset. + + The IEnumerable superset to be considered + The IEnumerable subset to be considered + + + + Asserts that superset is not a subject of subset. + + The IEnumerable superset to be considered + The IEnumerable subset to be considered + The message that will be displayed on failure + + + + Asserts that superset is not a subject of subset. + + The IEnumerable superset to be considered + The IEnumerable subset to be considered + The message that will be displayed on failure + Arguments to be used in formatting the message + + + + Asserts that superset is a subset of subset. + + The IEnumerable superset to be considered + The IEnumerable subset to be considered + + + + Asserts that superset is a subset of subset. + + The IEnumerable superset to be considered + The IEnumerable subset to be considered + The message that will be displayed on failure + + + + Asserts that superset is a subset of subset. + + The IEnumerable superset to be considered + The IEnumerable subset to be considered + The message that will be displayed on failure + Arguments to be used in formatting the message + + + + Assert that an array, list or other collection is empty + + An array, list or other collection implementing IEnumerable + The message to be displayed on failure + Arguments to be used in formatting the message + + + + Assert that an array, list or other collection is empty + + An array, list or other collection implementing IEnumerable + The message to be displayed on failure + + + + Assert that an array,list or other collection is empty + + An array, list or other collection implementing IEnumerable + + + + Assert that an array, list or other collection is empty + + An array, list or other collection implementing IEnumerable + The message to be displayed on failure + Arguments to be used in formatting the message + + + + Assert that an array, list or other collection is empty + + An array, list or other collection implementing IEnumerable + The message to be displayed on failure + + + + Assert that an array,list or other collection is empty + + An array, list or other collection implementing IEnumerable + + + + Assert that an array, list or other collection is ordered + + An array, list or other collection implementing IEnumerable + The message to be displayed on failure + Arguments to be used in formatting the message + + + + Assert that an array, list or other collection is ordered + + An array, list or other collection implementing IEnumerable + The message to be displayed on failure + + + + Assert that an array, list or other collection is ordered + + An array, list or other collection implementing IEnumerable + + + + Assert that an array, list or other collection is ordered + + An array, list or other collection implementing IEnumerable + A custom comparer to perform the comparisons + The message to be displayed on failure + Arguments to be used in formatting the message + + + + Assert that an array, list or other collection is ordered + + An array, list or other collection implementing IEnumerable + A custom comparer to perform the comparisons + The message to be displayed on failure + + + + Assert that an array, list or other collection is ordered + + An array, list or other collection implementing IEnumerable + A custom comparer to perform the comparisons + + + + Abstract base class for attributes that apply to parameters + and supply data for the parameter. + + + + + Gets the data to be provided to the specified parameter + + + + + ValuesAttribute is used to provide literal arguments for + an individual parameter of a test. + + + + + The collection of data to be returned. Must + be set by any derived attribute classes. + + + + + 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 + + + + + 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 + + + + + WUsed on a method, marks the test with a timeout value in milliseconds. + The test will be run in a separate thread and is cancelled if the timeout + is exceeded. Used on a method or assembly, sets the default timeout + for all contained test methods. + + + + + Construct a TimeoutAttribute given a time in milliseconds + + The timeout value in milliseconds + + + + Marks a test that must run in the STA, causing it + to run in a separate thread if necessary. + + On methods, you may also use STAThreadAttribute + to serve the same purpose. + + + + + Construct a RequiresSTAAttribute + + + + + Marks a test that must run in the MTA, causing it + to run in a separate thread if necessary. + + On methods, you may also use MTAThreadAttribute + to serve the same purpose. + + + + + Construct a RequiresMTAAttribute + + + + + Marks a test that must run on a separate thread. + + + + + Construct a RequiresThreadAttribute + + + + + Construct a RequiresThreadAttribute, specifying the apartment + + + + + AssertionHelper is an optional base class for user tests, + allowing the use of shorter names for constraints and + asserts and avoiding conflict with the definition of + , from which it inherits much of its + behavior, in certain mock object frameworks. + + + + + Apply a constraint to an actual value, succeeding if the constraint + is satisfied and throwing an assertion exception on failure. Works + identically to + + A Constraint to be applied + The actual value to test + + + + Apply a constraint to an actual value, succeeding if the constraint + is satisfied and throwing an assertion exception on failure. Works + identically to + + A Constraint to be applied + The actual value to test + The message that will be displayed on failure + + + + Apply a constraint to an actual value, succeeding if the constraint + is satisfied and throwing an assertion exception on failure. Works + identically to + + A Constraint to be applied + The actual value to test + The message that will be displayed on failure + Arguments to be used in formatting the message + + + + Apply a constraint to an actual value, succeeding if the constraint + is satisfied and throwing an assertion exception on failure. + + A Constraint expression to be applied + An ActualValueDelegate returning the value to be tested + + + + Apply a constraint to an actual value, succeeding if the constraint + is satisfied and throwing an assertion exception on failure. + + A Constraint expression to be applied + An ActualValueDelegate returning the value to be tested + The message that will be displayed on failure + + + + Apply a constraint to an actual value, succeeding if the constraint + is satisfied and throwing an assertion exception on failure. + + An ActualValueDelegate returning the value to be tested + A Constraint expression to be applied + The message that will be displayed on failure + Arguments to be used in formatting the message + + + + Apply a constraint to a referenced value, succeeding if the constraint + is satisfied and throwing an assertion exception on failure. + + A Constraint to be applied + The actual value to test + + + + Apply a constraint to a referenced value, succeeding if the constraint + is satisfied and throwing an assertion exception on failure. + + A Constraint to be applied + The actual value to test + The message that will be displayed on failure + + + + Apply a constraint to a referenced value, succeeding if the constraint + is satisfied and throwing an assertion exception on failure. + + A Constraint to be applied + The actual value to test + The message that will be displayed on failure + Arguments to be used in formatting the message + + + + Asserts that a condition is true. If the condition is false the method throws + an . Works Identically to + . + + The evaluated condition + The message to display if the condition is false + Arguments to be used in formatting the message + + + + Asserts that a condition is true. If the condition is false the method throws + an . Works Identically to + . + + The evaluated condition + The message to display if the condition is false + + + + Asserts that a condition is true. If the condition is false the method throws + an . Works Identically to . + + The evaluated condition + + + + Asserts that the code represented by a delegate throws an exception + that satisfies the constraint provided. + + A TestDelegate to be executed + A ThrowsConstraint used in the test + + + + Returns a ListMapper based on a collection. + + The original collection + + + + + Attribute used to apply a category to a test + + + + + The name of the category + + + + + Construct attribute for a given category + + The name of the category + + + + Protected constructor uses the Type name as the name + of the category. + + + + + The name of the category + + + + + RandomAttribute is used to supply a set of random values + to a single parameter of a parameterized test. + + + + + Construct a set of doubles from 0.0 to 1.0, + specifying only the count. + + + + + + Construct a set of doubles from min to max + + + + + + + + Construct a set of ints from min to max + + + + + + + + Get the collection of values to be used as arguments + + + + + Attribute used to provide descriptive text about a + test case or fixture. + + + + + Construct the attribute + + Text describing the test + + + + Gets the test 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 + + + + The reason test is marked explicit + + + + + Provides static methods to express the assumptions + that must be met for a test to give a meaningful + result. If an assumption is not met, the test + should produce an inconclusive result. + + + + + The Equals method throws an AssertionException. This is done + to make sure there is no mistake by calling this function. + + + + + + + override the default ReferenceEquals to throw an AssertionException. This + implementation makes sure there is no mistake in calling this function + as part of Assert. + + + + + + + Apply a constraint to an actual value, succeeding if the constraint + is satisfied and throwing an InconclusiveException on failure. + + A Constraint expression to be applied + The actual value to test + + + + Apply a constraint to an actual value, succeeding if the constraint + is satisfied and throwing an InconclusiveException on failure. + + A Constraint expression to be applied + The actual value to test + The message that will be displayed on failure + + + + Apply a constraint to an actual value, succeeding if the constraint + is satisfied and throwing an InconclusiveException on failure. + + A Constraint expression to be applied + The actual value to test + The message that will be displayed on failure + Arguments to be used in formatting the message + + + + Apply a constraint to an actual value, succeeding if the constraint + is satisfied and throwing an InconclusiveException on failure. + + A Constraint expression to be applied + An ActualValueDelegate returning the value to be tested + + + + Apply a constraint to an actual value, succeeding if the constraint + is satisfied and throwing an InconclusiveException on failure. + + A Constraint expression to be applied + An ActualValueDelegate returning the value to be tested + The message that will be displayed on failure + + + + Apply a constraint to an actual value, succeeding if the constraint + is satisfied and throwing an InconclusiveException on failure. + + An ActualValueDelegate returning the value to be tested + A Constraint expression to be applied + The message that will be displayed on failure + Arguments to be used in formatting the message + + + + Apply a constraint to a referenced value, succeeding if the constraint + is satisfied and throwing an InconclusiveException on failure. + + A Constraint expression to be applied + The actual value to test + + + + Apply a constraint to a referenced value, succeeding if the constraint + is satisfied and throwing an InconclusiveException on failure. + + A Constraint expression to be applied + The actual value to test + The message that will be displayed on failure + + + + Apply a constraint to a referenced value, succeeding if the constraint + is satisfied and throwing an InconclusiveException on failure. + + A Constraint expression to be applied + The actual value to test + The message that will be displayed on failure + Arguments to be used in formatting the message + + + + Asserts that a condition is true. If the condition is false the method throws + an . + + The evaluated condition + The message to display if the condition is false + Arguments to be used in formatting the message + + + + Asserts that a condition is true. If the condition is false the method throws + an . + + The evaluated condition + The message to display if the condition is false + + + + Asserts that a condition is true. If the condition is false the + method throws an . + + The evaluated condition + + + + Asserts that the code represented by a delegate throws an exception + that satisfies the constraint provided. + + A TestDelegate to be executed + A ThrowsConstraint used in the test + + + + 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 constraint that tests two items for equality + + + + + Returns a constraint that tests that two references are the same object + + + + + Returns a constraint that tests whether the + actual value is greater than the suppled argument + + + + + Returns a constraint that tests whether the + actual value is greater than or equal to the suppled argument + + + + + Returns a constraint that tests whether the + actual value is greater than or equal to the suppled argument + + + + + Returns a constraint that tests whether the + actual value is less than the suppled argument + + + + + Returns a constraint that tests whether the + actual value is less than or equal to the suppled argument + + + + + Returns a constraint that tests whether the + actual value is less than or equal to the suppled argument + + + + + Returns a constraint that tests whether the actual + value is of the exact type supplied as an argument. + + + + + Returns a constraint that tests whether the actual + value is of the exact type supplied as an argument. + + + + + Returns a constraint that tests whether the actual value + is of the type supplied as an argument or a derived type. + + + + + Returns a constraint that tests whether the actual value + is of the type supplied as an argument or a derived type. + + + + + Returns a constraint that tests whether the actual value + is of the type supplied as an argument or a derived type. + + + + + Returns a constraint that tests whether the actual value + is of the type supplied as an argument or a derived type. + + + + + Returns a constraint that tests whether the actual value + is assignable from the type supplied as an argument. + + + + + Returns a constraint that tests whether the actual value + is assignable from the type supplied as an argument. + + + + + Returns a constraint that tests whether the actual value + is assignable from the type supplied as an argument. + + + + + Returns a constraint that tests whether the actual value + is assignable from the type supplied as an argument. + + + + + Returns a constraint that tests whether the actual value + is a collection containing the same elements as the + collection supplied as an argument. + + + + + Returns a constraint that tests whether the actual value + is a subset of the collection supplied as an argument. + + + + + Returns a constraint that succeeds if the actual + value contains the substring supplied as an argument. + + + + + Returns a constraint that succeeds if the actual + value starts with the substring supplied as an argument. + + + + + Returns a constraint that succeeds if the actual + value ends with the substring supplied as an argument. + + + + + Returns a constraint that succeeds if the actual + value matches the Regex pattern supplied as an argument. + + + + + Returns a constraint that tests whether the path provided + is the same as an expected path after canonicalization. + + + + + Returns a constraint that tests whether the path provided + is the same path or under an expected path after canonicalization. + + + + + Returns a constraint that tests whether the actual value falls + within a specified range. + + + + + Returns a ConstraintExpression that negates any + following constraint. + + + + + Returns a ConstraintExpression, which will apply + the following constraint to all members of a collection, + succeeding if all of them succeed. + + + + + Returns a constraint that tests for null + + + + + Returns a constraint that tests for True + + + + + Returns a constraint that tests for False + + + + + Returns a constraint that tests for NaN + + + + + Returns a constraint that tests for empty + + + + + Returns a constraint that tests whether a collection + contains all unique items. + + + + + Returns a constraint that tests whether an object graph is serializable in binary format. + + + + + Returns a constraint that tests whether an object graph is serializable in xml format. + + + + + Returns a constraint that tests whether a collection is ordered + + + + + Interface implemented by a user fixture in order to + validate any expected exceptions. It is only called + for test methods marked with the ExpectedException + attribute. + + + + + Method to handle an expected exception + + The exception to be handled + + + + Attribute used to mark a test that is to be ignored. + Ignored tests result in a warning message when the + tests are run. + + + + + Constructs the attribute without giving a reason + for ignoring the test. + + + + + Constructs the attribute giving a reason for ignoring the test + + The reason for ignoring the test + + + + The reason for ignoring a test + + + + + Thrown when an assertion failed. + + + + + + + The error message that explains + the reason for the exception + The exception that caused the + current exception + + + + Serialization Constructor + + + + + Abstract base for Attributes that are used to include tests + in the test run based on environmental settings. + + + + + Constructor with no included items specified, for use + with named property syntax. + + + + + Constructor taking one or more included items + + Comma-delimited list of included items + + + + Name of the item that is needed in order for + a test to run. Multiple itemss may be given, + separated by a comma. + + + + + Name of the item to be excluded. Multiple items + may be given, separated by a comma. + + + + + The reason for including or excluding the test + + + + + PlatformAttribute is used to mark a test fixture or an + individual method as applying to a particular platform only. + + + + + Constructor with no platforms specified, for use + with named property syntax. + + + + + Constructor taking one or more platforms + + Comma-deliminted list of platforms + + + + CultureAttribute is used to mark a test fixture or an + individual method as applying to a particular Culture only. + + + + + Constructor with no cultures specified, for use + with named property syntax. + + + + + Constructor taking one or more cultures + + Comma-deliminted list of cultures + + + + RangeAttribute is used to supply a range of values to an + individual parameter of a parameterized test. + + + + + Construct a range of ints using default step of 1 + + + + + + + Construct a range of ints specifying the step size + + + + + + + + Construct a range of longs + + + + + + + + Construct a range of doubles + + + + + + + + Construct a range of floats + + + + + + + + Summary description for SetCultureAttribute. + + + + + Construct given the name of a culture + + + + + + ValueSourceAttribute indicates the source to be used to + provide data for one parameter of a test method. + + + + + Construct with the name of the factory - for use with languages + that don't support params arrays. + + The name of the data source to be used + + + + Construct with a Type and name - for use with languages + that don't support params arrays. + + The Type that will provide data + The name of the method, property or field that will provide data + + + + The name of a the method, property or fiend to be used as a source + + + + + A Type to be used as a source + + + + + TextMessageWriter writes constraint descriptions and messages + in displayable form as a text stream. It tailors the display + of individual message components to form the standard message + format of NUnit assertion failure messages. + + + + + Prefix used for the expected value line of a message + + + + + Prefix used for the actual value line of a message + + + + + Length of a message prefix + + + + + Construct a TextMessageWriter + + + + + Construct a TextMessageWriter, specifying a user message + and optional formatting arguments. + + + + + + + Method to write single line message with optional args, usually + written to precede the general failure message, at a givel + indentation level. + + The indentation level of the message + The message to be written + Any arguments used in formatting the message + + + + Display Expected and Actual lines for a constraint. This + is called by MessageWriter's default implementation of + WriteMessageTo and provides the generic two-line display. + + The constraint that failed + + + + Display Expected and Actual lines for given values. This + method may be called by constraints that need more control over + the display of actual and expected values than is provided + by the default implementation. + + The expected value + The actual value causing the failure + + + + Display Expected and Actual lines for given values, including + a tolerance value on the expected line. + + The expected value + The actual value causing the failure + The tolerance within which the test was made + + + + Display the expected and actual string values on separate lines. + If the mismatch parameter is >=0, an additional line is displayed + line containing a caret that points to the mismatch point. + + The expected string value + The actual string value + The point at which the strings don't match or -1 + If true, case is ignored in string comparisons + If true, clip the strings to fit the max line length + + + + Writes the text for a connector. + + The connector. + + + + Writes the text for a predicate. + + The predicate. + + + + Write the text for a modifier. + + The modifier. + + + + Writes the text for an expected value. + + The expected value. + + + + Writes the text for an actual value. + + The actual value. + + + + Writes the text for a generalized value. + + The value. + + + + Writes the text for a collection value, + starting at a particular point, to a max length + + The collection containing elements to write. + The starting point of the elements to write + The maximum number of elements to write + + + + Write the generic 'Expected' line for a constraint + + The constraint that failed + + + + Write the generic 'Expected' line for a given value + + The expected value + + + + Write the generic 'Expected' line for a given value + and tolerance. + + The expected value + The tolerance within which the test was made + + + + Write the generic 'Actual' line for a constraint + + The constraint for which the actual value is to be written + + + + Write the generic 'Actual' line for a given value + + The actual value causing a failure + + + + Gets or sets the maximum line length for this writer + + + + + Basic Asserts on strings. + + + + + The Equals method throws an AssertionException. This is done + to make sure there is no mistake by calling this function. + + + + + + + override the default ReferenceEquals to throw an AssertionException. This + implementation makes sure there is no mistake in calling this function + as part of Assert. + + + + + + + Asserts that a string is found within another string. + + The expected string + The string to be examined + The message to display in case of failure + Arguments used in formatting the message + + + + Asserts that a string is found within another string. + + The expected string + The string to be examined + The message to display in case of failure + + + + Asserts that a string is found within another string. + + The expected string + The string to be examined + + + + Asserts that a string is not found within another string. + + The expected string + The string to be examined + The message to display in case of failure + Arguments used in formatting the message + + + + Asserts that a string is found within another string. + + The expected string + The string to be examined + The message to display in case of failure + + + + Asserts that a string is found within another string. + + The expected string + The string to be examined + + + + Asserts that a string starts with another string. + + The expected string + The string to be examined + The message to display in case of failure + Arguments used in formatting the message + + + + Asserts that a string starts with another string. + + The expected string + The string to be examined + The message to display in case of failure + + + + Asserts that a string starts with another string. + + The expected string + The string to be examined + + + + Asserts that a string does not start with another string. + + The expected string + The string to be examined + The message to display in case of failure + Arguments used in formatting the message + + + + Asserts that a string does not start with another string. + + The expected string + The string to be examined + The message to display in case of failure + + + + Asserts that a string does not start with another string. + + The expected string + The string to be examined + + + + Asserts that a string ends with another string. + + The expected string + The string to be examined + The message to display in case of failure + Arguments used in formatting the message + + + + Asserts that a string ends with another string. + + The expected string + The string to be examined + The message to display in case of failure + + + + Asserts that a string ends with another string. + + The expected string + The string to be examined + + + + Asserts that a string does not end with another string. + + The expected string + The string to be examined + The message to display in case of failure + Arguments used in formatting the message + + + + Asserts that a string does not end with another string. + + The expected string + The string to be examined + The message to display in case of failure + + + + Asserts that a string does not end with another string. + + The expected string + The string to be examined + + + + Asserts that two strings are equal, without regard to case. + + The expected string + The actual string + The message to display in case of failure + Arguments used in formatting the message + + + + Asserts that two strings are equal, without regard to case. + + The expected string + The actual string + The message to display in case of failure + + + + Asserts that two strings are equal, without regard to case. + + The expected string + The actual string + + + + Asserts that two strings are not equal, without regard to case. + + The expected string + The actual string + The message to display in case of failure + Arguments used in formatting the message + + + + Asserts that two strings are Notequal, without regard to case. + + The expected string + The actual string + The message to display in case of failure + + + + Asserts that two strings are not equal, without regard to case. + + The expected string + The actual string + + + + Asserts that a string matches an expected regular expression pattern. + + The regex pattern to be matched + The actual string + The message to display in case of failure + Arguments used in formatting the message + + + + Asserts that a string matches an expected regular expression pattern. + + The regex pattern to be matched + The actual string + The message to display in case of failure + + + + Asserts that a string matches an expected regular expression pattern. + + The regex pattern to be matched + The actual string + + + + Asserts that a string does not match an expected regular expression pattern. + + The regex pattern to be used + The actual string + The message to display in case of failure + Arguments used in formatting the message + + + + Asserts that a string does not match an expected regular expression pattern. + + The regex pattern to be used + The actual string + The message to display in case of failure + + + + Asserts that a string does not match an expected regular expression pattern. + + The regex pattern to be used + The actual string + + + + 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 + + + + + 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 + + + + Attribute used to mark a static (shared in VB) property + that returns a list of tests. + + + + + Attribute used to identify a method that is called + immediately after each test is run. The method is + guaranteed to be called, even if an exception is thrown. + + + + + The Iz class is a synonym for Is intended for use in VB, + which regards Is as a keyword. + + + + + Helper class with properties and methods that supply + constraints that operate on exceptions. + + + + + Creates a constraint specifying the exact type of exception expected + + + + + Creates a constraint specifying the exact type of exception expected + + + + + Creates a constraint specifying the type of exception expected + + + + + Creates a constraint specifying the type of exception expected + + + + + Creates a constraint specifying an expected exception + + + + + Creates a constraint specifying an exception with a given InnerException + + + + + Creates a constraint specifying an expected TargetInvocationException + + + + + Creates a constraint specifying an expected TargetInvocationException + + + + + Creates a constraint specifying an expected TargetInvocationException + + + + + Creates a constraint specifying that no exception is thrown + + + + + 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 + + + + + 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. + + + + + Helper class with static methods used to supply constraints + that operate on strings. + + + + + Returns a constraint that succeeds if the actual + value contains the substring supplied as an argument. + + + + + Returns a constraint that fails if the actual + value contains the substring supplied as an argument. + + + + + Returns a constraint that succeeds if the actual + value starts with the substring supplied as an argument. + + + + + Returns a constraint that fails if the actual + value starts with the substring supplied as an argument. + + + + + Returns a constraint that succeeds if the actual + value ends with the substring supplied as an argument. + + + + + Returns a constraint that fails if the actual + value ends with the substring supplied as an argument. + + + + + Returns a constraint that succeeds if the actual + value matches the Regex pattern supplied as an argument. + + + + + Returns a constraint that fails if the actual + value matches the pattern supplied as an argument. + + + + + Returns a ConstraintExpression, which will apply + the following constraint to all members of a collection, + succeeding if all of them succeed. + + + + + Summary description for MaxTimeAttribute. + + + + + Construct a MaxTimeAttribute, given a time in milliseconds. + + The maximum elapsed time in milliseconds + + + + Summary description for SetUICultureAttribute. + + + + + Construct given the name of a culture + + + + + + Summary description for DirectoryAssert + + + + + The Equals method throws an AssertionException. This is done + to make sure there is no mistake by calling this function. + + + + + + + override the default ReferenceEquals to throw an AssertionException. This + implementation makes sure there is no mistake in calling this function + as part of Assert. + + + + + + + We don't actually want any instances of this object, but some people + like to inherit from it to add other static methods. Hence, the + protected constructor disallows any instances of this object. + + + + + Verifies that two directories are equal. Two directories are considered + equal if both are null, or if both have the same value byte for byte. + If they are not equal an is thrown. + + A directory containing the value that is expected + A directory containing the actual value + The message to display if directories are not equal + Arguments to be used in formatting the message + + + + Verifies that two directories are equal. Two directories are considered + equal if both are null, or if both have the same value byte for byte. + If they are not equal an is thrown. + + A directory containing the value that is expected + A directory containing the actual value + The message to display if directories are not equal + + + + Verifies that two directories are equal. Two directories are considered + equal if both are null, or if both have the same value byte for byte. + If they are not equal an is thrown. + + A directory containing the value that is expected + A directory containing the actual value + + + + Verifies that two directories are equal. Two directories are considered + equal if both are null, or if both have the same value byte for byte. + If they are not equal an is thrown. + + A directory path string containing the value that is expected + A directory path string containing the actual value + The message to display if directories are not equal + Arguments to be used in formatting the message + + + + Verifies that two directories are equal. Two directories are considered + equal if both are null, or if both have the same value byte for byte. + If they are not equal an is thrown. + + A directory path string containing the value that is expected + A directory path string containing the actual value + The message to display if directories are not equal + + + + Verifies that two directories are equal. Two directories are considered + equal if both are null, or if both have the same value byte for byte. + If they are not equal an is thrown. + + A directory path string containing the value that is expected + A directory path string containing the actual value + + + + Asserts that two directories are not equal. If they are equal + an is thrown. + + A directory containing the value that is expected + A directory containing the actual value + The message to display if directories are not equal + Arguments to be used in formatting the message + + + + Asserts that two directories are not equal. If they are equal + an is thrown. + + A directory containing the value that is expected + A directory containing the actual value + The message to display if directories are not equal + + + + Asserts that two directories are not equal. If they are equal + an is thrown. + + A directory containing the value that is expected + A directory containing the actual value + + + + Asserts that two directories are not equal. If they are equal + an is thrown. + + A directory path string containing the value that is expected + A directory path string containing the actual value + The message to display if directories are equal + Arguments to be used in formatting the message + + + + Asserts that two directories are not equal. If they are equal + an is thrown. + + A directory path string containing the value that is expected + A directory path string containing the actual value + The message to display if directories are equal + + + + Asserts that two directories are not equal. If they are equal + an is thrown. + + A directory path string containing the value that is expected + A directory path string containing the actual value + + + + Asserts that the directory is empty. If it is not empty + an is thrown. + + A directory to search + The message to display if directories are not equal + Arguments to be used in formatting the message + + + + Asserts that the directory is empty. If it is not empty + an is thrown. + + A directory to search + The message to display if directories are not equal + + + + Asserts that the directory is empty. If it is not empty + an is thrown. + + A directory to search + + + + Asserts that the directory is empty. If it is not empty + an is thrown. + + A directory to search + The message to display if directories are not equal + Arguments to be used in formatting the message + + + + Asserts that the directory is empty. If it is not empty + an is thrown. + + A directory to search + The message to display if directories are not equal + + + + Asserts that the directory is empty. If it is not empty + an is thrown. + + A directory to search + + + + Asserts that the directory is not empty. If it is empty + an is thrown. + + A directory to search + The message to display if directories are not equal + Arguments to be used in formatting the message + + + + Asserts that the directory is not empty. If it is empty + an is thrown. + + A directory to search + The message to display if directories are not equal + + + + Asserts that the directory is not empty. If it is empty + an is thrown. + + A directory to search + + + + Asserts that the directory is not empty. If it is empty + an is thrown. + + A directory to search + The message to display if directories are not equal + Arguments to be used in formatting the message + + + + Asserts that the directory is not empty. If it is empty + an is thrown. + + A directory to search + The message to display if directories are not equal + + + + Asserts that the directory is not empty. If it is empty + an is thrown. + + A directory to search + + + + Asserts that path contains actual as a subdirectory or + an is thrown. + + A directory to search + sub-directory asserted to exist under directory + The message to display if directory is not within the path + Arguments to be used in formatting the message + + + + Asserts that path contains actual as a subdirectory or + an is thrown. + + A directory to search + sub-directory asserted to exist under directory + The message to display if directory is not within the path + + + + Asserts that path contains actual as a subdirectory or + an is thrown. + + A directory to search + sub-directory asserted to exist under directory + + + + Asserts that path contains actual as a subdirectory or + an is thrown. + + A directory to search + sub-directory asserted to exist under directory + The message to display if directory is not within the path + Arguments to be used in formatting the message + + + + Asserts that path contains actual as a subdirectory or + an is thrown. + + A directory to search + sub-directory asserted to exist under directory + The message to display if directory is not within the path + + + + Asserts that path contains actual as a subdirectory or + an is thrown. + + A directory to search + sub-directory asserted to exist under directory + + + + Asserts that path does not contain actual as a subdirectory or + an is thrown. + + A directory to search + sub-directory asserted to exist under directory + The message to display if directory is not within the path + Arguments to be used in formatting the message + + + + Asserts that path does not contain actual as a subdirectory or + an is thrown. + + A directory to search + sub-directory asserted to exist under directory + The message to display if directory is not within the path + + + + Asserts that path does not contain actual as a subdirectory or + an is thrown. + + A directory to search + sub-directory asserted to exist under directory + + + + Asserts that path does not contain actual as a subdirectory or + an is thrown. + + A directory to search + sub-directory asserted to exist under directory + The message to display if directory is not within the path + Arguments to be used in formatting the message + + + + Asserts that path does not contain actual as a subdirectory or + an is thrown. + + A directory to search + sub-directory asserted to exist under directory + The message to display if directory is not within the path + + + + Asserts that path does not contain actual as a subdirectory or + an is thrown. + + A directory to search + sub-directory asserted to exist under directory + + + + The SpecialValue enum is used to represent TestCase arguments + that cannot be used as arguments to an Attribute. + + + + + Null represents a null value, which cannot be used as an + argument to an attriute under .NET 1.x + + + + + Summary description for FileAssert. + + + + + The Equals method throws an AssertionException. This is done + to make sure there is no mistake by calling this function. + + + + + + + override the default ReferenceEquals to throw an AssertionException. This + implementation makes sure there is no mistake in calling this function + as part of Assert. + + + + + + + We don't actually want any instances of this object, but some people + like to inherit from it to add other static methods. Hence, the + protected constructor disallows any instances of this object. + + + + + Verifies that two Streams are equal. Two Streams are considered + equal if both are null, or if both have the same value byte for byte. + If they are not equal an is thrown. + + The expected Stream + The actual Stream + The message to display if Streams are not equal + Arguments to be used in formatting the message + + + + Verifies that two Streams are equal. Two Streams are considered + equal if both are null, or if both have the same value byte for byte. + If they are not equal an is thrown. + + The expected Stream + The actual Stream + The message to display if objects are not equal + + + + Verifies that two Streams are equal. Two Streams are considered + equal if both are null, or if both have the same value byte for byte. + If they are not equal an is thrown. + + The expected Stream + The actual Stream + + + + Verifies that two files are equal. Two files are considered + equal if both are null, or if both have the same value byte for byte. + If they are not equal an is thrown. + + A file containing the value that is expected + A file containing the actual value + The message to display if Streams are not equal + Arguments to be used in formatting the message + + + + Verifies that two files are equal. Two files are considered + equal if both are null, or if both have the same value byte for byte. + If they are not equal an is thrown. + + A file containing the value that is expected + A file containing the actual value + The message to display if objects are not equal + + + + Verifies that two files are equal. Two files are considered + equal if both are null, or if both have the same value byte for byte. + If they are not equal an is thrown. + + A file containing the value that is expected + A file containing the actual value + + + + Verifies that two files are equal. Two files are considered + equal if both are null, or if both have the same value byte for byte. + If they are not equal an is thrown. + + The path to a file containing the value that is expected + The path to a file containing the actual value + The message to display if Streams are not equal + Arguments to be used in formatting the message + + + + Verifies that two files are equal. Two files are considered + equal if both are null, or if both have the same value byte for byte. + If they are not equal an is thrown. + + The path to a file containing the value that is expected + The path to a file containing the actual value + The message to display if objects are not equal + + + + Verifies that two files are equal. Two files are considered + equal if both are null, or if both have the same value byte for byte. + If they are not equal an is thrown. + + The path to a file containing the value that is expected + The path to a file containing the actual value + + + + Asserts that two Streams are not equal. If they are equal + an is thrown. + + The expected Stream + The actual Stream + The message to be displayed when the two Stream are the same. + Arguments to be used in formatting the message + + + + Asserts that two Streams are not equal. If they are equal + an is thrown. + + The expected Stream + The actual Stream + The message to be displayed when the Streams are the same. + + + + Asserts that two Streams are not equal. If they are equal + an is thrown. + + The expected Stream + The actual Stream + + + + Asserts that two files are not equal. If they are equal + an is thrown. + + A file containing the value that is expected + A file containing the actual value + The message to display if Streams are not equal + Arguments to be used in formatting the message + + + + Asserts that two files are not equal. If they are equal + an is thrown. + + A file containing the value that is expected + A file containing the actual value + The message to display if objects are not equal + + + + Asserts that two files are not equal. If they are equal + an is thrown. + + A file containing the value that is expected + A file containing the actual value + + + + Asserts that two files are not equal. If they are equal + an is thrown. + + The path to a file containing the value that is expected + The path to a file containing the actual value + The message to display if Streams are not equal + Arguments to be used in formatting the message + + + + Asserts that two files are not equal. If they are equal + an is thrown. + + The path to a file containing the value that is expected + The path to a file containing the actual value + The message to display if objects are not equal + + + + Asserts that two files are not equal. If they are equal + an is thrown. + + The path to a file containing the value that is expected + The path to a file containing the actual value + + + + Adding this attribute to a method within a + class makes the method callable from the NUnit test runner. There is a property + called Description which is optional which you can provide a more detailed test + description. This class cannot be inherited. + + + + [TestFixture] + public class Fixture + { + [Test] + public void MethodToTest() + {} + + [Test(Description = "more detailed description")] + publc void TestDescriptionMethod() + {} + } + + + + + + Randomizer returns a set of random values in a repeatable + way, to allow re-running of tests if necessary. + + + + + Get a randomizer for a particular member, returning + one that has already been created if it exists. + This ensures that the same values are generated + each time the tests are reloaded. + + + + + Get a randomizer for a particular parameter, returning + one that has already been created if it exists. + This ensures that the same values are generated + each time the tests are reloaded. + + + + + Construct a randomizer using a random seed + + + + + Construct a randomizer using a specified seed + + + + + Return an array of random doubles between 0.0 and 1.0. + + + + + + + Return an array of random doubles with values in a specified range. + + + + + Return an array of random ints with values in a specified range. + + + + + Get a random seed for use in creating a randomizer. + + + + + Used to mark a field for use as a datapoint when executing a theory + within the same fixture that requires an argument of the field's Type. + + + + + Used to mark an array as containing a set of datapoints to be used + executing a theory within the same fixture that requires an argument + of the Type of the array elements. + + + + diff --git a/Twitterizer2.TestCases/bin/Release/Newtonsoft.Json.dll b/Twitterizer2.TestCases/bin/Release/Newtonsoft.Json.dll new file mode 100644 index 00000000..389329dc Binary files /dev/null and b/Twitterizer2.TestCases/bin/Release/Newtonsoft.Json.dll differ diff --git a/Twitterizer2.TestCases/bin/Release/Twitterizer2.TestCases.dll b/Twitterizer2.TestCases/bin/Release/Twitterizer2.TestCases.dll new file mode 100644 index 00000000..0aaedc7b Binary files /dev/null and b/Twitterizer2.TestCases/bin/Release/Twitterizer2.TestCases.dll differ diff --git a/Twitterizer2.TestCases/bin/Release/Twitterizer2.TestCases.pdb b/Twitterizer2.TestCases/bin/Release/Twitterizer2.TestCases.pdb new file mode 100644 index 00000000..99cb014e Binary files /dev/null and b/Twitterizer2.TestCases/bin/Release/Twitterizer2.TestCases.pdb differ diff --git a/Twitterizer2.TestCases/bin/Release/Twitterizer2.dll b/Twitterizer2.TestCases/bin/Release/Twitterizer2.dll new file mode 100644 index 00000000..9a77b5d5 Binary files /dev/null and b/Twitterizer2.TestCases/bin/Release/Twitterizer2.dll differ diff --git a/Twitterizer2.TestCases/bin/Release/Twitterizer2.pdb b/Twitterizer2.TestCases/bin/Release/Twitterizer2.pdb new file mode 100644 index 00000000..04e68a9f Binary files /dev/null and b/Twitterizer2.TestCases/bin/Release/Twitterizer2.pdb differ diff --git a/Twitterizer2.TestCases/bin/Release/Twitterizer2.xml b/Twitterizer2.TestCases/bin/Release/Twitterizer2.xml new file mode 100644 index 00000000..724b64ad --- /dev/null +++ b/Twitterizer2.TestCases/bin/Release/Twitterizer2.xml @@ -0,0 +1,4767 @@ + + + + Twitterizer2 + + + + + The base object class + + + + + The ITwitterObject interface. + + + + + + Gets or sets information about the user's rate usage. + + The rate limiting object. + + + + Gets or sets the oauth tokens. + + The oauth tokens. + + + + The format that all twitter dates are in. + + + + + The format that all twitter search api dates are in. + + + + + Gets or sets information about the user's rate usage. + + The rate limiting object. + + + + Gets or sets the oauth tokens. + + The oauth tokens. + + + + The Show User Command + + http://dev.twitter.com/doc/get/users/show + + + + The base command class. + + The business object the command should return. + + + + The ICommand interface. + + The Type of the BaseObject that the command returns + + + + + Initializes the command. + + + + + Executes the command. + + The results of the command. + + + + + Gets the request parameters. + + The request parameters. + + + + Initializes a new instance of the class. + + The method. + The end point. + The tokens. + The optional properties. + + + + Initializes the command. + + + + + Executes the command. + + The results of the command. + + + + Clones this instance. + + A new instance of the interface. + + + + Sets the command URI. + + The end point. + + + + Parses the rate limit headers. + + The result object. + The web response. + + + + Adds the result to cache. + + The cache key builder. + The cache. + The result object. + + + + Builds the request. + + The query parameters. + + A class. + + + + + Gets or sets the optional properties. + + The optional properties. + + + + Gets or sets the API method URI. + + The URI for the API method. + + + + Gets or sets the method. + + The method. + + + + Gets or sets the request parameters. + + The request parameters. + + + + Gets or sets the serialization delegate. + + The serialization delegate. + + + + Gets the request tokens. + + The request tokens. + + + + Initializes a new instance of the class. + + The request tokens. + The user id. + The username. + The options. + + + + Inits this instance. + + + + + Gets or sets the user ID. + + The user ID. + + + + Gets or sets the name of the user. + + The name of the user. + + + + The CursorCursorPagedCommand class. + + The type of BaseObject that the command returns. + + + + + Initializes a new instance of the class. + + The method. + The end point. + The tokens. + The options. + + + + Gets or sets the cursor. + + The cursor. + + Optional. + Breaks the results into pages. + A single page contains 100 users. + + + + + The User Search Command class. + + + + + The IPagedCommand interface. + + The type of BaseObject that the command returns. + + + + Initializes a new instance of the class. + + The HTTP method. + The end point. + The tokens. + The optional properties. + + + + Gets or sets the page number to obtain. + + The page number. + + + + Initializes a new instance of the class. + + The request tokens. + The query. + The options. + + + + Initializes the command. + + + + + Clones this instance. + + + A new instance of the interface. + + + + + Gets or sets the query. + + The query. + + + + Provides interaction with timelines + + + + + Returns the 20 most recent statuses, including retweets, posted by the authenticating user and that user's friends. This is the equivalent of /timeline/home on the Web. + + The tokens. + The options. + + A object. + + + + The tokens. + + + + The options. + + + + + Gets the user time line. + + The oauth tokens. + The user id. + The options. + + A instance. + + + + + Gets the public timeline. + + A . + + + + Gets the public timeline. + + The oauth tokens. + + A . + + + + + Obtains the authorized user's friends timeline. + + The tokens. + A . + + + + Obtains the authorized user's friends timeline. + + The tokens. + The options. + A . + + + + Returns the 20 most recent tweets of the authenticated user that have been retweeted by others. + + The tokens. + The options. + A instance. + + + + Returns the 20 most recent tweets of the authenticated user that have been retweeted by others. + + The tokens. + + A instance. + + + + + Returns the 20 most recent retweets posted by the authenticating user. + + The tokens. + The options. + A instance. + + + + Returns the 20 most recent retweets posted by the authenticating user. + + The tokens. + + A instance. + + + + + Returns the 20 most recent retweets posted by the authenticating user's friends. + + The tokens. + The options. + A instance. + + + + Returns the 20 most recent retweets posted by the authenticating user's friends. + + The tokens. + + A instance. + + + + + Returns the 20 most recent mentions (status containing @username) for the authenticating user. + + The tokens. + The options. + A instance. + + + + Returns the 20 most recent mentions (status containing @username) for the authenticating user. + + The tokens. + + A instance. + + + + + The twitter place class. Represents a place or area. + + + + + Lookups the specified latitude. + + The latitude. + The longitude. + The options. + A object or null. + + + + Gets or sets the country code. + + The country code. + + + + Gets or sets the type of the place. + + The type of the place. + + + + Gets or sets the address of the data. + + The address of the data. + + + + Gets or sets the country. + + The country. + + + + Gets or sets the address of the street. + + The address of the street. + + + + Gets or sets the full name. + + The full name. + + + + Gets or sets the name of the place. + + The name of the place. + + + + Gets or sets the place id. + + The place id. + + + + Gets or sets the bounding box. + + The bounding box. + + + + The command to update the user's status. (a.k.a. post a new tweet) + + + + + Initializes a new instance of the class. + + The request tokens. + The status text. + The optional properties. + + + + Initializes the command. + + + + + Gets or sets the status text. + + The status text. + + + + The Show Status Command + + + + + Initializes a new instance of the class. + + The request tokens. + The status id. + The options. + + + + Inits this instance. + + + + + The timeline options class. Provides optional parameters for timeline methods. + + + + + Provides a base class for method specific optional parameters, as well as properties for providing configuration settings at run time. + + + + + Initializes a new instance of the class. + + + + + Reads the configuration settings. + + + + + Allows modification of the API endpoint addresses to enable SSL communication. + + The default value can be set at an application level by adding a Twitterizer2.EnableSSL application setting with the value true. + For example: + + + + + + +]]> + + + The current configured value. true if enabled, otherwise false. Default: false + + + Allows configuration of the base address for API method requests for support for 3rd party 'twitter-like' APIs. + + + + + The default value can be set at an application level by adding a Twitterizer2.APIBaseAddress application setting with the base address as the value. + For example: + + + + + + +]]> + + The API end point base address. Default: "http://api.twitter.com/1/" + + + + Allows overriding of the default proxy settings for API call requests. + + The supplied , or null. + + + + + Allows run time enabling of API output caching. + + The default value can be set at an application level by adding a Twitterizer2.EnableCaching application setting with value true. + For example: + + + + + + +]]> + + + The currently configured value. true if enabled, otherwise false. Default: false + + + + + Allows configuration of the sliding expiration timespan for output caching. + + The default value can be set at an application level by adding a Twitterizer2.CacheTimeout application setting with value equal to the number of seconds of the duration. + For example: + + + + + + +]]> + + + The duration that API output should be cached, on a sliding expiration, once enabled. Default: 5 minutes + + + + + Initializes a new instance of the class. + + + + + Gets or sets the minimum (earliest) status id to request. + + The since id. + + + + Gets or sets the max (latest) status id to request. + + The max id. + + + + Gets or sets the number of messages to request. + + The number of messages to request. + + + + Gets or sets the page number to request. + + The page number. + + + + Gets or sets a value indicating whether user objects should contain only Id values. + + true if user objects should contain only Id values; otherwise, false. + + + + The direct messages options class. Provides a payload for the command. + + + + + Initializes a new instance of the class. + + + + + Gets or sets the minimum (earliest) status id to request. + + The since id. + + + + Gets or sets the max (latest) status id to request. + + The max id. + + + + Gets or sets the number of messages to request. + + The number of messages to request. + + + + Gets or sets the page number to request. + + The page number. + + + + The Status Update Options class + + + + + Initializes a new instance of the class. + + + + + Gets or sets the in reply to status id. + + The in reply to status id. + + + + Gets or sets the latitude. + + The latitude. + + + + Gets or sets the longitude. + + The longitude. + + + + Gets or sets a value indicating whether or not to put a pin on the exact coordinates a tweet has been sent from. + + true to put a pin on the exact coordinates; otherwise, false. + + + + Gets or sets a place in the world. These IDs can be retrieved from geo/reverse_geocode. + + The place id. + + + + The information class which gives general information about the assembly. + + + + + Obtains the current assembly version. + + The assembly version string in the format (#.#.#.#) + + + + The Retweeted By Me Command. + + + + + Initializes a new instance of the class. + + The request tokens. + The options. + + + + Initializes the command. + + + + + Clones this instance. + + + A new instance of the interface. + + + + + The Mentions Command class + + + + + Initializes a new instance of the class. + + The request tokens. + The options. + + + + Initializes the command. + + + + + Clones this instance. + + + A new instance of the interface. + + + + + The get lists command class + + + + + Initializes a new instance of the class. + + The request tokens. + The username. + The options. + + + + Initializes the command. + + + + + Clones this instance. + + + A new instance of the interface. + + + + + Gets or sets the username. + + The username. + + + + The Direct Messages Command + + + + + The base address to the API method. + + + + + Initializes a new instance of the class. + + The request tokens. + The options. + + + + Initializes the command. + + + + + A wrapper class for the lists collection (Twitter has their data structure wierd for this one) + + + + + Gets or sets the lists. + + The lists. + + + + Gets or sets the next cursor. + + The next cursor. + + + + Gets or sets the previous cursor. + + The previous cursor. + + + + The base class for object collections. + + The type of object stored in the collection. + + + + The oauth tokens + + + + + Gets or sets information about the user's rate usage. + + The rate limiting object. + + + + Gets or sets the oauth tokens. + + The oauth tokens. + + + + The Serialization Helper class. Provides a simple interface for common serialization tasks. + + The type of object to be deserialized + + + + Deserializes the specified web response. + + The web response. + The deserialization handler. + + A strongly typed object representing the deserialized data of type + + + + + Deserializes the specified web response. + + The web response. + + A strongly typed object representing the deserialized data of type + + + + + Deserializes the specified serializer. + + The data to be deserialized. + The javascript conversion deligate. + + A strongly typed object representing the deserialized data of type + + + + + Deserializes the specified serializer. + + The data to be deserialized. + + A strongly typed object representing the deserialized data of type + + + + + The JavascriptConversionDelegate. The delegate is invokes when using the JavaScriptSerializer to manually construct a result object. + + Contains nested dictionary objects containing deserialized values for manual parsing. + A strongly typed object representing the deserialized data of type + + + + The create list command class + + + + + Initializes a new instance of the class. + + The request tokens. + The username. + The list id or slug. + The options. + + + + Initializes the command. + + + + + The followers options class. Provides a payload for optional parameters of the FollowersCommand class. + + + + + Gets or sets the ID of the user for whom to request a list of followers. + + The user id. + + + + Gets or sets the screen name of the user for whom to request a list of followers. + + The name of the screen. + + + + The Create Friendship Options class + + + + + Initializes a new instance of the class. + + + + + Gets or sets a value indicating whether to enable delivery of statuses from this user to the authenticated user's device + + true if follow; otherwise, false. + + + + The XAuthUtility class. + + + + + Allows OAuth applications to directly exchange Twitter usernames and passwords for OAuth access tokens and secrets. + + The consumer key. + The consumer secret. + The username. + The password. + A instance. + + + + The command to obtain followers of a user. + + + + + Initializes a new instance of the class. + + The request tokens. + The options. + + + + Initializes the command. + + + + + Clones this instance. + + A cloned command object. + + + + The retweet command class. + + + + + The base address to the API method. + + + + + Initializes a new instance of the class. + + The request tokens. + The status id. + The options. + + + + Initializes the command. + + + + + The current trends options class. Provides a payload for optional parameters for the CurrentTrendsCommand class. + + + + + Gets or sets a value indicating whether [exclude hash tags]. + + true if [exclude hash tags]; otherwise, false. + + + + The twitter bounding box class. Represents a series of latitude and longitude coordinates that represents an area. + + + + + Gets or sets the type. + + The type of bounding box. + + + + Gets or sets the coordinates. + + The coordinates. + + + + Creates a friendship between the authenticated user and another user + + + + + The base address to the API method. + + + + + Initializes a new instance of the class. + + The request tokens. + The userid. + The optional properties. + + + + Initializes a new instance of the class. + + The request tokens. + Name of the user. + The optional properties. + + + + Initializes the command. + + + + + Gets or sets the user id. + + The user id. + + + + Gets or sets the username. + + The username. + + + + The Twitterizer Exception + + + + + + 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 object that holds the serialized object data. + The contextual information about the source or destination. + + + + When overridden in a derived class, sets the with information about the exception. + + 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 a null reference (Nothing in Visual Basic). + + + + + + + + + Parses the rate limit headers. + + The response. + + + + Gets or sets the result. + + The result. + + + + Gets or sets the response body. + + The response body. + + + + Gets or sets the rate limits. + + The rate limits. + + + + Gets or sets the error details. + + The error details. + + + + Gets the response that the remote host returned. + + + If a response is available from the Internet resource, a instance that contains the error response from an Internet resource; otherwise, null. + + + + Gets the bug report. + + The bug report. + + + + The Twitter Rate Limit Status class + + + + + Initializes a new instance of the class. + + + + + Initializes a new instance of the class. + + OAuth access tokens. + + + + Gets the rate limiting status status for the authenticated user. + + The OAuth tokens. + The options. + + A instance. + + + + + Gets the rate limiting status status based on the application's IP address. + + The OAuth tokens. + + A instance. + + + + + Gets the rate limiting status status based on the application's IP address. + + + A instance. + + + + + Gets or sets the remaining hits. + + The remaining hits. + + + + Gets or sets the hourly limit. + + The hourly limit. + + + + Gets or sets the UTC string value of the time rate limiting will reset. + + The reset time string. + + + + The Direct Message Collection class + + + + + The rate limit status command class. + + + + + Initializes a new instance of the class. + + The request tokens. + The options. + + + + Initializes the command. + + + + + The create list command class + + + + + Initializes a new instance of the class. + + The options. + + + + Initializes the command. + + + + + The create list command class + + + + + Initializes a new instance of the class. + + The request tokens. + The username. + The options. + + + + Initializes the command. + + + + + Clones this instance. + + + A new instance of the interface. + + + + + The reverse geocode command class. Performs a reverse geocode lookup. + + + + + Initializes a new instance of the class. + + The latitude. + The longitude. + The options. + + + + Initializes the command. + + + + + Deserializes the place element value. + + The value. + A object or null. + + + + Gets or sets the latitude. + + The latitude. + + + + Gets or sets the longitude. + + The longitude. + + + + Converts date strings returned by the Twitter API into + + + + + The date pattern for most dates returned by the API + + + + + Reads the json. + + The reader. + Type of the object. + The existing value. + The serializer. + The parsed value as a DateTime, or null. + + + + Writes the json. + + The writer. + The value. + The serializer. + + + + The TwitterUser class represents a twitter user account and provides methods for interacting with user-centric API methods. + + + + + Initializes a new instance of the class. + + + + + Returns extended information of a given user, specified by ID or screen name as per the required id parameter. The author's most recent status will be returned inline. + + A new instance of the class. + + This method interacts with the users/show API endpoint. Documentation can be found here: http://dev.twitter.com/doc/get/users/show + Indicates that a required argument was not supplied.Indicates that an argument supplied was not valid.Indicates that a command failed pre-execution validation. + The tokens.The user id.Optional parameters for runtime configuration settings. + + // Declare the user's id variable + decimal userId = 1; + + // Declare the options object for configuration settings + OptionalProperties options = new OptionalProperties(); + + // Declare our user variable and fetch the user's details + TwitterUser user = TwitterUser.Show(tokens, userId, options); + + + '-- Declare the user's id variable + Dim userId As decimal = 1 + + '-- Declare the options object for configuration settings + Dim options As new OptionalProperties() + + '-- Declare our user variable and fetch the user's details + Dim user As TwitterUser = TwitterUser.Show(tokens, userId, options) + + + + + + + + Returns extended information of a given user, specified by ID or screen name as per the required id parameter. The author's most recent status will be returned inline. + + A new instance of the class. + + This method interacts with the users/show API endpoint. Documentation can be found here: http://dev.twitter.com/doc/get/users/show + Indicates that a required argument was not supplied.Indicates that an argument supplied was not valid.Indicates that a command failed pre-execution validation. + The user id.Optional parameters for runtime configuration settings. + + // Declare the user's id variable + decimal userId = 1; + + // Declare the options object for configuration settings + OptionalProperties options = new OptionalProperties(); + + // Declare our user variable and fetch the user's details + TwitterUser user = TwitterUser.Show(userId, options); + + + '-- Declare the user's id variable + Dim userId As decimal = 1 + + '-- Declare the options object for configuration settings + Dim options As new OptionalProperties() + + '-- Declare our user variable and fetch the user's details + Dim user As TwitterUser = TwitterUser.Show(userId, options) + + + + + + Returns extended information of a given user, specified by ID or screen name as per the required id parameter. The author's most recent status will be returned inline. + + A new instance of the class. + + This method interacts with the users/show API endpoint. Documentation can be found here: http://dev.twitter.com/doc/get/users/show + Indicates that a required argument was not supplied.Indicates that an argument supplied was not valid.Indicates that a command failed pre-execution validation. + The tokens.The user id. + + // Declare the user's id variable + decimal userId = 1; + + // Declare our user variable and fetch the user's details + TwitterUser user = TwitterUser.Show(tokens, userId); + + + '-- Declare the user's id variable + Dim userId As decimal = 1 + + '-- Declare our user variable and fetch the user's details + Dim user As TwitterUser = TwitterUser.Show(tokens, userId) + + + + + + Returns extended information of a given user, specified by ID or screen name as per the required id parameter. The author's most recent status will be returned inline. + + A new instance of the class. + + This method interacts with the users/show API endpoint. Documentation can be found here: http://dev.twitter.com/doc/get/users/show + Indicates that a required argument was not supplied.Indicates that an argument supplied was not valid.Indicates that a command failed pre-execution validation. + The user id. + + // Declare the user's id variable + decimal userId = 1; + + // Declare our user variable and fetch the user's details + TwitterUser user = TwitterUser.Show(userId); + + + '-- Declare the user's id variable + Dim userId As decimal = 1 + + '-- Declare our user variable and fetch the user's details + Dim user As TwitterUser = TwitterUser.Show(userId) + + + + + + Returns extended information of a given user, specified by ID or screen name as per the required id parameter. The author's most recent status will be returned inline. + + A new instance of the class. + + This method interacts with the users/show API endpoint. Documentation can be found here: http://dev.twitter.com/doc/get/users/show + Indicates that a required argument was not supplied.Indicates that an argument supplied was not valid.Indicates that a command failed pre-execution validation. + The tokens.The user name.The options. + + // Declare the username variable + string userName = "twit_er_izer"; + + // Declare the options object for configuration settings + OptionalProperties options = new OptionalProperties(); + + // Declare our user variable and fetch the user's details + TwitterUser user = TwitterUser.Show(tokens, userName, options); + + + '-- Declare the user's id variable + Dim UserName As String = "twit_er_izer" + + '-- Declare the options object for configuration settings + Dim options As new OptionalProperties() + + '-- Declare our user variable and fetch the user's details + Dim user As TwitterUser = TwitterUser.Show(tokens, UserName, options) + + + + + + + + Returns extended information of a given user, specified by ID or screen name as per the required id parameter. The author's most recent status will be returned inline. + + A new instance of the class. + + This method interacts with the users/show API endpoint. Documentation can be found here: http://dev.twitter.com/doc/get/users/show + Indicates that a required argument was not supplied.Indicates that an argument supplied was not valid.Indicates that a command failed pre-execution validation. + The user name.The options. + + // Declare the username variable + string userName = "twit_er_izer"; + + // Declare the options object for configuration settings + OptionalProperties options = new OptionalProperties(); + + // Declare our user variable and fetch the user's details + TwitterUser user = TwitterUser.Show(userName, options); + + + '-- Declare the user's id variable + Dim UserName As String = "twit_er_izer" + + '-- Declare the options object for configuration settings + Dim options As new OptionalProperties() + + '-- Declare our user variable and fetch the user's details + Dim user As TwitterUser = TwitterUser.Show(UserName, options) + + + + + + + Returns extended information of a given user, specified by ID or screen name as per the required id parameter. The author's most recent status will be returned inline. + + A new instance of the class. + + This method interacts with the users/show API endpoint. Documentation can be found here: http://dev.twitter.com/doc/get/users/show + Indicates that a required argument was not supplied.Indicates that an argument supplied was not valid.Indicates that a command failed pre-execution validation. + The tokens.The user name. + + // Declare the username variable + string userName = "twit_er_izer"; + + // Declare our user variable and fetch the user's details + TwitterUser user = TwitterUser.Show(tokens, userName); + + + '-- Declare the user's id variable + Dim UserName As String = "twit_er_izer" + + '-- Declare our user variable and fetch the user's details + Dim user As TwitterUser = TwitterUser.Show(tokens, UserName, options) + + + + + + + Returns extended information of a given user, specified by ID or screen name as per the required id parameter. The author's most recent status will be returned inline. + + A new instance of the class. + + This method interacts with the users/show API endpoint. Documentation can be found here: http://dev.twitter.com/doc/get/users/show + Indicates that a required argument was not supplied.Indicates that an argument supplied was not valid.Indicates that a command failed pre-execution validation. + The user name. + + // Declare the username variable + string userName = "twit_er_izer"; + + // Declare our user variable and fetch the user's details + TwitterUser user = TwitterUser.Show(userName); + + + '-- Declare the user's id variable + Dim UserName As String = "twit_er_izer" + + '-- Declare our user variable and fetch the user's details + Dim user As TwitterUser = TwitterUser.Show(UserName) + + + + + + Run a search for users similar to the Find People button on Twitter.com; the same results returned by people search on Twitter.com will be returned by using this API. + + This method interacts with the users/search API endpoint. Documentation can be found here: http://dev.twitter.com/doc/get/users/search + Indicates that a required argument was not supplied.Indicates that an argument supplied was not valid.Indicates that a command failed pre-execution validation. + A instance. + + The OAuth access tokens.The search query.Optional parameters. + + // Declare the search query + string query = "from:twit_er_izer @twitterapi"; + + // Declare the optional parameter object + UserSearchOptions options = new UserSearchOptions(); + options.NumberPerPage = 10; + options.Page = 2; + + // Perform the search + TwitterUserCollection searchResults = TwitterUser.Search(oauthTokens, query, options); + + + '-- Declare the search query + Dim Query As String = "from:twit_er_izer @twitterapi" + + '-- Declare the optional parameter object + Dim options As new UserSearchOptions() + options.NumberPerPage = 10 + options.Page = 2 + + '-- Perform the search + Dim searchResults As TwitterUserCollection = TwitterUser.Search(oauthTokens, query, options) + + + + + + Run a search for users similar to the Find People button on Twitter.com; the same results returned by people search on Twitter.com will be returned by using this API. + + This method interacts with the users/search API endpoint. Documentation can be found here: http://dev.twitter.com/doc/get/users/search + Indicates that a required argument was not supplied.Indicates that an argument supplied was not valid.Indicates that a command failed pre-execution validation. + A instance. + + The OAuth access tokens.The search query. + + // Declare the search query + string query = "from:twit_er_izer @twitterapi"; + + // Perform the search + TwitterUserCollection searchResults = TwitterUser.Search(oauthTokens, query); + + + '-- Declare the search query + Dim Query As String = "from:twit_er_izer @twitterapi" + + '-- Perform the search + Dim searchResults As TwitterUserCollection = TwitterUser.Search(oauthTokens, query) + + + + + + Gets or sets the User ID. + + The User ID. + + + + Gets or sets the name of the user. + + The name of the user. + + + + Gets or sets the location. + + The location. + + + + Gets or sets the description. + + The description. + + + + Gets or sets the status. + + The status. + + + + Gets or sets the created date. + + The created date. + + + + Gets or sets the time zone. + + The time zone. + + + + Gets or sets the number of followers. + + The number of followers. + + + + Gets or sets the number of statuses. + + The number of statuses. + + + + Gets or sets the number of friends. + + The number of friends. + + + + Gets or sets a value indicating whether the user has enabled contributors access to his or her account. + + The is contributors enabled value. + + + + Gets or sets the language. + + The language. + + + + Gets or sets a value indicating whether the user receives notifications. + + + true if the user receives notifications; otherwise, false. + + + + + Gets or sets the screenname. + + The screenname. + + + + Gets or sets a value indicating whether the authenticated user is following this user. + + + true if the authenticated user is following this user; otherwise, false. + + + + + Gets or sets the number of favorites. + + The number of favorites. + + + + Gets or sets a value indicating whether this user is protected. + + + true if this user is protected; otherwise, false. + + + + + Gets or sets a value indicating whether this user is geo enabled. + + + true if this user is geo enabled; otherwise, false. + + + + + Gets or sets the time zone offset. + + The time zone offset. + Also called the Coordinated Universal Time (UTC) offset. + + + + Gets or sets the user's website. + + The website address. + + + + Gets or sets the color of the profile background. + + The color of the profile background. + + + + Gets the color of the profile background. + + The color of the profile background. + + + + Gets or sets a value indicating whether this user's profile background image is tiled. + + + true if this user's profile background image is tiled; otherwise, false. + + + + + Gets or sets the color of the profile link. + + The color of the profile link. + + + + Gets the color of the profile link. + + The color of the profile link. + + + + Gets or sets the profile background image location. + + The profile background image location. + + + + Gets or sets the color of the profile text. + + The color of the profile text. + + + + Gets the color of the profile text. + + The color of the profile text. + + + + Gets or sets the profile image location. + + The profile image location. + + + + Gets or sets the color of the profile sidebar border. + + The color of the profile sidebar border. + + + + Gets the color of the profile sidebar border. + + The color of the profile sidebar border. + + + + The Twitter trend timeframe class. + + + + + Deserializes the json. + + The value. + A object. + + + + Gets or sets the effective date. + + The effective date. + + + + Gets or sets the trends. + + The trends. + + + + An exception class indicating that required parameters were missing from a command. + + The command type, derived from ITwitterObject. + + + + 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). + + + + + When overridden in a derived class, sets the with information about the exception. + + 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 a null reference (Nothing in Visual Basic). + + + + + + + + + Gets or sets the name of the method. + + The name of the method. + + + + Gets the name of the command. + + The name of the command. + + + + Gets the parameters. + + The parameters. + + + + Gets or sets the command. + + The command. + + + + The TwitterUserCollection class. + + + + + Gets the next page. + + A instance. + The next page. + + + + Gets the previous page. + + A instance. + The previous page. + + + + Gets or sets the next cursor. + + The next cursor. + + + + Gets or sets the previous cursor. + + The previous cursor. + + + + Gets or sets information about the user's rate usage. + + The rate limiting object. + + + + Gets or sets the paged command. + + The paged command. + + + + Gets or sets the cursor paged command. + + The cursor paged command. + + + + Values returned by Twitter when getting a request token or an access token. + + + + + Gets or sets the token. + + The token. + + + + Gets or sets the token secret. + + The token secret. + + + + Gets or sets the user ID. + + The user ID. + + + + Gets or sets the screenname. + + The screenname. + + + + Gets or sets the verification string. + This is required when overriding the application's callback url. + + The verification string. + + + + The command class to delete a status update. + + + + + Initializes a new instance of the class. + + The tokens. + The status id. + The options. + + + + Initializes the command. + + + + + Gets or sets the status id. + + The status id. + + + + The UpdateListOptions class. Provides a payload for optional parameters for the UpdaetListCommand class. + + + + + Gets or sets the name of the list. + + The name of the list. + + + + Gets or sets a value indicating whether this instance is public. + + true if this instance is public; otherwise, false. + + + + Gets or sets the description. + + The description. + + + + The update list command class + + + + + Initializes a new instance of the class. + + The tokens. + The username. + The list id. + The options. + + + + Initializes the command. + + + + + The list membership command class + + + + + Initializes a new instance of the class. + + The request tokens. + The username. + The options. + + + + Initializes the command. + + + + + Clones this instance. + + + A new instance of the interface. + + + + + Gets or sets the username. + + The username. + + + + The command to obtain followers of a user. + + + + + Initializes a new instance of the class. + + The request tokens. + The options. + + + + Initializes the command. + + + + + Clones this instance. + + A cloned command object. + + + + The available search result type filter options. + + + + + Use Twitter's default + + + + + Include both popular and real time results in the response. + + + + + Return only the most recent results in the response. + + + + + Return only the most popular results in the response. + + + + + The search options class. Provides a payload for optional parameters for the SearchCommand class. + + + + + Initializes a new instance of the class. + + + + + Gets or sets the language. + + The language. + + + + Gets or sets the locale. + + The locale. + + + + Gets or sets the max id. + + The max id. + + + + Gets or sets the number per page. + + The number per page. + + + + Gets or sets the page number. + + The page number. + + + + Gets or sets the since date. + + The since date. + + + + Gets or sets the since id. + + The since id. + + + + Gets or sets the geo code string. + The parameter value is specified by "latitude,longitude,radius", where radius units must be specified as either "mi" (miles) or "km" (kilometers). Note that you cannot use the near operator via the API to geocode arbitrary locations; however you can use this geocode parameter to search near geocodes directly. + + The geo code. + + + + Gets or sets a value indicating whether to prefix the user name to the tweet. + + + true to prefix the user name to the tweet; otherwise, false. + + + + + Gets or sets the until date. + + The until date. + + + + Gets or sets the type of the result. + + The type of the result. + + + + The delete friendship command class. + + + + + The base address to the API method. + + + + + Initializes a new instance of the class. + + The request tokens. + The user id. + The user name. + The optional properties. + + + + Initializes the command. + + + + + Gets or sets the user id. + + The user id. + + + + Gets or sets the username. + + The username. + + + + Provides interaction with the Twitter API to obtain and manage relationships between users. + + + + + Returns the authenticating user's followers, each with current status inline. + + The tokens. + The options. + + A instance. + + + + + Returns the authenticating user's followers, each with current status inline. + + The tokens. + + A instance. + + + + + Returns the authenticating user's followers, each with current status inline. + + The options. + + A instance. + + + + + Returns a user's friends, each with current status inline. They are ordered by the order in which the user followed them, most recently followed first, 100 at a time. + + The tokens. + The options. + + A instance. + + Please note that the result set isn't guaranteed to be 100 every time as suspended users will be filtered out. + + + + Returns a user's friends, each with current status inline. They are ordered by the order in which the user followed them, most recently followed first, 100 at a time. + + The tokens. + + A instance. + + Please note that the result set isn't guaranteed to be 100 every time as suspended users will be filtered out. + + + + Returns a user's friends, each with current status inline. They are ordered by the order in which the user followed them, most recently followed first, 100 at a time. + + The options. + + A instance. + + Please note that the result set isn't guaranteed to be 100 every time as suspended users will be filtered out. + + + + Allows the authenticating users to follow the user specified in the userID parameter. + + The tokens. + The user id. + + Returns the followed user in the requested format when successful. + + + + + Allows the authenticating users to follow the user specified in the userID parameter. + + The tokens. + The user id. + The options. + + Returns the followed user in the requested format when successful. + + + + + Allows the authenticating users to follow the user specified in the userName parameter. + + The tokens. + The user name. + + Returns the followed user in the requested format when successful. + + + + + Allows the authenticating users to follow the user specified in the userName parameter. + + The tokens. + The user name. + The options. + + Returns the followed user in the requested format when successful. + + + + + Allows the authenticating users to unfollow the user specified in the ID parameter. + + The tokens. + The user id. + + Returns the unfollowed user in the requested format when successful. + + + + + Allows the authenticating users to unfollow the user specified in the ID parameter. + + The tokens. + The user id. + The options. + + Returns the unfollowed user in the requested format when successful. + + + + + Allows the authenticating users to unfollow the user specified in the ID parameter. + + The tokens. + The username. + + Returns the unfollowed user in the requested format when successful. + + + + + Allows the authenticating users to unfollow the user specified in the ID parameter. + + The tokens. + The username. + The options. + + Returns the unfollowed user in the requested format when successful. + + + + + Returns detailed information about the relationship between two users. + + The tokens. + The target user id. + A instance. + + + + Returns detailed information about the relationship between two users. + + The tokens. + The target user id. + The options. + A instance. + + + + Returns detailed information about the relationship between two users. + + The tokens. + The source user id. + The target user id. + A instance. + + + + Returns detailed information about the relationship between two users. + + The tokens. + The source user id. + The target user id. + The options. + A instance. + + + + Returns detailed information about the relationship between two users. + + The tokens. + The target user name. + A instance. + + + + Returns detailed information about the relationship between two users. + + The tokens. + The target user name. + The options. + A instance. + + + + Returns detailed information about the relationship between two users. + + The tokens. + The source user name. + The target user name. + A instance. + + + + Returns detailed information about the relationship between two users. + + The tokens. + The source user name. + The target user name. + The options. + A instance. + + + + Returns detailed information about the relationship between two users. + + The first user id. + The second user id. + + A instance. + + + + + Returns detailed information about the relationship between two users. + + The first username. + The second username. + + A instance. + + + + + The TwitterTrend class. + + + + + Gets the current trends. + + The options. + + A instance. + + + + + Gets the current trends. + + + A instance. + + + + + Gets or sets the name. + + The name of the trend. + + + + Gets or sets the address. + + The address. + + + + Gets or sets the search query. + + The search query. + + + + The Twitter search result wrapper class + + + + + Gets or sets the results. + + The results. + + + + Gets or sets the max id. + + The max id. + + + + Gets or sets the since id. + + The since id. + + + + Gets or sets the refresh query string. + + The refresh query string. + + + + Gets or sets the next page query string. + + The next page query string. + + + + Gets or sets the results per page. + + The results per page. + + + + Gets or sets the page number. + + The page number. + + + + Gets or sets the completed in. + + The completed in. + + + + Gets or sets the query. + + The query. + + + + The Command Performer Class + + The business object the performer should return. + + + + + Performs the action. + + The command. + The parsed result of the action. + + + + + + The Home Timeline Command + + + + + Initializes a new instance of the class. + + The request tokens. + The optional properties. + + + + Initializes the command. + + + + + Clones this instance. + + A cloned command object. + + + + The Retweets Options class. Provides a payload for optional parameters for the Retweets Command + + + + + Gets or sets the count of statuses to return. + + The number of statuses to return. + + + + The create list command class + + + + + Initializes a new instance of the class. + + The request tokens. + The query. + The options. + + + + Initializes the command. + + + + + Gets or sets the query. + + The query. + + + + The Twitter Place Collection class. A collection of objects. + + + + + The TwitterStatusCollection class. + + + + + Gets the next page. + + A instance. + + + + Gets the previous page. + + A instance. + + + + Gets or sets the command. + + The command. + + + + Provides data about the user's current rate limiting. + + + + + Gets the remaining number of requests until requests are denied. + + The remaining requests. + + + + Gets the total number of requests allowed before requests are denied. + + The total number of requests. + + + + Gets the date the remaining number of requests will be reset. + + The reset date. + + + + Twitter Error Details class + + Often, twitter returns error details in the body of response. This class represents the data structure of the error for deserialization. + + + + Gets or sets the request path. + + The request path. + + + + Gets or sets the error message. + + The error message. + + + + Gets or sets information about the user's rate usage. + + The rate limiting object. + + + + Gets or sets the oauth tokens. + + The oauth tokens. + + + + The retweets command class. + + + + + Initializes a new instance of the class. + + The request tokens. + The status id. + The options. + + + + Initializes the command. + + + + + The Twitter Search Result class. + + + + + Gets or sets the profile image URL. + + The profile image URL. + + + + Gets or sets the created date. + + The created date. + + + + Gets or sets the name of from user screen. + + The name of from user screen. + + + + Gets or sets from user id. + + From user id. + + + + Gets or sets the name of to user screen. + + The name of to user screen. + + + + Gets or sets to user id. + + To user id. + + + + Gets or sets the status text. + + The status text. + + + + Gets or sets the status id. + + The status id. + + + + Gets or sets the source. + + The source. + + + + Gets or sets the language. + + The language. + + + + The Twitter Result Type Enumeration + + + + + In a future release this will become the default value. Include both popular and real time results in the response. + + + + + The current default value. Return only the most recent results in the response. + + + + + Return only the most popular results in the response. + + + + + The Twitter User Wrapper class. + + + + + The private collection for the contained collection + + + + + Gets or sets the users. + + The users. + + + + Gets or sets the next cursor. + + The next cursor. + + + + Gets or sets the previous cursor. + + The previous cursor. + + + + Describes the result status of a request + + + + + The request was completed successfully + + + + + The URI requested is invalid or the resource requested, such as a user, does not exists. + + + + + The request was invalid. An accompanying error message will explain why. + + + + + Authentication credentials were missing or incorrect. + + + + + Returned by the Search API when an invalid format is specified in the request. + + + + + The authorized user, or client IP address, is being rate limited. + + + + + Twitter is currently down. + + + + + Twitter is online, but is overloaded. Try again later. + + + + + Something unexpected happened. See the error message for additional information. + + + + + The twitter status class. Provides thread-safe information about the last request made. + + + + + A lock for the last status instance + + + + + The last request status + + + + + Initializes a new instance of the class. + + + + + Updates the request status. + + The web response. + true if the status was updated successfully, otherwise false + + + + Gets the last request status. + + The last request status. + + + + Gets the full path. + + The full path. + + + + Gets the error details. + + The error details. + + + + Gets the response body. + + The response body. + + + + Gets the status. + + The status. + + + + The namespace contains abstract classes and interfaces + + + + + The show friendship command class. + + + + + The base address to the API method. + + + + + Initializes a new instance of the class. + + The tokens. + The source user id. + Name of the source user. + The target user id. + Name of the target screen. + The optional properties. + + + + Initializes the command. + + + + + Gets or sets the id of the source user. + + The source id. + + + + Gets or sets the screenname of the source user. + + The screenname of the source user. + + + + Gets or sets the id of the target user. + + The target id. + + + + Gets or sets the screenname of the target user. + + The screenname of the target user. + + + + The Retweeted By Me Command. + + + + + Initializes a new instance of the class. + + The request tokens. + The options. + + + + Initializes the command. + + + + + Clones this instance. + + + A new instance of the interface. + + + + + The Twitter Relationship entity class + + + + + The relationship source + + + + + The relationship target + + + + + Initializes a new instance of the class. + + OAuth access tokens. + + + + Initializes a new instance of the class. + + + + + Gets or sets the source. + + The source. + + + + Gets or sets the target. + + The target. + + + + Gets or sets the relationship. + + The relationship. + + + + The create list command class + + + + + Initializes a new instance of the class. + + The request tokens. + The name of the list. + The username. + The options. + + + + Initializes the command. + + + + + Gets or sets the name of the list. + + The name of the list. + + + + Gets or sets a value indicating whether this instance is public. + + true if this instance is public; otherwise, false. + + + + Gets or sets the description. + + The description. + + + + The Twitter Search Result Collection class + + + + + The Twitter Search Class + + + + + Searches Twitter with the the specified query. + + The query. + + A instance. + + + + + Searches Twitter with the the specified query. + + The query. + The options. + + A instance. + + + + + The twitter list entity class + + + + + Initializes a new instance of the class. + + OAuth access tokens. + + + + Initializes a new instance of the class. + + + + + Creates a new list. + + The oauth tokens. + The username. + The list name. + if set to true creates a public list. + The description. + The options. + A instance. + + + + Modifies a list. + + The oauth tokens. + The username. + The list id. + The options. + A instance. + + + + List the lists of the specified user. Private lists will be included if the authenticated users is the same as the user who's lists are being returned. + + The tokens. + The username. + The options. + + A instance. + + + + + List the lists of the specified user. Private lists will be included if the authenticated users is the same as the user who's lists are being returned. + + The tokens. + The username. + + A instance. + + + + + List the lists of the specified user. Private lists will be included if the authenticated users is the same as the user who's lists are being returned. + + The username. + The options. + + A instance. + + + + + List the lists of the specified user. Private lists will be included if the authenticated users is the same as the user who's lists are being returned. + + The username. + + A instance. + + + + + Gets a single list by id number. + + The tokens. + The username. + The list id or slug. + The options. + + A instance. + + + + + Deletes the specified list. + + The tokens. + The username. + The list id or slug. + The options. + A instance. + + + + Show tweet timeline for members of the specified list. + + The tokens. + The username. + The list id. + The options. + + A instance. + + + + + List the lists the specified user has been added to. + + The tokens. + The username. + The options. + + A instance. + + + + + List the lists the specified user has been added to. + + The tokens. + The username. + + A instance. + + + + + List the lists the specified user follows. + + The tokens. + The options. + + A instance. + + + + + List the lists the specified user follows. + + The tokens. + + A instance. + + + + + Gets or sets the id. + + The list id. + + + + Gets or sets the name. + + The list name. + + + + Gets or sets the full name. + + The full name. + + + + Gets or sets the slug. + + The list slug. + + + + Gets or sets the description. + + The description. + + + + Gets or sets the number of subscribers. + + The number of subscribers. + + + + Gets or sets the number of members. + + The number of members. + + + + Gets or sets the absolute path. + + The absolute path. + + + + Gets or sets the mode. + + The list mode. + + + + Gets or sets the user that owns the list. + + The owning user. + + + + Gets a value indicating whether this instance is public. + + true if this instance is public; otherwise, false. + + + + Enumeration of the supported HTTP verbs supported by the + + + + + The HTTP GET method is used to retrieve data. + + + + + The HTTP POST method is used to transmit data. + + + + + The HTTP DELETE method is used to indicate that a resource should be deleted. + + + + A utility for handling authorization and request signatures for the OAuth protocol. + Before you begin, you will need to register your application with Twitter. + + To authenticate a user, there are 3 steps you will take:
+ 1) Obtain a Request Token
+ 2) Authentication
+ 3) Obtain an Access Token +
+
+ First, you must obtain a request token from the API. + + string consumerKey = "XXX"; + string consumerSecret = "XXX"; + + // Obtain a request token + OAuthTokenResponse requestToken = OAuthUtility.GetRequestToken(consumerKey, consumerSecret); + + // Direct or instruct the user to the following address: + Uri authorizationUri = OAuthUtility.BuildAuthorizationUri(requestToken.Token); + + + Dim consumerKey As String = "XXX" + Dim consumerSecret As String = "XXX" + + '-- Obtain a request token + Dim requestToken As OAuthTokenResponse = OAuthUtility.GetRequestToken(consumerKey, consumerSecret) + + '-- Direct or instruct the user to the following address: + Dim authorizationUri As Uri = OAuthUtility.BuildAuthorizationUri(requestToken.Token) + + + After the user has returned, you must obtain or reuse the request token and obtain the verifier value. For web applications, both values will be provided on the querystring to the callback url as oauth_token and oauth_verifier, respectively. For desktop and mobile applications, the verifier will be a numeric PIN supplied to the user. + + + string consumerKey = "XXX"; + string consumerSecret = "XXX"; + string requestToken = "XXX"; + string verifier = "XXX"; + + // Obtain the access token for this user. + OAuthTokenResponse accessToken = OAuthUtility.GetAccessToken(consumerKey, consumerSecret, requestToken, verifier); + + // TODO: Save the access token to a database, session, xml file, or whereever my user data is stored. + + + Dim consumerKey As String = "XXX" + Dim consumerSecret As String = "XXX" + Dim requestToken As String = "XXX" + Dim verifier As String = "XXX" + + '-- Obtain the access token for this user. + Dim accessToken As OAuthTokenResponse = OAuthUtility.GetAccessToken(consumerKey, consumerSecret, requestToken, verifier) + + '-- TODO: Save the access token to a database, session, xml file, or whereever my user data is stored. + + +
+ + + The name of the signature type twiter uses. + + + + + Gets a new OAuth request token from the twitter api. + + The consumer key. + The consumer secret. + + A new instance. + + + + + Gets a new OAuth request token from the twitter api. + + The consumer key. + The consumer secret. + Address of the callback. + + A new instance. + + + + + Gets the access token from pin. + + The consumer key. + The consumer secret. + The request token. + The pin number or verifier string. + + An class containing access token information. + + + + + This is a different Url Encode implementation since the default .NET one outputs the percent encoding in lower case. + While this is not a problem with the percent encoding spec, it is used in upper case throughout OAuth + + The value to Url encode + Returns a Url encoded string + + + + Builds the authorization URI. + + The request token. + A new instance. + + + + Builds the authorization URI. + + The request token. + if set to true, the authenticate url will be used. (See: "Sign in with Twitter") + A new instance. + + + + Creates the OAuth request. + + The base URL. + The parameters. + The verb. + The consumer key. + The consumer secret. + The access or request token. + The token secret. + + A new instance of the class. + + + + + Generates the query string for HTTP GET requests. + + The parameters. + + A string of all parameters prepared for use in a querystring. + + + + + Generates the authorization header. + + The new parameters. + A string value of all OAuth parameters formatted for use in the Authorization HTTP header. + + + + Generate the timestamp for the signature + + A timestamp value in a string. + + + + Generate a nonce + + A random number between 123400 and 9999999 in a string. + + + + Generates and adds a signature to parameters. + + The base URL. + The parameters. + The verb. + The consumer secret. + The token secret. + + + + Normalizes the URL. + + The URL to normalize. + The normalized url string. + + + + URLs the encode. + + The parameters. + A string of all the keys and value pairs with the values encoded. + + + + The user timeline command. + + + + + Initializes a new instance of the class. + + The request tokens. + The options. + + + + Initializes the command. + + + + + Clones this instance. + + A cloned command object. + + + + The Friends Timeline Command class + + + + + Initializes a new instance of the class. + + The request tokens. + The options. + + + + Initializes the command. + + + + + Clones this instance. + + + A new instance of the interface. + + + + + The list statuses options class. Provides a payload for the ListStatusesCommand class. + + + + + Gets or sets the since id. + + The since id. + + + + Gets or sets the max id. + + The max id. + + + + Gets or sets the number of items per page to request. + + The number of items per page. + + + + Gets or sets the page. + + The page number. + + + + Identifies command classes that must enforce rate limiting. This will cause rate status to be queried before each command call. + + + + + Initializes a new instance of the class. + + + + + The TwitterStatus class represents a twitter status (also refered to as a tweet) and provides methods for interacting with status-centric API methods. + + + + + Initializes a new instance of the class. + + + + + Updates the authenticated user's status to the supplied text. + + The tokens. + The status text. + A object of the newly created status. + + + + Updates the specified tokens. + + The tokens. + The status text. + The options. + + A object of the newly created status. + + + + + Deletes the specified tokens. + + The oauth tokens. + The status id. + The options. + + A object of the deleted status. + + + + + Deletes the specified tokens. + + The oauth tokens. + The status id. + A object of the deleted status. + + + + Returns a single status, with user information, specified by the id parameter. + + The tokens. + The status id. + The options. + A instance. + + + + Returns a single status, with user information, specified by the id parameter. + + The tokens. + The status id. + A instance. + + + + Returns a single status, with user information, specified by the id parameter. + + The status id. + A instance. + + + + Retweets a tweet. Requires the id parameter of the tweet you are retweeting. (say that 5 times fast) + + The tokens. + The status id. + The options. + A representing the newly created tweet. + + + + Retweets a tweet. Requires the id parameter of the tweet you are retweeting. (say that 5 times fast) + + The tokens. + The status id. + A representing the newly created tweet. + + + + Returns up to 100 of the first retweets of a given tweet. + + The tokens. + The status id. + The options. + + A instance. + + + + + Returns up to 100 of the first retweets of a given tweet. + + The tokens. + The status id. + A instance. + + + + Gets or sets the status id. + + The status id. + + + + Gets or sets a value indicating whether this status message is truncated. + + + true if this status message is truncated; otherwise, false. + + + + + Gets or sets the created date. + + The created date. + + + + Gets or sets the source. + + The source. + + + + Gets or sets the screenName the status is in reply to. + + The screenName. + + + + Gets or sets the user id the status is in reply to. + + The user id. + + + + Gets or sets the status id the status is in reply to. + + The status id. + + + + Gets or sets a value indicating whether the authenticated user has favorited this status. + + + true if this instance is favorited; otherwise, false. + + + + + Gets or sets the text of the status. + + The status text. + + + + Gets or sets the user. + + The user that posted this status. + + + + Gets or sets the retweeted status. + + The retweeted status. + + + + Gets or sets the place. + + The place. + + + + The delegate to handle each status received. + + The status received. + + + + The TwitterStream class. Provides an interface to real-time status changes. + + + + + The web request + + + + + This value is set to true to indicate that the stream connection should be closed. + + + + + Initializes a new instance of the class. + + The username. + The password. + + + + Starts the stream. + + + + + Ends the stream. + + + + + Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources. + + + + + Occurs when a status is received from the stream. + + + + + Gets or sets the username. + + The username. + + + + Gets or sets the password. + + The password. + + + Contains security tokens nessisary for performing authorized actions against the Twitter API + To perform authorized actions, you must create a new OAuthTokens variable and supply values for the , , , and properties, as follows: + + OAuthTokens tokens = new OAuthTokens(); + tokens.AccessToken = "XXX"; + tokens.AccessTokenSecret = "XXX"; + tokens.ConsumerKey = "XXX"; + tokens.ConsumerSecret = "XXX"; + + + Dim tokens As new OAuthTokens(); + tokens.AccessToken = "XXX" + tokens.AccessTokenSecret = "XXX" + tokens.ConsumerKey = "XXX" + tokens.ConsumerSecret = "XXX" + + + + + + Gets or sets the access token. + + The access token. + + + + Gets or sets the access token secret. + + The access token secret. + + + + Gets or sets the consumer key. + + The consumer key. + + + + Gets or sets the consumer secret. + + The consumer secret. + + + + The get list statuses command class + + + + + Initializes a new instance of the class. + + The request tokens. + The username. + The list id. + The options. + + + + Initializes the command. + + + + + Clones this instance. + + + A new instance of the interface. + + + + + Gets the username. + + The username. + + + + Gets the list id. + + The list id. + + + + The create list command class + + + + + Initializes a new instance of the class. + + The request tokens. + The username. + The list id or slug. + The options. + + + + Initializes the command. + + + + + The list favorites options class. Provides a payload for optional parameters of the ListFavoritesCommand class. + + + + + Gets or sets the user name or id of the user for whom to return results for. + + The user name or id of the user for whom to return results for. + + + + Gets or sets the page. + + The page number. + + + + The direct messages sent options class. Provides a payload for the command. + + + + + Initializes a new instance of the class. + + + + + Gets or sets the minimum (earliest) status id to request. + + The since id. + + + + Gets or sets the max (latest) status id to request. + + The max id. + + + + Gets or sets the number of messages to request. + + The number of messages to request. + + + + Gets or sets the page number to request. + + The page number. + + + + The twitter list collection class. + + + + + Gets the next page. + + A instance. + The next page. + + + + Gets the previous page. + + A instance. + The previous page. + + + + Gets or sets the next cursor. + + The next cursor. + + + + Gets or sets the previous cursor. + + The previous cursor. + + + + Gets or sets the request parameters. + + The request parameters. + + + + Gets or sets information about the user's rate usage. + + The rate limiting object. + + + + Gets or sets the command. + + The command. + + + + The Direct Message Entity Class + + + + + Initializes a new instance of the class. + + + + + Initializes a new instance of the class. + + OAuth access tokens. + + + + Returns a list of the 20 most recent direct messages sent to the authenticating user. + + The tokens. + A instance. + + + + Returns a list of the 20 most recent direct messages sent to the authenticating user. + + The tokens. + The options. + + A instance. + + + + + Returns a list of the 20 most recent direct messages sent by the authenticating user. + + The tokens. + + A instance. + + + + + Sends a new direct message to the specified user from the authenticating user. + + The OAuth tokens. + The user id. + The text of your direct message. + The options. + + A instance. + + + + + Sends a new direct message to the specified user from the authenticating user. + + The OAuth tokens. + The user id. + The text of your direct message. + + A instance. + + + + + Sends a new direct message to the specified user from the authenticating user. + + The OAuth tokens. + The user's screen name. + The message text. + The options. + A object of the created direct message. + + + + Sends a new direct message to the specified user from the authenticating user. + + The OAuth tokens. + The user's screen name. + The message text. + A object of the created direct message. + + + + Returns a list of the 20 most recent direct messages sent by the authenticating user. + + The tokens. + The options. + + A instance. + + + + + Deletes this direct message. + + + A instance. + + + + + Deletes this direct message. + + The options. + + A instance. + + + + + Gets or sets the direct message id. + + The direct message id. + + + + Gets or sets the sender id. + + The sender id. + + + + Gets or sets the direct message text. + + The direct message text. + + + + Gets or sets the recipient id. + + The recipient id. + + + + Gets or sets the created date. + + The created date. + + + + Gets or sets the name of the sender screen. + + The name of the sender screen. + + + + Gets or sets the name of the recipient screen. + + The name of the recipient screen. + + + + Gets or sets the sender. + + The sender. + + + + Gets or sets the recipient. + + The recipient. + + + + Provides common color converstion methods + + + + + + Converts the color string to a + + The value. + A representation of the color, or null. + + + + Reads the stream into a byte array. + + The response stream. + A byte array. + + + + The Retweets of Me options class. Provides optional parameters for the RetweetsOfMeCommand class. + + + + + Gets or sets the since status id. + + The since status id. + + + + Gets or sets the max status id. + + The max status id. + + + + Gets or sets the count of tweets to return. + + The count of tweets. + + + + Gets or sets the page number to return. + + The page number. + + + + The ListFavoritesCommand class. Returns the 20 most recent favorite statuses for the authenticating user or user specified by the ID parameter in the requested format. + + + + + Initializes a new instance of the class. + + The tokens. + The options. + + + + Initializes the command. + + + + + The Send Direct Message Command class + + + + + Initializes a new instance of the class. + + The tokens. + The text. + The options. + + + + Initializes a new instance of the class. + + The request tokens. + The message text. + The user id. + The options. + + + + Initializes the command. + + + + + Gets or sets the status text. + + The status text. + + + + Gets or sets the recipient user id. + + The recipient user id. + + + + Gets or sets the name of the recipient user. + + The name of the recipient user. + + + + The Delete Direct Message Command class. + + + + + Initializes a new instance of the class. + + The request tokens. + The status id. + The options. + + + + Initializes the command. + + + + + Gets or sets the status id. + + The status id. + + + + The user search options class. Provides a payload for optional parameters of the UserSearchCommand class. + + + + + Gets or sets the number per page. Cannot be greater than 20. + + The number per page. + + + + Gets or sets the page of results to retrieve. + + The page of results to retrieve. + + + + The Retweets Of Me Command. + + + + + Initializes a new instance of the class. + + The request tokens. + The options. + + + + Initializes the command. + + + + + Clones this instance. + + + A new instance of the interface. + + + + + The Public Timeline Command class + + + + + Initializes a new instance of the class. + + The request tokens. + + + + Initializes the command. + + + + + Clones this instance. + + + A new instance of the interface. + + + + + The TwitterFavorite class. Provides static methods for manipulating favorite tweets. + + + + + Prevents a default instance of the TwitterFavorite class from being created. + + + + + Favorites the status specified in the ID parameter as the authenticating user. + + The tokens. + The status id. + The options. + The favorite status when successful. + + + + Favorites the status specified in the ID parameter as the authenticating user. + + The tokens. + The status id. + The favorite status when successful. + + + + Un-favorites the status specified in the ID parameter as the authenticating user. + + The tokens. + The status id. + The options. + The un-favorited status in the requested format when successful. + + + + Un-favorites the status specified in the ID parameter as the authenticating user. + + The tokens. + The status id. + + The un-favorited status in the requested format when successful. + + + + + Returns the 20 most recent favorite statuses for the authenticating user or user specified by the ID parameter in the requested format. + + The tokens. + The options. + The 20 most recent favorite statuses + + + + Returns the 20 most recent favorite statuses for the authenticating user or user specified by the ID parameter in the requested format. + + The tokens. + The 20 most recent favorite statuses + + + + The delete favoriate command class. + Un-favorites the status specified in the ID parameter as the authenticating user. + Returns the un-favorited status in the requested format when successful. + + + + + Initializes a new instance of the class. + + The tokens. + The status id. + The options. + + + + Initializes the command. + + + + + Gets or sets the status id. + + The status id. + + + + The Create Favorite Command class. Favorites the status specified in the ID parameter as the authenticating user. Returns the favorite status when successful. + + + + + Initializes a new instance of the class. + + The tokens. + The status id. + The options. + + + + Initializes the command. + + + + + The Direct Messages Sent Command class + + + + + Initializes a new instance of the class. + + The request tokens. + The options. + + + + Initializes the command. + + + + + Clones this instance. + + + A new instance of the interface. + + + + + The friends options class. Provides a payload for optional parameters of the class. + + + + + Gets or sets the user id. + + The user id. + + + + Gets or sets the user's screen name. + + The screen name of the user. + + + + Gets or sets the cursor. + + The cursor. + + + + The UserTimelineOptions class. Provides a payload for optional parameters of the class. + + + + + Gets or sets the ID of the user for whom to request a list of followers. + + The user id. + + + + Gets or sets the screen name of the user for whom to request a list of followers. + + The name of the screen. + +
+
diff --git a/Twitterizer2.TestCases/bin/Release/nunit.framework.dll b/Twitterizer2.TestCases/bin/Release/nunit.framework.dll new file mode 100644 index 00000000..2729ddf2 Binary files /dev/null and b/Twitterizer2.TestCases/bin/Release/nunit.framework.dll differ diff --git a/Twitterizer2.TestCases/bin/Release/nunit.framework.xml b/Twitterizer2.TestCases/bin/Release/nunit.framework.xml new file mode 100644 index 00000000..ccfa9ee6 --- /dev/null +++ b/Twitterizer2.TestCases/bin/Release/nunit.framework.xml @@ -0,0 +1,10088 @@ + + + + nunit.framework + + + + + TypeConstraint is the abstract base for constraints + that take a Type as their expected value. + + + + + The Constraint class is the base of all built-in constraints + within NUnit. It provides the operator overloads used to combine + constraints. + + + + + The IConstraintExpression interface is implemented by all + complete and resolvable constraints and expressions. + + + + + Return the top-level constraint for this expression + + + + + + Static UnsetObject used to detect derived constraints + failing to set the actual value. + + + + + The actual value being tested against a constraint + + + + + The display name of this Constraint for use by ToString() + + + + + Argument fields used by ToString(); + + + + + The builder holding this constraint + + + + + Construct a constraint with no arguments + + + + + Construct a constraint with one argument + + + + + Construct a constraint with two arguments + + + + + Sets the ConstraintBuilder holding this constraint + + + + + Write the failure message to the MessageWriter provided + as an argument. The default implementation simply passes + the constraint and the actual value to the writer, which + then displays the constraint description and the value. + + Constraints that need to provide additional details, + such as where the error occured can override this. + + The MessageWriter on which to display the message + + + + Test whether the constraint is satisfied by a given value + + The value to be tested + True for success, false for failure + + + + Test whether the constraint is satisfied by an + ActualValueDelegate that returns the value to be tested. + The default implementation simply evaluates the delegate + but derived classes may override it to provide for delayed + processing. + + An ActualValueDelegate + True for success, false for failure + + + + Test whether the constraint is satisfied by a given reference. + The default implementation simply dereferences the value but + derived classes may override it to provide for delayed processing. + + A reference to the value to be tested + True for success, false for failure + + + + Write the constraint description to a MessageWriter + + The writer on which the description is displayed + + + + Write the actual value for a failing constraint test to a + MessageWriter. The default implementation simply writes + the raw value of actual, leaving it to the writer to + perform any formatting. + + The writer on which the actual value is displayed + + + + Default override of ToString returns the constraint DisplayName + followed by any arguments within angle brackets. + + + + + + This operator creates a constraint that is satisfied only if both + argument constraints are satisfied. + + + + + This operator creates a constraint that is satisfied if either + of the argument constraints is satisfied. + + + + + This operator creates a constraint that is satisfied if the + argument constraint is not satisfied. + + + + + Returns a DelayedConstraint with the specified delay time. + + The delay in milliseconds. + + + + + Returns a DelayedConstraint with the specified delay time + and polling interval. + + The delay in milliseconds. + The interval at which to test the constraint. + + + + + The display name of this Constraint for use by ToString(). + The default value is the name of the constraint with + trailing "Constraint" removed. Derived classes may set + this to another name in their constructors. + + + + + Returns a ConstraintExpression by appending And + to the current constraint. + + + + + Returns a ConstraintExpression by appending And + to the current constraint. + + + + + Returns a ConstraintExpression by appending Or + to the current constraint. + + + + + Class used to detect any derived constraints + that fail to set the actual value in their + Matches override. + + + + + The expected Type used by the constraint + + + + + Construct a TypeConstraint for a given Type + + + + + + Write the actual value for a failing constraint test to a + MessageWriter. TypeConstraints override this method to write + the name of the type. + + The writer on which the actual value is displayed + + + + ExactTypeConstraint is used to test that an object + is of the exact type provided in the constructor + + + + + Construct an ExactTypeConstraint for a given Type + + The expected Type. + + + + Test that an object is of the exact type specified + + The actual value. + True if the tested object is of the exact type provided, otherwise false. + + + + Write the description of this constraint to a MessageWriter + + The MessageWriter to use + + + + InstanceOfTypeConstraint is used to test that an object + is of the same type provided or derived from it. + + + + + Construct an InstanceOfTypeConstraint for the type provided + + The expected Type + + + + Test whether an object is of the specified type or a derived type + + The object to be tested + True if the object is of the provided type or derives from it, otherwise false. + + + + Write a description of this constraint to a MessageWriter + + The MessageWriter to use + + + + AssignableFromConstraint is used to test that an object + can be assigned from a given Type. + + + + + Construct an AssignableFromConstraint for the type provided + + + + + + Test whether an object can be assigned from the specified type + + The object to be tested + True if the object can be assigned a value of the expected Type, otherwise false. + + + + Write a description of this constraint to a MessageWriter + + The MessageWriter to use + + + + AssignableToConstraint is used to test that an object + can be assigned to a given Type. + + + + + Construct an AssignableToConstraint for the type provided + + + + + + Test whether an object can be assigned to the specified type + + The object to be tested + True if the object can be assigned a value of the expected Type, otherwise false. + + + + Write a description of this constraint to a MessageWriter + + The MessageWriter to use + + + + ConstraintBuilder maintains the stacks that are used in + processing a ConstraintExpression. An OperatorStack + is used to hold operators that are waiting for their + operands to be reognized. a ConstraintStack holds + input constraints as well as the results of each + operator applied. + + + + + Initializes a new instance of the class. + + + + + Appends the specified operator to the expression by first + reducing the operator stack and then pushing the new + operator on the stack. + + The operator to push. + + + + Appends the specified constraint to the expresson by pushing + it on the constraint stack. + + The constraint to push. + + + + Sets the top operator right context. + + The right context. + + + + Reduces the operator stack until the topmost item + precedence is greater than or equal to the target precedence. + + The target precedence. + + + + Resolves this instance, returning a Constraint. If the builder + is not currently in a resolvable state, an exception is thrown. + + The resolved constraint + + + + Gets a value indicating whether this instance is resolvable. + + + true if this instance is resolvable; otherwise, false. + + + + + OperatorStack is a type-safe stack for holding ConstraintOperators + + + + + Initializes a new instance of the class. + + The builder. + + + + Pushes the specified operator onto the stack. + + The op. + + + + Pops the topmost operator from the stack. + + + + + + Gets a value indicating whether this is empty. + + true if empty; otherwise, false. + + + + Gets the topmost operator without modifying the stack. + + The top. + + + + ConstraintStack is a type-safe stack for holding Constraints + + + + + Initializes a new instance of the class. + + The builder. + + + + Pushes the specified constraint. As a side effect, + the constraint's builder field is set to the + ConstraintBuilder owning this stack. + + The constraint. + + + + Pops this topmost constrait from the stack. + As a side effect, the constraint's builder + field is set to null. + + + + + + Gets a value indicating whether this is empty. + + true if empty; otherwise, false. + + + + Gets the topmost constraint without modifying the stack. + + The topmost constraint + + + + ThrowsConstraint is used to test the exception thrown by + a delegate by applying a constraint to it. + + + + + Abstract base class used for prefixes + + + + + The base constraint + + + + + Construct given a base constraint + + + + + + Initializes a new instance of the class, + using a constraint to be applied to the exception. + + A constraint to apply to the caught exception. + + + + Executes the code of the delegate and captures any exception. + If a non-null base constraint was provided, it applies that + constraint to the exception. + + A delegate representing the code to be tested + True if an exception is thrown and the constraint succeeds, otherwise false + + + + Converts an ActualValueDelegate to a TestDelegate + before calling the primary overload. + + + + + + + Write the constraint description to a MessageWriter + + The writer on which the description is displayed + + + + Write the actual value for a failing constraint test to a + MessageWriter. The default implementation simply writes + the raw value of actual, leaving it to the writer to + perform any formatting. + + The writer on which the actual value is displayed + + + + Returns the string representation of this constraint + + + + + Get the actual exception thrown - used by Assert.Throws. + + + + + ThrowsNothingConstraint tests that a delegate does not + throw an exception. + + + + + Test whether the constraint is satisfied by a given value + + The value to be tested + True if no exception is thrown, otherwise false + + + + Write the constraint description to a MessageWriter + + The writer on which the description is displayed + + + + Write the actual value for a failing constraint test to a + MessageWriter. The default implementation simply writes + the raw value of actual, leaving it to the writer to + perform any formatting. + + The writer on which the actual value is displayed + + + + CollectionConstraint is the abstract base class for + constraints that operate on collections. + + + + + Construct an empty CollectionConstraint + + + + + Construct a CollectionConstraint + + + + + + Determines whether the specified enumerable is empty. + + The enumerable. + + true if the specified enumerable is empty; otherwise, false. + + + + + Test whether the constraint is satisfied by a given value + + The value to be tested + True for success, false for failure + + + + Protected method to be implemented by derived classes + + + + + + + CollectionItemsEqualConstraint is the abstract base class for all + collection constraints that apply some notion of item equality + as a part of their operation. + + + + + Construct an empty CollectionConstraint + + + + + Construct a CollectionConstraint + + + + + + Flag the constraint to use the supplied IComparer object. + + The IComparer object to use. + Self. + + + + Flag the constraint to use the supplied IComparer object. + + The IComparer object to use. + Self. + + + + Flag the constraint to use the supplied Comparison object. + + The IComparer object to use. + Self. + + + + Flag the constraint to use the supplied IEqualityComparer object. + + The IComparer object to use. + Self. + + + + Flag the constraint to use the supplied IEqualityComparer object. + + The IComparer object to use. + Self. + + + + Compares two collection members for equality + + + + + Return a new CollectionTally for use in making tests + + The collection to be included in the tally + + + + Flag the constraint to ignore case and return self. + + + + + CollectionTally counts (tallies) the number of + occurences of each object in one or more enumerations. + + + + + Construct a CollectionTally object from a comparer and a collection + + + + + Try to remove an object from the tally + + The object to remove + True if successful, false if the object was not found + + + + Try to remove a set of objects from the tally + + The objects to remove + True if successful, false if any object was not found + + + + The number of objects remaining in the tally + + + + + EmptyCollectionConstraint tests whether a collection is empty. + + + + + Check that the collection is empty + + + + + + + Write the constraint description to a MessageWriter + + + + + + UniqueItemsConstraint tests whether all the items in a + collection are unique. + + + + + Check that all items are unique. + + + + + + + Write a description of this constraint to a MessageWriter + + + + + + CollectionContainsConstraint is used to test whether a collection + contains an expected object as a member. + + + + + Construct a CollectionContainsConstraint + + + + + + Test whether the expected item is contained in the collection + + + + + + + Write a descripton of the constraint to a MessageWriter + + + + + + CollectionEquivalentCOnstraint is used to determine whether two + collections are equivalent. + + + + + Construct a CollectionEquivalentConstraint + + + + + + Test whether two collections are equivalent + + + + + + + Write a description of this constraint to a MessageWriter + + + + + + CollectionSubsetConstraint is used to determine whether + one collection is a subset of another + + + + + Construct a CollectionSubsetConstraint + + The collection that the actual value is expected to be a subset of + + + + Test whether the actual collection is a subset of + the expected collection provided. + + + + + + + Write a description of this constraint to a MessageWriter + + + + + + CollectionOrderedConstraint is used to test whether a collection is ordered. + + + + + Construct a CollectionOrderedConstraint + + + + + Modifies the constraint to use an IComparer and returns self. + + + + + Modifies the constraint to use an IComparer<T> and returns self. + + + + + Modifies the constraint to use a Comparison<T> and returns self. + + + + + Modifies the constraint to test ordering by the value of + a specified property and returns self. + + + + + Test whether the collection is ordered + + + + + + + Write a description of the constraint to a MessageWriter + + + + + + Returns the string representation of the constraint. + + + + + + If used performs a reverse comparison + + + + + EmptyDirectoryConstraint is used to test that a directory is empty + + + + + Test whether the constraint is satisfied by a given value + + The value to be tested + True for success, false for failure + + + + Write the constraint description to a MessageWriter + + The writer on which the description is displayed + + + + Write the actual value for a failing constraint test to a + MessageWriter. The default implementation simply writes + the raw value of actual, leaving it to the writer to + perform any formatting. + + The writer on which the actual value is displayed + + + + SubDirectoryConstraint is used to test that one directory is a subdirectory of another. + + + + + Initializes a new instance of the class. + + The dir info. + + + + Test whether the constraint is satisfied by a given value + + The value to be tested + True for success, false for failure + + + + Write the constraint description to a MessageWriter + + The writer on which the description is displayed + + + + Builds a list of DirectoryInfo objects, recursing where necessary + + directory to recurse + list of DirectoryInfo objects from the top level + + + + private method to determine whether a directory is within the path + + top-level directory to search + directory to search for + true if found, false if not + + + + Method to compare two DirectoryInfo objects + + first directory to compare + second directory to compare + true if equivalent, false if not + + + + PathConstraint serves as the abstract base of constraints + that operate on paths and provides several helper methods. + + + + + The expected path used in the constraint + + + + + Flag indicating whether a caseInsensitive comparison should be made + + + + + Construct a PathConstraint for a give expected path + + The expected path + + + + Returns the string representation of this constraint + + + + + Canonicalize the provided path + + + The path in standardized form + + + + Test whether two paths are the same + + The first path + The second path + + + + + Test whether one path is the same as or under another path + + The first path - supposed to be the parent path + The second path - supposed to be the child path + + + + + Modifies the current instance to be case-insensitve + and returns it. + + + + + Modifies the current instance to be case-sensitve + and returns it. + + + + + Summary description for SamePathConstraint. + + + + + Initializes a new instance of the class. + + The expected path + + + + Test whether the constraint is satisfied by a given value + + The value to be tested + True for success, false for failure + + + + Write the constraint description to a MessageWriter + + The writer on which the description is displayed + + + + SamePathOrUnderConstraint tests that one path is under another + + + + + Initializes a new instance of the class. + + The expected path + + + + Test whether the constraint is satisfied by a given value + + The value to be tested + True for success, false for failure + + + + Write the constraint description to a MessageWriter + + The writer on which the description is displayed + + + + PropertyExistsConstraint tests that a named property + exists on the object provided through Match. + + Originally, PropertyConstraint provided this feature + in addition to making optional tests on the vaue + of the property. The two constraints are now separate. + + + + + Initializes a new instance of the class. + + The name of the property. + + + + Test whether the property exists for a given object + + The object to be tested + True for success, false for failure + + + + Write the constraint description to a MessageWriter + + The writer on which the description is displayed + + + + Write the actual value for a failing constraint test to a + MessageWriter. + + The writer on which the actual value is displayed + + + + Returns the string representation of the constraint. + + + + + + PropertyConstraint extracts a named property and uses + its value as the actual value for a chained constraint. + + + + + Initializes a new instance of the class. + + The name. + The constraint to apply to the property. + + + + Test whether the constraint is satisfied by a given value + + The value to be tested + True for success, false for failure + + + + Write the constraint description to a MessageWriter + + The writer on which the description is displayed + + + + Write the actual value for a failing constraint test to a + MessageWriter. The default implementation simply writes + the raw value of actual, leaving it to the writer to + perform any formatting. + + The writer on which the actual value is displayed + + + + Returns the string representation of the constraint. + + + + + + ConstraintExpression represents a compound constraint in the + process of being constructed from a series of syntactic elements. + + Individual elements are appended to the expression as they are + reognized. Once an actual Constraint is appended, the expression + returns a resolvable Constraint. + + + + + ConstraintExpressionBase is the abstract base class for the + generated ConstraintExpression class, which represents a + compound constraint in the process of being constructed + from a series of syntactic elements. + + NOTE: ConstraintExpressionBase is aware of some of its + derived classes, which is an apparent violation of + encapsulation. Ideally, these classes would be a + single class, but they must be separated in order to + allow parts to be generated under .NET 1.x and to + provide proper user feedback in syntactically + aware IDEs. + + + + + The ConstraintBuilder holding the elements recognized so far + + + + + Initializes a new instance of the class. + + + + + Initializes a new instance of the + class passing in a ConstraintBuilder, which may be pre-populated. + + The builder. + + + + Returns a string representation of the expression as it + currently stands. This should only be used for testing, + since it has the side-effect of resolving the expression. + + + + + + Appends an operator to the expression and returns the + resulting expression itself. + + + + + Appends a self-resolving operator to the expression and + returns a new ResolvableConstraintExpression. + + + + + Appends a constraint to the expression and returns that + constraint, which is associated with the current state + of the expression being built. + + + + + Initializes a new instance of the class. + + + + + Initializes a new instance of the + class passing in a ConstraintBuilder, which may be pre-populated. + + The builder. + + + + Returns a new PropertyConstraintExpression, which will either + test for the existence of the named property on the object + being tested or apply any following constraint to that property. + + + + + Returns a new AttributeConstraint checking for the + presence of a particular attribute on an object. + + + + + Returns a new AttributeConstraint checking for the + presence of a particular attribute on an object. + + + + + Returns the constraint provided as an argument - used to allow custom + custom constraints to easily participate in the syntax. + + + + + Returns the constraint provided as an argument - used to allow custom + custom constraints to easily participate in the syntax. + + + + + Returns a constraint that tests two items for equality + + + + + Returns a constraint that tests that two references are the same object + + + + + Returns a constraint that tests whether the + actual value is greater than the suppled argument + + + + + Returns a constraint that tests whether the + actual value is greater than or equal to the suppled argument + + + + + Returns a constraint that tests whether the + actual value is greater than or equal to the suppled argument + + + + + Returns a constraint that tests whether the + actual value is less than the suppled argument + + + + + Returns a constraint that tests whether the + actual value is less than or equal to the suppled argument + + + + + Returns a constraint that tests whether the + actual value is less than or equal to the suppled argument + + + + + Returns a constraint that tests whether the actual + value is of the exact type supplied as an argument. + + + + + Returns a constraint that tests whether the actual + value is of the exact type supplied as an argument. + + + + + Returns a constraint that tests whether the actual value + is of the type supplied as an argument or a derived type. + + + + + Returns a constraint that tests whether the actual value + is of the type supplied as an argument or a derived type. + + + + + Returns a constraint that tests whether the actual value + is of the type supplied as an argument or a derived type. + + + + + Returns a constraint that tests whether the actual value + is of the type supplied as an argument or a derived type. + + + + + Returns a constraint that tests whether the actual value + is assignable from the type supplied as an argument. + + + + + Returns a constraint that tests whether the actual value + is assignable from the type supplied as an argument. + + + + + Returns a constraint that tests whether the actual value + is assignable from the type supplied as an argument. + + + + + Returns a constraint that tests whether the actual value + is assignable from the type supplied as an argument. + + + + + Returns a constraint that tests whether the actual value + is a collection containing the same elements as the + collection supplied as an argument. + + + + + Returns a constraint that tests whether the actual value + is a subset of the collection supplied as an argument. + + + + + Returns a new CollectionContainsConstraint checking for the + presence of a particular object in the collection. + + + + + Returns a new CollectionContainsConstraint checking for the + presence of a particular object in the collection. + + + + + Returns a new ContainsConstraint. This constraint + will, in turn, make use of the appropriate second-level + constraint, depending on the type of the actual argument. + This overload is only used if the item sought is a string, + since any other type implies that we are looking for a + collection member. + + + + + Returns a constraint that succeeds if the actual + value contains the substring supplied as an argument. + + + + + Returns a constraint that succeeds if the actual + value contains the substring supplied as an argument. + + + + + Returns a constraint that succeeds if the actual + value starts with the substring supplied as an argument. + + + + + Returns a constraint that succeeds if the actual + value starts with the substring supplied as an argument. + + + + + Returns a constraint that succeeds if the actual + value ends with the substring supplied as an argument. + + + + + Returns a constraint that succeeds if the actual + value ends with the substring supplied as an argument. + + + + + Returns a constraint that succeeds if the actual + value matches the Regex pattern supplied as an argument. + + + + + Returns a constraint that succeeds if the actual + value matches the Regex pattern supplied as an argument. + + + + + Returns a constraint that tests whether the path provided + is the same as an expected path after canonicalization. + + + + + Returns a constraint that tests whether the path provided + is the same path or under an expected path after canonicalization. + + + + + Returns a constraint that tests whether the actual value falls + within a specified range. + + + + + Returns a ConstraintExpression that negates any + following constraint. + + + + + Returns a ConstraintExpression that negates any + following constraint. + + + + + Returns a ConstraintExpression, which will apply + the following constraint to all members of a collection, + succeeding if all of them succeed. + + + + + Returns a ConstraintExpression, which will apply + the following constraint to all members of a collection, + succeeding if at least one of them succeeds. + + + + + Returns a ConstraintExpression, which will apply + the following constraint to all members of a collection, + succeeding if all of them fail. + + + + + Returns a new ConstraintExpression, which will apply the following + constraint to the Length property of the object being tested. + + + + + Returns a new ConstraintExpression, which will apply the following + constraint to the Count property of the object being tested. + + + + + Returns a new ConstraintExpression, which will apply the following + constraint to the Message property of the object being tested. + + + + + Returns a new ConstraintExpression, which will apply the following + constraint to the InnerException property of the object being tested. + + + + + With is currently a NOP - reserved for future use. + + + + + Returns a constraint that tests for null + + + + + Returns a constraint that tests for True + + + + + Returns a constraint that tests for False + + + + + Returns a constraint that tests for NaN + + + + + Returns a constraint that tests for empty + + + + + Returns a constraint that tests whether a collection + contains all unique items. + + + + + Returns a constraint that tests whether an object graph is serializable in binary format. + + + + + Returns a constraint that tests whether an object graph is serializable in xml format. + + + + + Returns a constraint that tests whether a collection is ordered + + + + + RangeConstraint tests whethe two values are within a + specified range. + + + + + Initializes a new instance of the class. + + From. + To. + + + + Test whether the constraint is satisfied by a given value + + The value to be tested + True for success, false for failure + + + + Write the constraint description to a MessageWriter + + The writer on which the description is displayed + + + + Modifies the constraint to use an IComparer and returns self. + + + + + Modifies the constraint to use an IComparer<T> and returns self. + + + + + Modifies the constraint to use a Comparison<T> and returns self. + + + + + EqualConstraint is able to compare an actual value with the + expected value provided in its constructor. Two objects are + considered equal if both are null, or if both have the same + value. NUnit has special semantics for some object types. + + + + + If true, strings in error messages will be clipped + + + + + NUnitEqualityComparer used to test equality. + + + + + Initializes a new instance of the class. + + The expected value. + + + + Flag the constraint to use a tolerance when determining equality. + + Tolerance value to be used + Self. + + + + Flag the constraint to use the supplied IComparer object. + + The IComparer object to use. + Self. + + + + Flag the constraint to use the supplied IComparer object. + + The IComparer object to use. + Self. + + + + Flag the constraint to use the supplied IComparer object. + + The IComparer object to use. + Self. + + + + Flag the constraint to use the supplied Comparison object. + + The IComparer object to use. + Self. + + + + Flag the constraint to use the supplied IEqualityComparer object. + + The IComparer object to use. + Self. + + + + Flag the constraint to use the supplied IEqualityComparer object. + + The IComparer object to use. + Self. + + + + Test whether the constraint is satisfied by a given value + + The value to be tested + True for success, false for failure + + + + Write a failure message. Overridden to provide custom + failure messages for EqualConstraint. + + The MessageWriter to write to + + + + Write description of this constraint + + The MessageWriter to write to + + + + Display the failure information for two collections that did not match. + + The MessageWriter on which to display + The expected collection. + The actual collection + The depth of this failure in a set of nested collections + + + + Displays a single line showing the types and sizes of the expected + and actual collections or arrays. If both are identical, the value is + only shown once. + + The MessageWriter on which to display + The expected collection or array + The actual collection or array + The indentation level for the message line + + + + Displays a single line showing the point in the expected and actual + arrays at which the comparison failed. If the arrays have different + structures or dimensions, both values are shown. + + The MessageWriter on which to display + The expected array + The actual array + Index of the failure point in the underlying collections + The indentation level for the message line + + + + Flag the constraint to ignore case and return self. + + + + + Flag the constraint to suppress string clipping + and return self. + + + + + Flag the constraint to compare arrays as collections + and return self. + + + + + Switches the .Within() modifier to interpret its tolerance as + a distance in representable values (see remarks). + + Self. + + Ulp stands for "unit in the last place" and describes the minimum + amount a given value can change. For any integers, an ulp is 1 whole + digit. For floating point values, the accuracy of which is better + for smaller numbers and worse for larger numbers, an ulp depends + on the size of the number. Using ulps for comparison of floating + point results instead of fixed tolerances is safer because it will + automatically compensate for the added inaccuracy of larger numbers. + + + + + Switches the .Within() modifier to interpret its tolerance as + a percentage that the actual values is allowed to deviate from + the expected value. + + Self + + + + Causes the tolerance to be interpreted as a TimeSpan in days. + + Self + + + + Causes the tolerance to be interpreted as a TimeSpan in hours. + + Self + + + + Causes the tolerance to be interpreted as a TimeSpan in minutes. + + Self + + + + Causes the tolerance to be interpreted as a TimeSpan in seconds. + + Self + + + + Causes the tolerance to be interpreted as a TimeSpan in milliseconds. + + Self + + + + Causes the tolerance to be interpreted as a TimeSpan in clock ticks. + + Self + + + + NotConstraint negates the effect of some other constraint + + + + + Initializes a new instance of the class. + + The base constraint to be negated. + + + + Test whether the constraint is satisfied by a given value + + The value to be tested + True for if the base constraint fails, false if it succeeds + + + + Write the constraint description to a MessageWriter + + The writer on which the description is displayed + + + + Write the actual value for a failing constraint test to a MessageWriter. + + The writer on which the actual value is displayed + + + + AllItemsConstraint applies another constraint to each + item in a collection, succeeding if they all succeed. + + + + + Construct an AllItemsConstraint on top of an existing constraint + + + + + + Apply the item constraint to each item in the collection, + failing if any item fails. + + + + + + + Write a description of this constraint to a MessageWriter + + + + + + SomeItemsConstraint applies another constraint to each + item in a collection, succeeding if any of them succeeds. + + + + + Construct a SomeItemsConstraint on top of an existing constraint + + + + + + Apply the item constraint to each item in the collection, + succeeding if any item succeeds. + + + + + + + Write a description of this constraint to a MessageWriter + + + + + + NoItemConstraint applies another constraint to each + item in a collection, failing if any of them succeeds. + + + + + Construct a SomeItemsConstraint on top of an existing constraint + + + + + + Apply the item constraint to each item in the collection, + failing if any item fails. + + + + + + + Write a description of this constraint to a MessageWriter + + + + + + ContainsConstraint tests a whether a string contains a substring + or a collection contains an object. It postpones the decision of + which test to use until the type of the actual argument is known. + This allows testing whether a string is contained in a collection + or as a substring of another string using the same syntax. + + + + + Initializes a new instance of the class. + + The expected. + + + + Test whether the constraint is satisfied by a given value + + The value to be tested + True for success, false for failure + + + + Write the constraint description to a MessageWriter + + The writer on which the description is displayed + + + + Flag the constraint to ignore case and return self. + + + + + Static methods used in creating messages + + + + + Static string used when strings are clipped + + + + + Returns the representation of a type as used in NUnitLite. + This is the same as Type.ToString() except for arrays, + which are displayed with their declared sizes. + + + + + + + Converts any control characters in a string + to their escaped representation. + + The string to be converted + The converted string + + + + Return the a string representation for a set of indices into an array + + Array of indices for which a string is needed + + + + Get an array of indices representing the point in a collection or + array corresponding to a single int index into the collection. + + The collection to which the indices apply + Index in the collection + Array of indices + + + + Clip a string to a given length, starting at a particular offset, returning the clipped + string with ellipses representing the removed parts + + The string to be clipped + The maximum permitted length of the result string + The point at which to start clipping + The clipped string + + + + Clip the expected and actual strings in a coordinated fashion, + so that they may be displayed together. + + + + + + + + + Shows the position two strings start to differ. Comparison + starts at the start index. + + The expected string + The actual string + The index in the strings at which comparison should start + Boolean indicating whether case should be ignored + -1 if no mismatch found, or the index where mismatch found + + + + BasicConstraint is the abstract base for constraints that + perform a simple comparison to a constant value. + + + + + Initializes a new instance of the class. + + The expected. + The description. + + + + Test whether the constraint is satisfied by a given value + + The value to be tested + True for success, false for failure + + + + Write the constraint description to a MessageWriter + + The writer on which the description is displayed + + + + NullConstraint tests that the actual value is null + + + + + Initializes a new instance of the class. + + + + + TrueConstraint tests that the actual value is true + + + + + Initializes a new instance of the class. + + + + + FalseConstraint tests that the actual value is false + + + + + Initializes a new instance of the class. + + + + + NaNConstraint tests that the actual value is a double or float NaN + + + + + Test that the actual value is an NaN + + + + + + + Write the constraint description to a specified writer + + + + + + MessageWriter is the abstract base for classes that write + constraint descriptions and messages in some form. The + class has separate methods for writing various components + of a message, allowing implementations to tailor the + presentation as needed. + + + + + Construct a MessageWriter given a culture + + + + + Method to write single line message with optional args, usually + written to precede the general failure message. + + The message to be written + Any arguments used in formatting the message + + + + Method to write single line message with optional args, usually + written to precede the general failure message, at a givel + indentation level. + + The indentation level of the message + The message to be written + Any arguments used in formatting the message + + + + Display Expected and Actual lines for a constraint. This + is called by MessageWriter's default implementation of + WriteMessageTo and provides the generic two-line display. + + The constraint that failed + + + + Display Expected and Actual lines for given values. This + method may be called by constraints that need more control over + the display of actual and expected values than is provided + by the default implementation. + + The expected value + The actual value causing the failure + + + + Display Expected and Actual lines for given values, including + a tolerance value on the Expected line. + + The expected value + The actual value causing the failure + The tolerance within which the test was made + + + + Display the expected and actual string values on separate lines. + If the mismatch parameter is >=0, an additional line is displayed + line containing a caret that points to the mismatch point. + + The expected string value + The actual string value + The point at which the strings don't match or -1 + If true, case is ignored in locating the point where the strings differ + If true, the strings should be clipped to fit the line + + + + Writes the text for a connector. + + The connector. + + + + Writes the text for a predicate. + + The predicate. + + + + Writes the text for an expected value. + + The expected value. + + + + Writes the text for a modifier + + The modifier. + + + + Writes the text for an actual value. + + The actual value. + + + + Writes the text for a generalized value. + + The value. + + + + Writes the text for a collection value, + starting at a particular point, to a max length + + The collection containing elements to write. + The starting point of the elements to write + The maximum number of elements to write + + + + Abstract method to get the max line length + + + + + Modes in which the tolerance value for a comparison can + be interpreted. + + + + + The tolerance was created with a value, without specifying + how the value would be used. This is used to prevent setting + the mode more than once and is generally changed to Linear + upon execution of the test. + + + + + The tolerance is used as a numeric range within which + two compared values are considered to be equal. + + + + + Interprets the tolerance as the percentage by which + the two compared values my deviate from each other. + + + + + Compares two values based in their distance in + representable numbers. + + + + + The Tolerance class generalizes the notion of a tolerance + within which an equality test succeeds. Normally, it is + used with numeric types, but it can be used with any + type that supports taking a difference between two + objects and comparing that difference to a value. + + + + + Constructs a linear tolerance of a specdified amount + + + + + Constructs a tolerance given an amount and ToleranceMode + + + + + Tests that the current Tolerance is linear with a + numeric value, throwing an exception if it is not. + + + + + Returns an empty Tolerance object, equivalent to + specifying an exact match. + + + + + Gets the ToleranceMode for the current Tolerance + + + + + Gets the value of the current Tolerance instance. + + + + + Returns a new tolerance, using the current amount as a percentage. + + + + + Returns a new tolerance, using the current amount in Ulps. + + + + + Returns a new tolerance with a TimeSpan as the amount, using + the current amount as a number of days. + + + + + Returns a new tolerance with a TimeSpan as the amount, using + the current amount as a number of hours. + + + + + Returns a new tolerance with a TimeSpan as the amount, using + the current amount as a number of minutes. + + + + + Returns a new tolerance with a TimeSpan as the amount, using + the current amount as a number of seconds. + + + + + Returns a new tolerance with a TimeSpan as the amount, using + the current amount as a number of milliseconds. + + + + + Returns a new tolerance with a TimeSpan as the amount, using + the current amount as a number of clock ticks. + + + + + Returns true if the current tolerance is empty. + + + + + 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 + + + + EmptyConstraint tests a whether a string or collection is empty, + postponing the decision about which test is applied until the + type of the actual argument is known. + + + + + Test whether the constraint is satisfied by a given value + + The value to be tested + True for success, false for failure + + + + Write the constraint description to a MessageWriter + + The writer on which the description is displayed + + + + StringConstraint is the abstract base for constraints + that operate on strings. It supports the IgnoreCase + modifier for string operations. + + + + + The expected value + + + + + Indicates whether tests should be case-insensitive + + + + + Constructs a StringConstraint given an expected value + + The expected value + + + + Modify the constraint to ignore case in matching. + + + + + EmptyStringConstraint tests whether a string is empty. + + + + + Test whether the constraint is satisfied by a given value + + The value to be tested + True for success, false for failure + + + + Write the constraint description to a MessageWriter + + The writer on which the description is displayed + + + + NullEmptyStringConstraint tests whether a string is either null or empty. + + + + + Constructs a new NullOrEmptyStringConstraint + + + + + Test whether the constraint is satisfied by a given value + + The value to be tested + True for success, false for failure + + + + Write the constraint description to a MessageWriter + + The writer on which the description is displayed + + + + SubstringConstraint can test whether a string contains + the expected substring. + + + + + Initializes a new instance of the class. + + The expected. + + + + Test whether the constraint is satisfied by a given value + + The value to be tested + True for success, false for failure + + + + Write the constraint description to a MessageWriter + + The writer on which the description is displayed + + + + StartsWithConstraint can test whether a string starts + with an expected substring. + + + + + Initializes a new instance of the class. + + The expected string + + + + Test whether the constraint is matched by the actual value. + This is a template method, which calls the IsMatch method + of the derived class. + + + + + + + Write the constraint description to a MessageWriter + + The writer on which the description is displayed + + + + EndsWithConstraint can test whether a string ends + with an expected substring. + + + + + Initializes a new instance of the class. + + The expected string + + + + Test whether the constraint is matched by the actual value. + This is a template method, which calls the IsMatch method + of the derived class. + + + + + + + Write the constraint description to a MessageWriter + + The writer on which the description is displayed + + + + RegexConstraint can test whether a string matches + the pattern provided. + + + + + Initializes a new instance of the class. + + The pattern. + + + + Test whether the constraint is satisfied by a given value + + The value to be tested + True for success, false for failure + + + + Write the constraint description to a MessageWriter + + The writer on which the description is displayed + + + + Abstract base class for constraints that compare values to + determine if one is greater than, equal to or less than + the other. + + + + + The value against which a comparison is to be made + + + + + If true, less than returns success + + + + + if true, equal returns success + + + + + if true, greater than returns success + + + + + The predicate used as a part of the description + + + + + ComparisonAdapter to be used in making the comparison + + + + + Initializes a new instance of the class. + + The value against which to make a comparison. + if set to true less succeeds. + if set to true equal succeeds. + if set to true greater succeeds. + String used in describing the constraint. + + + + Test whether the constraint is satisfied by a given value + + The value to be tested + True for success, false for failure + + + + Write the constraint description to a MessageWriter + + The writer on which the description is displayed + + + + Modifies the constraint to use an IComparer and returns self + + + + + Modifies the constraint to use an IComparer<T> and returns self + + + + + Modifies the constraint to use a Comparison<T> and returns self + + + + + Tests whether a value is greater than the value supplied to its constructor + + + + + Initializes a new instance of the class. + + The expected value. + + + + Tests whether a value is greater than or equal to the value supplied to its constructor + + + + + Initializes a new instance of the class. + + The expected value. + + + + Tests whether a value is less than the value supplied to its constructor + + + + + Initializes a new instance of the class. + + The expected value. + + + + Tests whether a value is less than or equal to the value supplied to its constructor + + + + + Initializes a new instance of the class. + + The expected value. + + + + SameAsConstraint tests whether an object is identical to + the object passed to its constructor + + + + + Initializes a new instance of the class. + + The expected object. + + + + Test whether the constraint is satisfied by a given value + + The value to be tested + True for success, false for failure + + + + Write the constraint description to a MessageWriter + + The writer on which the description is displayed + + + + 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 + + + + AndConstraint succeeds only if both members succeed. + + + + + Create an AndConstraint from two other constraints + + The first constraint + The second constraint + + + + Apply both member constraints to an actual value, succeeding + succeeding only if both of them succeed. + + The actual value + True if the constraints both succeeded + + + + Write a description for this contraint to a MessageWriter + + The MessageWriter to receive the description + + + + Write the actual value for a failing constraint test to a + MessageWriter. The default implementation simply writes + the raw value of actual, leaving it to the writer to + perform any formatting. + + The writer on which the actual value is displayed + + + + OrConstraint succeeds if either member succeeds + + + + + Create an OrConstraint from two other constraints + + The first constraint + The second constraint + + + + Apply the member constraints to an actual value, succeeding + succeeding as soon as one of them succeeds. + + The actual value + True if either constraint succeeded + + + + Write a description for this contraint to a MessageWriter + + The MessageWriter to receive the description + + + + Helper class with properties and methods that supply + a number of constraints used in Asserts. + + + + + Returns a new PropertyConstraintExpression, which will either + test for the existence of the named property on the object + being tested or apply any following constraint to that property. + + + + + Returns a new AttributeConstraint checking for the + presence of a particular attribute on an object. + + + + + Returns a new AttributeConstraint checking for the + presence of a particular attribute on an object. + + + + + Returns a constraint that tests two items for equality + + + + + Returns a constraint that tests that two references are the same object + + + + + Returns a constraint that tests whether the + actual value is greater than the suppled argument + + + + + Returns a constraint that tests whether the + actual value is greater than or equal to the suppled argument + + + + + Returns a constraint that tests whether the + actual value is greater than or equal to the suppled argument + + + + + Returns a constraint that tests whether the + actual value is less than the suppled argument + + + + + Returns a constraint that tests whether the + actual value is less than or equal to the suppled argument + + + + + Returns a constraint that tests whether the + actual value is less than or equal to the suppled argument + + + + + Returns a constraint that tests whether the actual + value is of the exact type supplied as an argument. + + + + + Returns a constraint that tests whether the actual + value is of the exact type supplied as an argument. + + + + + Returns a constraint that tests whether the actual value + is of the type supplied as an argument or a derived type. + + + + + Returns a constraint that tests whether the actual value + is of the type supplied as an argument or a derived type. + + + + + Returns a constraint that tests whether the actual value + is of the type supplied as an argument or a derived type. + + + + + Returns a constraint that tests whether the actual value + is of the type supplied as an argument or a derived type. + + + + + Returns a constraint that tests whether the actual value + is assignable from the type supplied as an argument. + + + + + Returns a constraint that tests whether the actual value + is assignable from the type supplied as an argument. + + + + + Returns a constraint that tests whether the actual value + is assignable from the type supplied as an argument. + + + + + Returns a constraint that tests whether the actual value + is assignable from the type supplied as an argument. + + + + + Returns a constraint that tests whether the actual value + is a collection containing the same elements as the + collection supplied as an argument. + + + + + Returns a constraint that tests whether the actual value + is a subset of the collection supplied as an argument. + + + + + Returns a new CollectionContainsConstraint checking for the + presence of a particular object in the collection. + + + + + Returns a new CollectionContainsConstraint checking for the + presence of a particular object in the collection. + + + + + Returns a new ContainsConstraint. This constraint + will, in turn, make use of the appropriate second-level + constraint, depending on the type of the actual argument. + This overload is only used if the item sought is a string, + since any other type implies that we are looking for a + collection member. + + + + + Returns a constraint that succeeds if the actual + value contains the substring supplied as an argument. + + + + + Returns a constraint that succeeds if the actual + value contains the substring supplied as an argument. + + + + + Returns a constraint that fails if the actual + value contains the substring supplied as an argument. + + + + + Returns a constraint that succeeds if the actual + value starts with the substring supplied as an argument. + + + + + Returns a constraint that succeeds if the actual + value starts with the substring supplied as an argument. + + + + + Returns a constraint that fails if the actual + value starts with the substring supplied as an argument. + + + + + Returns a constraint that succeeds if the actual + value ends with the substring supplied as an argument. + + + + + Returns a constraint that succeeds if the actual + value ends with the substring supplied as an argument. + + + + + Returns a constraint that fails if the actual + value ends with the substring supplied as an argument. + + + + + Returns a constraint that succeeds if the actual + value matches the Regex pattern supplied as an argument. + + + + + Returns a constraint that succeeds if the actual + value matches the Regex pattern supplied as an argument. + + + + + Returns a constraint that fails if the actual + value matches the pattern supplied as an argument. + + + + + Returns a constraint that tests whether the path provided + is the same as an expected path after canonicalization. + + + + + Returns a constraint that tests whether the path provided + is the same path or under an expected path after canonicalization. + + + + + Returns a constraint that tests whether the actual value falls + within a specified range. + + + + + Returns a ConstraintExpression that negates any + following constraint. + + + + + Returns a ConstraintExpression that negates any + following constraint. + + + + + Returns a ConstraintExpression, which will apply + the following constraint to all members of a collection, + succeeding if all of them succeed. + + + + + Returns a ConstraintExpression, which will apply + the following constraint to all members of a collection, + succeeding if at least one of them succeeds. + + + + + Returns a ConstraintExpression, which will apply + the following constraint to all members of a collection, + succeeding if all of them fail. + + + + + Returns a new ConstraintExpression, which will apply the following + constraint to the Length property of the object being tested. + + + + + Returns a new ConstraintExpression, which will apply the following + constraint to the Count property of the object being tested. + + + + + Returns a new ConstraintExpression, which will apply the following + constraint to the Message property of the object being tested. + + + + + Returns a new ConstraintExpression, which will apply the following + constraint to the InnerException property of the object being tested. + + + + + Returns a constraint that tests for null + + + + + Returns a constraint that tests for True + + + + + Returns a constraint that tests for False + + + + + Returns a constraint that tests for NaN + + + + + Returns a constraint that tests for empty + + + + + Returns a constraint that tests whether a collection + contains all unique items. + + + + + Returns a constraint that tests whether an object graph is serializable in binary format. + + + + + Returns a constraint that tests whether an object graph is serializable in xml format. + + + + + Returns a constraint that tests whether a collection is ordered + + + + + Applies a delay to the match so that a match can be evaluated in the future. + + + + + Creates a new DelayedConstraint + + The inner constraint two decorate + The time interval after which the match is performed + If the value of is less than 0 + + + + Creates a new DelayedConstraint + + The inner constraint two decorate + The time interval after which the match is performed + The time interval used for polling + If the value of is less than 0 + + + + Test whether the constraint is satisfied by a given value + + The value to be tested + True for if the base constraint fails, false if it succeeds + + + + Test whether the constraint is satisfied by a delegate + + The delegate whose value is to be tested + True for if the base constraint fails, false if it succeeds + + + + Test whether the constraint is satisfied by a given reference. + Overridden to wait for the specified delay period before + calling the base constraint with the dereferenced value. + + A reference to the value to be tested + True for success, false for failure + + + + Write the constraint description to a MessageWriter + + The writer on which the description is displayed + + + + Write the actual value for a failing constraint test to a MessageWriter. + + The writer on which the actual value is displayed + + + + Returns the string representation of the constraint. + + + + + NUnitComparer encapsulates NUnit's default behavior + in comparing two objects. + + + + + Compares two objects + + + + + + + + Returns the default NUnitComparer. + + + + + Delegate used to delay evaluation of the actual value + to be used in evaluating a constraint + + + + + NUnitEqualityComparer encapsulates NUnit's handling of + equality tests between objects. + + + + + If true, all string comparisons will ignore case + + + + + If true, arrays will be treated as collections, allowing + those of different dimensions to be compared + + + + + If non-zero, equality comparisons within the specified + tolerance will succeed. + + + + + Comparison object used in comparisons for some constraints. + + + + + Compares two objects for equality. + + + + + Helper method to compare two arrays + + + + + Method to compare two DirectoryInfo objects + + first directory to compare + second directory to compare + true if equivalent, false if not + + + + Returns the default NUnitEqualityComparer + + + + + Gets and sets a flag indicating whether case should + be ignored in determining equality. + + + + + Gets and sets a flag indicating that arrays should be + compared as collections, without regard to their shape. + + + + + Gets and sets an external comparer to be used to + test for equality. It is applied to members of + collections, in place of NUnit's own logic. + + + + + Gets and sets a tolerance used to compare objects of + certin types. + + + + + Gets the list of failure points for the last Match performed. + + + + + ComparisonAdapter class centralizes all comparisons of + values in NUnit, adapting to the use of any provided + IComparer, IComparer<T> or Comparison<T> + + + + + Returns a ComparisonAdapter that wraps an IComparer + + + + + Returns a ComparisonAdapter that wraps an IComparer<T> + + + + + Returns a ComparisonAdapter that wraps a Comparison<T> + + + + + Compares two objects + + + + + Gets the default ComparisonAdapter, which wraps an + NUnitComparer object. + + + + + Construct a ComparisonAdapter for an IComparer + + + + + Compares two objects + + + + + + + + Construct a default ComparisonAdapter + + + + + ComparisonAdapter<T> extends ComparisonAdapter and + allows use of an IComparer<T> or Comparison<T> + to actually perform the comparison. + + + + + Construct a ComparisonAdapter for an IComparer<T> + + + + + Compare a Type T to an object + + + + + Construct a ComparisonAdapter for a Comparison<T> + + + + + Compare a Type T to an object + + + + + The ConstraintOperator class is used internally by a + ConstraintBuilder to represent an operator that + modifies or combines constraints. + + Constraint operators use left and right precedence + values to determine whether the top operator on the + stack should be reduced before pushing a new operator. + + + + + The precedence value used when the operator + is about to be pushed to the stack. + + + + + The precedence value used when the operator + is on the top of the stack. + + + + + Reduce produces a constraint from the operator and + any arguments. It takes the arguments from the constraint + stack and pushes the resulting constraint on it. + + + + + + The syntax element preceding this operator + + + + + The syntax element folowing this operator + + + + + The precedence value used when the operator + is about to be pushed to the stack. + + + + + The precedence value used when the operator + is on the top of the stack. + + + + + PrefixOperator takes a single constraint and modifies + it's action in some way. + + + + + Reduce produces a constraint from the operator and + any arguments. It takes the arguments from the constraint + stack and pushes the resulting constraint on it. + + + + + + Returns the constraint created by applying this + prefix to another constraint. + + + + + + + Negates the test of the constraint it wraps. + + + + + Constructs a new NotOperator + + + + + Returns a NotConstraint applied to its argument. + + + + + Abstract base for operators that indicate how to + apply a constraint to items in a collection. + + + + + Constructs a CollectionOperator + + + + + Represents a constraint that succeeds if all the + members of a collection match a base constraint. + + + + + Returns a constraint that will apply the argument + to the members of a collection, succeeding if + they all succeed. + + + + + Represents a constraint that succeeds if any of the + members of a collection match a base constraint. + + + + + Returns a constraint that will apply the argument + to the members of a collection, succeeding if + any of them succeed. + + + + + Represents a constraint that succeeds if none of the + members of a collection match a base constraint. + + + + + Returns a constraint that will apply the argument + to the members of a collection, succeeding if + none of them succeed. + + + + + Represents a constraint that simply wraps the + constraint provided as an argument, without any + further functionality, but which modifes the + order of evaluation because of its precedence. + + + + + Constructor for the WithOperator + + + + + Returns a constraint that wraps its argument + + + + + Abstract base class for operators that are able to reduce to a + constraint whether or not another syntactic element follows. + + + + + Operator used to test for the presence of a named Property + on an object and optionally apply further tests to the + value of that property. + + + + + Constructs a PropOperator for a particular named property + + + + + Reduce produces a constraint from the operator and + any arguments. It takes the arguments from the constraint + stack and pushes the resulting constraint on it. + + + + + + Gets the name of the property to which the operator applies + + + + + Operator that tests for the presence of a particular attribute + on a type and optionally applies further tests to the attribute. + + + + + Construct an AttributeOperator for a particular Type + + The Type of attribute tested + + + + Reduce produces a constraint from the operator and + any arguments. It takes the arguments from the constraint + stack and pushes the resulting constraint on it. + + + + + Operator that tests that an exception is thrown and + optionally applies further tests to the exception. + + + + + Construct a ThrowsOperator + + + + + Reduce produces a constraint from the operator and + any arguments. It takes the arguments from the constraint + stack and pushes the resulting constraint on it. + + + + + Abstract base class for all binary operators + + + + + Reduce produces a constraint from the operator and + any arguments. It takes the arguments from the constraint + stack and pushes the resulting constraint on it. + + + + + + Abstract method that produces a constraint by applying + the operator to its left and right constraint arguments. + + + + + Gets the left precedence of the operator + + + + + Gets the right precedence of the operator + + + + + Operator that requires both it's arguments to succeed + + + + + Construct an AndOperator + + + + + Apply the operator to produce an AndConstraint + + + + + Operator that requires at least one of it's arguments to succeed + + + + + Construct an OrOperator + + + + + Apply the operator to produce an OrConstraint + + + + + BinarySerializableConstraint tests whether + an object is serializable in binary format. + + + + + Test whether the constraint is satisfied by a given value + + The value to be tested + True for success, false for failure + + + + Write the constraint description to a MessageWriter + + The writer on which the description is displayed + + + + Write the actual value for a failing constraint test to a + MessageWriter. The default implementation simply writes + the raw value of actual, leaving it to the writer to + perform any formatting. + + The writer on which the actual value is displayed + + + + Returns the string representation + + + + + BinarySerializableConstraint tests whether + an object is serializable in binary format. + + + + + Test whether the constraint is satisfied by a given value + + The value to be tested + True for success, false for failure + + + + Write the constraint description to a MessageWriter + + The writer on which the description is displayed + + + + Write the actual value for a failing constraint test to a + MessageWriter. The default implementation simply writes + the raw value of actual, leaving it to the writer to + perform any formatting. + + The writer on which the actual value is displayed + + + + Returns the string representation of this constraint + + + + + ResolvableConstraintExpression is used to represent a compound + constraint being constructed at a point where the last operator + may either terminate the expression or may have additional + qualifying constraints added to it. + + It is used, for example, for a Property element or for + an Exception element, either of which may be optionally + followed by constraints that apply to the property or + exception. + + + + + Create a new instance of ResolvableConstraintExpression + + + + + Create a new instance of ResolvableConstraintExpression, + passing in a pre-populated ConstraintBuilder. + + + + + Resolve the current expression to a Constraint + + + + + Appends an And Operator to the expression + + + + + Appends an Or operator to the expression. + + + + + EqualityAdapter class handles all equality comparisons + that use an IEqualityComparer, IEqualityComparer<T> + or a ComparisonAdapter. + + + + + Compares two objects, returning true if they are equal + + + + + Returns an EqualityAdapter that wraps an IComparer. + + + + + Returns an EqualityAdapter that wraps an IEqualityComparer. + + + + + Returns an EqualityAdapter that wraps an IEqualityComparer<T>. + + + + + Returns an EqualityAdapter that wraps an IComparer<T>. + + + + + Returns an EqualityAdapter that wraps a Comparison<T>. + + + + + AttributeExistsConstraint tests for the presence of a + specified attribute on a Type. + + + + + Constructs an AttributeExistsConstraint for a specific attribute Type + + + + + + Tests whether the object provides the expected attribute. + + A Type, MethodInfo, or other ICustomAttributeProvider + True if the expected attribute is present, otherwise false + + + + Writes the description of the constraint to the specified writer + + + + + AttributeConstraint tests that a specified attribute is present + on a Type or other provider and that the value of the attribute + satisfies some other constraint. + + + + + Constructs an AttributeConstraint for a specified attriute + Type and base constraint. + + + + + + + Determines whether the Type or other provider has the + expected attribute and if its value matches the + additional constraint specified. + + + + + Writes a description of the attribute to the specified writer. + + + + + Writes the actual value supplied to the specified writer. + + + + + Returns a string representation of the constraint. + + + + Helper routines for working with floating point numbers + + + The floating point comparison code is based on this excellent article: + http://www.cygnus-software.com/papers/comparingfloats/comparingfloats.htm + + + "ULP" means Unit in the Last Place and in the context of this library refers to + the distance between two adjacent floating point numbers. IEEE floating point + numbers can only represent a finite subset of natural numbers, with greater + accuracy for smaller numbers and lower accuracy for very large numbers. + + + If a comparison is allowed "2 ulps" of deviation, that means the values are + allowed to deviate by up to 2 adjacent floating point values, which might be + as low as 0.0000001 for small numbers or as high as 10.0 for large numbers. + + + + + Compares two floating point values for equality + First floating point value to be compared + Second floating point value t be compared + + Maximum number of representable floating point values that are allowed to + be between the left and the right floating point values + + True if both numbers are equal or close to being equal + + + Floating point values can only represent a finite subset of natural numbers. + For example, the values 2.00000000 and 2.00000024 can be stored in a float, + but nothing inbetween them. + + + This comparison will count how many possible floating point values are between + the left and the right number. If the number of possible values between both + numbers is less than or equal to maxUlps, then the numbers are considered as + being equal. + + + Implementation partially follows the code outlined here: + http://www.anttirt.net/2007/08/19/proper-floating-point-comparisons/ + + + + + Compares two double precision floating point values for equality + First double precision floating point value to be compared + Second double precision floating point value t be compared + + Maximum number of representable double precision floating point values that are + allowed to be between the left and the right double precision floating point values + + True if both numbers are equal or close to being equal + + + Double precision floating point values can only represent a limited series of + natural numbers. For example, the values 2.0000000000000000 and 2.0000000000000004 + can be stored in a double, but nothing inbetween them. + + + This comparison will count how many possible double precision floating point + values are between the left and the right number. If the number of possible + values between both numbers is less than or equal to maxUlps, then the numbers + are considered as being equal. + + + Implementation partially follows the code outlined here: + http://www.anttirt.net/2007/08/19/proper-floating-point-comparisons/ + + + + + + Reinterprets the memory contents of a floating point value as an integer value + + + Floating point value whose memory contents to reinterpret + + + The memory contents of the floating point value interpreted as an integer + + + + + Reinterprets the memory contents of a double precision floating point + value as an integer value + + + Double precision floating point value whose memory contents to reinterpret + + + The memory contents of the double precision floating point value + interpreted as an integer + + + + + Reinterprets the memory contents of an integer as a floating point value + + Integer value whose memory contents to reinterpret + + The memory contents of the integer value interpreted as a floating point value + + + + + Reinterprets the memory contents of an integer value as a double precision + floating point value + + Integer whose memory contents to reinterpret + + The memory contents of the integer interpreted as a double precision + floating point value + + + + Union of a floating point variable and an integer + + + The union's value as a floating point variable + + + The union's value as an integer + + + The union's value as an unsigned integer + + + Union of a double precision floating point variable and a long + + + The union's value as a double precision floating point variable + + + The union's value as a long + + + The union's value as an unsigned long + + + + Predicate constraint wraps a Predicate in a constraint, + returning success if the predicate is true. + + + + + Construct a PredicateConstraint from a predicate + + + + + Determines whether the predicate succeeds when applied + to the actual value. + + + + + Writes the description to a MessageWriter + + + + + The TestCaseData class represents a set of arguments + and other parameter info to be used for a parameterized + test case. It provides a number of instance modifiers + for use in initializing the test case. + + Note: Instance modifiers are getters that return + the same instance after modifying it's state. + + + + + The ITestCaseData interface is implemented by a class + that is able to return complete testcases for use by + a parameterized test method. + + NOTE: This interface is used in both the framework + and the core, even though that results in two different + types. However, sharing the source code guarantees that + the various implementations will be compatible and that + the core is able to reflect successfully over the + framework implementations of ITestCaseData. + + + + + Gets the argument list to be provided to the test + + + + + Gets the expected result + + + + + Gets the expected exception Type + + + + + Gets the FullName of the expected exception + + + + + Gets the name to be used for the test + + + + + Gets the description of the test + + + + + Gets a value indicating whether this is ignored. + + true if ignored; otherwise, false. + + + + Gets the ignore reason. + + The ignore reason. + + + + The argument list to be provided to the test + + + + + The expected result to be returned + + + + + The expected exception Type + + + + + The FullName of the expected exception + + + + + The name to be used for the test + + + + + The description of the test + + + + + A dictionary of properties, used to add information + to tests without requiring the class to change. + + + + + If true, indicates that the test case is to be ignored + + + + + The reason for ignoring a test case + + + + + Initializes a new instance of the class. + + The arguments. + + + + Initializes a new instance of the class. + + The argument. + + + + Initializes a new instance of the class. + + The first argument. + The second argument. + + + + Initializes a new instance of the class. + + The first argument. + The second argument. + The third argument. + + + + Sets the expected result for the test + + The expected result + A modified TestCaseData + + + + Sets the expected exception type for the test + + Type of the expected exception. + The modified TestCaseData instance + + + + Sets the expected exception type for the test + + FullName of the expected exception. + The modified TestCaseData instance + + + + Sets the name of the test case + + The modified TestCaseData instance + + + + Sets the description for the test case + being constructed. + + The description. + The modified TestCaseData instance. + + + + Applies a category to the test + + + + + + + Applies a named property to the test + + + + + + + + Applies a named property to the test + + + + + + + + Applies a named property to the test + + + + + + + + Ignores this TestCase. + + + + + + Ignores this TestCase, specifying the reason. + + The reason. + + + + + Gets the argument list to be provided to the test + + + + + Gets the expected result + + + + + Gets the expected exception Type + + + + + Gets the FullName of the expected exception + + + + + Gets the name to be used for the test + + + + + Gets the description of the test + + + + + Gets a value indicating whether this is ignored. + + true if ignored; otherwise, false. + + + + Gets the ignore reason. + + The ignore reason. + + + + Gets a list of categories associated with this test. + + + + + Gets the property dictionary for this test + + + + + FactoryAttribute indicates the source to be used to + provide test cases for a test method. + + + + + Construct with the name of the factory - for use with languages + that don't support params arrays. + + An array of the names of the factories that will provide data + + + + Construct with a Type and name - for use with languages + that don't support params arrays. + + The Type that will provide data + The name of the method, property or field that will provide data + + + + The name of a the method, property or fiend to be used as a source + + + + + A Type to be used as a source + + + + + Helper class with properties and methods that supply + a number of constraints used in Asserts. + + + + + Returns a new PropertyConstraintExpression, which will either + test for the existence of the named property on the object + being tested or apply any following constraint to that property. + + + + + Returns a new AttributeConstraint checking for the + presence of a particular attribute on an object. + + + + + Returns a new AttributeConstraint checking for the + presence of a particular attribute on an object. + + + + + Returns a new CollectionContainsConstraint checking for the + presence of a particular object in the collection. + + + + + Returns a ConstraintExpression that negates any + following constraint. + + + + + Returns a ConstraintExpression, which will apply + the following constraint to all members of a collection, + succeeding if all of them succeed. + + + + + Returns a ConstraintExpression, which will apply + the following constraint to all members of a collection, + succeeding if at least one of them succeeds. + + + + + Returns a ConstraintExpression, which will apply + the following constraint to all members of a collection, + succeeding if all of them fail. + + + + + Returns a new ConstraintExpression, which will apply the following + constraint to the Length property of the object being tested. + + + + + Returns a new ConstraintExpression, which will apply the following + constraint to the Count property of the object being tested. + + + + + Returns a new ConstraintExpression, which will apply the following + constraint to the Message property of the object being tested. + + + + + Returns a new ConstraintExpression, which will apply the following + constraint to the InnerException property of the object being tested. + + + + + 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. + + + + + + + Enumeration indicating how the expected message parameter is to be used + + + + Expect an exact match + + + Expect a message containing the parameter string + + + Match the regular expression provided as a parameter + + + Expect a message that starts with the parameter string + + + + ExpectedExceptionAttribute + + + + + + Constructor for a non-specific exception + + + + + Constructor for a given type of exception + + The type of the expected exception + + + + Constructor for a given exception name + + The full name of the expected exception + + + + Gets or sets the expected exception type + + + + + Gets or sets the full Type name of the expected exception + + + + + Gets or sets the expected message text + + + + + Gets or sets the user message displayed in case of failure + + + + + Gets or sets the type of match to be performed on the expected message + + + + + Gets the name of a method to be used as an exception handler + + + + + 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 the list of arguments to a test case + + + + + Gets or sets the expected result. + + The result. + + + + Gets or sets the expected exception. + + The expected exception. + + + + Gets or sets the name the expected exception. + + The expected name of the exception. + + + + Gets or sets the expected message of the expected exception + + The expected message of the exception. + + + + Gets or sets the type of match to be performed on the expected message + + + + + Gets or sets the description. + + The description. + + + + Gets or sets the name of the test. + + The name of the test. + + + + Gets or sets the ignored status of the test + + + + + Gets or sets the ignored status of the test + + + + + Gets the ignore reason. + + The ignore reason. + + + + Thrown when an assertion failed. + + + + + + + The error message that explains + the reason for the exception + The exception that caused the + current exception + + + + Serialization Constructor + + + + + Thrown when a test executes inconclusively. + + + + + The error message that explains + the reason for the exception + + + The error message that explains + the reason for the exception + The exception that caused the + current exception + + + + Serialization Constructor + + + + + Delegate used by tests that execute code and + capture any thrown exception. + + + + + The Assert class contains a collection of static methods that + implement the most common assertions used in NUnit. + + + + + We don't actually want any instances of this object, but some people + like to inherit from it to add other static methods. Hence, the + protected constructor disallows any instances of this object. + + + + + The Equals method throws an AssertionException. This is done + to make sure there is no mistake by calling this function. + + + + + + + override the default ReferenceEquals to throw an AssertionException. This + implementation makes sure there is no mistake in calling this function + as part of Assert. + + + + + + + Helper for Assert.AreEqual(double expected, double actual, ...) + allowing code generation to work consistently. + + The expected value + The actual value + The maximum acceptable difference between the + the expected and the actual + The message to display in case of failure + Array of objects to be used in formatting the message + + + + Throws a with the message and arguments + that are passed in. This allows a test to be cut short, with a result + of success returned to NUnit. + + The message to initialize the with. + Arguments to be used in formatting the message + + + + Throws a with the message and arguments + that are passed in. This allows a test to be cut short, with a result + of success returned to NUnit. + + The message to initialize the with. + + + + Throws a with the message and arguments + that are passed in. This allows a test to be cut short, with a result + of success returned to NUnit. + + + + + Throws an with the message and arguments + that are passed in. This is used by the other Assert functions. + + The message to initialize the with. + Arguments to be used in formatting the message + + + + Throws an with the message that is + passed in. This is used by the other Assert functions. + + The message to initialize the with. + + + + Throws an . + This is used by the other Assert functions. + + + + + Throws an with the message and arguments + that are passed in. This causes the test to be reported as ignored. + + The message to initialize the with. + Arguments to be used in formatting the message + + + + Throws an with the message that is + passed in. This causes the test to be reported as ignored. + + The message to initialize the with. + + + + Throws an . + This causes the test to be reported as ignored. + + + + + Throws an with the message and arguments + that are passed in. This causes the test to be reported as inconclusive. + + The message to initialize the with. + Arguments to be used in formatting the message + + + + Throws an with the message that is + passed in. This causes the test to be reported as inconclusive. + + The message to initialize the with. + + + + Throws an . + This causes the test to be reported as Inconclusive. + + + + + Apply a constraint to an actual value, succeeding if the constraint + is satisfied and throwing an assertion exception on failure. + + A Constraint to be applied + The actual value to test + + + + Apply a constraint to an actual value, succeeding if the constraint + is satisfied and throwing an assertion exception on failure. + + A Constraint to be applied + The actual value to test + The message that will be displayed on failure + + + + Apply a constraint to an actual value, succeeding if the constraint + is satisfied and throwing an assertion exception on failure. + + A Constraint expression to be applied + The actual value to test + The message that will be displayed on failure + Arguments to be used in formatting the message + + + + Apply a constraint to an actual value, succeeding if the constraint + is satisfied and throwing an assertion exception on failure. + + A Constraint expression to be applied + An ActualValueDelegate returning the value to be tested + + + + Apply a constraint to an actual value, succeeding if the constraint + is satisfied and throwing an assertion exception on failure. + + A Constraint expression to be applied + An ActualValueDelegate returning the value to be tested + The message that will be displayed on failure + + + + Apply a constraint to an actual value, succeeding if the constraint + is satisfied and throwing an assertion exception on failure. + + An ActualValueDelegate returning the value to be tested + A Constraint expression to be applied + The message that will be displayed on failure + Arguments to be used in formatting the message + + + + Apply a constraint to a referenced value, succeeding if the constraint + is satisfied and throwing an assertion exception on failure. + + A Constraint to be applied + The actual value to test + + + + Apply a constraint to a referenced value, succeeding if the constraint + is satisfied and throwing an assertion exception on failure. + + A Constraint to be applied + The actual value to test + The message that will be displayed on failure + + + + Apply a constraint to a referenced value, succeeding if the constraint + is satisfied and throwing an assertion exception on failure. + + A Constraint to be applied + The actual value to test + The message that will be displayed on failure + Arguments to be used in formatting the message + + + + Asserts that a condition is true. If the condition is false the method throws + an . + + The evaluated condition + The message to display if the condition is false + Arguments to be used in formatting the message + + + + Asserts that a condition is true. If the condition is false the method throws + an . + + The evaluated condition + The message to display if the condition is false + + + + Asserts that a condition is true. If the condition is false the method throws + an . + + The evaluated condition + + + + Asserts that the code represented by a delegate throws an exception + that satisfies the constraint provided. + + A TestDelegate to be executed + A ThrowsConstraint used in the test + + + + Verifies that a delegate throws a particular exception when called. + + A constraint to be satisfied by the exception + A TestSnippet delegate + The message that will be displayed on failure + Arguments to be used in formatting the message + + + + Verifies that a delegate throws a particular exception when called. + + A constraint to be satisfied by the exception + A TestSnippet delegate + The message that will be displayed on failure + + + + Verifies that a delegate throws a particular exception when called. + + A constraint to be satisfied by the exception + A TestSnippet delegate + + + + Verifies that a delegate throws a particular exception when called. + + The exception Type expected + A TestSnippet delegate + The message that will be displayed on failure + Arguments to be used in formatting the message + + + + Verifies that a delegate throws a particular exception when called. + + The exception Type expected + A TestSnippet delegate + The message that will be displayed on failure + + + + Verifies that a delegate throws a particular exception when called. + + The exception Type expected + A TestSnippet delegate + + + + Verifies that a delegate throws a particular exception when called. + + Type of the expected exception + A TestSnippet delegate + The message that will be displayed on failure + Arguments to be used in formatting the message + + + + Verifies that a delegate throws a particular exception when called. + + Type of the expected exception + A TestSnippet delegate + The message that will be displayed on failure + + + + Verifies that a delegate throws a particular exception when called. + + Type of the expected exception + A TestSnippet delegate + + + + Verifies that a delegate throws an exception when called + and returns it. + + A TestDelegate + The message that will be displayed on failure + Arguments to be used in formatting the message + + + + Verifies that a delegate throws an exception when called + and returns it. + + A TestDelegate + The message that will be displayed on failure + + + + Verifies that a delegate throws an exception when called + and returns it. + + A TestDelegate + + + + Verifies that a delegate throws an exception of a certain Type + or one derived from it when called and returns it. + + The expected Exception Type + A TestDelegate + The message that will be displayed on failure + Arguments to be used in formatting the message + + + + Verifies that a delegate throws an exception of a certain Type + or one derived from it when called and returns it. + + The expected Exception Type + A TestDelegate + The message that will be displayed on failure + + + + Verifies that a delegate throws an exception of a certain Type + or one derived from it when called and returns it. + + The expected Exception Type + A TestDelegate + + + + Verifies that a delegate throws an exception of a certain Type + or one derived from it when called and returns it. + + The expected Exception Type + A TestDelegate + The message that will be displayed on failure + Arguments to be used in formatting the message + + + + Verifies that a delegate throws an exception of a certain Type + or one derived from it when called and returns it. + + The expected Exception Type + A TestDelegate + The message that will be displayed on failure + + + + Verifies that a delegate throws an exception of a certain Type + or one derived from it when called and returns it. + + The expected Exception Type + A TestDelegate + + + + Verifies that a delegate does not throw an exception + + A TestSnippet delegate + The message that will be displayed on failure + Arguments to be used in formatting the message + + + + Verifies that a delegate does not throw an exception. + + A TestSnippet delegate + The message that will be displayed on failure + + + + Verifies that a delegate does not throw an exception. + + A TestSnippet delegate + + + + Asserts that a condition is true. If the condition is false the method throws + an . + + The evaluated condition + The message to display in case of failure + Array of objects to be used in formatting the message + + + + Asserts that a condition is true. If the condition is false the method throws + an . + + The evaluated condition + The message to display in case of failure + + + + Asserts that a condition is true. If the condition is false the method throws + an . + + The evaluated condition + + + + Asserts that a condition is true. If the condition is false the method throws + an . + + The evaluated condition + The message to display in case of failure + Array of objects to be used in formatting the message + + + + Asserts that a condition is true. If the condition is false the method throws + an . + + The evaluated condition + The message to display in case of failure + + + + Asserts that a condition is true. If the condition is false the method throws + an . + + The evaluated condition + + + + Asserts that a condition is false. If the condition is true the method throws + an . + + The evaluated condition + The message to display in case of failure + Array of objects to be used in formatting the message + + + + Asserts that a condition is false. If the condition is true the method throws + an . + + The evaluated condition + The message to display in case of failure + + + + Asserts that a condition is false. If the condition is true the method throws + an . + + The evaluated condition + + + + Asserts that a condition is false. If the condition is true the method throws + an . + + The evaluated condition + The message to display in case of failure + Array of objects to be used in formatting the message + + + + Asserts that a condition is false. If the condition is true the method throws + an . + + The evaluated condition + The message to display in case of failure + + + + Asserts that a condition is false. If the condition is true the method throws + an . + + The evaluated condition + + + + Verifies that the object that is passed in is not equal to null + If the object is null then an + is thrown. + + The object that is to be tested + The message to display in case of failure + Array of objects to be used in formatting the message + + + + Verifies that the object that is passed in is not equal to null + If the object is null then an + is thrown. + + The object that is to be tested + The message to display in case of failure + + + + Verifies that the object that is passed in is not equal to null + If the object is null then an + is thrown. + + The object that is to be tested + + + + Verifies that the object that is passed in is not equal to null + If the object is null then an + is thrown. + + The object that is to be tested + The message to display in case of failure + Array of objects to be used in formatting the message + + + + Verifies that the object that is passed in is not equal to null + If the object is null then an + is thrown. + + The object that is to be tested + The message to display in case of failure + + + + Verifies that the object that is passed in is not equal to null + If the object is null then an + is thrown. + + The object that is to be tested + + + + Verifies that the object that is passed in is equal to null + If the object is not null then an + is thrown. + + The object that is to be tested + The message to display in case of failure + Array of objects to be used in formatting the message + + + + Verifies that the object that is passed in is equal to null + If the object is not null then an + is thrown. + + The object that is to be tested + The message to display in case of failure + + + + Verifies that the object that is passed in is equal to null + If the object is not null then an + is thrown. + + The object that is to be tested + + + + Verifies that the object that is passed in is equal to null + If the object is not null then an + is thrown. + + The object that is to be tested + The message to display in case of failure + Array of objects to be used in formatting the message + + + + Verifies that the object that is passed in is equal to null + If the object is not null then an + is thrown. + + The object that is to be tested + The message to display in case of failure + + + + Verifies that the object that is passed in is equal to null + If the object is not null then an + is thrown. + + The object that is to be tested + + + + Verifies that the double that is passed in is an NaN value. + If the object is not NaN then an + is thrown. + + The value that is to be tested + The message to display in case of failure + Array of objects to be used in formatting the message + + + + Verifies that the double that is passed in is an NaN value. + If the object is not NaN then an + is thrown. + + The value that is to be tested + The message to display in case of failure + + + + Verifies that the double that is passed in is an NaN value. + If the object is not NaN then an + is thrown. + + The value that is to be tested + + + + Verifies that the double that is passed in is an NaN value. + If the object is not NaN then an + is thrown. + + The value that is to be tested + The message to display in case of failure + Array of objects to be used in formatting the message + + + + Verifies that the double that is passed in is an NaN value. + If the object is not NaN then an + is thrown. + + The value that is to be tested + The message to display in case of failure + + + + Verifies that the double that is passed in is an NaN value. + If the object is not NaN then an + is thrown. + + The value that is to be tested + + + + Assert that a string is empty - that is equal to string.Empty + + The string to be tested + The message to display in case of failure + Array of objects to be used in formatting the message + + + + Assert that a string is empty - that is equal to string.Empty + + The string to be tested + The message to display in case of failure + + + + Assert that a string is empty - that is equal to string.Empty + + The string to be tested + + + + Assert that an array, list or other collection is empty + + An array, list or other collection implementing ICollection + The message to display in case of failure + Array of objects to be used in formatting the message + + + + Assert that an array, list or other collection is empty + + An array, list or other collection implementing ICollection + The message to display in case of failure + + + + Assert that an array, list or other collection is empty + + An array, list or other collection implementing ICollection + + + + Assert that a string is not empty - that is not equal to string.Empty + + The string to be tested + The message to display in case of failure + Array of objects to be used in formatting the message + + + + Assert that a string is not empty - that is not equal to string.Empty + + The string to be tested + The message to display in case of failure + + + + Assert that a string is not empty - that is not equal to string.Empty + + The string to be tested + + + + Assert that an array, list or other collection is not empty + + An array, list or other collection implementing ICollection + The message to display in case of failure + Array of objects to be used in formatting the message + + + + Assert that an array, list or other collection is not empty + + An array, list or other collection implementing ICollection + The message to display in case of failure + + + + Assert that an array, list or other collection is not empty + + An array, list or other collection implementing ICollection + + + + Assert that a string is either null or equal to string.Empty + + The string to be tested + The message to display in case of failure + Array of objects to be used in formatting the message + + + + Assert that a string is either null or equal to string.Empty + + The string to be tested + The message to display in case of failure + + + + Assert that a string is either null or equal to string.Empty + + The string to be tested + + + + Assert that a string is not null or empty + + The string to be tested + The message to display in case of failure + Array of objects to be used in formatting the message + + + + Assert that a string is not null or empty + + The string to be tested + The message to display in case of failure + + + + Assert that a string is not null or empty + + The string to be tested + + + + Asserts that an object may be assigned a value of a given Type. + + The expected Type. + The object under examination + The message to display in case of failure + Array of objects to be used in formatting the message + + + + Asserts that an object may be assigned a value of a given Type. + + The expected Type. + The object under examination + The message to display in case of failure + + + + Asserts that an object may be assigned a value of a given Type. + + The expected Type. + The object under examination + + + + Asserts that an object may be assigned a value of a given Type. + + The expected Type. + The object under examination + The message to display in case of failure + Array of objects to be used in formatting the message + + + + Asserts that an object may be assigned a value of a given Type. + + The expected Type. + The object under examination + The message to display in case of failure + + + + Asserts that an object may be assigned a value of a given Type. + + The expected Type. + The object under examination + + + + Asserts that an object may not be assigned a value of a given Type. + + The expected Type. + The object under examination + The message to display in case of failure + Array of objects to be used in formatting the message + + + + Asserts that an object may not be assigned a value of a given Type. + + The expected Type. + The object under examination + The message to display in case of failure + + + + Asserts that an object may not be assigned a value of a given Type. + + The expected Type. + The object under examination + + + + Asserts that an object may not be assigned a value of a given Type. + + The expected Type. + The object under examination + The message to display in case of failure + Array of objects to be used in formatting the message + + + + Asserts that an object may not be assigned a value of a given Type. + + The expected Type. + The object under examination + The message to display in case of failure + + + + Asserts that an object may not be assigned a value of a given Type. + + The expected Type. + The object under examination + + + + Asserts that an object is an instance of a given type. + + The expected Type + The object being examined + The message to display in case of failure + Array of objects to be used in formatting the message + + + + Asserts that an object is an instance of a given type. + + The expected Type + The object being examined + The message to display in case of failure + + + + Asserts that an object is an instance of a given type. + + The expected Type + The object being examined + + + + Asserts that an object is an instance of a given type. + + The expected Type + The object being examined + The message to display in case of failure + Array of objects to be used in formatting the message + + + + Asserts that an object is an instance of a given type. + + The expected Type + The object being examined + The message to display in case of failure + + + + Asserts that an object is an instance of a given type. + + The expected Type + The object being examined + + + + Asserts that an object is an instance of a given type. + + The expected Type + The object being examined + The message to display in case of failure + Array of objects to be used in formatting the message + + + + Asserts that an object is an instance of a given type. + + The expected Type + The object being examined + The message to display in case of failure + + + + Asserts that an object is an instance of a given type. + + The expected Type + The object being examined + + + + Asserts that an object is not an instance of a given type. + + The expected Type + The object being examined + The message to display in case of failure + Array of objects to be used in formatting the message + + + + Asserts that an object is not an instance of a given type. + + The expected Type + The object being examined + The message to display in case of failure + + + + Asserts that an object is not an instance of a given type. + + The expected Type + The object being examined + + + + Asserts that an object is not an instance of a given type. + + The expected Type + The object being examined + The message to display in case of failure + Array of objects to be used in formatting the message + + + + Asserts that an object is not an instance of a given type. + + The expected Type + The object being examined + The message to display in case of failure + + + + Asserts that an object is not an instance of a given type. + + The expected Type + The object being examined + + + + Asserts that an object is not an instance of a given type. + + The expected Type + The object being examined + The message to display in case of failure + Array of objects to be used in formatting the message + + + + Asserts that an object is not an instance of a given type. + + The expected Type + The object being examined + The message to display in case of failure + + + + Asserts that an object is not an instance of a given type. + + The expected Type + The object being examined + + + + Verifies that two values are equal. If they are not, then an + is thrown. + + The expected value + The actual value + The message to display in case of failure + Array of objects to be used in formatting the message + + + + Verifies that two values are equal. If they are not, then an + is thrown. + + The expected value + The actual value + The message to display in case of failure + + + + Verifies that two values are equal. If they are not, then an + is thrown. + + The expected value + The actual value + + + + Verifies that two values are equal. If they are not, then an + is thrown. + + The expected value + The actual value + The message to display in case of failure + Array of objects to be used in formatting the message + + + + Verifies that two values are equal. If they are not, then an + is thrown. + + The expected value + The actual value + The message to display in case of failure + + + + Verifies that two values are equal. If they are not, then an + is thrown. + + The expected value + The actual value + + + + Verifies that two values are equal. If they are not, then an + is thrown. + + The expected value + The actual value + The message to display in case of failure + Array of objects to be used in formatting the message + + + + Verifies that two values are equal. If they are not, then an + is thrown. + + The expected value + The actual value + The message to display in case of failure + + + + Verifies that two values are equal. If they are not, then an + is thrown. + + The expected value + The actual value + + + + Verifies that two values are equal. If they are not, then an + is thrown. + + The expected value + The actual value + The message to display in case of failure + Array of objects to be used in formatting the message + + + + Verifies that two values are equal. If they are not, then an + is thrown. + + The expected value + The actual value + The message to display in case of failure + + + + Verifies that two values are equal. If they are not, then an + is thrown. + + The expected value + The actual value + + + + Verifies that two values are equal. If they are not, then an + is thrown. + + The expected value + The actual value + The message to display in case of failure + Array of objects to be used in formatting the message + + + + Verifies that two values are equal. If they are not, then an + is thrown. + + The expected value + The actual value + The message to display in case of failure + + + + Verifies that two values are equal. If they are not, then an + is thrown. + + The expected value + The actual value + + + + Verifies that two doubles are equal considering a delta. If the + expected value is infinity then the delta value is ignored. If + they are not equal then an is + thrown. + + The expected value + The actual value + The maximum acceptable difference between the + the expected and the actual + The message to display in case of failure + Array of objects to be used in formatting the message + + + + Verifies that two doubles are equal considering a delta. If the + expected value is infinity then the delta value is ignored. If + they are not equal then an is + thrown. + + The expected value + The actual value + The maximum acceptable difference between the + the expected and the actual + The message to display in case of failure + + + + Verifies that two doubles are equal considering a delta. If the + expected value is infinity then the delta value is ignored. If + they are not equal then an is + thrown. + + The expected value + The actual value + The maximum acceptable difference between the + the expected and the actual + + + + Verifies that two doubles are equal considering a delta. If the + expected value is infinity then the delta value is ignored. If + they are not equal then an is + thrown. + + The expected value + The actual value + The maximum acceptable difference between the + the expected and the actual + The message to display in case of failure + Array of objects to be used in formatting the message + + + + Verifies that two doubles are equal considering a delta. If the + expected value is infinity then the delta value is ignored. If + they are not equal then an is + thrown. + + The expected value + The actual value + The maximum acceptable difference between the + the expected and the actual + The message to display in case of failure + + + + Verifies that two doubles are equal considering a delta. If the + expected value is infinity then the delta value is ignored. If + they are not equal then an is + thrown. + + The expected value + The actual value + The maximum acceptable difference between the + the expected and the actual + + + + Verifies that two objects are equal. Two objects are considered + equal if both are null, or if both have the same value. NUnit + has special semantics for some object types. + If they are not equal an is thrown. + + The value that is expected + The actual value + The message to display in case of failure + Array of objects to be used in formatting the message + + + + Verifies that two objects are equal. Two objects are considered + equal if both are null, or if both have the same value. NUnit + has special semantics for some object types. + If they are not equal an is thrown. + + The value that is expected + The actual value + The message to display in case of failure + + + + Verifies that two objects are equal. Two objects are considered + equal if both are null, or if both have the same value. NUnit + has special semantics for some object types. + If they are not equal an is thrown. + + The value that is expected + The actual value + + + + Verifies that two values are not equal. If they are equal, then an + is thrown. + + The expected value + The actual value + The message to display in case of failure + Array of objects to be used in formatting the message + + + + Verifies that two values are not equal. If they are equal, then an + is thrown. + + The expected value + The actual value + The message to display in case of failure + + + + Verifies that two values are not equal. If they are equal, then an + is thrown. + + The expected value + The actual value + + + + Verifies that two values are not equal. If they are equal, then an + is thrown. + + The expected value + The actual value + The message to display in case of failure + Array of objects to be used in formatting the message + + + + Verifies that two values are not equal. If they are equal, then an + is thrown. + + The expected value + The actual value + The message to display in case of failure + + + + Verifies that two values are not equal. If they are equal, then an + is thrown. + + The expected value + The actual value + + + + Verifies that two values are not equal. If they are equal, then an + is thrown. + + The expected value + The actual value + The message to display in case of failure + Array of objects to be used in formatting the message + + + + Verifies that two values are not equal. If they are equal, then an + is thrown. + + The expected value + The actual value + The message to display in case of failure + + + + Verifies that two values are not equal. If they are equal, then an + is thrown. + + The expected value + The actual value + + + + Verifies that two values are not equal. If they are equal, then an + is thrown. + + The expected value + The actual value + The message to display in case of failure + Array of objects to be used in formatting the message + + + + Verifies that two values are not equal. If they are equal, then an + is thrown. + + The expected value + The actual value + The message to display in case of failure + + + + Verifies that two values are not equal. If they are equal, then an + is thrown. + + The expected value + The actual value + + + + Verifies that two values are not equal. If they are equal, then an + is thrown. + + The expected value + The actual value + The message to display in case of failure + Array of objects to be used in formatting the message + + + + Verifies that two values are not equal. If they are equal, then an + is thrown. + + The expected value + The actual value + The message to display in case of failure + + + + Verifies that two values are not equal. If they are equal, then an + is thrown. + + The expected value + The actual value + + + + Verifies that two values are not equal. If they are equal, then an + is thrown. + + The expected value + The actual value + The message to display in case of failure + Array of objects to be used in formatting the message + + + + Verifies that two values are not equal. If they are equal, then an + is thrown. + + The expected value + The actual value + The message to display in case of failure + + + + Verifies that two values are not equal. If they are equal, then an + is thrown. + + The expected value + The actual value + + + + Verifies that two values are not equal. If they are equal, then an + is thrown. + + The expected value + The actual value + The message to display in case of failure + Array of objects to be used in formatting the message + + + + Verifies that two values are not equal. If they are equal, then an + is thrown. + + The expected value + The actual value + The message to display in case of failure + + + + Verifies that two values are not equal. If they are equal, then an + is thrown. + + The expected value + The actual value + + + + Verifies that two objects are not equal. Two objects are considered + equal if both are null, or if both have the same value. NUnit + has special semantics for some object types. + If they are equal an is thrown. + + The value that is expected + The actual value + The message to display in case of failure + Array of objects to be used in formatting the message + + + + Verifies that two objects are not equal. Two objects are considered + equal if both are null, or if both have the same value. NUnit + has special semantics for some object types. + If they are equal an is thrown. + + The value that is expected + The actual value + The message to display in case of failure + + + + Verifies that two objects are not equal. Two objects are considered + equal if both are null, or if both have the same value. NUnit + has special semantics for some object types. + If they are equal an is thrown. + + The value that is expected + The actual value + + + + Asserts that two objects refer to the same object. If they + are not the same an is thrown. + + The expected object + The actual object + The message to display in case of failure + Array of objects to be used in formatting the message + + + + Asserts that two objects refer to the same object. If they + are not the same an is thrown. + + The expected object + The actual object + The message to display in case of failure + + + + Asserts that two objects refer to the same object. If they + are not the same an is thrown. + + The expected object + The actual object + + + + Asserts that two objects do not refer to the same object. If they + are the same an is thrown. + + The expected object + The actual object + The message to display in case of failure + Array of objects to be used in formatting the message + + + + Asserts that two objects do not refer to the same object. If they + are the same an is thrown. + + The expected object + The actual object + The message to display in case of failure + + + + Asserts that two objects do not refer to the same object. If they + are the same an is thrown. + + The expected object + The actual object + + + + Verifies that the first value is greater than the second + value. If it is not, then an + is thrown. + + The first value, expected to be greater + The second value, expected to be less + The message to display in case of failure + Array of objects to be used in formatting the message + + + + Verifies that the first value is greater than the second + value. If it is not, then an + is thrown. + + The first value, expected to be greater + The second value, expected to be less + The message to display in case of failure + + + + Verifies that the first value is greater than the second + value. If it is not, then an + is thrown. + + The first value, expected to be greater + The second value, expected to be less + + + + Verifies that the first value is greater than the second + value. If it is not, then an + is thrown. + + The first value, expected to be greater + The second value, expected to be less + The message to display in case of failure + Array of objects to be used in formatting the message + + + + Verifies that the first value is greater than the second + value. If it is not, then an + is thrown. + + The first value, expected to be greater + The second value, expected to be less + The message to display in case of failure + + + + Verifies that the first value is greater than the second + value. If it is not, then an + is thrown. + + The first value, expected to be greater + The second value, expected to be less + + + + Verifies that the first value is greater than the second + value. If it is not, then an + is thrown. + + The first value, expected to be greater + The second value, expected to be less + The message to display in case of failure + Array of objects to be used in formatting the message + + + + Verifies that the first value is greater than the second + value. If it is not, then an + is thrown. + + The first value, expected to be greater + The second value, expected to be less + The message to display in case of failure + + + + Verifies that the first value is greater than the second + value. If it is not, then an + is thrown. + + The first value, expected to be greater + The second value, expected to be less + + + + Verifies that the first value is greater than the second + value. If it is not, then an + is thrown. + + The first value, expected to be greater + The second value, expected to be less + The message to display in case of failure + Array of objects to be used in formatting the message + + + + Verifies that the first value is greater than the second + value. If it is not, then an + is thrown. + + The first value, expected to be greater + The second value, expected to be less + The message to display in case of failure + + + + Verifies that the first value is greater than the second + value. If it is not, then an + is thrown. + + The first value, expected to be greater + The second value, expected to be less + + + + Verifies that the first value is greater than the second + value. If it is not, then an + is thrown. + + The first value, expected to be greater + The second value, expected to be less + The message to display in case of failure + Array of objects to be used in formatting the message + + + + Verifies that the first value is greater than the second + value. If it is not, then an + is thrown. + + The first value, expected to be greater + The second value, expected to be less + The message to display in case of failure + + + + Verifies that the first value is greater than the second + value. If it is not, then an + is thrown. + + The first value, expected to be greater + The second value, expected to be less + + + + Verifies that the first value is greater than the second + value. If it is not, then an + is thrown. + + The first value, expected to be greater + The second value, expected to be less + The message to display in case of failure + Array of objects to be used in formatting the message + + + + Verifies that the first value is greater than the second + value. If it is not, then an + is thrown. + + The first value, expected to be greater + The second value, expected to be less + The message to display in case of failure + + + + Verifies that the first value is greater than the second + value. If it is not, then an + is thrown. + + The first value, expected to be greater + The second value, expected to be less + + + + Verifies that the first value is greater than the second + value. If it is not, then an + is thrown. + + The first value, expected to be greater + The second value, expected to be less + The message to display in case of failure + Array of objects to be used in formatting the message + + + + Verifies that the first value is greater than the second + value. If it is not, then an + is thrown. + + The first value, expected to be greater + The second value, expected to be less + The message to display in case of failure + + + + Verifies that the first value is greater than the second + value. If it is not, then an + is thrown. + + The first value, expected to be greater + The second value, expected to be less + + + + Verifies that the first value is greater than the second + value. If it is not, then an + is thrown. + + The first value, expected to be greater + The second value, expected to be less + The message to display in case of failure + Array of objects to be used in formatting the message + + + + Verifies that the first value is greater than the second + value. If it is not, then an + is thrown. + + The first value, expected to be greater + The second value, expected to be less + The message to display in case of failure + + + + Verifies that the first value is greater than the second + value. If it is not, then an + is thrown. + + The first value, expected to be greater + The second value, expected to be less + + + + Verifies that the first value is less than the second + value. If it is not, then an + is thrown. + + The first value, expected to be less + The second value, expected to be greater + The message to display in case of failure + Array of objects to be used in formatting the message + + + + Verifies that the first value is less than the second + value. If it is not, then an + is thrown. + + The first value, expected to be less + The second value, expected to be greater + The message to display in case of failure + + + + Verifies that the first value is less than the second + value. If it is not, then an + is thrown. + + The first value, expected to be less + The second value, expected to be greater + + + + Verifies that the first value is less than the second + value. If it is not, then an + is thrown. + + The first value, expected to be less + The second value, expected to be greater + The message to display in case of failure + Array of objects to be used in formatting the message + + + + Verifies that the first value is less than the second + value. If it is not, then an + is thrown. + + The first value, expected to be less + The second value, expected to be greater + The message to display in case of failure + + + + Verifies that the first value is less than the second + value. If it is not, then an + is thrown. + + The first value, expected to be less + The second value, expected to be greater + + + + Verifies that the first value is less than the second + value. If it is not, then an + is thrown. + + The first value, expected to be less + The second value, expected to be greater + The message to display in case of failure + Array of objects to be used in formatting the message + + + + Verifies that the first value is less than the second + value. If it is not, then an + is thrown. + + The first value, expected to be less + The second value, expected to be greater + The message to display in case of failure + + + + Verifies that the first value is less than the second + value. If it is not, then an + is thrown. + + The first value, expected to be less + The second value, expected to be greater + + + + Verifies that the first value is less than the second + value. If it is not, then an + is thrown. + + The first value, expected to be less + The second value, expected to be greater + The message to display in case of failure + Array of objects to be used in formatting the message + + + + Verifies that the first value is less than the second + value. If it is not, then an + is thrown. + + The first value, expected to be less + The second value, expected to be greater + The message to display in case of failure + + + + Verifies that the first value is less than the second + value. If it is not, then an + is thrown. + + The first value, expected to be less + The second value, expected to be greater + + + + Verifies that the first value is less than the second + value. If it is not, then an + is thrown. + + The first value, expected to be less + The second value, expected to be greater + The message to display in case of failure + Array of objects to be used in formatting the message + + + + Verifies that the first value is less than the second + value. If it is not, then an + is thrown. + + The first value, expected to be less + The second value, expected to be greater + The message to display in case of failure + + + + Verifies that the first value is less than the second + value. If it is not, then an + is thrown. + + The first value, expected to be less + The second value, expected to be greater + + + + Verifies that the first value is less than the second + value. If it is not, then an + is thrown. + + The first value, expected to be less + The second value, expected to be greater + The message to display in case of failure + Array of objects to be used in formatting the message + + + + Verifies that the first value is less than the second + value. If it is not, then an + is thrown. + + The first value, expected to be less + The second value, expected to be greater + The message to display in case of failure + + + + Verifies that the first value is less than the second + value. If it is not, then an + is thrown. + + The first value, expected to be less + The second value, expected to be greater + + + + Verifies that the first value is less than the second + value. If it is not, then an + is thrown. + + The first value, expected to be less + The second value, expected to be greater + The message to display in case of failure + Array of objects to be used in formatting the message + + + + Verifies that the first value is less than the second + value. If it is not, then an + is thrown. + + The first value, expected to be less + The second value, expected to be greater + The message to display in case of failure + + + + Verifies that the first value is less than the second + value. If it is not, then an + is thrown. + + The first value, expected to be less + The second value, expected to be greater + + + + Verifies that the first value is less than the second + value. If it is not, then an + is thrown. + + The first value, expected to be less + The second value, expected to be greater + The message to display in case of failure + Array of objects to be used in formatting the message + + + + Verifies that the first value is less than the second + value. If it is not, then an + is thrown. + + The first value, expected to be less + The second value, expected to be greater + The message to display in case of failure + + + + Verifies that the first value is less than the second + value. If it is not, then an + is thrown. + + The first value, expected to be less + The second value, expected to be greater + + + + Verifies that the first value is greater than or equal tothe second + value. If it is not, then an + is thrown. + + The first value, expected to be greater + The second value, expected to be less + The message to display in case of failure + Array of objects to be used in formatting the message + + + + Verifies that the first value is greater than or equal tothe second + value. If it is not, then an + is thrown. + + The first value, expected to be greater + The second value, expected to be less + The message to display in case of failure + + + + Verifies that the first value is greater than or equal tothe second + value. If it is not, then an + is thrown. + + The first value, expected to be greater + The second value, expected to be less + + + + Verifies that the first value is greater than or equal tothe second + value. If it is not, then an + is thrown. + + The first value, expected to be greater + The second value, expected to be less + The message to display in case of failure + Array of objects to be used in formatting the message + + + + Verifies that the first value is greater than or equal tothe second + value. If it is not, then an + is thrown. + + The first value, expected to be greater + The second value, expected to be less + The message to display in case of failure + + + + Verifies that the first value is greater than or equal tothe second + value. If it is not, then an + is thrown. + + The first value, expected to be greater + The second value, expected to be less + + + + Verifies that the first value is greater than or equal tothe second + value. If it is not, then an + is thrown. + + The first value, expected to be greater + The second value, expected to be less + The message to display in case of failure + Array of objects to be used in formatting the message + + + + Verifies that the first value is greater than or equal tothe second + value. If it is not, then an + is thrown. + + The first value, expected to be greater + The second value, expected to be less + The message to display in case of failure + + + + Verifies that the first value is greater than or equal tothe second + value. If it is not, then an + is thrown. + + The first value, expected to be greater + The second value, expected to be less + + + + Verifies that the first value is greater than or equal tothe second + value. If it is not, then an + is thrown. + + The first value, expected to be greater + The second value, expected to be less + The message to display in case of failure + Array of objects to be used in formatting the message + + + + Verifies that the first value is greater than or equal tothe second + value. If it is not, then an + is thrown. + + The first value, expected to be greater + The second value, expected to be less + The message to display in case of failure + + + + Verifies that the first value is greater than or equal tothe second + value. If it is not, then an + is thrown. + + The first value, expected to be greater + The second value, expected to be less + + + + Verifies that the first value is greater than or equal tothe second + value. If it is not, then an + is thrown. + + The first value, expected to be greater + The second value, expected to be less + The message to display in case of failure + Array of objects to be used in formatting the message + + + + Verifies that the first value is greater than or equal tothe second + value. If it is not, then an + is thrown. + + The first value, expected to be greater + The second value, expected to be less + The message to display in case of failure + + + + Verifies that the first value is greater than or equal tothe second + value. If it is not, then an + is thrown. + + The first value, expected to be greater + The second value, expected to be less + + + + Verifies that the first value is greater than or equal tothe second + value. If it is not, then an + is thrown. + + The first value, expected to be greater + The second value, expected to be less + The message to display in case of failure + Array of objects to be used in formatting the message + + + + Verifies that the first value is greater than or equal tothe second + value. If it is not, then an + is thrown. + + The first value, expected to be greater + The second value, expected to be less + The message to display in case of failure + + + + Verifies that the first value is greater than or equal tothe second + value. If it is not, then an + is thrown. + + The first value, expected to be greater + The second value, expected to be less + + + + Verifies that the first value is greater than or equal tothe second + value. If it is not, then an + is thrown. + + The first value, expected to be greater + The second value, expected to be less + The message to display in case of failure + Array of objects to be used in formatting the message + + + + Verifies that the first value is greater than or equal tothe second + value. If it is not, then an + is thrown. + + The first value, expected to be greater + The second value, expected to be less + The message to display in case of failure + + + + Verifies that the first value is greater than or equal tothe second + value. If it is not, then an + is thrown. + + The first value, expected to be greater + The second value, expected to be less + + + + Verifies that the first value is greater than or equal tothe second + value. If it is not, then an + is thrown. + + The first value, expected to be greater + The second value, expected to be less + The message to display in case of failure + Array of objects to be used in formatting the message + + + + Verifies that the first value is greater than or equal tothe second + value. If it is not, then an + is thrown. + + The first value, expected to be greater + The second value, expected to be less + The message to display in case of failure + + + + Verifies that the first value is greater than or equal tothe second + value. If it is not, then an + is thrown. + + The first value, expected to be greater + The second value, expected to be less + + + + Verifies that the first value is less than or equal to the second + value. If it is not, then an + is thrown. + + The first value, expected to be less + The second value, expected to be greater + The message to display in case of failure + Array of objects to be used in formatting the message + + + + Verifies that the first value is less than or equal to the second + value. If it is not, then an + is thrown. + + The first value, expected to be less + The second value, expected to be greater + The message to display in case of failure + + + + Verifies that the first value is less than or equal to the second + value. If it is not, then an + is thrown. + + The first value, expected to be less + The second value, expected to be greater + + + + Verifies that the first value is less than or equal to the second + value. If it is not, then an + is thrown. + + The first value, expected to be less + The second value, expected to be greater + The message to display in case of failure + Array of objects to be used in formatting the message + + + + Verifies that the first value is less than or equal to the second + value. If it is not, then an + is thrown. + + The first value, expected to be less + The second value, expected to be greater + The message to display in case of failure + + + + Verifies that the first value is less than or equal to the second + value. If it is not, then an + is thrown. + + The first value, expected to be less + The second value, expected to be greater + + + + Verifies that the first value is less than or equal to the second + value. If it is not, then an + is thrown. + + The first value, expected to be less + The second value, expected to be greater + The message to display in case of failure + Array of objects to be used in formatting the message + + + + Verifies that the first value is less than or equal to the second + value. If it is not, then an + is thrown. + + The first value, expected to be less + The second value, expected to be greater + The message to display in case of failure + + + + Verifies that the first value is less than or equal to the second + value. If it is not, then an + is thrown. + + The first value, expected to be less + The second value, expected to be greater + + + + Verifies that the first value is less than or equal to the second + value. If it is not, then an + is thrown. + + The first value, expected to be less + The second value, expected to be greater + The message to display in case of failure + Array of objects to be used in formatting the message + + + + Verifies that the first value is less than or equal to the second + value. If it is not, then an + is thrown. + + The first value, expected to be less + The second value, expected to be greater + The message to display in case of failure + + + + Verifies that the first value is less than or equal to the second + value. If it is not, then an + is thrown. + + The first value, expected to be less + The second value, expected to be greater + + + + Verifies that the first value is less than or equal to the second + value. If it is not, then an + is thrown. + + The first value, expected to be less + The second value, expected to be greater + The message to display in case of failure + Array of objects to be used in formatting the message + + + + Verifies that the first value is less than or equal to the second + value. If it is not, then an + is thrown. + + The first value, expected to be less + The second value, expected to be greater + The message to display in case of failure + + + + Verifies that the first value is less than or equal to the second + value. If it is not, then an + is thrown. + + The first value, expected to be less + The second value, expected to be greater + + + + Verifies that the first value is less than or equal to the second + value. If it is not, then an + is thrown. + + The first value, expected to be less + The second value, expected to be greater + The message to display in case of failure + Array of objects to be used in formatting the message + + + + Verifies that the first value is less than or equal to the second + value. If it is not, then an + is thrown. + + The first value, expected to be less + The second value, expected to be greater + The message to display in case of failure + + + + Verifies that the first value is less than or equal to the second + value. If it is not, then an + is thrown. + + The first value, expected to be less + The second value, expected to be greater + + + + Verifies that the first value is less than or equal to the second + value. If it is not, then an + is thrown. + + The first value, expected to be less + The second value, expected to be greater + The message to display in case of failure + Array of objects to be used in formatting the message + + + + Verifies that the first value is less than or equal to the second + value. If it is not, then an + is thrown. + + The first value, expected to be less + The second value, expected to be greater + The message to display in case of failure + + + + Verifies that the first value is less than or equal to the second + value. If it is not, then an + is thrown. + + The first value, expected to be less + The second value, expected to be greater + + + + Verifies that the first value is less than or equal to the second + value. If it is not, then an + is thrown. + + The first value, expected to be less + The second value, expected to be greater + The message to display in case of failure + Array of objects to be used in formatting the message + + + + Verifies that the first value is less than or equal to the second + value. If it is not, then an + is thrown. + + The first value, expected to be less + The second value, expected to be greater + The message to display in case of failure + + + + Verifies that the first value is less than or equal to the second + value. If it is not, then an + is thrown. + + The first value, expected to be less + The second value, expected to be greater + + + + Asserts that an object is contained in a list. + + The expected object + The list to be examined + The message to display in case of failure + Array of objects to be used in formatting the message + + + + Asserts that an object is contained in a list. + + The expected object + The list to be examined + The message to display in case of failure + + + + Asserts that an object is contained in a list. + + The expected object + The list to be examined + + + + Gets the number of assertions executed so far and + resets the counter to zero. + + + + + RequiredAddinAttribute may be used to indicate the names of any addins + that must be present in order to run some or all of the tests in an + assembly. If the addin is not loaded, the entire assembly is marked + as NotRunnable. + + + + + Initializes a new instance of the class. + + The required addin. + + + + Gets the name of required addin. + + The required addin name. + + + + Marks a test to use a combinatorial join of any argument + data provided. Since this is the default, the attribute is + not needed. + + + + + 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 + + + + + Default constructor + + + + + Marks a test to use a combinatorial join of any argument + data provided. Since this is the default, the attribute is + not needed. + + + + + Default constructor + + + + + Marks a test to use a combinatorial join of any argument + data provided. Since this is the default, the attribute is + not needed. + + + + + Default constructor + + + + + Adding this attribute to a method within a + class makes the method callable from the NUnit test runner. There is a property + called Description which is optional which you can provide a more detailed test + description. This class cannot be inherited. + + + + [TestFixture] + public class Fixture + { + [Test] + public void MethodToTest() + {} + + [Test(Description = "more detailed description")] + publc void TestDescriptionMethod() + {} + } + + + + + + Descriptive text for this test + + + + + [TestFixture] + public class ExampleClass + {} + + + + + Default constructor + + + + + Construct with a object[] representing a set of arguments. + In .NET 2.0, the arguments may later be separated into + type arguments and constructor arguments. + + + + + + Descriptive text for this fixture + + + + + The arguments originally provided to the attribute + + + + + Gets or sets a value indicating whether this should be ignored. + + true if ignore; otherwise, false. + + + + Gets or sets the ignore reason. May set Ignored as a side effect. + + The ignore reason. + + + + Get or set the type arguments. If not set + explicitly, any leading arguments that are + Types are taken as type arguments. + + + + + A set of Assert methods operationg on one or more collections + + + + + The Equals method throws an AssertionException. This is done + to make sure there is no mistake by calling this function. + + + + + + + override the default ReferenceEquals to throw an AssertionException. This + implementation makes sure there is no mistake in calling this function + as part of Assert. + + + + + + + Asserts that all items contained in collection are of the type specified by expectedType. + + IEnumerable containing objects to be considered + System.Type that all objects in collection must be instances of + + + + Asserts that all items contained in collection are of the type specified by expectedType. + + IEnumerable containing objects to be considered + System.Type that all objects in collection must be instances of + The message that will be displayed on failure + + + + Asserts that all items contained in collection are of the type specified by expectedType. + + IEnumerable containing objects to be considered + System.Type that all objects in collection must be instances of + The message that will be displayed on failure + Arguments to be used in formatting the message + + + + Asserts that all items contained in collection are not equal to null. + + IEnumerable containing objects to be considered + + + + Asserts that all items contained in collection are not equal to null. + + IEnumerable containing objects to be considered + The message that will be displayed on failure + + + + Asserts that all items contained in collection are not equal to null. + + IEnumerable of objects to be considered + The message that will be displayed on failure + Arguments to be used in formatting the message + + + + Ensures that every object contained in collection exists within the collection + once and only once. + + IEnumerable of objects to be considered + + + + Ensures that every object contained in collection exists within the collection + once and only once. + + IEnumerable of objects to be considered + The message that will be displayed on failure + + + + Ensures that every object contained in collection exists within the collection + once and only once. + + IEnumerable of objects to be considered + The message that will be displayed on failure + Arguments to be used in formatting the message + + + + Asserts that expected and actual are exactly equal. The collections must have the same count, + and contain the exact same objects in the same order. + + The first IEnumerable of objects to be considered + The second IEnumerable of objects to be considered + + + + Asserts that expected and actual are exactly equal. The collections must have the same count, + and contain the exact same objects in the same order. + If comparer is not null then it will be used to compare the objects. + + The first IEnumerable of objects to be considered + The second IEnumerable of objects to be considered + The IComparer to use in comparing objects from each IEnumerable + + + + Asserts that expected and actual are exactly equal. The collections must have the same count, + and contain the exact same objects in the same order. + + The first IEnumerable of objects to be considered + The second IEnumerable of objects to be considered + The message that will be displayed on failure + + + + Asserts that expected and actual are exactly equal. The collections must have the same count, + and contain the exact same objects in the same order. + If comparer is not null then it will be used to compare the objects. + + The first IEnumerable of objects to be considered + The second IEnumerable of objects to be considered + The IComparer to use in comparing objects from each IEnumerable + The message that will be displayed on failure + + + + Asserts that expected and actual are exactly equal. The collections must have the same count, + and contain the exact same objects in the same order. + + The first IEnumerable of objects to be considered + The second IEnumerable of objects to be considered + The message that will be displayed on failure + Arguments to be used in formatting the message + + + + Asserts that expected and actual are exactly equal. The collections must have the same count, + and contain the exact same objects in the same order. + If comparer is not null then it will be used to compare the objects. + + The first IEnumerable of objects to be considered + The second IEnumerable of objects to be considered + The IComparer to use in comparing objects from each IEnumerable + The message that will be displayed on failure + Arguments to be used in formatting the message + + + + Asserts that expected and actual are equivalent, containing the same objects but the match may be in any order. + + The first IEnumerable of objects to be considered + The second IEnumerable of objects to be considered + + + + Asserts that expected and actual are equivalent, containing the same objects but the match may be in any order. + + The first IEnumerable of objects to be considered + The second IEnumerable of objects to be considered + The message that will be displayed on failure + + + + Asserts that expected and actual are equivalent, containing the same objects but the match may be in any order. + + The first IEnumerable of objects to be considered + The second IEnumerable of objects to be considered + The message that will be displayed on failure + Arguments to be used in formatting the message + + + + Asserts that expected and actual are not exactly equal. + + The first IEnumerable of objects to be considered + The second IEnumerable of objects to be considered + + + + Asserts that expected and actual are not exactly equal. + If comparer is not null then it will be used to compare the objects. + + The first IEnumerable of objects to be considered + The second IEnumerable of objects to be considered + The IComparer to use in comparing objects from each IEnumerable + + + + Asserts that expected and actual are not exactly equal. + + The first IEnumerable of objects to be considered + The second IEnumerable of objects to be considered + The message that will be displayed on failure + + + + Asserts that expected and actual are not exactly equal. + If comparer is not null then it will be used to compare the objects. + + The first IEnumerable of objects to be considered + The second IEnumerable of objects to be considered + The IComparer to use in comparing objects from each IEnumerable + The message that will be displayed on failure + + + + Asserts that expected and actual are not exactly equal. + + The first IEnumerable of objects to be considered + The second IEnumerable of objects to be considered + The message that will be displayed on failure + Arguments to be used in formatting the message + + + + Asserts that expected and actual are not exactly equal. + If comparer is not null then it will be used to compare the objects. + + The first IEnumerable of objects to be considered + The second IEnumerable of objects to be considered + The IComparer to use in comparing objects from each IEnumerable + The message that will be displayed on failure + Arguments to be used in formatting the message + + + + Asserts that expected and actual are not equivalent. + + The first IEnumerable of objects to be considered + The second IEnumerable of objects to be considered + + + + Asserts that expected and actual are not equivalent. + + The first IEnumerable of objects to be considered + The second IEnumerable of objects to be considered + The message that will be displayed on failure + + + + Asserts that expected and actual are not equivalent. + + The first IEnumerable of objects to be considered + The second IEnumerable of objects to be considered + The message that will be displayed on failure + Arguments to be used in formatting the message + + + + Asserts that collection contains actual as an item. + + IEnumerable of objects to be considered + Object to be found within collection + + + + Asserts that collection contains actual as an item. + + IEnumerable of objects to be considered + Object to be found within collection + The message that will be displayed on failure + + + + Asserts that collection contains actual as an item. + + IEnumerable of objects to be considered + Object to be found within collection + The message that will be displayed on failure + Arguments to be used in formatting the message + + + + Asserts that collection does not contain actual as an item. + + IEnumerable of objects to be considered + Object that cannot exist within collection + + + + Asserts that collection does not contain actual as an item. + + IEnumerable of objects to be considered + Object that cannot exist within collection + The message that will be displayed on failure + + + + Asserts that collection does not contain actual as an item. + + IEnumerable of objects to be considered + Object that cannot exist within collection + The message that will be displayed on failure + Arguments to be used in formatting the message + + + + Asserts that superset is not a subject of subset. + + The IEnumerable superset to be considered + The IEnumerable subset to be considered + + + + Asserts that superset is not a subject of subset. + + The IEnumerable superset to be considered + The IEnumerable subset to be considered + The message that will be displayed on failure + + + + Asserts that superset is not a subject of subset. + + The IEnumerable superset to be considered + The IEnumerable subset to be considered + The message that will be displayed on failure + Arguments to be used in formatting the message + + + + Asserts that superset is a subset of subset. + + The IEnumerable superset to be considered + The IEnumerable subset to be considered + + + + Asserts that superset is a subset of subset. + + The IEnumerable superset to be considered + The IEnumerable subset to be considered + The message that will be displayed on failure + + + + Asserts that superset is a subset of subset. + + The IEnumerable superset to be considered + The IEnumerable subset to be considered + The message that will be displayed on failure + Arguments to be used in formatting the message + + + + Assert that an array, list or other collection is empty + + An array, list or other collection implementing IEnumerable + The message to be displayed on failure + Arguments to be used in formatting the message + + + + Assert that an array, list or other collection is empty + + An array, list or other collection implementing IEnumerable + The message to be displayed on failure + + + + Assert that an array,list or other collection is empty + + An array, list or other collection implementing IEnumerable + + + + Assert that an array, list or other collection is empty + + An array, list or other collection implementing IEnumerable + The message to be displayed on failure + Arguments to be used in formatting the message + + + + Assert that an array, list or other collection is empty + + An array, list or other collection implementing IEnumerable + The message to be displayed on failure + + + + Assert that an array,list or other collection is empty + + An array, list or other collection implementing IEnumerable + + + + Assert that an array, list or other collection is ordered + + An array, list or other collection implementing IEnumerable + The message to be displayed on failure + Arguments to be used in formatting the message + + + + Assert that an array, list or other collection is ordered + + An array, list or other collection implementing IEnumerable + The message to be displayed on failure + + + + Assert that an array, list or other collection is ordered + + An array, list or other collection implementing IEnumerable + + + + Assert that an array, list or other collection is ordered + + An array, list or other collection implementing IEnumerable + A custom comparer to perform the comparisons + The message to be displayed on failure + Arguments to be used in formatting the message + + + + Assert that an array, list or other collection is ordered + + An array, list or other collection implementing IEnumerable + A custom comparer to perform the comparisons + The message to be displayed on failure + + + + Assert that an array, list or other collection is ordered + + An array, list or other collection implementing IEnumerable + A custom comparer to perform the comparisons + + + + Abstract base class for attributes that apply to parameters + and supply data for the parameter. + + + + + Gets the data to be provided to the specified parameter + + + + + ValuesAttribute is used to provide literal arguments for + an individual parameter of a test. + + + + + The collection of data to be returned. Must + be set by any derived attribute classes. + + + + + 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 + + + + + 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 + + + + + WUsed on a method, marks the test with a timeout value in milliseconds. + The test will be run in a separate thread and is cancelled if the timeout + is exceeded. Used on a method or assembly, sets the default timeout + for all contained test methods. + + + + + Construct a TimeoutAttribute given a time in milliseconds + + The timeout value in milliseconds + + + + Marks a test that must run in the STA, causing it + to run in a separate thread if necessary. + + On methods, you may also use STAThreadAttribute + to serve the same purpose. + + + + + Construct a RequiresSTAAttribute + + + + + Marks a test that must run in the MTA, causing it + to run in a separate thread if necessary. + + On methods, you may also use MTAThreadAttribute + to serve the same purpose. + + + + + Construct a RequiresMTAAttribute + + + + + Marks a test that must run on a separate thread. + + + + + Construct a RequiresThreadAttribute + + + + + Construct a RequiresThreadAttribute, specifying the apartment + + + + + AssertionHelper is an optional base class for user tests, + allowing the use of shorter names for constraints and + asserts and avoiding conflict with the definition of + , from which it inherits much of its + behavior, in certain mock object frameworks. + + + + + Apply a constraint to an actual value, succeeding if the constraint + is satisfied and throwing an assertion exception on failure. Works + identically to + + A Constraint to be applied + The actual value to test + + + + Apply a constraint to an actual value, succeeding if the constraint + is satisfied and throwing an assertion exception on failure. Works + identically to + + A Constraint to be applied + The actual value to test + The message that will be displayed on failure + + + + Apply a constraint to an actual value, succeeding if the constraint + is satisfied and throwing an assertion exception on failure. Works + identically to + + A Constraint to be applied + The actual value to test + The message that will be displayed on failure + Arguments to be used in formatting the message + + + + Apply a constraint to an actual value, succeeding if the constraint + is satisfied and throwing an assertion exception on failure. + + A Constraint expression to be applied + An ActualValueDelegate returning the value to be tested + + + + Apply a constraint to an actual value, succeeding if the constraint + is satisfied and throwing an assertion exception on failure. + + A Constraint expression to be applied + An ActualValueDelegate returning the value to be tested + The message that will be displayed on failure + + + + Apply a constraint to an actual value, succeeding if the constraint + is satisfied and throwing an assertion exception on failure. + + An ActualValueDelegate returning the value to be tested + A Constraint expression to be applied + The message that will be displayed on failure + Arguments to be used in formatting the message + + + + Apply a constraint to a referenced value, succeeding if the constraint + is satisfied and throwing an assertion exception on failure. + + A Constraint to be applied + The actual value to test + + + + Apply a constraint to a referenced value, succeeding if the constraint + is satisfied and throwing an assertion exception on failure. + + A Constraint to be applied + The actual value to test + The message that will be displayed on failure + + + + Apply a constraint to a referenced value, succeeding if the constraint + is satisfied and throwing an assertion exception on failure. + + A Constraint to be applied + The actual value to test + The message that will be displayed on failure + Arguments to be used in formatting the message + + + + Asserts that a condition is true. If the condition is false the method throws + an . Works Identically to + . + + The evaluated condition + The message to display if the condition is false + Arguments to be used in formatting the message + + + + Asserts that a condition is true. If the condition is false the method throws + an . Works Identically to + . + + The evaluated condition + The message to display if the condition is false + + + + Asserts that a condition is true. If the condition is false the method throws + an . Works Identically to . + + The evaluated condition + + + + Asserts that the code represented by a delegate throws an exception + that satisfies the constraint provided. + + A TestDelegate to be executed + A ThrowsConstraint used in the test + + + + Returns a ListMapper based on a collection. + + The original collection + + + + + Attribute used to apply a category to a test + + + + + The name of the category + + + + + Construct attribute for a given category + + The name of the category + + + + Protected constructor uses the Type name as the name + of the category. + + + + + The name of the category + + + + + RandomAttribute is used to supply a set of random values + to a single parameter of a parameterized test. + + + + + Construct a set of doubles from 0.0 to 1.0, + specifying only the count. + + + + + + Construct a set of doubles from min to max + + + + + + + + Construct a set of ints from min to max + + + + + + + + Get the collection of values to be used as arguments + + + + + Attribute used to provide descriptive text about a + test case or fixture. + + + + + Construct the attribute + + Text describing the test + + + + Gets the test 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 + + + + The reason test is marked explicit + + + + + Provides static methods to express the assumptions + that must be met for a test to give a meaningful + result. If an assumption is not met, the test + should produce an inconclusive result. + + + + + The Equals method throws an AssertionException. This is done + to make sure there is no mistake by calling this function. + + + + + + + override the default ReferenceEquals to throw an AssertionException. This + implementation makes sure there is no mistake in calling this function + as part of Assert. + + + + + + + Apply a constraint to an actual value, succeeding if the constraint + is satisfied and throwing an InconclusiveException on failure. + + A Constraint expression to be applied + The actual value to test + + + + Apply a constraint to an actual value, succeeding if the constraint + is satisfied and throwing an InconclusiveException on failure. + + A Constraint expression to be applied + The actual value to test + The message that will be displayed on failure + + + + Apply a constraint to an actual value, succeeding if the constraint + is satisfied and throwing an InconclusiveException on failure. + + A Constraint expression to be applied + The actual value to test + The message that will be displayed on failure + Arguments to be used in formatting the message + + + + Apply a constraint to an actual value, succeeding if the constraint + is satisfied and throwing an InconclusiveException on failure. + + A Constraint expression to be applied + An ActualValueDelegate returning the value to be tested + + + + Apply a constraint to an actual value, succeeding if the constraint + is satisfied and throwing an InconclusiveException on failure. + + A Constraint expression to be applied + An ActualValueDelegate returning the value to be tested + The message that will be displayed on failure + + + + Apply a constraint to an actual value, succeeding if the constraint + is satisfied and throwing an InconclusiveException on failure. + + An ActualValueDelegate returning the value to be tested + A Constraint expression to be applied + The message that will be displayed on failure + Arguments to be used in formatting the message + + + + Apply a constraint to a referenced value, succeeding if the constraint + is satisfied and throwing an InconclusiveException on failure. + + A Constraint expression to be applied + The actual value to test + + + + Apply a constraint to a referenced value, succeeding if the constraint + is satisfied and throwing an InconclusiveException on failure. + + A Constraint expression to be applied + The actual value to test + The message that will be displayed on failure + + + + Apply a constraint to a referenced value, succeeding if the constraint + is satisfied and throwing an InconclusiveException on failure. + + A Constraint expression to be applied + The actual value to test + The message that will be displayed on failure + Arguments to be used in formatting the message + + + + Asserts that a condition is true. If the condition is false the method throws + an . + + The evaluated condition + The message to display if the condition is false + Arguments to be used in formatting the message + + + + Asserts that a condition is true. If the condition is false the method throws + an . + + The evaluated condition + The message to display if the condition is false + + + + Asserts that a condition is true. If the condition is false the + method throws an . + + The evaluated condition + + + + Asserts that the code represented by a delegate throws an exception + that satisfies the constraint provided. + + A TestDelegate to be executed + A ThrowsConstraint used in the test + + + + 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 constraint that tests two items for equality + + + + + Returns a constraint that tests that two references are the same object + + + + + Returns a constraint that tests whether the + actual value is greater than the suppled argument + + + + + Returns a constraint that tests whether the + actual value is greater than or equal to the suppled argument + + + + + Returns a constraint that tests whether the + actual value is greater than or equal to the suppled argument + + + + + Returns a constraint that tests whether the + actual value is less than the suppled argument + + + + + Returns a constraint that tests whether the + actual value is less than or equal to the suppled argument + + + + + Returns a constraint that tests whether the + actual value is less than or equal to the suppled argument + + + + + Returns a constraint that tests whether the actual + value is of the exact type supplied as an argument. + + + + + Returns a constraint that tests whether the actual + value is of the exact type supplied as an argument. + + + + + Returns a constraint that tests whether the actual value + is of the type supplied as an argument or a derived type. + + + + + Returns a constraint that tests whether the actual value + is of the type supplied as an argument or a derived type. + + + + + Returns a constraint that tests whether the actual value + is of the type supplied as an argument or a derived type. + + + + + Returns a constraint that tests whether the actual value + is of the type supplied as an argument or a derived type. + + + + + Returns a constraint that tests whether the actual value + is assignable from the type supplied as an argument. + + + + + Returns a constraint that tests whether the actual value + is assignable from the type supplied as an argument. + + + + + Returns a constraint that tests whether the actual value + is assignable from the type supplied as an argument. + + + + + Returns a constraint that tests whether the actual value + is assignable from the type supplied as an argument. + + + + + Returns a constraint that tests whether the actual value + is a collection containing the same elements as the + collection supplied as an argument. + + + + + Returns a constraint that tests whether the actual value + is a subset of the collection supplied as an argument. + + + + + Returns a constraint that succeeds if the actual + value contains the substring supplied as an argument. + + + + + Returns a constraint that succeeds if the actual + value starts with the substring supplied as an argument. + + + + + Returns a constraint that succeeds if the actual + value ends with the substring supplied as an argument. + + + + + Returns a constraint that succeeds if the actual + value matches the Regex pattern supplied as an argument. + + + + + Returns a constraint that tests whether the path provided + is the same as an expected path after canonicalization. + + + + + Returns a constraint that tests whether the path provided + is the same path or under an expected path after canonicalization. + + + + + Returns a constraint that tests whether the actual value falls + within a specified range. + + + + + Returns a ConstraintExpression that negates any + following constraint. + + + + + Returns a ConstraintExpression, which will apply + the following constraint to all members of a collection, + succeeding if all of them succeed. + + + + + Returns a constraint that tests for null + + + + + Returns a constraint that tests for True + + + + + Returns a constraint that tests for False + + + + + Returns a constraint that tests for NaN + + + + + Returns a constraint that tests for empty + + + + + Returns a constraint that tests whether a collection + contains all unique items. + + + + + Returns a constraint that tests whether an object graph is serializable in binary format. + + + + + Returns a constraint that tests whether an object graph is serializable in xml format. + + + + + Returns a constraint that tests whether a collection is ordered + + + + + Interface implemented by a user fixture in order to + validate any expected exceptions. It is only called + for test methods marked with the ExpectedException + attribute. + + + + + Method to handle an expected exception + + The exception to be handled + + + + Attribute used to mark a test that is to be ignored. + Ignored tests result in a warning message when the + tests are run. + + + + + Constructs the attribute without giving a reason + for ignoring the test. + + + + + Constructs the attribute giving a reason for ignoring the test + + The reason for ignoring the test + + + + The reason for ignoring a test + + + + + Thrown when an assertion failed. + + + + + + + The error message that explains + the reason for the exception + The exception that caused the + current exception + + + + Serialization Constructor + + + + + Abstract base for Attributes that are used to include tests + in the test run based on environmental settings. + + + + + Constructor with no included items specified, for use + with named property syntax. + + + + + Constructor taking one or more included items + + Comma-delimited list of included items + + + + Name of the item that is needed in order for + a test to run. Multiple itemss may be given, + separated by a comma. + + + + + Name of the item to be excluded. Multiple items + may be given, separated by a comma. + + + + + The reason for including or excluding the test + + + + + PlatformAttribute is used to mark a test fixture or an + individual method as applying to a particular platform only. + + + + + Constructor with no platforms specified, for use + with named property syntax. + + + + + Constructor taking one or more platforms + + Comma-deliminted list of platforms + + + + CultureAttribute is used to mark a test fixture or an + individual method as applying to a particular Culture only. + + + + + Constructor with no cultures specified, for use + with named property syntax. + + + + + Constructor taking one or more cultures + + Comma-deliminted list of cultures + + + + RangeAttribute is used to supply a range of values to an + individual parameter of a parameterized test. + + + + + Construct a range of ints using default step of 1 + + + + + + + Construct a range of ints specifying the step size + + + + + + + + Construct a range of longs + + + + + + + + Construct a range of doubles + + + + + + + + Construct a range of floats + + + + + + + + Summary description for SetCultureAttribute. + + + + + Construct given the name of a culture + + + + + + ValueSourceAttribute indicates the source to be used to + provide data for one parameter of a test method. + + + + + Construct with the name of the factory - for use with languages + that don't support params arrays. + + The name of the data source to be used + + + + Construct with a Type and name - for use with languages + that don't support params arrays. + + The Type that will provide data + The name of the method, property or field that will provide data + + + + The name of a the method, property or fiend to be used as a source + + + + + A Type to be used as a source + + + + + TextMessageWriter writes constraint descriptions and messages + in displayable form as a text stream. It tailors the display + of individual message components to form the standard message + format of NUnit assertion failure messages. + + + + + Prefix used for the expected value line of a message + + + + + Prefix used for the actual value line of a message + + + + + Length of a message prefix + + + + + Construct a TextMessageWriter + + + + + Construct a TextMessageWriter, specifying a user message + and optional formatting arguments. + + + + + + + Method to write single line message with optional args, usually + written to precede the general failure message, at a givel + indentation level. + + The indentation level of the message + The message to be written + Any arguments used in formatting the message + + + + Display Expected and Actual lines for a constraint. This + is called by MessageWriter's default implementation of + WriteMessageTo and provides the generic two-line display. + + The constraint that failed + + + + Display Expected and Actual lines for given values. This + method may be called by constraints that need more control over + the display of actual and expected values than is provided + by the default implementation. + + The expected value + The actual value causing the failure + + + + Display Expected and Actual lines for given values, including + a tolerance value on the expected line. + + The expected value + The actual value causing the failure + The tolerance within which the test was made + + + + Display the expected and actual string values on separate lines. + If the mismatch parameter is >=0, an additional line is displayed + line containing a caret that points to the mismatch point. + + The expected string value + The actual string value + The point at which the strings don't match or -1 + If true, case is ignored in string comparisons + If true, clip the strings to fit the max line length + + + + Writes the text for a connector. + + The connector. + + + + Writes the text for a predicate. + + The predicate. + + + + Write the text for a modifier. + + The modifier. + + + + Writes the text for an expected value. + + The expected value. + + + + Writes the text for an actual value. + + The actual value. + + + + Writes the text for a generalized value. + + The value. + + + + Writes the text for a collection value, + starting at a particular point, to a max length + + The collection containing elements to write. + The starting point of the elements to write + The maximum number of elements to write + + + + Write the generic 'Expected' line for a constraint + + The constraint that failed + + + + Write the generic 'Expected' line for a given value + + The expected value + + + + Write the generic 'Expected' line for a given value + and tolerance. + + The expected value + The tolerance within which the test was made + + + + Write the generic 'Actual' line for a constraint + + The constraint for which the actual value is to be written + + + + Write the generic 'Actual' line for a given value + + The actual value causing a failure + + + + Gets or sets the maximum line length for this writer + + + + + Basic Asserts on strings. + + + + + The Equals method throws an AssertionException. This is done + to make sure there is no mistake by calling this function. + + + + + + + override the default ReferenceEquals to throw an AssertionException. This + implementation makes sure there is no mistake in calling this function + as part of Assert. + + + + + + + Asserts that a string is found within another string. + + The expected string + The string to be examined + The message to display in case of failure + Arguments used in formatting the message + + + + Asserts that a string is found within another string. + + The expected string + The string to be examined + The message to display in case of failure + + + + Asserts that a string is found within another string. + + The expected string + The string to be examined + + + + Asserts that a string is not found within another string. + + The expected string + The string to be examined + The message to display in case of failure + Arguments used in formatting the message + + + + Asserts that a string is found within another string. + + The expected string + The string to be examined + The message to display in case of failure + + + + Asserts that a string is found within another string. + + The expected string + The string to be examined + + + + Asserts that a string starts with another string. + + The expected string + The string to be examined + The message to display in case of failure + Arguments used in formatting the message + + + + Asserts that a string starts with another string. + + The expected string + The string to be examined + The message to display in case of failure + + + + Asserts that a string starts with another string. + + The expected string + The string to be examined + + + + Asserts that a string does not start with another string. + + The expected string + The string to be examined + The message to display in case of failure + Arguments used in formatting the message + + + + Asserts that a string does not start with another string. + + The expected string + The string to be examined + The message to display in case of failure + + + + Asserts that a string does not start with another string. + + The expected string + The string to be examined + + + + Asserts that a string ends with another string. + + The expected string + The string to be examined + The message to display in case of failure + Arguments used in formatting the message + + + + Asserts that a string ends with another string. + + The expected string + The string to be examined + The message to display in case of failure + + + + Asserts that a string ends with another string. + + The expected string + The string to be examined + + + + Asserts that a string does not end with another string. + + The expected string + The string to be examined + The message to display in case of failure + Arguments used in formatting the message + + + + Asserts that a string does not end with another string. + + The expected string + The string to be examined + The message to display in case of failure + + + + Asserts that a string does not end with another string. + + The expected string + The string to be examined + + + + Asserts that two strings are equal, without regard to case. + + The expected string + The actual string + The message to display in case of failure + Arguments used in formatting the message + + + + Asserts that two strings are equal, without regard to case. + + The expected string + The actual string + The message to display in case of failure + + + + Asserts that two strings are equal, without regard to case. + + The expected string + The actual string + + + + Asserts that two strings are not equal, without regard to case. + + The expected string + The actual string + The message to display in case of failure + Arguments used in formatting the message + + + + Asserts that two strings are Notequal, without regard to case. + + The expected string + The actual string + The message to display in case of failure + + + + Asserts that two strings are not equal, without regard to case. + + The expected string + The actual string + + + + Asserts that a string matches an expected regular expression pattern. + + The regex pattern to be matched + The actual string + The message to display in case of failure + Arguments used in formatting the message + + + + Asserts that a string matches an expected regular expression pattern. + + The regex pattern to be matched + The actual string + The message to display in case of failure + + + + Asserts that a string matches an expected regular expression pattern. + + The regex pattern to be matched + The actual string + + + + Asserts that a string does not match an expected regular expression pattern. + + The regex pattern to be used + The actual string + The message to display in case of failure + Arguments used in formatting the message + + + + Asserts that a string does not match an expected regular expression pattern. + + The regex pattern to be used + The actual string + The message to display in case of failure + + + + Asserts that a string does not match an expected regular expression pattern. + + The regex pattern to be used + The actual string + + + + 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 + + + + + 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 + + + + Attribute used to mark a static (shared in VB) property + that returns a list of tests. + + + + + Attribute used to identify a method that is called + immediately after each test is run. The method is + guaranteed to be called, even if an exception is thrown. + + + + + The Iz class is a synonym for Is intended for use in VB, + which regards Is as a keyword. + + + + + Helper class with properties and methods that supply + constraints that operate on exceptions. + + + + + Creates a constraint specifying the exact type of exception expected + + + + + Creates a constraint specifying the exact type of exception expected + + + + + Creates a constraint specifying the type of exception expected + + + + + Creates a constraint specifying the type of exception expected + + + + + Creates a constraint specifying an expected exception + + + + + Creates a constraint specifying an exception with a given InnerException + + + + + Creates a constraint specifying an expected TargetInvocationException + + + + + Creates a constraint specifying an expected TargetInvocationException + + + + + Creates a constraint specifying an expected TargetInvocationException + + + + + Creates a constraint specifying that no exception is thrown + + + + + 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 + + + + + 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. + + + + + Helper class with static methods used to supply constraints + that operate on strings. + + + + + Returns a constraint that succeeds if the actual + value contains the substring supplied as an argument. + + + + + Returns a constraint that fails if the actual + value contains the substring supplied as an argument. + + + + + Returns a constraint that succeeds if the actual + value starts with the substring supplied as an argument. + + + + + Returns a constraint that fails if the actual + value starts with the substring supplied as an argument. + + + + + Returns a constraint that succeeds if the actual + value ends with the substring supplied as an argument. + + + + + Returns a constraint that fails if the actual + value ends with the substring supplied as an argument. + + + + + Returns a constraint that succeeds if the actual + value matches the Regex pattern supplied as an argument. + + + + + Returns a constraint that fails if the actual + value matches the pattern supplied as an argument. + + + + + Returns a ConstraintExpression, which will apply + the following constraint to all members of a collection, + succeeding if all of them succeed. + + + + + Summary description for MaxTimeAttribute. + + + + + Construct a MaxTimeAttribute, given a time in milliseconds. + + The maximum elapsed time in milliseconds + + + + Summary description for SetUICultureAttribute. + + + + + Construct given the name of a culture + + + + + + Summary description for DirectoryAssert + + + + + The Equals method throws an AssertionException. This is done + to make sure there is no mistake by calling this function. + + + + + + + override the default ReferenceEquals to throw an AssertionException. This + implementation makes sure there is no mistake in calling this function + as part of Assert. + + + + + + + We don't actually want any instances of this object, but some people + like to inherit from it to add other static methods. Hence, the + protected constructor disallows any instances of this object. + + + + + Verifies that two directories are equal. Two directories are considered + equal if both are null, or if both have the same value byte for byte. + If they are not equal an is thrown. + + A directory containing the value that is expected + A directory containing the actual value + The message to display if directories are not equal + Arguments to be used in formatting the message + + + + Verifies that two directories are equal. Two directories are considered + equal if both are null, or if both have the same value byte for byte. + If they are not equal an is thrown. + + A directory containing the value that is expected + A directory containing the actual value + The message to display if directories are not equal + + + + Verifies that two directories are equal. Two directories are considered + equal if both are null, or if both have the same value byte for byte. + If they are not equal an is thrown. + + A directory containing the value that is expected + A directory containing the actual value + + + + Verifies that two directories are equal. Two directories are considered + equal if both are null, or if both have the same value byte for byte. + If they are not equal an is thrown. + + A directory path string containing the value that is expected + A directory path string containing the actual value + The message to display if directories are not equal + Arguments to be used in formatting the message + + + + Verifies that two directories are equal. Two directories are considered + equal if both are null, or if both have the same value byte for byte. + If they are not equal an is thrown. + + A directory path string containing the value that is expected + A directory path string containing the actual value + The message to display if directories are not equal + + + + Verifies that two directories are equal. Two directories are considered + equal if both are null, or if both have the same value byte for byte. + If they are not equal an is thrown. + + A directory path string containing the value that is expected + A directory path string containing the actual value + + + + Asserts that two directories are not equal. If they are equal + an is thrown. + + A directory containing the value that is expected + A directory containing the actual value + The message to display if directories are not equal + Arguments to be used in formatting the message + + + + Asserts that two directories are not equal. If they are equal + an is thrown. + + A directory containing the value that is expected + A directory containing the actual value + The message to display if directories are not equal + + + + Asserts that two directories are not equal. If they are equal + an is thrown. + + A directory containing the value that is expected + A directory containing the actual value + + + + Asserts that two directories are not equal. If they are equal + an is thrown. + + A directory path string containing the value that is expected + A directory path string containing the actual value + The message to display if directories are equal + Arguments to be used in formatting the message + + + + Asserts that two directories are not equal. If they are equal + an is thrown. + + A directory path string containing the value that is expected + A directory path string containing the actual value + The message to display if directories are equal + + + + Asserts that two directories are not equal. If they are equal + an is thrown. + + A directory path string containing the value that is expected + A directory path string containing the actual value + + + + Asserts that the directory is empty. If it is not empty + an is thrown. + + A directory to search + The message to display if directories are not equal + Arguments to be used in formatting the message + + + + Asserts that the directory is empty. If it is not empty + an is thrown. + + A directory to search + The message to display if directories are not equal + + + + Asserts that the directory is empty. If it is not empty + an is thrown. + + A directory to search + + + + Asserts that the directory is empty. If it is not empty + an is thrown. + + A directory to search + The message to display if directories are not equal + Arguments to be used in formatting the message + + + + Asserts that the directory is empty. If it is not empty + an is thrown. + + A directory to search + The message to display if directories are not equal + + + + Asserts that the directory is empty. If it is not empty + an is thrown. + + A directory to search + + + + Asserts that the directory is not empty. If it is empty + an is thrown. + + A directory to search + The message to display if directories are not equal + Arguments to be used in formatting the message + + + + Asserts that the directory is not empty. If it is empty + an is thrown. + + A directory to search + The message to display if directories are not equal + + + + Asserts that the directory is not empty. If it is empty + an is thrown. + + A directory to search + + + + Asserts that the directory is not empty. If it is empty + an is thrown. + + A directory to search + The message to display if directories are not equal + Arguments to be used in formatting the message + + + + Asserts that the directory is not empty. If it is empty + an is thrown. + + A directory to search + The message to display if directories are not equal + + + + Asserts that the directory is not empty. If it is empty + an is thrown. + + A directory to search + + + + Asserts that path contains actual as a subdirectory or + an is thrown. + + A directory to search + sub-directory asserted to exist under directory + The message to display if directory is not within the path + Arguments to be used in formatting the message + + + + Asserts that path contains actual as a subdirectory or + an is thrown. + + A directory to search + sub-directory asserted to exist under directory + The message to display if directory is not within the path + + + + Asserts that path contains actual as a subdirectory or + an is thrown. + + A directory to search + sub-directory asserted to exist under directory + + + + Asserts that path contains actual as a subdirectory or + an is thrown. + + A directory to search + sub-directory asserted to exist under directory + The message to display if directory is not within the path + Arguments to be used in formatting the message + + + + Asserts that path contains actual as a subdirectory or + an is thrown. + + A directory to search + sub-directory asserted to exist under directory + The message to display if directory is not within the path + + + + Asserts that path contains actual as a subdirectory or + an is thrown. + + A directory to search + sub-directory asserted to exist under directory + + + + Asserts that path does not contain actual as a subdirectory or + an is thrown. + + A directory to search + sub-directory asserted to exist under directory + The message to display if directory is not within the path + Arguments to be used in formatting the message + + + + Asserts that path does not contain actual as a subdirectory or + an is thrown. + + A directory to search + sub-directory asserted to exist under directory + The message to display if directory is not within the path + + + + Asserts that path does not contain actual as a subdirectory or + an is thrown. + + A directory to search + sub-directory asserted to exist under directory + + + + Asserts that path does not contain actual as a subdirectory or + an is thrown. + + A directory to search + sub-directory asserted to exist under directory + The message to display if directory is not within the path + Arguments to be used in formatting the message + + + + Asserts that path does not contain actual as a subdirectory or + an is thrown. + + A directory to search + sub-directory asserted to exist under directory + The message to display if directory is not within the path + + + + Asserts that path does not contain actual as a subdirectory or + an is thrown. + + A directory to search + sub-directory asserted to exist under directory + + + + The SpecialValue enum is used to represent TestCase arguments + that cannot be used as arguments to an Attribute. + + + + + Null represents a null value, which cannot be used as an + argument to an attriute under .NET 1.x + + + + + Summary description for FileAssert. + + + + + The Equals method throws an AssertionException. This is done + to make sure there is no mistake by calling this function. + + + + + + + override the default ReferenceEquals to throw an AssertionException. This + implementation makes sure there is no mistake in calling this function + as part of Assert. + + + + + + + We don't actually want any instances of this object, but some people + like to inherit from it to add other static methods. Hence, the + protected constructor disallows any instances of this object. + + + + + Verifies that two Streams are equal. Two Streams are considered + equal if both are null, or if both have the same value byte for byte. + If they are not equal an is thrown. + + The expected Stream + The actual Stream + The message to display if Streams are not equal + Arguments to be used in formatting the message + + + + Verifies that two Streams are equal. Two Streams are considered + equal if both are null, or if both have the same value byte for byte. + If they are not equal an is thrown. + + The expected Stream + The actual Stream + The message to display if objects are not equal + + + + Verifies that two Streams are equal. Two Streams are considered + equal if both are null, or if both have the same value byte for byte. + If they are not equal an is thrown. + + The expected Stream + The actual Stream + + + + Verifies that two files are equal. Two files are considered + equal if both are null, or if both have the same value byte for byte. + If they are not equal an is thrown. + + A file containing the value that is expected + A file containing the actual value + The message to display if Streams are not equal + Arguments to be used in formatting the message + + + + Verifies that two files are equal. Two files are considered + equal if both are null, or if both have the same value byte for byte. + If they are not equal an is thrown. + + A file containing the value that is expected + A file containing the actual value + The message to display if objects are not equal + + + + Verifies that two files are equal. Two files are considered + equal if both are null, or if both have the same value byte for byte. + If they are not equal an is thrown. + + A file containing the value that is expected + A file containing the actual value + + + + Verifies that two files are equal. Two files are considered + equal if both are null, or if both have the same value byte for byte. + If they are not equal an is thrown. + + The path to a file containing the value that is expected + The path to a file containing the actual value + The message to display if Streams are not equal + Arguments to be used in formatting the message + + + + Verifies that two files are equal. Two files are considered + equal if both are null, or if both have the same value byte for byte. + If they are not equal an is thrown. + + The path to a file containing the value that is expected + The path to a file containing the actual value + The message to display if objects are not equal + + + + Verifies that two files are equal. Two files are considered + equal if both are null, or if both have the same value byte for byte. + If they are not equal an is thrown. + + The path to a file containing the value that is expected + The path to a file containing the actual value + + + + Asserts that two Streams are not equal. If they are equal + an is thrown. + + The expected Stream + The actual Stream + The message to be displayed when the two Stream are the same. + Arguments to be used in formatting the message + + + + Asserts that two Streams are not equal. If they are equal + an is thrown. + + The expected Stream + The actual Stream + The message to be displayed when the Streams are the same. + + + + Asserts that two Streams are not equal. If they are equal + an is thrown. + + The expected Stream + The actual Stream + + + + Asserts that two files are not equal. If they are equal + an is thrown. + + A file containing the value that is expected + A file containing the actual value + The message to display if Streams are not equal + Arguments to be used in formatting the message + + + + Asserts that two files are not equal. If they are equal + an is thrown. + + A file containing the value that is expected + A file containing the actual value + The message to display if objects are not equal + + + + Asserts that two files are not equal. If they are equal + an is thrown. + + A file containing the value that is expected + A file containing the actual value + + + + Asserts that two files are not equal. If they are equal + an is thrown. + + The path to a file containing the value that is expected + The path to a file containing the actual value + The message to display if Streams are not equal + Arguments to be used in formatting the message + + + + Asserts that two files are not equal. If they are equal + an is thrown. + + The path to a file containing the value that is expected + The path to a file containing the actual value + The message to display if objects are not equal + + + + Asserts that two files are not equal. If they are equal + an is thrown. + + The path to a file containing the value that is expected + The path to a file containing the actual value + + + + Adding this attribute to a method within a + class makes the method callable from the NUnit test runner. There is a property + called Description which is optional which you can provide a more detailed test + description. This class cannot be inherited. + + + + [TestFixture] + public class Fixture + { + [Test] + public void MethodToTest() + {} + + [Test(Description = "more detailed description")] + publc void TestDescriptionMethod() + {} + } + + + + + + Randomizer returns a set of random values in a repeatable + way, to allow re-running of tests if necessary. + + + + + Get a randomizer for a particular member, returning + one that has already been created if it exists. + This ensures that the same values are generated + each time the tests are reloaded. + + + + + Get a randomizer for a particular parameter, returning + one that has already been created if it exists. + This ensures that the same values are generated + each time the tests are reloaded. + + + + + Construct a randomizer using a random seed + + + + + Construct a randomizer using a specified seed + + + + + Return an array of random doubles between 0.0 and 1.0. + + + + + + + Return an array of random doubles with values in a specified range. + + + + + Return an array of random ints with values in a specified range. + + + + + Get a random seed for use in creating a randomizer. + + + + + Used to mark a field for use as a datapoint when executing a theory + within the same fixture that requires an argument of the field's Type. + + + + + Used to mark an array as containing a set of datapoints to be used + executing a theory within the same fixture that requires an argument + of the Type of the array elements. + + + + diff --git a/Twitterizer2.TestCases/obj/Debug/ResolveAssemblyReference.cache b/Twitterizer2.TestCases/obj/Debug/ResolveAssemblyReference.cache new file mode 100644 index 00000000..33602c7e Binary files /dev/null and b/Twitterizer2.TestCases/obj/Debug/ResolveAssemblyReference.cache differ diff --git a/Twitterizer2.TestCases/obj/Debug/Twitterizer2.TestCases.csproj.FileListAbsolute.txt b/Twitterizer2.TestCases/obj/Debug/Twitterizer2.TestCases.csproj.FileListAbsolute.txt new file mode 100644 index 00000000..1789882f --- /dev/null +++ b/Twitterizer2.TestCases/obj/Debug/Twitterizer2.TestCases.csproj.FileListAbsolute.txt @@ -0,0 +1,12 @@ +C:\Projects\twitterizer\Twitterizer2.TestCases\bin\Debug\Twitterizer2.TestCases.dll +C:\Projects\twitterizer\Twitterizer2.TestCases\bin\Debug\Twitterizer2.TestCases.pdb +C:\Projects\twitterizer\Twitterizer2.TestCases\bin\Debug\nunit.framework.dll +C:\Projects\twitterizer\Twitterizer2.TestCases\bin\Debug\Twitterizer2.dll +C:\Projects\twitterizer\Twitterizer2.TestCases\bin\Debug\Newtonsoft.Json.dll +C:\Projects\twitterizer\Twitterizer2.TestCases\bin\Debug\Twitterizer2.pdb +C:\Projects\twitterizer\Twitterizer2.TestCases\bin\Debug\Twitterizer2.xml +C:\Projects\twitterizer\Twitterizer2.TestCases\bin\Debug\nunit.framework.xml +C:\Projects\twitterizer\Twitterizer2.TestCases\obj\Debug\ResolveAssemblyReference.cache +C:\Projects\twitterizer\Twitterizer2.TestCases\obj\Debug\Twitterizer2.TestCases.dll +C:\Projects\twitterizer\Twitterizer2.TestCases\obj\Debug\Twitterizer2.TestCases.pdb +C:\Projects\twitterizer\Twitterizer2.TestCases\bin\Debug\TestSettings.config diff --git a/Twitterizer2.TestCases/obj/Debug/Twitterizer2.TestCases.dll b/Twitterizer2.TestCases/obj/Debug/Twitterizer2.TestCases.dll new file mode 100644 index 00000000..e86d42d0 Binary files /dev/null and b/Twitterizer2.TestCases/obj/Debug/Twitterizer2.TestCases.dll differ diff --git a/Twitterizer2.TestCases/obj/Debug/Twitterizer2.TestCases.pdb b/Twitterizer2.TestCases/obj/Debug/Twitterizer2.TestCases.pdb new file mode 100644 index 00000000..a71af7ba Binary files /dev/null and b/Twitterizer2.TestCases/obj/Debug/Twitterizer2.TestCases.pdb differ diff --git a/Twitterizer2.TestCases/obj/Release/ResolveAssemblyReference.cache b/Twitterizer2.TestCases/obj/Release/ResolveAssemblyReference.cache new file mode 100644 index 00000000..b2c281d7 Binary files /dev/null and b/Twitterizer2.TestCases/obj/Release/ResolveAssemblyReference.cache differ diff --git a/Twitterizer2.TestCases/obj/Release/Twitterizer2.TestCases.csproj.FileListAbsolute.txt b/Twitterizer2.TestCases/obj/Release/Twitterizer2.TestCases.csproj.FileListAbsolute.txt new file mode 100644 index 00000000..80bd1f02 --- /dev/null +++ b/Twitterizer2.TestCases/obj/Release/Twitterizer2.TestCases.csproj.FileListAbsolute.txt @@ -0,0 +1,11 @@ +C:\Projects\twitterizer\Twitterizer2.TestCases\bin\Release\Twitterizer2.TestCases.dll +C:\Projects\twitterizer\Twitterizer2.TestCases\bin\Release\Twitterizer2.TestCases.pdb +C:\Projects\twitterizer\Twitterizer2.TestCases\bin\Release\nunit.framework.dll +C:\Projects\twitterizer\Twitterizer2.TestCases\bin\Release\Twitterizer2.dll +C:\Projects\twitterizer\Twitterizer2.TestCases\bin\Release\Newtonsoft.Json.dll +C:\Projects\twitterizer\Twitterizer2.TestCases\bin\Release\Twitterizer2.pdb +C:\Projects\twitterizer\Twitterizer2.TestCases\bin\Release\Twitterizer2.xml +C:\Projects\twitterizer\Twitterizer2.TestCases\bin\Release\nunit.framework.xml +C:\Projects\twitterizer\Twitterizer2.TestCases\obj\Release\ResolveAssemblyReference.cache +C:\Projects\twitterizer\Twitterizer2.TestCases\obj\Release\Twitterizer2.TestCases.dll +C:\Projects\twitterizer\Twitterizer2.TestCases\obj\Release\Twitterizer2.TestCases.pdb diff --git a/Twitterizer2.TestCases/obj/Release/Twitterizer2.TestCases.dll b/Twitterizer2.TestCases/obj/Release/Twitterizer2.TestCases.dll new file mode 100644 index 00000000..0aaedc7b Binary files /dev/null and b/Twitterizer2.TestCases/obj/Release/Twitterizer2.TestCases.dll differ diff --git a/Twitterizer2.TestCases/obj/Release/Twitterizer2.TestCases.pdb b/Twitterizer2.TestCases/obj/Release/Twitterizer2.TestCases.pdb new file mode 100644 index 00000000..99cb014e Binary files /dev/null and b/Twitterizer2.TestCases/obj/Release/Twitterizer2.TestCases.pdb differ diff --git a/Twitterizer2.VisualState.xml b/Twitterizer2.VisualState.xml new file mode 100644 index 00000000..21b04466 --- /dev/null +++ b/Twitterizer2.VisualState.xml @@ -0,0 +1,17 @@ + + + [0-1000]C:\Projects\twitterizer\Twitterizer2.nunit + [0-1019]Twitterizer2.TestCases + false + + + + + + + + + + + + \ No newline at end of file diff --git a/Twitterizer2.nunit b/Twitterizer2.nunit new file mode 100644 index 00000000..f2e27ea6 --- /dev/null +++ b/Twitterizer2.nunit @@ -0,0 +1,7 @@ + + + + + + + \ No newline at end of file diff --git a/Twitterizer2.sln b/Twitterizer2.sln index 2521b54d..087e47f9 100644 --- a/Twitterizer2.sln +++ b/Twitterizer2.sln @@ -19,6 +19,8 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Documentation", "Documentat XML Documentation\WelcomeTopic.aml = XML Documentation\WelcomeTopic.aml EndProjectSection EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Twitterizer2.TestCases", "Twitterizer2.TestCases\Twitterizer2.TestCases.csproj", "{488BB0D8-2A49-4074-BE6F-1100AF6E5D62}" +EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution Debug|Any CPU = Debug|Any CPU @@ -56,6 +58,18 @@ Global {4ACED651-D888-4E46-A38B-13291C00FABF}.Release|Any CPU.ActiveCfg = Release|Any CPU {4ACED651-D888-4E46-A38B-13291C00FABF}.Release|Any CPU.Build.0 = Release|Any CPU {4ACED651-D888-4E46-A38B-13291C00FABF}.Release|x86-Only.ActiveCfg = Release|Any CPU + {488BB0D8-2A49-4074-BE6F-1100AF6E5D62}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {488BB0D8-2A49-4074-BE6F-1100AF6E5D62}.Debug|Any CPU.Build.0 = Debug|Any CPU + {488BB0D8-2A49-4074-BE6F-1100AF6E5D62}.Debug|x86-Only.ActiveCfg = Debug|Any CPU + {488BB0D8-2A49-4074-BE6F-1100AF6E5D62}.Mono-Debug|Any CPU.ActiveCfg = Debug|Any CPU + {488BB0D8-2A49-4074-BE6F-1100AF6E5D62}.Mono-Debug|Any CPU.Build.0 = Debug|Any CPU + {488BB0D8-2A49-4074-BE6F-1100AF6E5D62}.Mono-Debug|x86-Only.ActiveCfg = Debug|Any CPU + {488BB0D8-2A49-4074-BE6F-1100AF6E5D62}.Mono-Release|Any CPU.ActiveCfg = Release|Any CPU + {488BB0D8-2A49-4074-BE6F-1100AF6E5D62}.Mono-Release|Any CPU.Build.0 = Release|Any CPU + {488BB0D8-2A49-4074-BE6F-1100AF6E5D62}.Mono-Release|x86-Only.ActiveCfg = Release|Any CPU + {488BB0D8-2A49-4074-BE6F-1100AF6E5D62}.Release|Any CPU.ActiveCfg = Release|Any CPU + {488BB0D8-2A49-4074-BE6F-1100AF6E5D62}.Release|Any CPU.Build.0 = Release|Any CPU + {488BB0D8-2A49-4074-BE6F-1100AF6E5D62}.Release|x86-Only.ActiveCfg = Release|Any CPU EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE diff --git a/Twitterizer2/Core/OptionalProperties.xml b/Twitterizer2/Core/OptionalProperties.xml index 2ed6eb19..b80697b0 100644 --- a/Twitterizer2/Core/OptionalProperties.xml +++ b/Twitterizer2/Core/OptionalProperties.xml @@ -1,4 +1,3 @@ -<<<<<<< .mine  @@ -98,106 +97,4 @@ -======= - - - - - Provides a base class for method specific optional parameters, as well as properties for providing configuration settings at run time. - - - - - - Allows modification of the API endpoint addresses to enable SSL communication. - - - The default value can be set at an application level by adding a Twitterizer2.EnableSSL application setting with the value true. - For example: - - - - - - -]]> - - - - The current configured value. true if enabled, otherwise false. Default: false - - - - - - Allows configuration of the base address for API method requests for support for 3rd party 'twitter-like' APIs. - - - The default value can be set at an application level by adding a Twitterizer2.APIBaseAddress application setting with the base address as the value. - For example: - - - - - - -]]> - - - The API end point base address. Default: "http://api.twitter.com/1/" - - - - - Allows run time enabling of API output caching. - - - The default value can be set at an application level by adding a Twitterizer2.EnableCaching application setting with value true. - For example: - - - - - - -]]> - - - - The currently configured value. true if enabled, otherwise false. Default: false - - - - - - - Allows configuration of the sliding expiration timespan for output caching. - - - The default value can be set at an application level by adding a Twitterizer2.CacheTimeout application setting with value equal to the number of seconds of the duration. - For example: - - - - - - -]]> - - - - The duration that API output should be cached, on a sliding expiration, once enabled. Default: 5 minutes - - - - - - - Allows overriding of the default proxy settings for API call requests. - - - The supplied , or null. - - - ->>>>>>> .r262 + \ No newline at end of file diff --git a/Twitterizer2/Methods/Geo/Coordinate.cs b/Twitterizer2/Methods/Geo/Coordinate.cs new file mode 100644 index 00000000..8e150bbd --- /dev/null +++ b/Twitterizer2/Methods/Geo/Coordinate.cs @@ -0,0 +1,102 @@ +namespace Twitterizer +{ + using System; + using System.Collections.ObjectModel; + using System.Linq; + using Newtonsoft.Json; + + /// + /// Represents a single point on planet earth. + /// + public class Coordinate + { + /// + /// Gets or sets the latitude. + /// + /// The latitude. + public double Latitude { get; set; } + + /// + /// Gets or sets the longitude. + /// + /// The longitude. + public double Longitude { get; set; } + + /// + /// Reads a json array of coordinates and converts it into a collection of coordinate objects. + /// + internal class Converter : JsonConverter + { + /// + /// Determines whether this instance can convert the specified object type. + /// + /// Type of the object. + /// + /// true if this instance can convert the specified object type; otherwise, false. + /// + public override bool CanConvert(Type objectType) + { + return objectType == typeof(Collection); + } + + /// + /// Reads the json. + /// + /// The reader. + /// Type of the object. + /// The existing value. + /// The serializer. + /// + public override object ReadJson(JsonReader reader, Type objectType, object existingValue, JsonSerializer serializer) + { + Collection result = existingValue as Collection; + + if (result == null) + result = new Collection(); + + int startDepth = reader.Depth; + + if (reader.TokenType != JsonToken.StartArray) + { + return null; + } + + int depth = reader.Depth + 1; + double count = 1; + + while (reader.Read() && reader.Depth >= startDepth) + { + if (new[] { JsonToken.StartArray, JsonToken.EndArray }.Contains(reader.TokenType)) + continue; + + int itemIndex = Convert.ToInt32(Math.Ceiling(count / 2) - 1); + + if (count % 2 > 0) + { + result.Add(new Coordinate()); + result[itemIndex].Latitude = (double)reader.Value; + } + else + { + result[itemIndex].Longitude = (double)reader.Value; + } + + count++; + } + + return result; + } + + /// + /// Writes the json. + /// + /// The writer. + /// The value. + /// The serializer. + public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) + { + throw new NotImplementedException(); + } + } + } +} diff --git a/Twitterizer2/Methods/Geo/ReverseGeocodeCommand.cs b/Twitterizer2/Methods/Geo/ReverseGeocodeCommand.cs index 36012051..3027749f 100644 --- a/Twitterizer2/Methods/Geo/ReverseGeocodeCommand.cs +++ b/Twitterizer2/Methods/Geo/ReverseGeocodeCommand.cs @@ -39,6 +39,7 @@ namespace Twitterizer.Commands using Newtonsoft.Json; using Newtonsoft.Json.Linq; using Twitterizer.Core; + using System.Collections.Generic; /// /// The reverse geocode command class. Performs a reverse geocode lookup. @@ -51,7 +52,7 @@ internal class ReverseGeocodeCommand : TwitterCommand /// The latitude. /// The longitude. /// The options. - public ReverseGeocodeCommand(double latitude, double longitude, OptionalProperties options) + public ReverseGeocodeCommand(double latitude, double longitude, TwitterPlaceLookupOptions options) : base(HTTPVerb.GET, "geo/reverse_geocode.json", null, options) { this.Latitude = latitude; @@ -75,50 +76,29 @@ public ReverseGeocodeCommand(double latitude, double longitude, OptionalProperti /// public override void Init() { - this.DeserializationHandler = Deserialize; - this.RequestParameters.Add("lat", this.Latitude.ToString(CultureInfo.InvariantCulture)); - this.RequestParameters.Add("long", this.Longitude.ToString(CultureInfo.InvariantCulture)); - } - - /// - /// Deserializes the place element value. - /// - /// The value. - /// A object or null. - private static TwitterPlaceCollection Deserialize(JObject value) - { - TwitterPlaceCollection result = new TwitterPlaceCollection(); - - foreach (JObject item in (JArray)value.SelectToken("result.places")) - { - TwitterPlace place = JsonConvert.DeserializeObject(item.ToString()); - JToken boundingBox = item.SelectToken("bounding_box"); - - if (boundingBox == null || boundingBox.Type == JTokenType.Null) - continue; + NumberFormatInfo nfi = CultureInfo.InvariantCulture.NumberFormat; - place.BoundingBox = new TwitterBoundingBox(); - place.BoundingBox.Type = (string)((JValue)boundingBox.SelectToken("type")).Value; - place.BoundingBox.Coordinates = new double[0, 2]; + this.RequestParameters.Add("lat", this.Latitude.ToString(nfi)); + this.RequestParameters.Add("long", this.Longitude.ToString(nfi)); - foreach (JToken coordinate in (JArray)boundingBox.SelectToken("coordinates").First) - { - int rowNumber = place.BoundingBox.Coordinates.GetUpperBound(0) + 1; + TwitterPlaceLookupOptions options = this.OptionalProperties as TwitterPlaceLookupOptions; + if (options == null) + return; - double[,] coordinateArray = new double[rowNumber + 1, 2]; - - Array.Copy(place.BoundingBox.Coordinates, coordinateArray, place.BoundingBox.Coordinates.Length); - - coordinateArray[rowNumber, 0] = (double)((JValue)coordinate.First).Value; - coordinateArray[rowNumber, 1] = (double)((JValue)coordinate.Last).Value; - - place.BoundingBox.Coordinates = coordinateArray; - } + if (!string.IsNullOrEmpty(options.Accuracy)) + { + this.RequestParameters.Add("accuracy", options.Accuracy); + } - result.Add(place); + if (!string.IsNullOrEmpty(options.Granularity)) + { + this.RequestParameters.Add("granularity", options.Granularity); } - return result; + if (options.MaxResults != null) + { + this.RequestParameters.Add("max_results", options.MaxResults.Value.ToString(nfi)); + } } } } diff --git a/Twitterizer2/Methods/Geo/TwitterBoundingBox.cs b/Twitterizer2/Methods/Geo/TwitterBoundingBox.cs index 25153c52..ec53b243 100644 --- a/Twitterizer2/Methods/Geo/TwitterBoundingBox.cs +++ b/Twitterizer2/Methods/Geo/TwitterBoundingBox.cs @@ -34,6 +34,7 @@ namespace Twitterizer { using System; + using System.Collections.ObjectModel; using Newtonsoft.Json; using Twitterizer.Core; @@ -55,6 +56,8 @@ public class TwitterBoundingBox : TwitterObject /// Gets or sets the coordinates. /// /// The coordinates. - public double[,] Coordinates { get; set; } + [JsonProperty(PropertyName = "coordinates")] + [JsonConverter(typeof(Coordinate.Converter))] + public Collection Coordinates { get; set; } } } diff --git a/Twitterizer2/Methods/Trends/TwitterTrendTimeframe.cs b/Twitterizer2/Methods/Geo/TwitterGeo.cs similarity index 51% rename from Twitterizer2/Methods/Trends/TwitterTrendTimeframe.cs rename to Twitterizer2/Methods/Geo/TwitterGeo.cs index 83dc6624..748e9433 100644 --- a/Twitterizer2/Methods/Trends/TwitterTrendTimeframe.cs +++ b/Twitterizer2/Methods/Geo/TwitterGeo.cs @@ -1,6 +1,6 @@ //----------------------------------------------------------------------- -// -// This file is part of the Twitterizer library (http://www.twitterizer.net/) +// +// This file is part of the Twitterizer library (http://www.twitterizer.net) // // Copyright (c) 2010, Patrick "Ricky" Smith (ricky@digitally-born.com) // All rights reserved. @@ -29,71 +29,60 @@ // POSSIBILITY OF SUCH DAMAGE. // // Ricky Smith -// The twitter trend timeframe class +// The geo location class. //----------------------------------------------------------------------- namespace Twitterizer { using System; + using Newtonsoft.Json; using System.Collections.ObjectModel; - using Newtonsoft.Json.Linq; - using Twitterizer.Core; /// - /// The Twitter trend timeframe class. + /// Lists the possible types of geographic boundaries. /// - public class TwitterTrendTimeframe : TwitterObject + public enum TwitterGeoShapeType { /// - /// Gets or sets the effective date. + /// A single point. Expect one coordinate. /// - /// The effective date. - public DateTime EffectiveDate { get; set; } + Point, /// - /// Gets or sets the trends. + /// A line, or multiple lines joined end-to-end. /// - /// The trends. - public Collection Trends { get; set; } + LineString, /// - /// Deserializes the json. + /// A polygon /// - /// The value. - /// A object. - internal static TwitterTrendTimeframe DeserializeJson(Newtonsoft.Json.Linq.JObject value) - { - TwitterTrendTimeframe result = new TwitterTrendTimeframe(); - result.EffectiveDate = new DateTime(1970, 1, 1, 0, 0, 0).AddSeconds((int)value.SelectToken("as_of")); - result.Trends = new Collection(); + Polygon, - JArray trendArray = (JArray)value.SelectToken(string.Format("trends.{0:yyyy-MM-dd HH:mm:ss}", result.EffectiveDate)); - - foreach (JObject item in trendArray) - { - TwitterTrend newTrend = new TwitterTrend(); - - JToken token = null; - - if (item.TryGetValue("query", out token)) - { - newTrend.SearchQuery = token.Value(); - } - - if (item.TryGetValue("name", out token)) - { - newTrend.Name = token.Value(); - } - - if (item.TryGetValue("url", out token)) - { - newTrend.Address = token.Value(); - } + /// + /// A circle represented by a single point (the center) and the radius + /// + CircleByCenterPoint + } - result.Trends.Add(newTrend); - } + /// + /// Represents a geological area + /// + [Serializable] + public class TwitterGeo + { + /// + /// Gets or sets the type of the shape. + /// + /// The type of the shape. + [JsonProperty(PropertyName = "type")] + public TwitterGeoShapeType ShapeType { get; set; } - return result; - } + /// + /// Gets or sets the coordinates. + /// + /// The coordinates. + [JsonProperty(PropertyName = "coordinates")] + [JsonConverter(typeof(Coordinate.Converter))] + public Collection Coordinates { get; set; } } } diff --git a/Twitterizer2/Methods/Geo/TwitterPlace.cs b/Twitterizer2/Methods/Geo/TwitterPlace.cs index a2978133..c65da528 100644 --- a/Twitterizer2/Methods/Geo/TwitterPlace.cs +++ b/Twitterizer2/Methods/Geo/TwitterPlace.cs @@ -43,6 +43,7 @@ namespace Twitterizer /// [JsonObject(MemberSerialization = MemberSerialization.OptIn)] [Serializable] + [System.Diagnostics.DebuggerDisplay("{FullName} ({Id})")] public sealed class TwitterPlace : TwitterObject { /// @@ -115,11 +116,22 @@ public sealed class TwitterPlace : TwitterObject /// The longitude. /// The options. /// A object or null. - public static TwitterPlaceCollection Lookup(double latitude, double longitude, OptionalProperties options) + public static TwitterPlaceCollection Lookup(double latitude, double longitude, TwitterPlaceLookupOptions options) { Commands.ReverseGeocodeCommand command = new Twitterizer.Commands.ReverseGeocodeCommand(latitude, longitude, options); return CommandPerformer.PerformAction(command); } + + /// + /// Lookups the specified latitude. + /// + /// The latitude. + /// The longitude. + /// + public static TwitterPlaceCollection Lookup(double latitude, double longitude) + { + return Lookup(latitude, longitude, null); + } } } diff --git a/Twitterizer2/Methods/Geo/TwitterPlaceCollection.cs b/Twitterizer2/Methods/Geo/TwitterPlaceCollection.cs index 8bc06932..6348a080 100644 --- a/Twitterizer2/Methods/Geo/TwitterPlaceCollection.cs +++ b/Twitterizer2/Methods/Geo/TwitterPlaceCollection.cs @@ -35,13 +35,57 @@ namespace Twitterizer { using System; + using Newtonsoft.Json; using Twitterizer.Core; + using Newtonsoft.Json.Linq; /// /// The Twitter Place Collection class. A collection of objects. /// [Serializable] + [JsonConverter(typeof(TwitterPlaceCollection.Converter))] + [JsonObject] public class TwitterPlaceCollection : TwitterCollection { + internal class Converter : JsonConverter + { + public override bool CanConvert(Type objectType) + { + return objectType == typeof(TwitterPlaceCollection); + } + + public override object ReadJson(JsonReader reader, Type objectType, object existingValue, JsonSerializer serializer) + { + TwitterPlaceCollection result = new TwitterPlaceCollection(); + + reader.Read(); + reader.Read(); + + bool hasReachedTheQuery = false; + + while (reader.Read()) + { + if (reader.TokenType == JsonToken.PropertyName && (string)reader.Value == "query") + { + hasReachedTheQuery = true; + } + + if (hasReachedTheQuery) + continue; + + if (reader.TokenType == JsonToken.StartObject) + { + result.Add(serializer.Deserialize(reader)); + } + } + + return result; + } + + public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) + { + throw new NotImplementedException(); + } + } } } diff --git a/Twitterizer2/Methods/Geo/TwitterPlaceLookupOptions.cs b/Twitterizer2/Methods/Geo/TwitterPlaceLookupOptions.cs new file mode 100644 index 00000000..1730dceb --- /dev/null +++ b/Twitterizer2/Methods/Geo/TwitterPlaceLookupOptions.cs @@ -0,0 +1,28 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; + +namespace Twitterizer +{ + /// + /// Provides a payload for optional parameters for the method. + /// + public class TwitterPlaceLookupOptions : OptionalProperties + { + /// + /// A hint on the "region" in which to search. If a number, then this is a radius in meters, but it can also take a string that is suffixed with ft to specify feet. If this is not passed in, then it is assumed to be 0m. If coming from a device, in practice, this value is whatever accuracy the device has measuring its location (whether it be coming from a GPS, WiFi triangulation, etc.). + /// + public string Accuracy { get; set; } + + /// + /// The minimal granularity of data to return. If this is not passed in, then neighborhood is assumed. city can also be passed. + /// + public string Granularity { get; set; } + + /// + /// A hint as to the number of results to return. This does not guarantee that the number of results returned will equal max_results, but instead informs how many "nearby" results to return. Ideally, only pass in the number of places you intend to display to the user here. + /// + public int? MaxResults { get; set; } + } +} diff --git a/Twitterizer2/Methods/List/GetListSubscriptionsCommand.cs b/Twitterizer2/Methods/List/GetListSubscriptionsCommand.cs index c8bfe98f..dd898263 100644 --- a/Twitterizer2/Methods/List/GetListSubscriptionsCommand.cs +++ b/Twitterizer2/Methods/List/GetListSubscriptionsCommand.cs @@ -48,7 +48,6 @@ internal sealed class GetListSubscriptionsCommand : CursorPagedCommand class. /// /// The request tokens. - /// The username. /// The options. public GetListSubscriptionsCommand(OAuthTokens requestTokens, OptionalProperties options) : base(HTTPVerb.GET, "{0}/lists/subscriptions.json", requestTokens, options) diff --git a/Twitterizer2/Methods/Trends/CurrentTrendsCommand.cs b/Twitterizer2/Methods/Trends/CurrentTrendsCommand.cs index dd7ad34f..7d61eee2 100644 --- a/Twitterizer2/Methods/Trends/CurrentTrendsCommand.cs +++ b/Twitterizer2/Methods/Trends/CurrentTrendsCommand.cs @@ -41,7 +41,7 @@ namespace Twitterizer.Commands /// /// The create list command class /// - internal sealed class CurrentTrendsCommand : TwitterCommand + internal sealed class CurrentTrendsCommand : TwitterCommand { #region Constructors /// @@ -51,7 +51,6 @@ internal sealed class CurrentTrendsCommand : TwitterCommand /// The options. /// - /// A instance. + /// A collection of objects. /// - public static TwitterTrendTimeframe Current(CurrentTrendsOptions options) + public static TwitterTrendCollection Current(CurrentTrendsOptions options) { Commands.CurrentTrendsCommand command = new Twitterizer.Commands.CurrentTrendsCommand(options); - return Core.CommandPerformer.PerformAction(command); + return Core.CommandPerformer.PerformAction(command); } /// /// Gets the current trends. /// /// - /// A instance. + /// A collection of objects. /// - public static TwitterTrendTimeframe Current() + public static TwitterTrendCollection Current() { return Current(null); } diff --git a/Twitterizer2/Methods/Trends/TwitterTrendCollection.cs b/Twitterizer2/Methods/Trends/TwitterTrendCollection.cs new file mode 100644 index 00000000..1d7eed71 --- /dev/null +++ b/Twitterizer2/Methods/Trends/TwitterTrendCollection.cs @@ -0,0 +1,120 @@ +//----------------------------------------------------------------------- +// +// This file is part of the Twitterizer library (http://www.twitterizer.net/) +// +// Copyright (c) 2010, Patrick "Ricky" Smith (ricky@digitally-born.com) +// All rights reserved. +// +// Redistribution and use in source and binary forms, with or without modification, are +// permitted provided that the following conditions are met: +// +// - Redistributions of source code must retain the above copyright notice, this list +// of conditions and the following disclaimer. +// - Redistributions in binary form must reproduce the above copyright notice, this list +// of conditions and the following disclaimer in the documentation and/or other +// materials provided with the distribution. +// - Neither the name of the Twitterizer nor the names of its contributors may be +// used to endorse or promote products derived from this software without specific +// prior written permission. +// +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND +// ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +// WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. +// IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, +// INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT +// NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR +// PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, +// WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) +// ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +// POSSIBILITY OF SUCH DAMAGE. +// +// Ricky Smith +// The twitter trend collection class. +//----------------------------------------------------------------------- + +namespace Twitterizer +{ + using System; + using Newtonsoft.Json; + + /// + /// The TwitterTrendCollection class. Represents multiple elements. + /// + [JsonConverter(typeof(TwitterTrendCollection.Converter))] + public class TwitterTrendCollection : Core.TwitterCollection + { + /// + /// The Json converter class for the TwitterTrendCollection object + /// + internal class Converter : JsonConverter + { + /// + /// Determines whether this instance can convert the specified object type. + /// + /// Type of the object. + /// + /// true if this instance can convert the specified object type; otherwise, false. + /// + public override bool CanConvert(Type objectType) + { + return objectType == typeof(TwitterTrendCollection); + } + + /// + /// Reads the json. + /// + /// The reader. + /// Type of the object. + /// The existing value. + /// The serializer. + /// + public override object ReadJson(JsonReader reader, Type objectType, object existingValue, JsonSerializer serializer) + { + TwitterTrendCollection result = existingValue as TwitterTrendCollection; + + if (result == null) + result = new TwitterTrendCollection(); + + int initialDepth = reader.Depth; + + while (reader.Read() && reader.Depth >= initialDepth) + { + if (reader.TokenType == JsonToken.StartObject && reader.Depth > 2) + result.Add(new TwitterTrend()); + + if (reader.TokenType == JsonToken.PropertyName) + { + switch ((string)reader.Value) + { + case "query": + reader.Read(); + result[result.Count - 1].SearchQuery = (string)reader.Value; + continue; + case "name": + reader.Read(); + result[result.Count - 1].Name = (string)reader.Value; + continue; + case "url": + reader.Read(); + result[result.Count - 1].Address = (string)reader.Value; + continue; + } + } + } + + return result; + } + + /// + /// Writes the json. + /// + /// The writer. + /// The value. + /// The serializer. + public override void WriteJson(JsonWriter writer, object value, JsonSerializer serializer) + { + throw new System.NotImplementedException(); + } + } + } +} diff --git a/Twitterizer2/Methods/Tweets/TwitterStatus.cs b/Twitterizer2/Methods/Tweets/TwitterStatus.cs index 55c5f3b1..bb3d1a93 100644 --- a/Twitterizer2/Methods/Tweets/TwitterStatus.cs +++ b/Twitterizer2/Methods/Tweets/TwitterStatus.cs @@ -141,6 +141,13 @@ public TwitterStatus() /// The place. [JsonProperty(PropertyName = "place")] public TwitterPlace Place { get; set; } + + /// + /// Gets or sets the geo. + /// + /// The geo. + [JsonProperty(PropertyName = "geo")] + public TwitterGeo Geo { get; set; } #endregion /// diff --git a/Twitterizer2/Methods/User/TwitterUser.xml b/Twitterizer2/Methods/User/TwitterUser.xml index 28ecee03..6e49904c 100644 --- a/Twitterizer2/Methods/User/TwitterUser.xml +++ b/Twitterizer2/Methods/User/TwitterUser.xml @@ -1,4 +1,3 @@ -<<<<<<< .mine  @@ -298,304 +297,4 @@ -======= - - - - - The TwitterUser class represents a twitter user account and provides methods for interacting with user-centric API methods. - - - - - - Returns extended information of a given user, specified by ID or screen name as per the required id parameter. The author's most recent status will be returned inline. - - - A new instance of the class. - - - This method interacts with the users/show API endpoint. Documentation can be found here: http://dev.twitter.com/doc/get/users/show - - Indicates that a required argument was not supplied. - Indicates that an argument supplied was not valid. - Indicates that a command failed pre-execution validation. - - - - The tokens. - The user id. - The options. - - - // Declare the user's id variable - decimal userId = 1; - - // Declare the options object for configuration settings - OptionalProperties options = new OptionalProperties(); - - // Declare our user variable and fetch the user's details - TwitterUser user = TwitterUser.Show(tokens, userId, options); - - - '-- Declare the user's id variable - Dim userId As decimal = 1 - - '-- Declare the options object for configuration settings - Dim options As new OptionalProperties() - - '-- Declare our user variable and fetch the user's details - Dim user As TwitterUser = TwitterUser.Show(tokens, userId, options) - - - - - - - - The user id. - The options. - - - // Declare the user's id variable - decimal userId = 1; - - // Declare the options object for configuration settings - OptionalProperties options = new OptionalProperties(); - - // Declare our user variable and fetch the user's details - TwitterUser user = TwitterUser.Show(userId, options); - - - '-- Declare the user's id variable - Dim userId As decimal = 1 - - '-- Declare the options object for configuration settings - Dim options As new OptionalProperties() - - '-- Declare our user variable and fetch the user's details - Dim user As TwitterUser = TwitterUser.Show(userId, options) - - - - - - - The tokens. - The user id. - - - // Declare the user's id variable - decimal userId = 1; - - // Declare our user variable and fetch the user's details - TwitterUser user = TwitterUser.Show(tokens, userId); - - - '-- Declare the user's id variable - Dim userId As decimal = 1 - - '-- Declare our user variable and fetch the user's details - Dim user As TwitterUser = TwitterUser.Show(tokens, userId) - - - - - - - The user id. - - - // Declare the user's id variable - decimal userId = 1; - - // Declare our user variable and fetch the user's details - TwitterUser user = TwitterUser.Show(userId); - - - '-- Declare the user's id variable - Dim userId As decimal = 1 - - '-- Declare our user variable and fetch the user's details - Dim user As TwitterUser = TwitterUser.Show(userId) - - - - - - The tokens. - The user name. - The options. - - - // Declare the username variable - string userName = "twit_er_izer"; - - // Declare the options object for configuration settings - OptionalProperties options = new OptionalProperties(); - - // Declare our user variable and fetch the user's details - TwitterUser user = TwitterUser.Show(tokens, userName, options); - - - '-- Declare the user's id variable - Dim UserName As String = "twit_er_izer" - - '-- Declare the options object for configuration settings - Dim options As new OptionalProperties() - - '-- Declare our user variable and fetch the user's details - Dim user As TwitterUser = TwitterUser.Show(tokens, UserName, options) - - - - - - - - - The tokens. - The user name. - - - // Declare the username variable - string userName = "twit_er_izer"; - - // Declare our user variable and fetch the user's details - TwitterUser user = TwitterUser.Show(tokens, userName); - - - '-- Declare the user's id variable - Dim UserName As String = "twit_er_izer" - - '-- Declare our user variable and fetch the user's details - Dim user As TwitterUser = TwitterUser.Show(tokens, UserName, options) - - - - - - - The user name. - The options. - - - // Declare the username variable - string userName = "twit_er_izer"; - - // Declare the options object for configuration settings - OptionalProperties options = new OptionalProperties(); - - // Declare our user variable and fetch the user's details - TwitterUser user = TwitterUser.Show(userName, options); - - - '-- Declare the user's id variable - Dim UserName As String = "twit_er_izer" - - '-- Declare the options object for configuration settings - Dim options As new OptionalProperties() - - '-- Declare our user variable and fetch the user's details - Dim user As TwitterUser = TwitterUser.Show(UserName, options) - - - - - - - - The user name. - - - // Declare the username variable - string userName = "twit_er_izer"; - - // Declare our user variable and fetch the user's details - TwitterUser user = TwitterUser.Show(userName); - - - '-- Declare the user's id variable - Dim UserName As String = "twit_er_izer" - - '-- Declare our user variable and fetch the user's details - Dim user As TwitterUser = TwitterUser.Show(UserName) - - - - - - - Run a search for users similar to the Find People button on Twitter.com; the same results returned by people search on Twitter.com will be returned by using this API. - - - This method interacts with the users/search API endpoint. Documentation can be found here: http://dev.twitter.com/doc/get/users/search - - Indicates that a required argument was not supplied. - Indicates that an argument supplied was not valid. - Indicates that a command failed pre-execution validation. - - A instance. - - - - - The OAuth access tokens. - The search query. - Optional parameters. - - - - // Declare the search query - string query = "from:twit_er_izer @twitterapi"; - - // Declare the optional parameter object - UserSearchOptions options = new UserSearchOptions(); - options.NumberPerPage = 10; - options.Page = 2; - - // Perform the search - TwitterUserCollection searchResults = TwitterUser.Search(oauthTokens, query, options); - - - '-- Declare the search query - Dim Query As String = "from:twit_er_izer @twitterapi" - - '-- Declare the optional parameter object - Dim options As new UserSearchOptions() - options.NumberPerPage = 10 - options.Page = 2 - - '-- Perform the search - Dim searchResults As TwitterUserCollection = TwitterUser.Search(oauthTokens, query, options) - - - - - - - - - The OAuth access tokens. - The search query. - - - - // Declare the search query - string query = "from:twit_er_izer @twitterapi"; - - // Perform the search - TwitterUserCollection searchResults = TwitterUser.Search(oauthTokens, query); - - - '-- Declare the search query - Dim Query As String = "from:twit_er_izer @twitterapi" - - '-- Perform the search - Dim searchResults As TwitterUserCollection = TwitterUser.Search(oauthTokens, query) - - - - - ->>>>>>> .r262 + \ No newline at end of file diff --git a/Twitterizer2/Settings.StyleCop b/Twitterizer2/Settings.StyleCop index 18b6e4b5..5d364555 100644 --- a/Twitterizer2/Settings.StyleCop +++ b/Twitterizer2/Settings.StyleCop @@ -27,5 +27,20 @@ + + + + + False + + + + + False + + + + + \ No newline at end of file diff --git a/Twitterizer2/Twitterizer2.csproj b/Twitterizer2/Twitterizer2.csproj index 574b6412..6cf0d883 100644 --- a/Twitterizer2/Twitterizer2.csproj +++ b/Twitterizer2/Twitterizer2.csproj @@ -97,10 +97,13 @@ + + + @@ -114,6 +117,7 @@ + @@ -183,7 +187,6 @@ - diff --git a/twitterizer.FxCop b/twitterizer.FxCop index d754704e..1bf1a973 100644 --- a/twitterizer.FxCop +++ b/twitterizer.FxCop @@ -47,6 +47,21 @@ + + + + + + + UserName + 'ListFavoritesOptions.UserNameOrId' + Username + + + + + + @@ -97,6 +112,13 @@ + + + 'string.ToUpper()' + 'OAuthUtility.EncodeForUrl(string)' + 'string.ToUpper(CultureInfo)' + + 'OAuthUtility.EncodeForUrl(string)' @@ -111,6 +133,86 @@ + + + + + + + API + 'OptionalProperties.APIBaseAddress' + Api + + + + + + + + + Timespan + 'OptionalProperties.CacheTimespan' + + + + + + + + + 'string.ToLower()' + 'OptionalProperties.ReadConfigurationSettings()' + 'string.ToLower(CultureInfo)' + + + 'string.ToLower()' + 'OptionalProperties.ReadConfigurationSettings()' + 'string.ToLower(CultureInfo)' + + + + + + + + + SSL + 'OptionalProperties.UseSSL' + Ssl + + + + + + + + + + + + + 'TwitterBoundingBox.Coordinates' + + + + + 'TwitterBoundingBox.Coordinates' + + + + + + + + + 'TwitterBoundingBox.Type' + 'object.GetType()' + + + + + + @@ -132,144 +234,163 @@ - + - - - - - OAuth - 'TwitterizerCounter.OAuthRequests' - Oauth - - - - - - - - + + + + + + + 'TwitterErrorDetails.RateLimiting.get()' + 'NotImplementedException' + + + + + + + + + + + + + 'TwitterErrorDetails.Tokens.get()' + 'NotImplementedException' + + + + + - + - + - - - 'TwitterList.Delete(OAuthTokens, string, string)' - username - 'username' + + + 'TwitterFriendship.Create(OAuthTokens, string)' userName + 'userName' + username - - - - - - + - - - 'TwitterList.GetList(OAuthTokens, string, long)' - username - 'username' + + + 'TwitterFriendship.Create(OAuthTokens, string, CreateFriendshipOptions)' userName + 'userName' + username - - - - - - + - - - 'TwitterList.GetList(OAuthTokens, string, string)' - username - 'username' + + + 'TwitterFriendship.Delete(OAuthTokens, string)' userName + 'userName' + username - - - - - - + - - - 'TwitterList.GetLists(OAuthTokens, string)' - username - 'username' + + + 'TwitterFriendship.Delete(OAuthTokens, string, OptionalProperties)' userName + 'userName' + username - - - - - - + - - - 'TwitterList.GetStatuses(OAuthTokens, string, long)' - username - 'username' - userName + + + 'TwitterFriendship.Show(string, string)' + UserName + 'sourceUserName' + Username + + + 'TwitterFriendship.Show(string, string)' + UserName + 'targetUserName' + Username - - - - - - + - - - 'TwitterList.New(OAuthTokens, string, string, bool, string)' - username - 'username' - userName + + + 'TwitterFriendship.Show(OAuthTokens, string)' + UserName + 'targetUserName' + Username - - - - - - + - - - 'TwitterList.Update(OAuthTokens, string, long, string, bool, string)' - username - 'username' - userName + + + 'TwitterFriendship.Show(OAuthTokens, string, string)' + UserName + 'sourceUserName' + Username + + + 'TwitterFriendship.Show(OAuthTokens, string, string)' + UserName + 'targetUserName' + Username + + + + + + + + + 'TwitterFriendship.Show(OAuthTokens, string, string, OptionalProperties)' + UserName + 'sourceUserName' + Username + + + 'TwitterFriendship.Show(OAuthTokens, string, string, OptionalProperties)' + UserName + 'targetUserName' + Username + + + + + + + + + 'TwitterFriendship.Show(OAuthTokens, string, OptionalProperties)' + UserName + 'targetUserName' + Username - - - - - @@ -303,79 +424,117 @@ - + + + + + 'TwitterStream' + Stream + + + + + 'TwitterStream' + + + - + - - - 'TwitterUser.DeleteFriendship(OAuthTokens, string)' - username - 'username' - userName + + + 'TwitterStream.Dispose()' + 'GC.SuppressFinalize(object)' + + + + + 'TwitterStream.Dispose()' - - - - - - + - - - 'TwitterUser.GetFriendship(string, string)' - username - 'username1' - userName + + + 'TwitterStream.StartStream()' + 'WebRequest.Create(Uri)' + 'WebRequest.Create(string)' - - 'TwitterUser.GetFriendship(string, string)' - username - 'username2' - userName + + 'TwitterStream.StartStream()' + 'WebRequest.Create(Uri)' + 'WebRequest.Create(string)' - - - - - - + - - - 'TwitterUser.GetUser(string)' - username - 'username' - userName + + + 'TwitterStatusReceivedHandler' + + + 'TwitterStatusReceivedHandler' + + + + + 'TwitterStatusReceivedHandler' + EventHandler - - - - - - + + + + + - - - 'TwitterUser.GetUser(OAuthTokens, string)' - username - 'username' - userName + + + ToMe + 'TwitterTimeline.RetweetedToMe(OAuthTokens)' + Tome + + + + + + + + + ToMe + 'TwitterTimeline.RetweetedToMe(OAuthTokens, TimelineOptions)' + Tome + + + + + + + + + + + + + 'string.Format(string, object)' + 'TwitterTrendTimeframe.DeserializeJson(JObject)' + 'string.Format(IFormatProvider, string, params object[])' + + + + + + + + + 'TwitterTrendTimeframe.Trends' - - - - - @@ -395,13 +554,104 @@ - + + + + + + + + + + + 'string.Format(string, object)' + 'CreateFavoriteCommand.CreateFavoriteCommand(OAuthTokens, decimal, OptionalProperties)' + 'string.Format(IFormatProvider, string, params object[])' + + + + + + + + + + + + + 'CreateFriendshipCommand.CreateFriendshipCommand(OAuthTokens, decimal, CreateFriendshipOptions)' + userId + 'message' + 'ArgumentException' + + + + + + + + + + + + + 'string.Format(string, object)' + 'ListMembershipsCommand.ListMembershipsCommand(OAuthTokens, string, OptionalProperties)' + 'string.Format(IFormatProvider, string, params object[])' + + + + + + + + + + + + + 'ReverseGeocodeCommand.Deserialize(JObject)' + 'double[,]' + + + 'ReverseGeocodeCommand.Deserialize(JObject)' + 'double[,]' + + + + + + + - + - + + + 'UpdateListCommand.UpdateListCommand(OAuthTokens, string, long, UpdateListOptions)' + requestTokens + 'paramName' + 'ArgumentNullException' + + + + + + + + + + + + + 'double.ToString()' + 'UpdateStatusCommand.Init()' + 'double.ToString(IFormatProvider)' + - 'UsageStatsCollector.ReportCallAsync(string)' + 'double.ToString()' + 'UpdateStatusCommand.Init()' + 'double.ToString(IFormatProvider)' @@ -421,28 +671,72 @@ For our project, "username" will be the standard naming convention. - For our project, "username" will be the standard naming convention. - For our project, "username" will be the standard naming convention. - For our project, "username" will be the standard naming convention. - For our project, "username" will be the standard naming convention. - "username" is correct for our project. Wrapper classes are instantiated by the deserializer, so do not show up in the assembly. Wrapper classes are instantiated by the deserializer, so do not show up in the assembly. - OAuth is a proper noun. - - {0} appears to have no upstream public or protected callers. - {0} is an internal class that is apparently never instantiated. If so, remove the code from the assembly. If this class is intended to contain only static methods, consider adding a private constructor to prevent the compiler from generating a default constructor. + + Change {0} to call {1}. This will prevent unnecessary finalization of the object once it has been disposed and it has fallen out of scope. + + + Change {0} to be read-only by removing the property setter. + In member {0}, the discrete term '{1}' in parameter name {2} should be expressed as a compound word, '{3}'. + In member {0}, the compound word '{1}' in parameter name {2} exists as a discrete term. If your usage is intended to be single word, case it as '{3}' or strip the first token entirely if it represents any sort of Hungarian notation. The compound word '{0}' in member name {1} exists as a discrete term. If your usage is intended to be single word, case it as '{2}' or strip the first token entirely if it represents any sort of Hungarian notation. The compound word '{0}' in type name {1} exists as a discrete term. If your usage is intended to be single word, case it as '{2}'. + + Declare the first parameter of {0} as an object named 'sender'. + Declare the second parameter of {0} as an EventArgs, or an instance of a type that extends EventArgs, named 'e'. + + + {0} creates an exception of type {1}, an exception type that should not be raised in a property. If this exception instance might be raised, use a different exception type, convert this property into a method, or change this property's logic so that it no longer raises an exception. + + + Correct the casing of '{0}' in member name {1} by changing it to '{2}'. + + + Correct the spelling of '{0}' in member name {1} or remove it entirely if it represents any sort of Hungarian notation. + + + Rename {0} to end in '{1}'. + + + Rename type name {0} so that it does not end in '{1}'. + + + Modify {0} so that it calls Dispose(true), then calls GC.SuppressFinalize on the current object instance ('this' or 'Me' in Visual Basic), and then returns. + Provide an overridable implementation of Dispose(bool) on {0} or mark the type as sealed. A call to Dispose(false) should only clean up native resources. A call to Dispose(true) should clean up both managed and native resources. + + + Method {0} passes parameter name '{1}' as the {2} argument to a {3} constructor. Replace this argument with a descriptive message and pass the parameter name in the correct position. + Method {0} passes '{1}' as the {2} argument to a {3} constructor. Replace this argument with one of the method's parameter names. Note that the provided parameter name should have the exact casing as declared on the method. + + + Modify {0} to call {1} instead of {2}. + + + {0} uses a multidimensional array of {1}. Replace it with a jagged array if possible. + {0} is a multidimensional array. Replace it with a jagged array if possible. + + + Change {0} to return a collection or make it a method. + + + The property name {0} is confusing given the existence of inherited method {1}. Rename or remove this property. + + + Because the behavior of {0} could vary based on the current user's locale settings, replace this call in {1} with a call to {2}. If the result of {2} will be displayed to the user, specify 'CultureInfo.CurrentCulture' as the 'CultureInfo' parameter. Otherwise, if the result will be stored and accessed by software, such as when it is persisted to disk or to a database, specify 'CultureInfo.InvariantCulture'. + + + Because the behavior of {0} could vary based on the current user's locale settings, replace this call in {1} with a call to {2}. If the result of {2} will be displayed to the user, specify 'CultureInfo.CurrentCulture' as the 'IFormatProvider' parameter. Otherwise, if the result will be stored and accessed by software, such as when it is persisted to disk or to a database, specify 'CultureInfo.InvariantCulture'. + Change the return type of {0} from string to System.Uri.