Skip to content

Commit 35e82f3

Browse files
committed
docs(mocks): note AnyValueType is exact-match-only under additional struct constraints
1 parent 0afbe71 commit 35e82f3

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

TUnit.Mocks/Arguments/AnyType.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,9 @@ public sealed class AnyType
2020
/// Wildcard marker for a generic method's value-type argument. The struct counterpart of
2121
/// <see cref="AnyType"/>, for matching a <c>where T : struct</c> type parameter regardless of the
2222
/// concrete value type supplied at the call site.
23+
/// A type parameter with constraints beyond <c>struct</c> (e.g. <c>where T : struct, IComparable</c>)
24+
/// supports exact-type matching only, since <see cref="AnyValueType"/> does not implement any
25+
/// interfaces and cannot be supplied as its type argument.
2326
/// </summary>
2427
public struct AnyValueType
2528
{

0 commit comments

Comments
 (0)