AutoMocker.Verify method (1 of 18)

April 20, 2021 · View on GitHub

This is a shortcut for calling mock.Verify() on every mock that we have.

public void Verify()

See Also


AutoMocker.Verify<T> method (2 of 18)

Verifies that a specific invocation matching the given expression was performed on the mock. Use in conjunction with the default Moq.MockBehavior.Loose.

public void Verify<T>()
    where T : class
parameterdescription
TType of the mock

See Also


AutoMocker.Verify<T> method (3 of 18)

Verifies that a specific invocation matching the given expression was performed on the mock. Use in conjunction with the default Moq.MockBehavior.Loose.

public void Verify<T>(Expression<Action<T>> expression)
    where T : class
parameterdescription
TType of the mock
expressionExpression to verify

See Also


AutoMocker.Verify<T> method (4 of 18)

Verifies that a specific invocation matching the given expression was performed on the mock. Use in conjunction with the default Moq.MockBehavior.Loose.

public void Verify<T>(Expression<Func<T, object>> expression)
    where T : class
parameterdescription
TType of the mock
expressionExpression to verify

See Also


AutoMocker.Verify<T> method (5 of 18)

Verifies that a specific invocation matching the given expression was performed on the mock. Use in conjunction with the default Moq.MockBehavior.Loose.

public void Verify<T>(Expression<Action<T>> expression, Func<Times> times)
    where T : class
parameterdescription
TType of the mock
expressionExpression to verify
timesThe number of times a method is allowed to be called.

See Also


AutoMocker.Verify<T> method (6 of 18)

Verifies that a specific invocation matching the given expression was performed on the mock. Use in conjunction with the default Moq.MockBehavior.Loose.

public void Verify<T>(Expression<Action<T>> expression, string failMessage)
    where T : class
parameterdescription
TType of the mock
expressionExpression to verify
failMessageMessage to show if verification fails.

See Also


AutoMocker.Verify<T> method (7 of 18)

Verifies that a specific invocation matching the given expression was performed on the mock. Use in conjunction with the default Moq.MockBehavior.Loose.

public void Verify<T>(Expression<Action<T>> expression, Times times)
    where T : class
parameterdescription
TType of the mock
expressionExpression to verify
timesThe number of times a method is allowed to be called.

See Also


AutoMocker.Verify<T> method (8 of 18)

Verifies that a specific invocation matching the given expression was performed on the mock. Use in conjunction with the default Moq.MockBehavior.Loose.

public void Verify<T>(Expression<Func<T, object>> expression, Func<Times> times)
    where T : class
parameterdescription
TType of the mock
expressionExpression to verify
timesThe number of times a method is allowed to be called.

See Also


AutoMocker.Verify<T> method (9 of 18)

Verifies that a specific invocation matching the given expression was performed on the mock. Use in conjunction with the default Moq.MockBehavior.Loose.

public void Verify<T>(Expression<Func<T, object>> expression, string failMessage)
    where T : class
parameterdescription
TType of the mock
expressionExpression to verify
failMessageMessage to show if verification fails.

See Also


AutoMocker.Verify<T> method (10 of 18)

Verifies that a specific invocation matching the given expression was performed on the mock. Use in conjunction with the default Moq.MockBehavior.Loose.

public void Verify<T>(Expression<Func<T, object>> expression, Times times)
    where T : class
parameterdescription
TType of the mock
expressionExpression to verify
timesThe number of times a method is allowed to be called.

See Also


AutoMocker.Verify<T> method (11 of 18)

Verifies that a specific invocation matching the given expression was performed on the mock. Use in conjunction with the default Moq.MockBehavior.Loose.

public void Verify<T>(Expression<Action<T>> expression, Func<Times> times, string failMessage)
    where T : class
parameterdescription
TType of the mock
expressionExpression to verify
timesThe number of times a method is allowed to be called.
failMessageMessage to show if verification fails.

See Also


AutoMocker.Verify<T> method (12 of 18)

Verifies that a specific invocation matching the given expression was performed on the mock. Use in conjunction with the default Moq.MockBehavior.Loose.

public void Verify<T>(Expression<Action<T>> expression, Times times, string failMessage)
    where T : class
parameterdescription
TType of the mock
expressionExpression to verify
timesThe number of times a method is allowed to be called.
failMessageMessage to show if verification fails.

See Also


AutoMocker.Verify<T> method (13 of 18)

Verifies that a specific invocation matching the given expression was performed on the mock. Use in conjunction with the default Moq.MockBehavior.Loose.

public void Verify<T>(Expression<Func<T, object>> expression, Times times, string failMessage)
    where T : class
parameterdescription
TType of the mock
expressionExpression to verify
timesThe number of times a method is allowed to be called.
failMessageMessage to show if verification fails.

See Also


AutoMocker.Verify<T,TResult> method (14 of 18)

Verify a mock in the container.

public void Verify<T, TResult>(Expression<Func<T, TResult>> expression)
    where T : class
parameterdescription
TType of the mock
TResultReturn type of the full expression
expression

See Also


AutoMocker.Verify<T,TResult> method (15 of 18)

Verify a mock in the container.

public void Verify<T, TResult>(Expression<Func<T, TResult>> expression, Func<Times> times)
    where T : class
parameterdescription
TType of the mock
TResultReturn type of the full expression
expression
times

See Also


AutoMocker.Verify<T,TResult> method (16 of 18)

Verify a mock in the container.

public void Verify<T, TResult>(Expression<Func<T, TResult>> expression, string failMessage)
    where T : class
parameterdescription
TType of the mock
TResultReturn type of the full expression
expression
failMessage

See Also


AutoMocker.Verify<T,TResult> method (17 of 18)

Verify a mock in the container.

public void Verify<T, TResult>(Expression<Func<T, TResult>> expression, Times times)
    where T : class
parameterdescription
TType of the mock
TResultReturn type of the full expression
expression
times

See Also


AutoMocker.Verify<T,TResult> method (18 of 18)

Verify a mock in the container.

public void Verify<T, TResult>(Expression<Func<T, TResult>> expression, Times times, 
    string failMessage)
    where T : class
parameterdescription
TType of the mock
TResultReturn type of the full expression
expression
times
failMessage

See Also