Reactiveassert

ReactiveAssert Class

Represents a helper class to write asserts in Rx unit tests.

Inheritance Hierarchy

System.Object
  Microsoft.Reactive.Testing.ReactiveAssert

Namespace:  Microsoft.Reactive.Testing
Assembly:  Microsoft.Reactive.Testing (in Microsoft.Reactive.Testing.dll)

Syntax

'Declaration
Public NotInheritable Class ReactiveAssert
'Usage
public static class ReactiveAssert
public ref class ReactiveAssert abstract sealed
[<AbstractClassAttribute>]
[<SealedAttribute>]
type ReactiveAssert =  class end
public final class ReactiveAssert

Methods

NameDescriptionPublic methodStatic memberAreElementsEqual(IEnumerable, IEnumerable)Asserts that both enumerable sequences have equal length and equal elements.Public methodStatic memberAreElementsEqual(IObservable, IObservable)Asserts that both observable sequences have equal length and equal elements.Public methodStatic memberAreElementsEqual(IEnumerable, IEnumerable, String)Asserts that both enumerable sequences have equal length and equal elements.Public methodStatic memberAreElementsEqual(IObservable, IObservable, String)Asserts that both observable sequences have equal length and equal elements.Public methodStatic memberThrows(Action)Asserts that the given action throws an exception of the type specified in the generic parameter.Public methodStatic memberThrows(Action, String)Asserts that the given action throws an exception of the type specified in the generic parameter.Public methodStatic memberThrows(TException, Action)Public methodStatic memberThrows(TException, Action, String)Top

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Reference

Microsoft.Reactive.Testing Namespace

ReactiveAssert Methods

Include Protected Members
Include Inherited Members

Methods

NameDescriptionPublic methodStatic memberAreElementsEqual(IEnumerable, IEnumerable)Asserts that both enumerable sequences have equal length and equal elements.Public methodStatic memberAreElementsEqual(IObservable, IObservable)Asserts that both observable sequences have equal length and equal elements.Public methodStatic memberAreElementsEqual(IEnumerable, IEnumerable, String)Asserts that both enumerable sequences have equal length and equal elements.Public methodStatic memberAreElementsEqual(IObservable, IObservable, String)Asserts that both observable sequences have equal length and equal elements.Public methodStatic memberThrows(Action)Asserts that the given action throws an exception of the type specified in the generic parameter.Public methodStatic memberThrows(Action, String)Asserts that the given action throws an exception of the type specified in the generic parameter.Public methodStatic memberThrows(TException, Action)Public methodStatic memberThrows(TException, Action, String)Top

See Also

Reference

ReactiveAssert Class

Microsoft.Reactive.Testing Namespace