Table of Contents

Class Match<T>

Namespace
Moq
Assembly
Moq.dll

Allows creating custom value matchers that can be used on setups and verification, completely replacing the built-in It class with your own argument matching rules.

public class Match<T> : Match, IEquatable<Match<T>>

Type Parameters

T

Type of the value to match.

Inheritance
Match<T>
Implements
Derived
Inherited Members

Methods

Equals(Match<T>)

public bool Equals(Match<T> other)

Parameters

other Match<T>

Returns

bool

Equals(object)

public override bool Equals(object obj)

Parameters

obj object

Returns

bool

GetHashCode()

public override int GetHashCode()

Returns

int