xunit.extensions A wrapper for Assert which is used by . Verifies that a collection contains a given object. The type of the object to be verified The object expected to be in the collection The collection to be inspected Thrown when the object is not present in the collection Verifies that a collection contains a given object, using an equality comparer. The type of the object to be verified The object expected to be in the collection The collection to be inspected The comparer used to equate objects in the collection with the expected object Thrown when the object is not present in the collection Verifies that a string contains a given sub-string, using the current culture. The sub-string expected to be in the string The string to be inspected Thrown when the sub-string is not present inside the string Verifies that a string contains a given sub-string, using the given comparison type. The sub-string expected to be in the string The string to be inspected The type of string comparison to perform Thrown when the sub-string is not present inside the string Verifies that a collection does not contain a given object. The type of the object to be compared The object that is expected not to be in the collection The collection to be inspected Thrown when the object is present inside the container Verifies that a collection does not contain a given object, using an equality comparer. The type of the object to be compared The object that is expected not to be in the collection The collection to be inspected The comparer used to equate objects in the collection with the expected object Thrown when the object is present inside the container Verifies that a string does not contain a given sub-string, using the current culture. The sub-string which is expected not to be in the string The string to be inspected Thrown when the sub-string is present inside the string Verifies that a string does not contain a given sub-string, using the current culture. The sub-string which is expected not to be in the string The string to be inspected The type of string comparison to perform Thrown when the sub-string is present inside the given string Verifies that a block of code does not throw any exceptions. A delegate to the code to be tested Verifies that a collection is empty. The collection to be inspected Thrown when the collection is null Thrown when the collection is not empty Verifies that two objects are equal, using a default comparer. The type of the objects to be compared The expected value The value to be compared against Thrown when the objects are not equal Verifies that two objects are equal, using a custom equatable comparer. The type of the objects to be compared The expected value The value to be compared against The comparer used to compare the two objects Thrown when the objects are not equal Verifies that two values are equal, within the number of decimal places given by . The expected value The value to be compared against The number of decimal places (valid values: 0-15) Thrown when the values are not equal Verifies that two values are equal, within the number of decimal places given by . The expected value The value to be compared against The number of decimal places (valid values: 0-15) Thrown when the values are not equal Verifies that the condition is false. The condition to be tested Thrown if the condition is not false Verifies that the condition is false. The condition to be tested The message to show when the condition is not false Thrown if the condition is not false Verifies that a value is within a given range. The type of the value to be compared The actual value to be evaluated The (inclusive) low value of the range The (inclusive) high value of the range Thrown when the value is not in the given range Verifies that a value is within a given range, using a comparer. The type of the value to be compared The actual value to be evaluated The (inclusive) low value of the range The (inclusive) high value of the range The comparer used to evaluate the value's range Thrown when the value is not in the given range Verifies that an object is of the given type or a derived type. The type the object should be The object to be evaluated The object, casted to type T when successful Thrown when the object is not the given type Verifies that an object is of the given type or a derived type. The type the object should be The object to be evaluated Thrown when the object is not the given type Verifies that an object is not exactly the given type. The type the object should not be The object to be evaluated Thrown when the object is the given type Verifies that an object is not exactly the given type. The type the object should not be The object to be evaluated Thrown when the object is the given type Verifies that an object is exactly the given type (and not a derived type). The type the object should be The object to be evaluated The object, casted to type T when successful Thrown when the object is not the given type Verifies that an object is exactly the given type (and not a derived type). The type the object should be The object to be evaluated Thrown when the object is not the given type Verifies that a collection is not empty. The collection to be inspected Thrown when a null collection is passed Thrown when the collection is empty Verifies that two objects are not equal, using a default comparer. The type of the objects to be compared The expected object The actual object Thrown when the objects are equal Verifies that two objects are not equal, using a custom equality comparer. The type of the objects to be compared The expected object The actual object The comparer used to examine the objects Thrown when the objects are equal Verifies that a value is not within a given range, using the default comparer. The type of the value to be compared The actual value to be evaluated The (inclusive) low value of the range The (inclusive) high value of the range Thrown when the value is in the given range Verifies that a value is not within a given range, using a comparer. The type of the value to be compared The actual value to be evaluated The (inclusive) low value of the range The (inclusive) high value of the range The comparer used to evaluate the value's range Thrown when the value is in the given range Verifies that an object reference is not null. The object to be validated Thrown when the object is not null Verifies that two objects are not the same instance. The expected object instance The actual object instance Thrown when the objects are the same instance Verifies that an object reference is null. The object to be inspected Thrown when the object reference is not null Verifies that two objects are the same instance. The expected object instance The actual object instance Thrown when the objects are not the same instance Verifies that the given collection contains only a single element of the given type. The collection. The single item in the collection. Thrown when the collection does not contain exactly one element. Verifies that the given collection contains only a single element of the given type. The collection type. The collection. The single item in the collection. Thrown when the collection does not contain exactly one element. Verifies that the exact exception is thrown (and not a derived exception type). The type of the exception expected to be thrown A delegate to the code to be tested The exception that was thrown, when successful Thrown when an exception was not thrown, or when an exception of the incorrect type is thrown Verifies that the exact exception is thrown (and not a derived exception type). Generally used to test property accessors. The type of the exception expected to be thrown A delegate to the code to be tested The exception that was thrown, when successful Thrown when an exception was not thrown, or when an exception of the incorrect type is thrown Verifies that the exact exception is thrown (and not a derived exception type). The type of the exception expected to be thrown A delegate to the code to be tested The exception that was thrown, when successful Thrown when an exception was not thrown, or when an exception of the incorrect type is thrown Verifies that the exact exception is thrown (and not a derived exception type). Generally used to test property accessors. The type of the exception expected to be thrown A delegate to the code to be tested The exception that was thrown, when successful Thrown when an exception was not thrown, or when an exception of the incorrect type is thrown Verifies that an expression is true. The condition to be inspected Thrown when the condition is false Verifies that an expression is true. The condition to be inspected The message to be shown when the condition is false Thrown when the condition is false A class which can be derived from for test classes, which bring an overridable version of Assert (using the class. Gets a class which provides assertions. Apply this attribute to your test method to replace the with another role. Replaces the identity of the current thread with . The role's name Restores the original . The method under test Stores the current and replaces it with a new role identified in constructor. The method under test Gets the name. Apply this attribute to your test method to automatically create a that is rolled back when the test is finished. Rolls back the transaction. Creates the transaction. Gets or sets the isolation level of the transaction. Default value is .Unspecified. Gets or sets the scope option for the transaction. Default value is .Required. Gets or sets the timeout of the transaction, in milliseconds. By default, the transaction will not timeout. Provides a data source for a data theory, with the data coming from a class which must implement IEnumerable<object[]>. Abstract attribute which represents a data source for a data theory. Data source providers derive from this attribute and implement GetData to return the data for the theory. Returns the data to be used to test the theory. The parameter is provided so that the test data can be converted to the destination parameter type when necessary. Generally, data should NOT be automatically converted, UNLESS the source data format does not have rich types (for example, all numbers in Excel spreadsheets are returned as even if they are integers). Derivers of this class should NOT throw exceptions for mismatched types or mismatched number of parameters; the test framework will throw these exceptions at the correct time. The method that is being tested The types of the parameters for the test method The theory data Initializes a new instance of the class. The class that provides the data. Gets the type of the class that provides the data. Represents an implementation of which uses an instance of to get the data for a decorated test method. Converts a parameter to its destination parameter type, if necessary. The parameter value The destination parameter type (null if not known) The converted parameter value Gets the data adapter to be used to retrieve the test data. Provides a data source for a data theory, with the data coming from inline values. Initializes a new instance of the class. The data values to pass to the theory Returns the data to be used to test the theory. The method that is being tested The types of the parameters for the test method The theory data, in table form Gets the data values. Provides a data source for a data theory, with the data coming from an OLEDB connection. Creates a new instance of . The OLEDB connection string to the data The SELECT statement used to return the data for the theory Gets the connection string. Gets the select statement. Provides a data source for a data theory, with the data coming from a public static property on the test class. The property must return IEnumerable<object[]> with the test data. Creates a new instance of / The name of the public static property on the test class that will provide the test data Returns the data to be used to test the theory. The method that is being tested The types of the parameters for the test method The theory data, in table form Gets the property name. Provides a data source for a data theory, with the data coming a Microsoft SQL Server. Creates a new instance of , using a trusted connection. The server name of the Microsoft SQL Server The database name The SQL SELECT statement to return the data for the data theory Creates a new instance of , using the provided username and password. The server name of the Microsoft SQL Server The database name The username for the server The password for the server The SQL SELECT statement to return the data for the data theory Provides a data source for a data theory, with the data coming a Microsoft Excel (.xls) spreadsheet. Creates a new instance of . The filename of the XLS spreadsheet file; if the filename provided is relative, then it is relative to the location of xunit.extensions.dll. The SELECT statement that returns the data for the theory A wrapper around the static operations on which allows time to be frozen using the . The clock begins in the thawed state; that is, calls to , , and return current (non-frozen) values. Freezes the clock with the current time. Until is called, all calls to , , and will return the exact same values. Freezes the clock with the given date and time, considered to be local time. Until is called, all calls to , , and will return the exact same values. The local date and time to freeze to Freezes the clock with the given date and time, considered to be Coordinated Universal Time (UTC). Until is called, all calls to , , and will return the exact same values. The UTC date and time to freeze to Thaws the clock so that , , and return normal values. Gets a object that is set to the current date and time on this computer, expressed as the local time. Gets the current date. Gets a object that is set to the current date and time on this computer, expressed as the Coordinated Universal Time (UTC). Apply this attribute to your test method to freeze the time represented by the class. Freeze the clock with the current date and time. Freeze the clock with the given date, considered to be local time. The frozen year The frozen month The frozen day Freeze the clock with the given date and time, considered to be in local time. The frozen year The frozen month The frozen day The frozen hour The frozen minute The frozen second Freeze the clock with the given date and time, with the given kind of time. The frozen year The frozen month The frozen day The frozen hour The frozen minute The frozen second The frozen time kind Thaws the clock. The method under test Freezes the clock. The method under test Marks a test method as being a data theory. Data theories are tests which are fed various bits of data from a data source, mapping to parameters on the test method. If the data source contains multiple rows, then the test method is executed multiple times (once with each data row). Creates instances of which represent individual intended invocations of the test method, one per data row in the data source. The method under test An enumerator through the desired test method invocations Represents a single invocation of a data theory test method. Creates a new instance of . The method under test The parameters to be passed to the test method Creates a new instance of based on a generic theory. The method under test The parameters to be passed to the test method The generic types that were used to resolved the generic method. Gets the parameter values that are passed to the test method. Apply to a test method to trace the method begin and end. This method is called before the test method is executed. The method under test This method is called after the test method is executed. The method under test