Microsoft.VisualStudio.QualityTools.UnitTesting.Silverlight
UrlToTest specifies the url that should be requested to give context to the test.
An unused attribute.
Gets the URL to test.
AspNetDevelopmentServer specifies the settings to be used for the
ASP.NET Development Server for the test.
Initializes the AspNetDevelopmentServerAttribute.
The name.
The path to web app.
Initializes the AspNetDevelopmentServerAttribute.
The name.
The path to web app.
The web app root.
Gets the name.
Gets the PathToWebApp.
Gets the web app root.
AspNetDevelopmentServerHost specifies the settings to be used when
ASP.NET Development Server is the host server for the test.
Initializes the AspNetDevelopmentServerHostAttribute.
The path to the web app.
Initializes the AspNetDevelopmentServerHostAttribute.
The path to the web app.
The web app root.
Gets the path to the web application.
Gets the WebAppRoot.
For ASP.NET sites that require basic authentication, specify the
user name and password using the Credential attribute.
WARNING: The password is stored in plain text in source code
and in the compiled assembly. Restrict access to the source code
and assembly to protect this sensitive information.
Specify the user name and password needed to access the web site under test.
The user name.
The password. WARNING: The password is stored in plain text in source code
and in the compiled assembly. Restrict access to the source code and assembly
to protect this sensitive information.
Specify the user name, password, and domain needed to access the web site under test.
The user name.
The password. WARNING: The password is stored in plain text in source code
and in the compiled assembly. Restrict access to the source code and assembly
to protect this sensitive information.
The domain.
Gets the user name.
Gets the password.
Gets the domain.
Base class for Framework Exceptions, provides localization trick so that messages are in HA locale.
Initializes a new UnitTestAssertException.
Initializes UnitTestAssertException.
The message.
Gets the Message string.
AssertFailedException class. Used to indicate failure for a test case
Initializes a new AssertFailedException.
The message.
AssertFailedException
The message.
The inner exception.
The AssertInconclusiveException class.
Initializes a new AssertInconclusiveException.
The message.
Initializes a new AssertInconclusiveException.
The message.
The inner exception.
Initializes a new AssertInconclusiveException.
InternalTestFailureException class. Used to indicate internal failure
for a test case.
Initializes a new InternalTestFailureException.
The message.
Initializes a new InternalTestFailureException.
The message.
The inner exception.
Initializes a new InternalTestFailureException.
A collection of helper classes to test various conditions within
unit tests. If the condition being tested is not met, an exception
is thrown.
Tests whether the specified condition is true and throws an exception
if the condition is false.
The condition the test expects to be true.
Thrown if is false.
Tests whether the specified condition is true and throws an exception
if the condition is false.
The condition the test expects to be true.
The message to include in the exception when
is false. The message is shown in test results.
Thrown if is false.
Tests whether the specified condition is true and throws an exception
if the condition is false.
The condition the test expects to be true.
The message to include in the exception when
is false. The message is shown in test results.
An array of parameters to use when formatting .
Thrown if is false.
Tests whether the specified condition is false and throws an exception
if the condition is true.
The condition the test expects to be false.
Thrown if is true.
Tests whether the specified condition is false and throws an exception
if the condition is true.
The condition the test expects to be false.
The message to include in the exception when
is true. The message is shown in test results.
Thrown if is true.
Tests whether the specified condition is false and throws an exception
if the condition is true.
The condition the test expects to be false.
The message to include in the exception when
is true. The message is shown in test results.
An array of parameters to use when formatting .
Thrown if is true.
Tests whether the specified object is null and throws an exception
if it is not.
The object the test expects to be null.
Thrown if is not null.
Tests whether the specified object is null and throws an exception
if it is not.
The object the test expects to be null.
The message to include in the exception when
is not null. The message is shown in test results.
Thrown if is not null.
Tests whether the specified object is null and throws an exception
if it is not.
The object the test expects to be null.
The message to include in the exception when
is not null. The message is shown in test results.
An array of parameters to use when formatting .
Thrown if is not null.
Tests whether the specified object is non-null and throws an exception
if it is null.
The object the test expects not to be null.
Thrown if is null.
Tests whether the specified object is non-null and throws an exception
if it is null.
The object the test expects not to be null.
The message to include in the exception when
is null. The message is shown in test results.
Thrown if is null.
Tests whether the specified object is non-null and throws an exception
if it is null.
The object the test expects not to be null.
The message to include in the exception when
is null. The message is shown in test results.
An array of parameters to use when formatting .
Thrown if is null.
Tests whether the specified objects both refer to the same object and
throws an exception if the two inputs do not refer to the same object.
The first object to compare. This is the value the test expects.
The second object to compare. This is the value produced by the code under test.
Thrown if does not refer to the same object
as .
Tests whether the specified objects both refer to the same object and
throws an exception if the two inputs do not refer to the same object.
The first object to compare. This is the value the test expects.
The second object to compare. This is the value produced by the code under test.
The message to include in the exception when
is not the same as . The message is shown
in test results.
Thrown if does not refer to the same object
as .
Tests whether the specified objects both refer to the same object and
throws an exception if the two inputs do not refer to the same object.
The first object to compare. This is the value the test expects.
The second object to compare. This is the value produced by the code under test.
The message to include in the exception when
is not the same as . The message is shown
in test results.
An array of parameters to use when formatting .
Thrown if does not refer to the same object
as .
Tests whether the specified objects refer to different objects and
throws an exception if the two inputs refer to the same object.
The first object to compare. This is the value the test expects not
to match .
The second object to compare. This is the value produced by the code under test.
Thrown if refers to the same object
as .
Tests whether the specified objects refer to different objects and
throws an exception if the two inputs refer to the same object.
The first object to compare. This is the value the test expects not
to match .
The second object to compare. This is the value produced by the code under test.
The message to include in the exception when
is the same as . The message is shown in
test results.
Thrown if refers to the same object
as .
Tests whether the specified objects refer to different objects and
throws an exception if the two inputs refer to the same object.
The first object to compare. This is the value the test expects not
to match .
The second object to compare. This is the value produced by the code under test.
The message to include in the exception when
is the same as . The message is shown in
test results.
An array of parameters to use when formatting .
Thrown if refers to the same object
as .
Tests whether the specified values are equal and throws an exception
if the two values are not equal. Different numeric types are treated
as unequal even if the logical values are equal. 42L is not equal to 42.
The type of values to compare.
The first value to compare. This is the value the tests expects.
The second value to compare. This is the value produced by the code under test.
Thrown if is not equal to
.
Tests whether the specified values are equal and throws an exception
if the two values are not equal. Different numeric types are treated
as unequal even if the logical values are equal. 42L is not equal to 42.
The type of values to compare.
The first value to compare. This is the value the tests expects.
The second value to compare. This is the value produced by the code under test.
The message to include in the exception when
is not equal to . The message is shown in
test results.
Thrown if is not equal to
.
Tests whether the specified values are equal and throws an exception
if the two values are not equal. Different numeric types are treated
as unequal even if the logical values are equal. 42L is not equal to 42.
The type of values to compare.
The first value to compare. This is the value the tests expects.
The second value to compare. This is the value produced by the code under test.
The message to include in the exception when
is not equal to . The message is shown in
test results.
An array of parameters to use when formatting .
Thrown if is not equal to
.
Tests whether the specified values are unequal and throws an exception
if the two values are equal. Different numeric types are treated
as unequal even if the logical values are equal. 42L is not equal to 42.
The type of values to compare.
The first value to compare. This is the value the test expects not
to match .
The second value to compare. This is the value produced by the code under test.
Thrown if is equal to .
Tests whether the specified values are unequal and throws an exception
if the two values are equal. Different numeric types are treated
as unequal even if the logical values are equal. 42L is not equal to 42.
The type of values to compare.
The first value to compare. This is the value the test expects not
to match .
The second value to compare. This is the value produced by the code under test.
The message to include in the exception when
is equal to . The message is shown in
test results.
Thrown if is equal to .
Tests whether the specified values are unequal and throws an exception
if the two values are equal. Different numeric types are treated
as unequal even if the logical values are equal. 42L is not equal to 42.
The type of values to compare.
The first value to compare. This is the value the test expects not
to match .
The second value to compare. This is the value produced by the code under test.
The message to include in the exception when
is equal to . The message is shown in
test results.
An array of parameters to use when formatting .
Thrown if is equal to .
Tests whether the specified objects are equal and throws an exception
if the two objects are not equal. Different numeric types are treated
as unequal even if the logical values are equal. 42L is not equal to 42.
The first object to compare. This is the object the tests expects.
The second object to compare. This is the object produced by the code under test.
Thrown if is not equal to
.
Tests whether the specified objects are equal and throws an exception
if the two objects are not equal. Different numeric types are treated
as unequal even if the logical values are equal. 42L is not equal to 42.
The first object to compare. This is the object the tests expects.
The second object to compare. This is the object produced by the code under test.
The message to include in the exception when
is not equal to . The message is shown in
test results.
Thrown if is not equal to
.
Tests whether the specified objects are equal and throws an exception
if the two objects are not equal. Different numeric types are treated
as unequal even if the logical values are equal. 42L is not equal to 42.
The first object to compare. This is the object the tests expects.
The second object to compare. This is the object produced by the code under test.
The message to include in the exception when
is not equal to . The message is shown in
test results.
An array of parameters to use when formatting .
Thrown if is not equal to
.
Tests whether the specified objects are unequal and throws an exception
if the two objects are equal. Different numeric types are treated
as unequal even if the logical values are equal. 42L is not equal to 42.
The first object to compare. This is the value the test expects not
to match .
The second object to compare. This is the object produced by the code under test.
Thrown if is equal to .
Tests whether the specified objects are unequal and throws an exception
if the two objects are equal. Different numeric types are treated
as unequal even if the logical values are equal. 42L is not equal to 42.
The first object to compare. This is the value the test expects not
to match .
The second object to compare. This is the object produced by the code under test.
The message to include in the exception when
is equal to . The message is shown in
test results.
Thrown if is equal to .
Tests whether the specified objects are unequal and throws an exception
if the two objects are equal. Different numeric types are treated
as unequal even if the logical values are equal. 42L is not equal to 42.
The first object to compare. This is the value the test expects not
to match .
The second object to compare. This is the object produced by the code under test.
The message to include in the exception when
is equal to . The message is shown in
test results.
An array of parameters to use when formatting .
Thrown if is equal to .
Tests whether the specified floats are equal and throws an exception
if they are not equal.
The first float to compare. This is the float the tests expects.
The second float to compare. This is the float produced by the code under test.
The required accuracy. An exception will be thrown only if
is different than
by more than .
Thrown if is not equal to
.
Tests whether the specified floats are equal and throws an exception
if they are not equal.
The first float to compare. This is the float the tests expects.
The second float to compare. This is the float produced by the code under test.
The required accuracy. An exception will be thrown only if
is different than
by more than .
The message to include in the exception when
is different than by more than
. The message is shown in test results.
Thrown if is not equal to
.
Tests whether the specified floats are equal and throws an exception
if they are not equal.
The first float to compare. This is the float the tests expects.
The second float to compare. This is the float produced by the code under test.
The required accuracy. An exception will be thrown only if
is different than
by more than .
The message to include in the exception when
is different than by more than
. The message is shown in test results.
An array of parameters to use when formatting .
Thrown if is not equal to
.
Tests whether the specified floats are unequal and throws an exception
if they are equal.
The first float to compare. This is the float the test expects not to
match .
The second float to compare. This is the float produced by the code under test.
The required accuracy. An exception will be thrown only if
is different than
by at most .
Thrown if is equal to .
Tests whether the specified floats are unequal and throws an exception
if they are equal.
The first float to compare. This is the float the test expects not to
match .
The second float to compare. This is the float produced by the code under test.
The required accuracy. An exception will be thrown only if
is different than
by at most .
The message to include in the exception when
is equal to or different by less than
. The message is shown in test results.
Thrown if is equal to .
Tests whether the specified floats are unequal and throws an exception
if they are equal.
The first float to compare. This is the float the test expects not to
match .
The second float to compare. This is the float produced by the code under test.
The required accuracy. An exception will be thrown only if
is different than
by at most .
The message to include in the exception when
is equal to or different by less than
. The message is shown in test results.
An array of parameters to use when formatting .
Thrown if is equal to .
Tests whether the specified doubles are equal and throws an exception
if they are not equal.
The first double to compare. This is the double the tests expects.
The second double to compare. This is the double produced by the code under test.
The required accuracy. An exception will be thrown only if
is different than
by more than .
Thrown if is not equal to
.
Tests whether the specified doubles are equal and throws an exception
if they are not equal.
The first double to compare. This is the double the tests expects.
The second double to compare. This is the double produced by the code under test.
The required accuracy. An exception will be thrown only if
is different than
by more than .
The message to include in the exception when
is different than by more than
. The message is shown in test results.
Thrown if is not equal to
.
Tests whether the specified doubles are equal and throws an exception
if they are not equal.
The first double to compare. This is the double the tests expects.
The second double to compare. This is the double produced by the code under test.
The required accuracy. An exception will be thrown only if
is different than
by more than .
The message to include in the exception when
is different than by more than
. The message is shown in test results.
An array of parameters to use when formatting .
Thrown if is not equal to
.
Tests whether the specified doubles are unequal and throws an exception
if they are equal.
The first double to compare. This is the double the test expects not to
match .
The second double to compare. This is the double produced by the code under test.
The required accuracy. An exception will be thrown only if
is different than
by at most .
Thrown if is equal to .
Tests whether the specified doubles are unequal and throws an exception
if they are equal.
The first double to compare. This is the double the test expects not to
match .
The second double to compare. This is the double produced by the code under test.
The required accuracy. An exception will be thrown only if
is different than
by at most .
The message to include in the exception when
is equal to or different by less than
. The message is shown in test results.
Thrown if is equal to .
Tests whether the specified doubles are unequal and throws an exception
if they are equal.
The first double to compare. This is the double the test expects not to
match .
The second double to compare. This is the double produced by the code under test.
The required accuracy. An exception will be thrown only if
is different than
by at most .
The message to include in the exception when
is equal to or different by less than
. The message is shown in test results.
An array of parameters to use when formatting .
Thrown if is equal to .
Tests whether the specified strings are equal and throws an exception
if they are not equal. The invariant culture is used for the comparison.
The first string to compare. This is the string the tests expects.
The second string to compare. This is the string produced by the code under test.
A Boolean indicating a case-sensitive or insensitive comparison. (true
indicates a case-insensitive comparison.)
Thrown if is not equal to
.
Tests whether the specified strings are equal and throws an exception
if they are not equal. The invariant culture is used for the comparison.
The first string to compare. This is the string the tests expects.
The second string to compare. This is the string produced by the code under test.
A Boolean indicating a case-sensitive or insensitive comparison. (true
indicates a case-insensitive comparison.)
The message to include in the exception when
is not equal to . The message is shown in
test results.
Thrown if is not equal to
.
Tests whether the specified strings are equal and throws an exception
if they are not equal. The invariant culture is used for the comparison.
The first string to compare. This is the string the tests expects.
The second string to compare. This is the string produced by the code under test.
A Boolean indicating a case-sensitive or insensitive comparison. (true
indicates a case-insensitive comparison.)
The message to include in the exception when
is not equal to . The message is shown in
test results.
An array of parameters to use when formatting .
Thrown if is not equal to
.
Tests whether the specified strings are equal and throws an exception
if they are not equal.
The first string to compare. This is the string the tests expects.
The second string to compare. This is the string produced by the code under test.
A Boolean indicating a case-sensitive or insensitive comparison. (true
indicates a case-insensitive comparison.)
A CultureInfo object that supplies culture-specific comparison information.
Thrown if is not equal to
.
Tests whether the specified strings are equal and throws an exception
if they are not equal.
The first string to compare. This is the string the tests expects.
The second string to compare. This is the string produced by the code under test.
A Boolean indicating a case-sensitive or insensitive comparison. (true
indicates a case-insensitive comparison.)
A CultureInfo object that supplies culture-specific comparison information.
The message to include in the exception when
is not equal to . The message is shown in
test results.
Thrown if is not equal to
.
Tests whether the specified strings are equal and throws an exception
if they are not equal.
The first string to compare. This is the string the tests expects.
The second string to compare. This is the string produced by the code under test.
A Boolean indicating a case-sensitive or insensitive comparison. (true
indicates a case-insensitive comparison.)
A CultureInfo object that supplies culture-specific comparison information.
The message to include in the exception when
is not equal to . The message is shown in
test results.
An array of parameters to use when formatting .
Thrown if is not equal to
.
Tests whether the specified strings are unequal and throws an exception
if they are equal. The invariant culture is used for the comparison.
The first string to compare. This is the string the test expects not to
match .
The second string to compare. This is the string produced by the code under test.
A Boolean indicating a case-sensitive or insensitive comparison. (true
indicates a case-insensitive comparison.)
Thrown if is equal to .
Tests whether the specified strings are unequal and throws an exception
if they are equal. The invariant culture is used for the comparison.
The first string to compare. This is the string the test expects not to
match .
The second string to compare. This is the string produced by the code under test.
A Boolean indicating a case-sensitive or insensitive comparison. (true
indicates a case-insensitive comparison.)
The message to include in the exception when
is equal to . The message is shown in
test results.
Thrown if is equal to .
Tests whether the specified strings are unequal and throws an exception
if they are equal. The invariant culture is used for the comparison.
The first string to compare. This is the string the test expects not to
match .
The second string to compare. This is the string produced by the code under test.
A Boolean indicating a case-sensitive or insensitive comparison. (true
indicates a case-insensitive comparison.)
The message to include in the exception when
is equal to . The message is shown in
test results.
An array of parameters to use when formatting .
Thrown if is equal to .
Tests whether the specified strings are unequal and throws an exception
if they are equal.
The first string to compare. This is the string the test expects not to
match .
The second string to compare. This is the string produced by the code under test.
A Boolean indicating a case-sensitive or insensitive comparison. (true
indicates a case-insensitive comparison.)
A CultureInfo object that supplies culture-specific comparison information.
Thrown if is equal to .
Tests whether the specified strings are unequal and throws an exception
if they are equal.
The first string to compare. This is the string the test expects not to
match .
The second string to compare. This is the string produced by the code under test.
A Boolean indicating a case-sensitive or insensitive comparison. (true
indicates a case-insensitive comparison.)
A CultureInfo object that supplies culture-specific comparison information.
The message to include in the exception when
is equal to . The message is shown in
test results.
Thrown if is equal to .
Tests whether the specified strings are unequal and throws an exception
if they are equal.
The first string to compare. This is the string the test expects not to
match .
The second string to compare. This is the string produced by the code under test.
A Boolean indicating a case-sensitive or insensitive comparison. (true
indicates a case-insensitive comparison.)
A CultureInfo object that supplies culture-specific comparison information.
The message to include in the exception when
is equal to . The message is shown in
test results.
An array of parameters to use when formatting .
Thrown if is equal to .
Tests whether the specified object is an instance of the expected
type and throws an exception if the expected type is not in the
inheritance hierarchy of the object.
The object the test expects to be of the specified type.
The expected type of .
Thrown if is null or
is not in the inheritance hierarchy
of .
Tests whether the specified object is an instance of the expected
type and throws an exception if the expected type is not in the
inheritance hierarchy of the object.
The object the test expects to be of the specified type.
The expected type of .
The message to include in the exception when
is not an instance of . The message is
shown in test results.
Thrown if is null or
is not in the inheritance hierarchy
of .
Tests whether the specified object is an instance of the expected
type and throws an exception if the expected type is not in the
inheritance hierarchy of the object.
The object the test expects to be of the specified type.
The expected type of .
The message to include in the exception when
is not an instance of . The message is
shown in test results.
An array of parameters to use when formatting .
Thrown if is null or
is not in the inheritance hierarchy
of .
Tests whether the specified object is not an instance of the wrong
type and throws an exception if the specified type is in the
inheritance hierarchy of the object.
The object the test expects not to be of the specified type.
The type that should not be.
Thrown if is not null and
is in the inheritance hierarchy
of .
Tests whether the specified object is not an instance of the wrong
type and throws an exception if the specified type is in the
inheritance hierarchy of the object.
The object the test expects not to be of the specified type.
The type that should not be.
The message to include in the exception when
is an instance of . The message is shown
in test results.
Thrown if is not null and
is in the inheritance hierarchy
of .
Tests whether the specified object is not an instance of the wrong
type and throws an exception if the specified type is in the
inheritance hierarchy of the object.
The object the test expects not to be of the specified type.
The type that should not be.
The message to include in the exception when
is an instance of . The message is shown
in test results.
An array of parameters to use when formatting .
Thrown if is not null and
is in the inheritance hierarchy
of .
Throws an AssertFailedException.
Always thrown.
Throws an AssertFailedException.
The message to include in the exception. The message is shown in
test results.
Always thrown.
Throws an AssertFailedException.
The message to include in the exception. The message is shown in
test results.
An array of parameters to use when formatting .
Always thrown.
Throws an AssertInconclusiveException.
Always thrown.
Throws an AssertInconclusiveException.
The message to include in the exception. The message is shown in
test results.
Always thrown.
Throws an AssertInconclusiveException.
The message to include in the exception. The message is shown in
test results.
An array of parameters to use when formatting .
Always thrown.
Helper function that creates and throws an AssertionFailedException.
name of the assertion throwing an exception.
message describing conditions for assertion failure.
The parameters.
Checks the parameter for valid conditions
The parameter.
The assertion name.
The parameter name.
The message.
The parameters.
Safely converts an object to a string, handling null values and null characters.
Null values are converted to "(null)". Null characters are converted to "\\0".
The object to convert to a string.
The converted string.
Replaces null characters ('\0') with "\\0".
The string to search.
The converted string with null characters replaced by "\\0".
An exception from reflection will always be a TargetInvocationException - however
the goal of Private Accessors is to be seamless to the original code.
The only problem with throwing the inner exception is that the stack trace will
be overwritten. From here we register the stack trace of the inner exception
and then throw it. The Unit Test Adapter will then later rebuild the stack
from the cached shadow information plus the remaining stack from this throw.
A collection of helper classes to test various conditions associated
with collections within unit tests. If the condition being tested is not
met, an exception is thrown.
Tests whether the specified collection contains the specified element
and throws an exception if the element is not in the collection.
The collection in which to search for the element.
The element that is expected to be in the collection.
Thrown if is not found in
.
Tests whether the specified collection contains the specified element
and throws an exception if the element is not in the collection.
The collection in which to search for the element.
The element that is expected to be in the collection.
The message to include in the exception when
is not in . The message is shown in
test results.
Thrown if is not found in
.
Tests whether the specified collection contains the specified element
and throws an exception if the element is not in the collection.
The collection in which to search for the element.
The element that is expected to be in the collection.
The message to include in the exception when
is not in . The message is shown in
test results.
An array of parameters to use when formatting .
Thrown if is not found in
.
Tests whether the specified collection does not contain the specified
element and throws an exception if the element is in the collection.
The collection in which to search for the element.
The element that is expected not to be in the collection.
Thrown if is found in
.
Tests whether the specified collection does not contain the specified
element and throws an exception if the element is in the collection.
The collection in which to search for the element.
The element that is expected not to be in the collection.
The message to include in the exception when
is in . The message is shown in test
results.
Thrown if is found in
.
Tests whether the specified collection does not contain the specified
element and throws an exception if the element is in the collection.
The collection in which to search for the element.
The element that is expected not to be in the collection.
The message to include in the exception when
is in . The message is shown in test
results.
An array of parameters to use when formatting .
Thrown if is found in
.
Tests whether all items in the specified collection are non-null and throws
an exception if any element is null.
The collection in which to search for null elements.
Thrown if a null element is found in .
Tests whether all items in the specified collection are non-null and throws
an exception if any element is null.
The collection in which to search for null elements.
The message to include in the exception when
contains a null element. The message is shown in test results.
Thrown if a null element is found in .
Tests whether all items in the specified collection are non-null and throws
an exception if any element is null.
The collection in which to search for null elements.
The message to include in the exception when
contains a null element. The message is shown in test results.
An array of parameters to use when formatting .
Thrown if a null element is found in .
Tests whether all items in the specified collection are unique or not and
throws if any two elements in the collection are equal.
The collection in which to search for duplicate elements.
Thrown if a two or more equal elements are found in
.
Tests whether all items in the specified collection are unique or not and
throws if any two elements in the collection are equal.
The collection in which to search for duplicate elements.
The message to include in the exception when
contains at least one duplicate element. The message is shown in
test results.
Thrown if a two or more equal elements are found in
.
Tests whether all items in the specified collection are unique or not and
throws if any two elements in the collection are equal.
The collection in which to search for duplicate elements.
The message to include in the exception when
contains at least one duplicate element. The message is shown in
test results.
An array of parameters to use when formatting .
Thrown if a two or more equal elements are found in
.
Tests whether one collection is a subset of another collection and
throws an exception if any element in the subset is not also in the
superset.
The collection expected to be a subset of .
The collection expected to be a superset of
Thrown if an element in is not found in
.
Tests whether one collection is a subset of another collection and
throws an exception if any element in the subset is not also in the
superset.
The collection expected to be a subset of .
The collection expected to be a superset of
The message to include in the exception when an element in
is not found in .
The message is shown in test results.
Thrown if an element in is not found in
.
Tests whether one collection is a subset of another collection and
throws an exception if any element in the subset is not also in the
superset.
The collection expected to be a subset of .
The collection expected to be a superset of
The message to include in the exception when an element in
is not found in .
The message is shown in test results.
An array of parameters to use when formatting .
Thrown if an element in is not found in
.
Tests whether one collection is not a subset of another collection and
throws an exception if all elements in the subset are also in the
superset.
The collection expected not to be a subset of .
The collection expected not to be a superset of
Thrown if every element in is also found in
.
Tests whether one collection is not a subset of another collection and
throws an exception if all elements in the subset are also in the
superset.
The collection expected not to be a subset of .
The collection expected not to be a superset of
The message to include in the exception when every element in
is also found in .
The message is shown in test results.
Thrown if every element in is also found in
.
Tests whether one collection is not a subset of another collection and
throws an exception if all elements in the subset are also in the
superset.
The collection expected not to be a subset of .
The collection expected not to be a superset of
The message to include in the exception when every element in
is also found in .
The message is shown in test results.
An array of parameters to use when formatting .
Thrown if every element in is also found in
.
Tests whether two collections contain the same elements and throws an
exception if either collection contains an element not in the other
collection.
The first collection to compare. This contains the elements the test
expects.
The second collection to compare. This is the collection produced by
the code under test.
Thrown if an element was found in one of the collections but not
the other.
Tests whether two collections contain the same elements and throws an
exception if either collection contains an element not in the other
collection.
The first collection to compare. This contains the elements the test
expects.
The second collection to compare. This is the collection produced by
the code under test.
The message to include in the exception when an element was found
in one of the collections but not the other. The message is shown
in test results.
Thrown if an element was found in one of the collections but not
the other.
Tests whether two collections contain the same elements and throws an
exception if either collection contains an element not in the other
collection.
The first collection to compare. This contains the elements the test
expects.
The second collection to compare. This is the collection produced by
the code under test.
The message to include in the exception when an element was found
in one of the collections but not the other. The message is shown
in test results.
An array of parameters to use when formatting .
Thrown if an element was found in one of the collections but not
the other.
Tests whether two collections contain the different elements and throws an
exception if the two collections contain identical elements without regard
to order.
The first collection to compare. This contains the elements the test
expects to be different than the actual collection.
The second collection to compare. This is the collection produced by
the code under test.
Thrown if the two collections contained the same elements, including
the same number of duplicate occurrences of each element.
Tests whether two collections contain the different elements and throws an
exception if the two collections contain identical elements without regard
to order.
The first collection to compare. This contains the elements the test
expects to be different than the actual collection.
The second collection to compare. This is the collection produced by
the code under test.
The message to include in the exception when
contains the same elements as . The message
is shown in test results.
Thrown if the two collections contained the same elements, including
the same number of duplicate occurrences of each element.
Tests whether two collections contain the different elements and throws an
exception if the two collections contain identical elements without regard
to order.
The first collection to compare. This contains the elements the test
expects to be different than the actual collection.
The second collection to compare. This is the collection produced by
the code under test.
The message to include in the exception when
contains the same elements as . The message
is shown in test results.
An array of parameters to use when formatting .
Thrown if the two collections contained the same elements, including
the same number of duplicate occurrences of each element.
Tests whether all elements in the specified collection are instances
of the expected type and throws an exception if the expected type is
not in the inheritance hierarchy of one or more of the elements.
The collection containing elements the test expects to be of the
specified type.
The expected type of each element of .
Thrown if an element in is null or
is not in the inheritance hierarchy
of an element in .
Tests whether all elements in the specified collection are instances
of the expected type and throws an exception if the expected type is
not in the inheritance hierarchy of one or more of the elements.
The collection containing elements the test expects to be of the
specified type.
The expected type of each element of .
The message to include in the exception when an element in
is not an instance of
. The message is shown in test results.
Thrown if an element in is null or
is not in the inheritance hierarchy
of an element in .
Tests whether all elements in the specified collection are instances
of the expected type and throws an exception if the expected type is
not in the inheritance hierarchy of one or more of the elements.
The collection containing elements the test expects to be of the
specified type.
The expected type of each element of .
The message to include in the exception when an element in
is not an instance of
. The message is shown in test results.
An array of parameters to use when formatting .
Thrown if an element in is null or
is not in the inheritance hierarchy
of an element in .
Tests whether the specified collections are equal and throws an exception
if the two collections are not equal. Equality is defined as having the same
elements in the same order and quantity. Different references to the same
value are considered equal.
The first collection to compare. This is the collection the tests expects.
The second collection to compare. This is the collection produced by the
code under test.
Thrown if is not equal to
.
Tests whether the specified collections are equal and throws an exception
if the two collections are not equal. Equality is defined as having the same
elements in the same order and quantity. Different references to the same
value are considered equal.
The first collection to compare. This is the collection the tests expects.
The second collection to compare. This is the collection produced by the
code under test.
The message to include in the exception when
is not equal to . The message is shown in
test results.
Thrown if is not equal to
.
Tests whether the specified collections are equal and throws an exception
if the two collections are not equal. Equality is defined as having the same
elements in the same order and quantity. Different references to the same
value are considered equal.
The first collection to compare. This is the collection the tests expects.
The second collection to compare. This is the collection produced by the
code under test.
The message to include in the exception when
is not equal to . The message is shown in
test results.
An array of parameters to use when formatting .
Thrown if is not equal to
.
Tests whether the specified collections are unequal and throws an exception
if the two collections are equal. Equality is defined as having the same
elements in the same order and quantity. Different references to the same
value are considered equal.
The first collection to compare. This is the collection the tests expects
not to match .
The second collection to compare. This is the collection produced by the
code under test.
Thrown if is equal to .
Tests whether the specified collections are unequal and throws an exception
if the two collections are equal. Equality is defined as having the same
elements in the same order and quantity. Different references to the same
value are considered equal.
The first collection to compare. This is the collection the tests expects
not to match .
The second collection to compare. This is the collection produced by the
code under test.
The message to include in the exception when
is equal to . The message is shown in
test results.
Thrown if is equal to .
Tests whether the specified collections are unequal and throws an exception
if the two collections are equal. Equality is defined as having the same
elements in the same order and quantity. Different references to the same
value are considered equal.
The first collection to compare. This is the collection the tests expects
not to match .
The second collection to compare. This is the collection produced by the
code under test.
The message to include in the exception when
is equal to . The message is shown in
test results.
An array of parameters to use when formatting .
Thrown if is equal to .
Tests whether the specified collections are equal and throws an exception
if the two collections are not equal. Equality is defined as having the same
elements in the same order and quantity. Different references to the same
value are considered equal.
The first collection to compare. This is the collection the tests expects.
The second collection to compare. This is the collection produced by the
code under test.
The compare implementation to use when comparing elements of the collection.
Thrown if is not equal to
.
Tests whether the specified collections are equal and throws an exception
if the two collections are not equal. Equality is defined as having the same
elements in the same order and quantity. Different references to the same
value are considered equal.
The first collection to compare. This is the collection the tests expects.
The second collection to compare. This is the collection produced by the
code under test.
The compare implementation to use when comparing elements of the collection.
The message to include in the exception when
is not equal to . The message is shown in
test results.
Thrown if is not equal to
.
Tests whether the specified collections are equal and throws an exception
if the two collections are not equal. Equality is defined as having the same
elements in the same order and quantity. Different references to the same
value are considered equal.
The first collection to compare. This is the collection the tests expects.
The second collection to compare. This is the collection produced by the
code under test.
The compare implementation to use when comparing elements of the collection.
The message to include in the exception when
is not equal to . The message is shown in
test results.
An array of parameters to use when formatting .
Thrown if is not equal to
.
Tests whether the specified collections are unequal and throws an exception
if the two collections are equal. Equality is defined as having the same
elements in the same order and quantity. Different references to the same
value are considered equal.
The first collection to compare. This is the collection the tests expects
not to match .
The second collection to compare. This is the collection produced by the
code under test.
The compare implementation to use when comparing elements of the collection.
Thrown if is equal to .
Tests whether the specified collections are unequal and throws an exception
if the two collections are equal. Equality is defined as having the same
elements in the same order and quantity. Different references to the same
value are considered equal.
The first collection to compare. This is the collection the tests expects
not to match .
The second collection to compare. This is the collection produced by the
code under test.
The compare implementation to use when comparing elements of the collection.
The message to include in the exception when
is equal to . The message is shown in
test results.
Thrown if is equal to .
Tests whether the specified collections are unequal and throws an exception
if the two collections are equal. Equality is defined as having the same
elements in the same order and quantity. Different references to the same
value are considered equal.
The first collection to compare. This is the collection the tests expects
not to match .
The second collection to compare. This is the collection produced by the
code under test.
The compare implementation to use when comparing elements of the collection.
The message to include in the exception when
is equal to . The message is shown in
test results.
An array of parameters to use when formatting .
Thrown if is equal to .
Constructs a dictionary containing the number of occurrences of each
element in the specified collection.
The collection to process.
The number of null elements in the collection.
A dictionary containing the number of occurrences of each element
in the specified collection.
Determines whether the first collection is a subset of the second
collection. If either set contains duplicate elements, the number
of occurrences of the element in the subset must be less than or
equal to the number of occurrences in the superset.
The collection the test expects to be contained in .
The collection the test expects to contain .
True if is a subset of
, false otherwise.
Finds a mismatched element between the two collections. A mismatched
element is one that appears a different number of times in the
expected collection than it does in the actual collection. The
collections are assumed to be different non-null references with the
same number of elements. The caller is responsible for this level of
verification. If there is no mismatched element, the function returns
false and the out parameters should not be used.
The first collection to compare.
The second collection to compare.
The expected number of occurrences of
or 0 if there is no mismatched
element.
The actual number of occurrences of
or 0 if there is no mismatched
element.
The mismatched element (may be null) or null if there is no
mismatched element.
true if a mismatched element was found; false otherwise.
compares the objects using object.Equals
This class is designed to help user doing unit testing.
GenericParameterHelper satisfies some comment generic type constraints
such as:
1. public default constructor
2. implements common interface: IComparable, IEnumerable, ICloneable
public default constructor, satisfies the constraint in C# generics.
This constructor initializes the Data property to a random value.
This constructor initializes the Data property to a user-supplied value
Do the value comparison for two GenericParameterHelper object
object to do comparison with
true if obj has the same value as 'this' GenericParameterHelper object.
false otherwise.
Returns a hash code for this object.
Compares to the object.
Returns an IEnumerator object whose length is derived from
the Data property.
Returns a GenericParameterHelper object that is equal to
'this' one.
Gets or sets the Data property.
Provides method signature discovery for generic methods.
Given a set of methods that match the base criteria, select a method based
upon an array of types. This method should return null if no method matches
the criteria.
Set of string assertions.
Tests whether the specified string contains the specified substring
and throws an exception if the substring does not occur within the
test string.
The string that is expected to contain .
The string expected to occur within .
Thrown if is not found in
.
Tests whether the specified string contains the specified substring
and throws an exception if the substring does not occur within the
test string.
The string that is expected to contain .
The string expected to occur within .
The message to include in the exception when
is not in . The message is shown in
test results.
Thrown if is not found in
.
Tests whether the specified string contains the specified substring
and throws an exception if the substring does not occur within the
test string.
The string that is expected to contain .
The string expected to occur within .
The message to include in the exception when
is not in . The message is shown in
test results.
An array of parameters to use when formatting .
Thrown if is not found in
.
Tests whether the specified string begins with the specified substring
and throws an exception if the test string does not start with the
substring.
The string that is expected to begin with .
The string expected to be a prefix of .
Thrown if does not begin with
.
Tests whether the specified string begins with the specified substring
and throws an exception if the test string does not start with the
substring.
The string that is expected to begin with .
The string expected to be a prefix of .
The message to include in the exception when
does not begin with . The message is
shown in test results.
Thrown if does not begin with
.
Tests whether the specified string begins with the specified substring
and throws an exception if the test string does not start with the
substring.
The string that is expected to begin with .
The string expected to be a prefix of .
The message to include in the exception when
does not begin with . The message is
shown in test results.
An array of parameters to use when formatting .
Thrown if does not begin with
.
Tests whether the specified string ends with the specified substring
and throws an exception if the test string does not end with the
substring.
The string that is expected to end with .
The string expected to be a suffix of .
Thrown if does not end with
.
Tests whether the specified string ends with the specified substring
and throws an exception if the test string does not end with the
substring.
The string that is expected to end with .
The string expected to be a suffix of .
The message to include in the exception when
does not end with . The message is
shown in test results.
Thrown if does not end with
.
Tests whether the specified string ends with the specified substring
and throws an exception if the test string does not end with the
substring.
The string that is expected to end with .
The string expected to be a suffix of .
The message to include in the exception when
does not end with . The message is
shown in test results.
An array of parameters to use when formatting .
Thrown if does not end with
.
Tests whether the specified string matches a regular expression and
throws an exception if the string does not match the expression.
The string that is expected to match .
The regular expression that is
expected to match.
Thrown if does not match
.
Tests whether the specified string matches a regular expression and
throws an exception if the string does not match the expression.
The string that is expected to match .
The regular expression that is
expected to match.
The message to include in the exception when
does not match . The message is shown in
test results.
Thrown if does not match
.
Tests whether the specified string matches a regular expression and
throws an exception if the string does not match the expression.
The string that is expected to match .
The regular expression that is
expected to match.
The message to include in the exception when
does not match . The message is shown in
test results.
An array of parameters to use when formatting .
Thrown if does not match
.
Tests whether the specified string does not match a regular expression
and throws an exception if the string matches the expression.
The string that is expected not to match .
The regular expression that is
expected to not match.
Thrown if matches .
Tests whether the specified string does not match a regular expression
and throws an exception if the string matches the expression.
The string that is expected not to match .
The regular expression that is
expected to not match.
The message to include in the exception when
matches . The message is shown in test
results.
Thrown if matches .
Tests whether the specified string does not match a regular expression
and throws an exception if the string matches the expression.
The string that is expected not to match .
The regular expression that is
expected to not match.
The message to include in the exception when
matches . The message is shown in test
results.
An array of parameters to use when formatting .
Thrown if matches .
TestContext class. This class should be fully abstract and not contain any
members. The adapter will implement the members. Users in the framework should
only access this via a well-defined interface.
Used to write trace messages while the test is running
format string
the arguments
Adds a file name to the list in TestResult.ResultFileNames
Begins a timer with the specified name
Ends a timer with the specified name
Per test properties
Current data row when test is used for data driven testing.
Current data connection row when test is used for data driven testing.
Gets the test logs directory.
Gets the test directory.
Gets the test deployment directory.
Gets the test name.
Gets the CurrentTestOutcome.
Outcome of a test or a run.
If a new successful state needs to be added you will need to modify
RunResultAndStatistics in TestRun and TestOutcomeHelper below.
NOTE: the order is important and is used for computing outcome for aggregations.
More important outcomes come first. See TestOutcomeHelper.GetAggregationOutcome.
Test was executed, but there were issues.
Issues may involve exceptions or failed assertions.
Test has completed, but we can't say if it passed or failed.
May be used for aborted tests...
Test was executed w/o any issues.
Test is currently executing.
There was a system error while we were trying to execute a test.
The test timed out.
Test was aborted by the user.
Test is in an unknown state
The data row.
The database connection.
Marks a test class.
Initializes a new test class attribute.
Marks a test method.
Initializes a new TestMethodAttribute.
A method marker called before a test method runs.
Initializes a new TestInitializeAttribute.
A method marker called after a test method runs.
Initializes a new TestCleanupAttribute.
Ignores a unit test.
Initializes a new IgnoreAttribute.
The ExpectedExceptionAttribute.
Initializes the ExpectedExceptionAttribute.
The exception type.
Initializes the ExpectedExceptionAttribute.
The exception type.
The message.
Gets the exception type.
Gets the message.
The test property attribute.
Initializes the TestPropertyAttribute.
Gets the name.
Gets the value.
The ClassInitializeAttribute.
Initializes the ClassInitializeAttribute.
The ClassCleanupAttribute.
Initializes the ClassCleanupAttribute.
The AssemblyInitializeAttribute.
Initializes the AssemblyInitializeAttribute.
The AssemblyCleanupAttribute.
Initializes the AssemblyCleanupAttribute.
Description of the test.
Initializes the DescriptionAttribute.
The description.
Gets the description.
The OwnerAttribute.
Initializes the OwnerAttribute.
The owner.
Gets the owner.
CSS Project Structure URI.
Initializes the CSS Project Structure URI.
The structure.
Gets the property structure.
CSS Iteration URI
Initializes the CssIterationAttribute.
The parameter.
Gets the CssIteration.
Priority attribute; used to specify the priority of a unit test.
Initializes the PriorityAttribute.
The priority.
Gets the Priority.
Timeout attribute; used to specify the timeout of a unit test.
Initializes the TimeoutAttribute.
Gets the Timeout.
WorkItem attribute; used to specify a work item associated with this test.
Initializes the WorkItemAttribute.
Gets the ID.
HostType specifies the type of host that this unit test will
run in.
Initializes the host type attribute.
Constructor of HostTypeAttribute.
The type of the host.
Custom data for the host adapter.
The reason this is string (and not object) is that currently CMI cannot parse arbitrary instances of object and we deprioritized changing CMI.
Gets the host type.
Gets the host data.
Used to specify deployment item (file or directory) for per-test deployment.
Can be specified on test class or test method.
Can have multiple instances of the attribute to specify more than one item.
The item path can be absolute or relative, if relative, it is relative to RunConfig.RelativePathRoot.
[DeploymentItem("file1.xml")]
[DeploymentItem("file2.xml", "DataFiles")]
[DeploymentItem("bin\Debug")]
Initializes DeploymentItemAttribute.
The path.
Initializes DeploymentItemAttribute.
The path.
The output directory.
Verifiable interface.
The IsValid method.
Returns a value.