Constructors
Methods
-
All``1(IEnumerable<``0>,
Action<``0>) static Verifies that all items in the collection pass when executed against action. -
Collection``1(IEnumerable<``0>,
Action<``0>[]) static Verifies that a collection contains exactly a given number of elements, which meet the criteria provided by the element inspectors. -
Contains(String,
String) static Verifies that a string contains a given sub-string, using the current culture. -
Contains(String,
String, static Verifies that a string contains a given sub-string, using the given comparison type.String Comparison) -
Contains``1(IEnumerable<``0>,
Predicate<``0>) static Verifies that a collection contains a given object. -
Contains``1(``0,
IEnumerable<``0>) static Verifies that a collection contains a given object. -
Contains``1(``0,
IEnumerable<``0>, static Verifies that a collection contains a given object, using an equality comparer.IEquality Comparer<``0>) -
Contains``2(``0,
IDictionary<``0, static Verifies that a dictionary contains a given key.``1>) -
Contains``2(``0,
IRead static Verifies that a dictionary contains a given key.Only Dictionary<``0, ``1>) -
Does
Not static Verifies that a string does not contain a given sub-string, using the current culture.Contain(String, String) -
Does
Not static Verifies that a string does not contain a given sub-string, using the current culture.Contain(String, String, String Comparison) -
Does
Not static Verifies that a collection does not contain a given object.Contain``1(IEnumerable<``0>, Predicate<``0>) -
Does
Not static Verifies that a collection does not contain a given object.Contain``1(``0, IEnumerable<``0>) -
Does
Not static Verifies that a collection does not contain a given object, using an equality comparer.Contain``1(``0, IEnumerable<``0>, IEquality Comparer<``0>) -
Does
Not static Verifies that a dictionary does not contain a given key.Contain``2(``0, IDictionary<``0, ``1>) -
Does
Not static Verifies that a dictionary does not contain a given key.Contain``2(``0, IRead Only Dictionary<``0, ``1>) -
Does
Not static Verifies that a string does not match a regular expression.Match(Regex, String) -
Does
Not static Verifies that a string does not match a regular expression.Match(String, String) - Empty(IEnumerable) static Verifies that a collection is empty.
-
Ends
With(String, static Verifies that a string ends with a given string, using the current culture.String) -
Ends
With(String, static Verifies that a string ends with a given string, using the given comparison type.String, String Comparison) -
Equal(Date
Time, static Verifies that two DateTime values are equal, within the precision given by precision.Date Time, Time Span) -
Equal(Decimal,
Decimal, static Verifies that two Decimal values are equal, within the number of decimal places given by precision. The values are rounded before comparison.Int32) -
Equal(Double,
Double, static Verifies that two Double values are equal, within the number of decimal places given by precision. The values are rounded before comparison.Int32) -
Equal(String,
String) static Verifies that two strings are equivalent. -
Equal(String,
String, static Verifies that two strings are equivalent.Boolean, Boolean, Boolean) -
Equal``1(IEnumerable<``0>,
IEnumerable<``0>) static Verifies that two sequences are equivalent, using a default comparer. -
Equal``1(IEnumerable<``0>,
IEnumerable<``0>, static Verifies that two sequences are equivalent, using a custom equatable comparer.IEquality Comparer<``0>) -
Equal``1(``0,
``0) static Verifies that two objects are equal, using a default comparer. -
Equal``1(``0,
``0, static Verifies that two objects are equal, using a custom equatable comparer.IEquality Comparer<``0>) -
Equals(Object,
Object) static Do not call this method. - False(Boolean) static Verifies that the condition is false.
-
False(Boolean,
String) static Verifies that the condition is false. - False(Nullable<Boolean>) static Verifies that the condition is false.
-
False(Nullable<Boolean>,
String) static Verifies that the condition is false. -
In
Range``1(``0, static Verifies that a value is within a given range.``0, ``0) -
In
Range``1(``0, static Verifies that a value is within a given range, using a comparer.``0, ``0, IComparer<``0>) -
Is
Assignable static Verifies that an object is of the given type or a derived type.From(Type, Object) -
Is
Assignable static Verifies that an object is of the given type or a derived type.From``1(Object) -
Is
Not static Verifies that an object is not exactly the given type.Type(Type, Object) -
Is
Not static Verifies that an object is not exactly the given type.Type``1(Object) -
Is
Type(Type, static Verifies that an object is exactly the given type (and not a derived type).Object) -
Is
Type``1(Object) static Verifies that an object is exactly the given type (and not a derived type). -
Matches(Regex,
String) static Verifies that a string matches a regular expression. -
Matches(String,
String) static Verifies that a string matches a regular expression. -
Not
Empty(IEnumerable) static Verifies that a collection is not empty. -
Not
Equal(Decimal, static Verifies that two Decimal values are not equal, within the number of decimal places given by precision.Decimal, Int32) -
Not
Equal(Double, static Verifies that two Double values are not equal, within the number of decimal places given by precision.Double, Int32) -
Not
Equal``1(IEnumerable<``0>, static Verifies that two sequences are not equivalent, using a default comparer.IEnumerable<``0>) -
Not
Equal``1(IEnumerable<``0>, static Verifies that two sequences are not equivalent, using a custom equality comparer.IEnumerable<``0>, IEquality Comparer<``0>) -
Not
Equal``1(``0, static Verifies that two objects are not equal, using a default comparer.``0) -
Not
Equal``1(``0, static Verifies that two objects are not equal, using a custom equality comparer.``0, IEquality Comparer<``0>) -
Not
In static Verifies that a value is not within a given range, using the default comparer.Range``1(``0, ``0, ``0) -
Not
In static Verifies that a value is not within a given range, using a comparer.Range``1(``0, ``0, ``0, IComparer<``0>) -
Not
Null(Object) static Verifies that an object reference is not null. -
Not
Same(Object, static Verifies that two objects are not the same instance.Object) -
Not
Strict static Verifies that two objects are strictly not equal, using the type's default comparer.Equal``1(``0, ``0) - Null(Object) static Verifies that an object reference is null.
-
Proper
Subset``1(ISet<``0>, static Verifies that a set is a proper subset of another set.ISet<``0>) -
Proper
Superset``1(ISet<``0>, static Verifies that a set is a proper superset of another set.ISet<``0>) -
Property
Changed(INotify static Verifies that the provided object raised PropertyChanged as a result of executing the given test code.Property Changed, String, Action) -
Property
Changed(INotify staticProperty Changed, String, Func<Task>) -
Property
Changed static Verifies that the provided object raised PropertyChanged as a result of executing the given test code.Async(INotify Property Changed, String, Func<Task>) -
Raises``1(Action<Event
Handler<``0>>, static Verifies that a event with the exact event args is raised.Action<Event Handler<``0>>, Action) -
Raises
Any``1(Action<Event static Verifies that an event with the exact or a derived event args is raised.Handler<``0>>, Action<Event Handler<``0>>, Action) -
Raises
Any static Verifies that an event with the exact or a derived event args is raised.Async``1(Action<Event Handler<``0>>, Action<Event Handler<``0>>, Func<Task>) -
Raises
Async``1(Action<Event static Verifies that a event with the exact event args (and not a derived type) is raised.Handler<``0>>, Action<Event Handler<``0>>, Func<Task>) -
Record
Exception(Action) protectedstatic Records any exception which is thrown by the given code. -
Record
Exception(Func<Object>) protectedstatic Records any exception which is thrown by the given code that has a return value. Generally used for testing property accessors. -
Record
Exception(Func<Task>) protectedstatic -
Record
Exception protectedstatic Records any exception which is thrown by the given task.Async(Func<Task>) -
Reference
Equals(Object, static Do not call this method.Object) -
Same(Object,
Object) static Verifies that two objects are the same instance. - Single(IEnumerable) static Verifies that the given collection contains only a single element of the given type.
-
Single(IEnumerable,
Object) static Verifies that the given collection contains only a single element of the given value. The collection may or may not contain other values. - Single``1(IEnumerable<``0>) static Verifies that the given collection contains only a single element of the given type.
-
Single``1(IEnumerable<``0>,
Predicate<``0>) static Verifies that the given collection contains only a single element of the given type which matches the given predicate. The collection may or may not contain other values which do not match the given predicate. -
Starts
With(String, static Verifies that a string starts with a given string, using the current culture.String) -
Starts
With(String, static Verifies that a string starts with a given string, using the given comparison type.String, String Comparison) -
Strict
Equal``1(``0, static Verifies that two objects are strictly equal, using the type's default comparer.``0) -
Subset``1(ISet<``0>,
ISet<``0>) static Verifies that a set is a subset of another set. -
Superset``1(ISet<``0>,
ISet<``0>) static Verifies that a set is a superset of another set. -
Throws(Type,
Action) static Verifies that the exact exception is thrown (and not a derived exception type). -
Throws(Type,
Func<Object>) static Verifies that the exact exception is thrown (and not a derived exception type). Generally used to test property accessors. - Throws``1(Action) static Verifies that the exact exception is thrown (and not a derived exception type).
- Throws``1(Func<Object>) static Verifies that the exact exception is thrown (and not a derived exception type). Generally used to test property accessors.
- Throws``1(Func<Task>) static
-
Throws``1(String,
Action) static Verifies that the exact exception is thrown (and not a derived exception type), where the exception derives from ArgumentException and has the given parameter name. -
Throws``1(String,
Func<Object>) static Verifies that the exact exception is thrown (and not a derived exception type), where the exception derives from ArgumentException and has the given parameter name. -
Throws``1(String,
Func<Task>) static -
Throws
Any``1(Action) static Verifies that the exact exception or a derived exception type is thrown. -
Throws
Any``1(Func<Object>) static Verifies that the exact exception or a derived exception type is thrown. Generally used to test property accessors. -
Throws
Any static Verifies that the exact exception or a derived exception type is thrown.Async``1(Func<Task>) -
Throws
Async(Type, static Verifies that the exact exception is thrown (and not a derived exception type).Func<Task>) -
Throws
Async``1(Func<Task>) static Verifies that the exact exception is thrown (and not a derived exception type). -
Throws
Async``1(String, static Verifies that the exact exception is thrown (and not a derived exception type), where the exception derives from ArgumentException and has the given parameter name.Func<Task>) - True(Boolean) static Verifies that an expression is true.
-
True(Boolean,
String) static Verifies that an expression is true. - True(Nullable<Boolean>) static Verifies that an expression is true.
-
True(Nullable<Boolean>,
String) static Verifies that an expression is true.