Class Coverage
Exact sample coverage: counts alone never establish that the intended samples were measured.
public static class Coverage
- Inheritance
-
objectCoverage
Methods
Exact<TKey, TRow>(IEnumerable<TKey>, IEnumerable<TRow>, Func<TRow, TKey>)
Exact<TKey, TExpected, TRow>(IReadOnlyDictionary<TKey, TExpected>, IEnumerable<TRow>, Func<TRow, TKey>) for a set of identities with no expected value.
public static IReadOnlyList<TRow> Exact<TKey, TRow>(IEnumerable<TKey> expected, IEnumerable<TRow> rows, Func<TRow, TKey> identity) where TKey : notnull
Parameters
expectedIEnumerable<TKey>rowsIEnumerable<TRow>identityFunc<TRow, TKey>
Returns
- IReadOnlyList<TRow>
Type Parameters
TKeyTRow
Exact<TKey, TExpected, TRow>(IReadOnlyDictionary<TKey, TExpected>, IEnumerable<TRow>, Func<TRow, TKey>)
Pairs each observed row with its expected entry by identity. An unknown or repeated identity, and any expected identity left unobserved, is refused. Returns the pairs in observation order.
public static IReadOnlyList<(TKey Key, TExpected Expected, TRow Row)> Exact<TKey, TExpected, TRow>(IReadOnlyDictionary<TKey, TExpected> expected, IEnumerable<TRow> rows, Func<TRow, TKey> identity) where TKey : notnull
Parameters
expectedIReadOnlyDictionary<TKey, TExpected>rowsIEnumerable<TRow>identityFunc<TRow, TKey>
Returns
- IReadOnlyList<(TKey Key, TExpected Expected, TRow Row)>
Type Parameters
TKeyTExpectedTRow