Class TestEx
- Namespace
- DynamicData.Tests
- Assembly
- DynamicData.dll
Test extensions.
public static class TestEx
- Inheritance
-
TestEx
Methods
AsAggregator<TValue>(IObservable<IDistinctChangeSet<TValue>>)
Aggregates all events and statistics for a distinct change set to help assertions when testing.
public static DistinctChangeSetAggregator<TValue> AsAggregator<TValue>(this IObservable<IDistinctChangeSet<TValue>> source) where TValue : notnull
Parameters
source
IObservable<IDistinctChangeSet<TValue>>The source.
Returns
- DistinctChangeSetAggregator<TValue>
The distinct change set aggregator.
Type Parameters
TValue
The type of the value.
Exceptions
- ArgumentNullException
source.
AsAggregator<TObject, TKey>(IObservable<IChangeSet<TObject, TKey>>)
Aggregates all events and statistics for a paged change set to help assertions when testing.
public static ChangeSetAggregator<TObject, TKey> AsAggregator<TObject, TKey>(this IObservable<IChangeSet<TObject, TKey>> source) where TObject : notnull where TKey : notnull
Parameters
source
IObservable<IChangeSet<TObject, TKey>>The source.
Returns
- ChangeSetAggregator<TObject, TKey>
The change set aggregator.
Type Parameters
TObject
The type of the object.
TKey
The type of the key.
AsAggregator<TObject, TKey>(IObservable<IPagedChangeSet<TObject, TKey>>)
Aggregates all events and statistics for a paged change set to help assertions when testing.
public static PagedChangeSetAggregator<TObject, TKey> AsAggregator<TObject, TKey>(this IObservable<IPagedChangeSet<TObject, TKey>> source) where TObject : notnull where TKey : notnull
Parameters
source
IObservable<IPagedChangeSet<TObject, TKey>>The source.
Returns
- PagedChangeSetAggregator<TObject, TKey>
The paged change set aggregator.
Type Parameters
TObject
The type of the object.
TKey
The type of the key.
AsAggregator<TObject, TKey>(IObservable<ISortedChangeSet<TObject, TKey>>)
Aggregates all events and statistics for a sorted change set to help assertions when testing.
public static SortedChangeSetAggregator<TObject, TKey> AsAggregator<TObject, TKey>(this IObservable<ISortedChangeSet<TObject, TKey>> source) where TObject : notnull where TKey : notnull
Parameters
source
IObservable<ISortedChangeSet<TObject, TKey>>The source.
Returns
- SortedChangeSetAggregator<TObject, TKey>
The sorted change set aggregator.
Type Parameters
TObject
The type of the object.
TKey
The type of the key.
Exceptions
- ArgumentNullException
source.
AsAggregator<TObject, TKey>(IObservable<IVirtualChangeSet<TObject, TKey>>)
Aggregates all events and statistics for a virtual change set to help assertions when testing.
public static VirtualChangeSetAggregator<TObject, TKey> AsAggregator<TObject, TKey>(this IObservable<IVirtualChangeSet<TObject, TKey>> source) where TObject : notnull where TKey : notnull
Parameters
source
IObservable<IVirtualChangeSet<TObject, TKey>>The source.
Returns
- VirtualChangeSetAggregator<TObject, TKey>
The virtual change set aggregator.
Type Parameters
TObject
The type of the object.
TKey
The type of the key.
Exceptions
- ArgumentNullException
source.
AsAggregator<TObject, TKey, TContext>(IObservable<IChangeSet<TObject, TKey, TContext>>)
Aggregates all events and statistics for a paged change set to help assertions when testing.
public static ChangeSetAggregator<TObject, TKey, TContext> AsAggregator<TObject, TKey, TContext>(this IObservable<IChangeSet<TObject, TKey, TContext>> source) where TObject : notnull where TKey : notnull
Parameters
source
IObservable<IChangeSet<TObject, TKey, TContext>>The source.
Returns
- ChangeSetAggregator<TObject, TKey, TContext>
The change set aggregator.
Type Parameters
TObject
The type of the object.
TKey
The type of the key.
TContext
The type of context.
AsAggregator<TValue, TKey, TGroupKey>(IObservable<IGroupChangeSet<TValue, TKey, TGroupKey>>)
Aggregates all events and statistics for a group change set to help assertions when testing.
public static GroupChangeSetAggregator<TValue, TKey, TGroupKey> AsAggregator<TValue, TKey, TGroupKey>(this IObservable<IGroupChangeSet<TValue, TKey, TGroupKey>> source) where TValue : notnull where TKey : notnull where TGroupKey : notnull
Parameters
source
IObservable<IGroupChangeSet<TValue, TKey, TGroupKey>>The source.
Returns
- GroupChangeSetAggregator<TValue, TKey, TGroupKey>
The distinct change set aggregator.
Type Parameters
TValue
The type of the value.
TKey
The type of the key.
TGroupKey
The type of the grouping key.
Exceptions
- ArgumentNullException
source.