Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove TResult struct restriction from Verify methods; #70

Merged
merged 1 commit into from Feb 5, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
5 changes: 0 additions & 5 deletions Moq.AutoMock/AutoMocker.cs
Expand Up @@ -410,7 +410,6 @@ public void Verify()
/// <param name="expression"></param>
public void Verify<T, TResult>(Expression<Func<T, TResult>> expression)
where T : class
where TResult : struct
{
var mock = GetMock<T>();
mock.Verify(expression);
Expand All @@ -425,7 +424,6 @@ public void Verify()
/// <param name="times"></param>
public void Verify<T, TResult>(Expression<Func<T, TResult>> expression, Times times)
where T : class
where TResult : struct
{
var mock = GetMock<T>();
mock.Verify(expression, times);
Expand All @@ -440,7 +438,6 @@ public void Verify()
/// <param name="times"></param>
public void Verify<T, TResult>(Expression<Func<T, TResult>> expression, Func<Times> times)
where T : class
where TResult : struct
{
var mock = GetMock<T>();

Expand All @@ -456,7 +453,6 @@ public void Verify()
/// <param name="failMessage"></param>
public void Verify<T, TResult>(Expression<Func<T, TResult>> expression, String failMessage)
where T : class
where TResult : struct
{
var mock = GetMock<T>();
mock.Verify(expression, failMessage);
Expand All @@ -472,7 +468,6 @@ public void Verify()
/// <param name="failMessage"></param>
public void Verify<T, TResult>(Expression<Func<T, TResult>> expression, Times times, String failMessage)
where T : class
where TResult : struct
{
var mock = GetMock<T>();
mock.Verify(expression, times, failMessage);
Expand Down